ssheldon Posted May 30, 2018 Share Posted May 30, 2018 Hi all, I am involved in testing a commercial software product. One of the things I would like to focus on is performance testing of the UI. For example, I would like to measure how long it takes a dialog to appear when a button is clicked. This is a legacy product, so it is not possible to introduce timers in the code of the product itself. Instead, I want to do this through an external application that perhaps I could write using AutoIt. Is this sort of thing possible with AutoIt? Thanks, Steve Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 30, 2018 Moderators Share Posted May 30, 2018 (edited) @ssheldon yes, you can do such testing with AutoIt. You can (on most apps) automate interaction with the button, then create a loop looking for the appearance of the dialog box, and measure the time between. You might start reading in the help file under the Control* commands, to get an idea of some examples of manipulating GUI apps. Edited May 30, 2018 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
seandisanti Posted May 30, 2018 Share Posted May 30, 2018 You can definitely do this, as JLogan said, have a look at the control functions in the help file, as well as _Timer_Init, _Timer_Diff, WinWait, WinWaitActive functions Link to comment Share on other sites More sharing options...
junkew Posted May 30, 2018 Share Posted May 30, 2018 Look at event examples in iuiautomation examples thread which can act on open close evevts of hwnd windows. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now