In an agile development environment, large numbers of test cases are automated and it is very time consuming to run hundreds of scripts every time a new application build is deployed. Some of the main goals of automation are to reduce the turnaround time of test results and to make the test results transparent to all stakeholders. Meanwhile, the automation scripts should also have a managed logging system in order to ensure quick script debugging. With the power of Selenium Grid, TestNG and JUnit working hand-in-hand with continuous integration tool like Bamboo, we can push parallel test runs one step further.

This presentation will feature the end to end test run in deployed website/application by setting up selenium grid, executing Selenium script in parallel with TestNG for JAVA and NUNIT3 for .NET and building them in CI (Bamboo) server and generating proper log messages for each test case. This will help to optimize test build performance through parallelism, transparency and easy of debugging. Tests are triggered automatically as soon as a developer commits the code or can be scheduled to run overnight. Furthermore, test logs per test case are made available in Bamboo console.

 

 

 

 
12 favorite thumb_down thumb_up 0 comments visibility_off  Remove from Watchlist visibility  Add to Watchlist
 

Outline/structure of the Session

Overview:

- Executing Selenium script in parallel with TestNG (JAVA)

  • Write business logic of the test with testNg annotation.
  • Configure the parameter required by the test in an xml file, contains tag which contains one or more tests.
  • Run multiple tests within a fixture in parallel.

- Executing Selenium script in parallel with NUNIT3(.NET)

  • Define NUNIT3 ‘ParallelizableAttribute’ that indicates whether the test should be run in parallel with other tests.
  • Specify NUNIT3 ‘LevelOfParallelismAttribute’ to specify number of worker threads as well as tests fixtures that should run in parallel.
  • Run multiple test fixtures in parallel.

 

- Distributed Testing with Selenium Grid

 - Grid Setup

  • Getting required information about test machines
  • Starting a selenium Grid Hub
  • Connecting nodes to the Hub       

- CI (Bamboo) Environment (talk about the configuration of our CI Environment. )

  • installing helpful Bamboo plugins (testNG, NUnit3)
  • Trigger your tests on commits
  • - Running tests

Learning Outcome

In this session you will learn how to run the end to end tests on the deployed website by executing selenium scripts with TestNg(JAVA) and NUnit3(.NET) by setting up selenium Grid server for parallel execution with the CI server(Bamboo).

Target Audience

QA, Test Engineers, Automation Developers

schedule Submitted 1 year ago

Comments Subscribe to Comments

comment Comment on this Proposal