How does TC parse script lines?
Attempting to add benchmarking scores after running intensive functions from the tested application.
I would like to do it as such:
benchmarks = []
# Begin intensive process for i in range(0, 5): benchmarks.append(addBenchmark()) time.sleep(1)
compileBenchmark()
What this will do is start something that should take some time to finish, then take five different measurements across five seconds and average them out to get the stats (e.g. time, cpu usage, memory usage, etc).
My question is, I notice that TC sometimes waits for something when it takes a while. While it does so, will it be stuck in
# Begin intensive process
Or will it enter my loop and start recording?
Also, has anyone tried out benchmarking and how did you go about it? I'm currently using psutil.
We have a web application that does something similar... click on a button and you get an overlay object that indicates "Loading..." that, until that goes away, the automation needs to wait. WE built a custom routine that simply checks for that object to be visible... if it is, sleep for 500 ms... loop until that object is no longer visible.
Is that what you're looking for?