Forum Discussion

lingling_chiang's avatar
lingling_chiang
Contributor
6 years ago
Solved

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.