Analyzing a Test Result

Here, we will execute a modified version of the GiganticStoreTest that includes ignored and failed tests. We'll navigate a TestNG HTML report after the execution of a test. The steps for completion are as follows:

  1. Open https://github.com/TrainingByPackt/Beginning-Selenium/blob/master/docs/lesson_8/lesson8/src/test/java/com/beginningselenium/examples/tests/GiganticStoreTest.java on IntelliJ IDEA.
  2. Execute the test by typing mvn clean test in the root directory.
  3. Open the resulting target/surefire-reports/index.html file in Chrome.
  4. Open the report. Note the failures highlighted by TestNG from the start page, as follows:

Note that five of the six methods passed, and only one failed.

  1. Click on the 3 groups option. The ...

Get Selenium Fundamentals now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.