Forum Discussion

avidCoder's avatar
avidCoder
Super Contributor
7 years ago

How should I put dynamic delay to the testScripts?

Delay should be based on response fetched time. Lets say the response took 3 sec, So, immediately after the response It should move to next Steps. I cannot put 5 second by default for each and every requests.

 

Please give me any overview on this.

 

Thanks,

Ashutosh.

4 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    What is the structure of your current test case?
    • avidCoder's avatar
      avidCoder
      Super Contributor

      Attached image is the structure of the test steps. I have total of 90 test cases in an excel sheet. Once the execution begins, continuously it hits the Search_Request (As mentioned in image) and fetch the result based on it. But some of my test cases gets failed because it doesn't wait for the response to fetch. So, Is there anyway I could set a dynamic delay instead of Delay testSteps after Search_Request?

      • nmrao's avatar
        nmrao
        Champion Level 3
        Couple of questions?

        1. Where do you need to add the delay step? Is it before Search?

        2. Can you elaborate on your statement - "Delay should be based on response fetched time. "?