How to stop script
- This topic has 1 reply, 2 voices, and was last updated 7 years, 1 month ago by Sasha ZAP.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Ask Expert › How to stop script
Hi ZAPTEST Team,
I am facing one problem. Please suggest me how can i handle this scenario.
Scenario:
When net is available then welcome page is opened when net is off the error message is shown and script give me error and script should be stopped. currently script is moved to other line and net is off.
Please see the attached file
Regards,
AQU
Hello aqu,
Basically you can set a condition such as:
If Application(“Application”).View(“View”).Object(“Welcome”).Exist Then
Application(“Application”).CustomReport True, “Welcome page Success”, “Welcome page appeared Successfully.”, True
Else
Application(“Application”).CustomReport False, “Welcome page Error”, “Net is off and the welcome page did not appear.”, True
ZAP.StopTest
End If
The “Object(“Welcome”)” you can change to any expected object which appears only in the Welcome page.
Thanks,
ZAPTEST Team
Already have an account? Login
Check you SPAM folder if you do not see the email.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |