- Follow steps in the Getting started with a Selenium Maven project using Netbeans post. For this example you will need the testNG dependency.
- Expand "Test Packages" folder.
- Right click on the package. Expand "New". Select "Java Class"
- Create a Test case by writing a method using TestNG annotation.
- Write selenese code. This example is take from Official Selenium Site.
- Right click on java class containing test and click test file or use Ctrl + F6 if on the open file.
- The webdriver browser will open and run the test. See post on Analyze TestNG test results.
Wednesday, September 4, 2013
Basic Selenium Webdriver Test w/Maven & Java & TestNG
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment