Introduced in Feature Pack 1

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:
  1. The libraries that are needed to run the test cases are imported.
  2. The data file for the test scenario being automated is defined and set.
  3. The Selenium server is started.
  4. The test cases are run.
  5. If one of the test cases signs in to the storefront, it is signed out of.
  6. The Selenium server is stopped.

Procedure

  1. 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.
  2. Do one of the following steps:
    1. To customize a test script:

      Double-click the test script to open it and type the changes into the appropriate test case.

    2. To create a test script:
      1. Right-click the test bucket directory and select New > File.
      2. Type the name of the test script into the File name field and add the .java file extension.
      3. Click Finish.

What to do next