Functional Test QuickStart Guide

This topic provides you with the basics of creating a basic Functional Test. To begin, log in to ServiceNow to display the main screen.

Create an Environment

  1. Select the Test Data > Environments item in the ServiceNow hierarchy, and click New in the Test Environments screen.

  2. In the Test Environment New record screen, enter a name for the environment in the Name field. and the URL for your ServiceNow instance in the URL field.

  3. Click and the enter URL for your ServiceNow instance in the URL field.

  4. Optionally, enter a description for the environment in the Description field.

  1. Click Submit to save the record.

Create a User

  1. Select the Test Data > Users item in the ServiceNow hierarchy, and click New in the Test Users screen.

  2. In the Test User New record screen, complete the Username, Name and Password fields to specify the details for the new user.

  3. Optionally, enter a description for the user in the Description field.

  1. Click Submit to save the record.

Create a Plan

  1. Select the Test Repository > Plans item in the ServiceNow hierarchy, and click New in the Test Plans screen.

  2. In the Test Plan New record screen, enter a name for the plan in the Name field, and optionally set a description for the plan in the Description field.

  3. Enter a value in the Capability field. The most common value will be ‘Functional’.

  4. Set the Version field to the version of the Application (if ServiceNow is used).

  5. Set the Default Test User field to test user specified in the Create a User section.

  6. Set the Default Test Environment field to the environment name specified in the Create an Environment section.

  1. Click Submit to save the record.

Create at Least One Configuration

  1. Open a plan if required by selecting its number in the Test Plans screen.

  2. Select Configurations in the tabbed display, and click New.

  3. In the Configuration New record screen, enter a name for the configuration in the Name field.

  4. Set the Browser field to one of the following values: chrome, firefox, internet_explorer.

  5. Click Submit to save the record.

For trial instances, avoid setting additional fields as this may cause the runner to miss the test.

Create a Suite

  1. Open a plan if required by selecting its number in the Test Plans screen.

  2. Select Suites in the tabbed display, and click New.

  3. In the Suite New record screen, enter a name for the suite in the Name field. Optionally, enter a description for the suite in the Description field.

  4. Set the Test User Field to the user created in the Create a User section.

  1. Click Submit to save the record.

Create a Case

  1. Select the Suites tab in the Test Plans screen, and open a suite by selecting it in the Number column.

  2. Select Cases in the tabbed display, and click New.

  3. In the Case New record screen, enter a name for the case in the Name field. Optionally, enter a description for the case in the Description field.

  4. In the Script tab, create the script according to the requirements of the case.

  1. Click Submit to save the record.

Execute the Test

  1. Open a plan if required by selecting its number in the Test Plans screen.

    1. Click Run Plan. The test will be queued for execution.