How do I detect a test has failed in Selenium html test? -


We have a bank of such tests, which all start by entering.

Although sometimes something goes wrong and tests fail. When this happens, the logout is not available at the end of the exam, then the next exam tries to re-enter - Open. Use / Login

If you have logged out then works fine even if you have not logged out because the test is unsuccessful, then the command puts you in a different path and then In that suit, the remaining examinations fail

If the test fails, how do I tell Selenium to log out?

Or how will I tell Selenium whether the logout link is available logout and ongoing?

In my eyes, I like the following steps

All test cases Build Lib with Create a suite that will call the required function from the libraries. Use the following flows in the suite

Call Log

If the login function returns zero calls to execute the required function.

Returns the zero call logout if the function is called.

:::::::::::::::::::::::::::::::::::::::::::::: ::::: ::::

If one of the functions contains zero or zero in some variables or array with a function name and error.
If you want more information, please let me know if the function returns error then tags with zero zero call call error

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -