How to track the execution time?
Answers were Sorted based on User's Feedback
Answer / sonal.pagare
StartTime = Timer
EndTime = Timer
TimeDiff = EndTime - StartTime
DataTable("TimeTaken",dtLocalSheet) = TimeDiff
Services.StartTransaction "Title"
Services.EndTransaction "Title"
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / uday
You can view your test execution time in the Test Results
without writing any code.
In test results, you can see how much time it took to
execute the whole test(start time and end time).
You can also view how much time it took to execute each
action aswell.
If you want to programatically, see the time difference, use
the below code:
time1=time
'put all your code here
time2=time
msgbox(time2-time1)
Is This Answer Correct ? | 0 Yes | 0 No |
what is difference between Mandatrary proparties and Assistive proparties? Explain
User defined function in QTP
How is UFT 11.5 version different from UFT 12.0?
What is different command used in command Prompt while using QTP?
How to capture text from image to word
can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function
How to execute a WinRunner Script in QTP?
Hello Everybody, Can anyone tell me that in QTP how to count the number of webelements from the object repository. Please provide the code. Thanks in advance, Gaytri
how many maximum number of virtual users we can create?
difference Between LowLevel and Normal Recording Modes?
How can i initiate the objects to find uniquely in OR
a title of first page is "LKO- microsoft internet explorer", of the second page is "PPM- microsoft internet explorer" , of Third page is "TTS- microsoft internet explorer" and same changing title on the fourth page. How can we use regular expression for this feature what should we do on script part on and Object repository part so that we can get successful run result. Kindly explain the steps script.