Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to reduce the execution time of script involving innertext in webelement
#1
Not Solved
Hi,

I am using QTP 11 trial version, IE8 and Windows 7 in QTP automation.

In the application there are validations which involves comparing Innertext of webelements. The initialization script is Action and rest of the files (Function libraries and test case) are in .VBS format. While executing the test script, for each test step that is executed the control goes to the Global function .vbs file and the innertext of the webelement is obtained using "getroproperty".
Code:
Set oObject = Browser("").Page("").Webelement("")
tet = oObject.getroproperty("innertext")
.....I notice that at this particular step, its taking a real long time to get the innertext.

In the OR, I capture html id, html tag, innertext for webelements and the innertext has values (89.09, 87.00). So inorder to make the object applicable to all values. I made innertext as .*(regular exp).
Smart identification is "ON".

I referred some articles on the net and tried with Smart identification as "OFF" to improve the execution speed. But with this, values with .* were not recognized by QTP. Also, I declared variables and checked the speed but nothing increased the speed.

What can be done to make the increase the speed of execution for statements involving innertext.
Reply


Messages In This Thread
How to reduce the execution time of script involving innertext in webelement - by priyaang - 03-30-2014, 02:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issues while uft script execution AAB 4 4,838 10-05-2015, 07:23 PM
Last Post: supputuri
  QTP Real Time examples and vb script programs QTpier 0 4,222 07-08-2014, 04:11 PM
Last Post: QTpier
  QTP Script execution on Remote Machine rgaribe 4 11,673 08-25-2013, 02:12 PM
Last Post: GregHicks
Rolleyes How can we run QTP on virtual machine at scheduled time through VB script. ritugoyal 13 22,652 11-23-2012, 11:03 AM
Last Post: vinod123
  Batch script execution in Remote Tijo T Thomas 0 2,565 11-01-2012, 10:44 PM
Last Post: Tijo T Thomas

Forum Jump:


Users browsing this thread: 1 Guest(s)