Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Some evaluations will cause a Selenium script to halt, and some will not. There are two basic kinds of evaluations in Selenium - assert statements and verify statements. An assert statement will cause a test script to halt and report an error if it fails. A verify statement will report an error message upon failure, but will not halt the test script.

Verify statements are used for two primary reasons in OLE Selenium testing. The first is to test a non-essential condition that may give a reviewer more information about why a test script failed. The second is when a Selenium script is being used to test a large number of values. For example, if a test script is testing an operation performed on a number of requisitions in the Order Holding Queue (OHQ - ***INFORMATIONAL LINK), the script may need to verify that all information about each requisition is displayed correctly in the queue before continuing. In this case, verify statements would be used so that if a single piece of information is missing, the test script can report exactly what information is and is not present.

...