Wednesday, September 4, 2013

Basic Selenium Webdriver Test w/Maven & Java & TestNG


  1. Follow steps in the Getting started with a Selenium Maven project using Netbeans post. For this example you will need the testNG dependency.
  2. Expand "Test Packages" folder.
  3. Right click on the package. Expand "New". Select "Java Class"
  4. Create a Test case by writing a method using TestNG annotation.
  5. Write selenese code. This example is take from Official Selenium Site.
  6. Right click on java class containing test and click test file or use Ctrl + F6 if on the open file.
  7. The webdriver browser will open and run the test. See post on Analyze TestNG test results.

No comments:

Post a Comment