Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Step time interval
#6
Solved: 10 Years, 10 Months ago
Ok, i got you. Even i have implemented scenarios like this. But this can be solved by creating your own situational based solutions. As far as i know, QTP directly will not help you on this occasion.

In one my projects, the situation was like there was an object which could be at different statuses at different times (one status at a time). The staus used to change after some event occurs to that object. So after making an event happen on that object, the testing need was to wait till the status changes (say from "AAA" to "BBB") or wait for max 5 minutes and if the status doesn't change within 5 mins, make that step fail and proceed next.

I followed the approach below:

----code for necessary event to change the status
Code:
tCounter = 0 \\ Set a time counter to 0
getStatus = Brower("").Page("").WebTable("").GetCellData(row,col) //status was displayed in a particular cell of a webtable
While (getStatus <> "BBB" And tCounter < 5)
     Wait(60)
     tCounter = tCounter + 1
     getStatus = Brower("").Page("").WebTable("").GetCellData(row,col)
Wend
If getStatus <> "BBB" Then
   Reporter.ReportEvent micFail,"step","desc"
End If

Hope you will get an idea now to design your own approach!
Reply


Messages In This Thread
Step time interval - by BullzEyezz - 02-21-2011, 04:50 PM
RE: Step time interval - by PrabhatN - 02-21-2011, 07:41 PM
RE: Step time interval - by BullzEyezz - 02-21-2011, 08:04 PM
RE: Step time interval - by nareshgupta12 - 02-22-2011, 12:49 PM
RE: Step time interval - by gbkrg9 - 02-22-2011, 07:39 PM
RE: Step time interval - by PrabhatN - 02-22-2011, 08:03 PM
RE: Step time interval - by tester_rahul - 02-23-2011, 04:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP does not record the first step of open filight reservation application. Blossoms 9 17,383 07-20-2015, 05:50 PM
Last Post: AJAJ
  step by step report shipu 0 2,066 08-06-2014, 02:21 AM
Last Post: shipu
  which is the final step of automation in QTP? Ramadas 6 3,529 10-29-2013, 04:31 PM
Last Post: Sathiya
  QTP is not recording the first step of opening Flight reservation app srinanduri 2 2,986 08-06-2013, 09:59 PM
Last Post: srinanduri
  How to continue test after it fails a step sqadri 4 4,369 01-20-2012, 10:02 PM
Last Post: sqadri

Forum Jump:


Users browsing this thread: 1 Guest(s)