Forum Discussion

Hardy's avatar
Hardy
Occasional Contributor
8 years ago

how to continue tested if one operation take long time?

During testing, if one operation take long response time to execute(over 2 hours), the next operation will failure, so how to continue to next operation successfully even if last operation take long response time.

4 Replies

  • baxatob's avatar
    baxatob
    Community Hero

    Nothing is clear:

    - why the first operation takes a long time? Is it normal for your application or it's a bug?

    - what kind of failure happens in the case above? 

    Please describe your test in details.

    • Hardy's avatar
      Hardy
      Occasional Contributor

      Sorry for the unclear description.

      The first operation is: click on Execute button, it will perform batch jobs and takes a long time to completed, and it will popup the successfully window after batch jobs completed.

      The next operation is: click on Yes button in the successfully window.

       

      The first operation takes a long time is normally behavior.

      The next operation failure with Auto-wait timeout(10s) error. 

      • baxatob's avatar
        baxatob
        Community Hero

        You can create a simple wait operation based on the While loop:

         

        yourApp.buttonExecute.Click()

        While
        yourApp.buttonYES.Exists != True: aqUtils.Delay(1000)

        yourApp.buttonYES.Click()