Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Basic Selenium Testing

Options
  • 15-12-2013 8:05pm
    #1
    Registered Users Posts: 310 ✭✭


    Hi Guys im doing some selenium testing on a website for the first time heres probably a very stupid question but here goes. can anyone explain to me what asserts are actually for and verifies in reference to web testing ? thank you:rolleyes:


Comments

  • Registered Users Posts: 6,178 ✭✭✭Talisman


    Assert and Verify fulfill the same role, the difference in their functionality is what happens when a check fails.

    If you use an assert command and the check fails then the test case terminates, so no subsequent checks are run. If you use a verify command and the check fails then the test case doesn't terminate and subsequent checks can be run.

    You can find further information in the Selenium documentation: Assertion or Verification?


Advertisement