At What Frequency Does WaitProperty Checks For Property
I'm currently doing performance tests on a desktop application and I realised that times are not the same when I do the test manually versus when I use TestComplete.
Let's say I'm looking at the time it takes to send results to server after clicking a button. What I do in my code is once the button to trigger the operation is clicked, wait for the result window to appear in order to stop the stopwatch.
I'm getting higher execution time with Test Complete than manually testing (I record the screen, capture the time where I click the button and the time where the window appears to be as precise as possible). Note that the difference of time is significant; around 30 to 40% depending on the amount of data transfered.
var ResultsDialog = Aliases.Sys.TxpApplication.TCCHPDFCreatedList; ResultsDialog.WaitProperty("Exists", true, 100000); if (!ResultsDialog.Exists) { Log.Error("Results dialog is not visible after timeout"); } ResultsDialog.ButtonPanel.ButtonCancel.Click();
My question is how often does Test Complete tries to check the "exists" property ? I have a feeling that it does it at a high frequency, which results in the environnement being overcharged and thus performing it's current operation slowly.
I read the documentation, with no succes, I couldn't not find a parameter to set a frequency.
I know I could use a loop and add manual delay to it, but I would like to avoid that.
Thanks!
Hi luisanillo,
Also, I would recommend that you read the Monitoring Tested Application Performance article. I think it should help you better understand what is happening on the computer during the test run.