How can we capture the results of test cases if we use Selenium Webdriver?


What are the possible ways to report or capture the result?

Or should we keep on staring at the screen when the automation script runs?

Thanks in advance!

You can get the test report using testng.

First install testng by following this link

After installation of testng, write some test cases in a class using @Test annotation. Then click on run and run as a testng test. Then refresh your project and in test-output folder, you will find the testng report. If you google, you will find a lots of links about this.

You can go through this link