alexpat
14 years agoOccasional Contributor
If statement?
I want test if my registration form is functioning properly.
There is some error checking on the form that checks if the email address is valid or if it's already been used.
If the user enters a wrong or existing value the form highlights the error as soon as the user clicks onto another field in the form and displays an error message.
How would I use Test Complete to check this and stop the script at this point with an error message?
I'm assuming that I'm going to have to use an if then statement to check for the error message but I'm unsure of the syntax needed to achieve this.
There is some error checking on the form that checks if the email address is valid or if it's already been used.
If the user enters a wrong or existing value the form highlights the error as soon as the user clicks onto another field in the form and displays an error message.
How would I use Test Complete to check this and stop the script at this point with an error message?
I'm assuming that I'm going to have to use an if then statement to check for the error message but I'm unsure of the syntax needed to achieve this.