Difference Between Assertion and Verification in Selenium

In this Difference Between Assertion and Verification in Selenium post you will learn exact difference and when to use assert and verify command in selenium scripts,Selenium Verify command will not stop Test execution of Test cases if verification Test fails.

It will log an error/defect and continue with Test Cases execution of remaining  test cases. We use Selenium verify commands in Selenium IDE when you still want to proceed with Test execution of test case even if expected output is not matched for a test steps.  

Difference Between Assertion and Verification in Selenium


Selenium Assertion command will stop Test execution of Test cases if verification point fails. It will log an error/defect and will not continue with Test Cases execution of remaining Test case scripts. We can use assertions in Test scenarios where there is no point to continue further Test Execution if expected result is not matching with actual test results. 

It is very simple. You can Use assertions when you want to stop Test case execution , if expected Test results is not matched with actual test results and you can use verification points when you still want to continue test script execution of a test cases if expected test results is not matched with actual test results.

Trending Posts:

Handle Authentication using Selenium

No comments:

Post a Comment