10-29-2013, 08:56 PM
I would like to add that there are other methods besides using OR or dp if you are testing a web application.
The article, https://www.learnqtp.com/make-your-qtp-s...rm-better/ demonstrates several methods. Using DOM is faster than either OR or dp.
I went to the Mercury Tours web site, http://newtours.demoaut.com , logged in and went to the “Book A Flight” page. On that page, I ran an OR script and a DOM script that used getElementsByName.
The average of ten runs for the OR script was 2.63 sec.
The average of ten runs for the DOM script was 0.340 sec.
In the above article, the getElementsByName was 26.6 time faster than using OR. While my results are only 7.74 times faster, I tested both edit and list fields. The increase in execution speed is still significant.
hth,
Parke
The article, https://www.learnqtp.com/make-your-qtp-s...rm-better/ demonstrates several methods. Using DOM is faster than either OR or dp.
I went to the Mercury Tours web site, http://newtours.demoaut.com , logged in and went to the “Book A Flight” page. On that page, I ran an OR script and a DOM script that used getElementsByName.
The average of ten runs for the OR script was 2.63 sec.
The average of ten runs for the DOM script was 0.340 sec.
In the above article, the getElementsByName was 26.6 time faster than using OR. While my results are only 7.74 times faster, I tested both edit and list fields. The increase in execution speed is still significant.
hth,
Parke