cancel
Showing results for 
Search instead for 
Did you mean: 

LoadComplete continue to run after error?

SOLVED
Occasional Contributor

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. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: LoadComplete continue to run after error?

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.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
3 REPLIES 3
Community Hero

Re: LoadComplete continue to run after error?

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.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Occasional Contributor

Re: LoadComplete continue to run after error?

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.

Highlighted
Community Hero

Re: LoadComplete continue to run after error?

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.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video: