Creating or customizing a test script
A test script is a Java class that automates a single test scenario, which contains one or more test cases.
All of your test scripts are structured similarly. These actions are numbered in the following sample test script and defined below it.
Every test script is composed of similar actions:
- The libraries that are needed to run the test cases are imported.
- The data file for the test scenario being automated is defined and set.
- The Selenium server is started.
- The test cases are run.
- If one of the test cases signs in to the storefront, it is signed out of.
- The Selenium server is stopped.
Procedure
- In the development environment, go to the test bucket directory where you want to add a test script, to or customize an existing test script. This directory is in the src directory of your test bucket project.
- Do one of the following steps: