constant polling of AUT - performance issues?
AUT is a Java Applet running in IE. It has a JavaJFCTree and I expand a node via DoubleSelect("TestNode") method. I then want to time how long it takes for a certain number of object to appear.
So I do the following:
[ ] StartTimer()
[-] while (MyApp.MyTree.GetSubItemCount("TestNode") <= 500)
[ ] nTotalTime = GetTimer()
[+] if ( nTotalTime > 600 )
[ ] DestroyTimer()
[ ] raise 1, "Error"
once it's > 500 i stop timer and record time
Now there might be a offset of 1 to 2 seconds of the actual time it takes but my question is:
Does doing the constant 'GetSubItemCount' cause the application to take longer to preform the task? I have verified manually and it seems correct but just wanted some imput on this.
Re: constant polling of AUT - performance issues?
I will try to generalize my post in hopes for a response.
Does doing constantant polling on the application cause the application to take longer to respond or process.
here are some sample commands but the range in endless? I am just currently focused on JavaJFCTreeView:
Re: constant polling of AUT - performance issues
I d say yes, especially for Java applications/Applets where Silk hooks into the JVM to perform those operations - and probably doesn't release the resources (or not properly)