Highlighted
Absent Member.. Absent Member..
Absent Member..
345 views

Execution time is different evey time I run the automation script.

Automation script I run against the application that is designed on Oracle Form is not uniform execution tine, it differ on every new run. It varies between 10 to 18 mins.

Please let me know how to optimise the code so that execution time is same every time I run. Automation script that I have developed descriptive programming not used the object repository.

0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

The variation in time is could be caused by application delay or it could be UFT taking time to reconize objects in the application.

I assume you are using timer function to calculate the script execution time. 

If the delay is due to application, you will need to identify which part of application takes more time.

To do that, split your code into functions and capture execution times for each function. Then compare the times for multiple runs and you will know where the delay is coming from.

If the delay is due to UFT script, you can tune it in multiple ways -

1. An object, say 'link' that has hierarchy of Browser().Page().WebTable().Link can also be identified directly using Browser().Page().Link or Browser().Link

2. Avoid Active Screen, Recovery scenarios, Images and Movie capture

3. Set UFT Run mode to Fast

4. Use dynamic wait like .exist


Accept as solution/Give Kudos to the author if the piece of information answered/helped you to solve your problem.
All the thoughts here are mine not related to my employer nor anyone.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.