Selenium Testing Tutorials

Testing with Selenium, Java, TestNG

On this page you will find, in order, the steps to take and things to learn in order to have an efficient, fully functional set of tests with Selenium, Java, TestNG, Maven. These tests are meant for testing webpages.
What is not covered in the steps below: how to install and setup Java, Maven, the IDE.
The prerequisites for creating the test project are:

  • Be connected to a Maven repository, to be able to use external libraries, including Selenium and TestNG (http://search.maven.org/)
  • Have a VCS (versioning control system) location to put your code into, so that everyone working on the project can commit code to a single repository. Perforce, Git or SVN will do the trick.

1.Create and configure the test project.

1.1. Create a new Maven project
1.2 Import the testing dependencies
1.3. Create the Maven profile for running tests.

2. Selenium
2.1. Setting up the Selenium bits.
2.2. HTML and Selenium. An introduction
2.3. XPATH selectors
2.4. CSS selectors
2.5. Creating the page objects.

3. TestNG
3.1. TestNG annotations
3.2. TestNG @Test attributes

4. Fine-tuning
4.1. Run tests on multiple browsers
4.2. Waiting for UI events
4.3. Common Selenium exceptions
4.4. Running TestNG Tests

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: