Micro Focus QTP (UFT) Forums
qtp speed - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: qtp speed (/Thread-qtp-speed)



qtp speed - sia sharma - 08-21-2012

hi all

I have to check 200 categories for a particular cities
in which i have to check 2-3 thing.
i have a code ... when i run the code it takes a lot of time
there are no wait statement in the code
how can i make qtp run faster?
i have tries the fast option too


Thanks
sia


RE: qtp speed - Ankesh - 08-21-2012

Plz post ur code. There may be some portion which can be optimized.


RE: qtp speed - sshukla12 - 08-21-2012

Hi,
Under Tools->option->Run, rum mode select the fast or check if delay between steps is 0 milisec.

Regards,
Sankalp


RE: qtp speed - sia sharma - 08-21-2012

I have already tried this option.
may be i need to optimize my code


Code:
call function()
Browser("df").Page("df").WebElement("abc Services").Click
Browser("fd").Page("Jdf").Link("2dfs").Click
If Browser("df").Page("asd").WebElement("df").Exist and  Browser("df").Page("dfs").WebElement("df").Exist Then
    Reporter.ReportEvent micPass,"pass","pass"    
    else
    Reporter.ReportEvent micFail,"fail","fail"
End If
Browser("df").Page("2df").Link("Link").Click

the same code repeats for 170 times for diffrent categories