Forum Discussion

lingling_chiang's avatar
lingling_chiang
Contributor
6 years ago

LoadComplete continue to run after error?

see attached the capture from the detail report, after timeout error or socket connection error, loadcomplete continue to runs? I will expect it stops at the error. 

  • AlexKaras's avatar
    AlexKaras
    6 years ago

    Hi,

     

    > if it is unable to logon due to timeout error?

    Load test (as a general rule) does not assume any business logic. Its primary purpose is to send requests to the server and verify that server responses are as expected.

    If you like to stop scenario execution on some condition (e.g. if response on logon request is not 200), you may create a Data Selector for this given response and store response code into some variable. Then add IF operation after this given request, check the value of the variable and stop scenario execution with the help of Stop operation.

     

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    > loadcomplete continue to runs?

    Yes. This is a load test that well may be required to run for a day or more and there is no reason to stop the run if some request fails (e.g. some image was not downloaded).

    If you need it, you may control when to stop the test via the Stop On Error or Error Limit setting for the test or using the Stop operation for scenario.

    See https://support.smartbear.com/loadcomplete/docs/testing-with/running/stopping-on-errors.html for more details.

     

    • lingling_chiang's avatar
      lingling_chiang
      Contributor

      I don't mean it continue to run the next virtual user.

      I click on the detail, open a virtual user that has the error. See the attached. For example a timeout error on request for submit logon. The virtual user continue to send the http request and response for subsequent actions after the error as show in the log. How can it runs the next action if it is unable to logon due to timeout error? We don't understand.

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Hi,

         

        > if it is unable to logon due to timeout error?

        Load test (as a general rule) does not assume any business logic. Its primary purpose is to send requests to the server and verify that server responses are as expected.

        If you like to stop scenario execution on some condition (e.g. if response on logon request is not 200), you may create a Data Selector for this given response and store response code into some variable. Then add IF operation after this given request, check the value of the variable and stop scenario execution with the help of Stop operation.