Tricentis Test Automation for ServiceNow mini User Guide

Tricentis Test Automation for ServiceNow mini is a standalone desktop application that is installed locally for the purpose of executing a single test case. It speeds up the test writing process with the ability to test live while providing results and screenshots.

Installation

For instructions on how to install Tricentis Test Automation for ServiceNow mini, see the Installation Guide.

Starting Tricentis Test Automation for ServiceNow mini

To start Tricentis Test Automation for ServiceNow mini, click its icon on your Windows desktop. The application starts, and the Settings screen is displayed.

Initial Settings

  1. The Settings screen allows you to set the configuration parameters for Tricentis Test Automation for ServiceNow mini.

  2. In the CapIO Mini Settings screen, set the Choose a browser to test in field to the browser in which you wish to run tests.

  3. In the Service Now Settings screen, complete the following fields to link the application to ServiceNow.

  • Set the Instance field to the hostname of your ServiceNow instance.

  • Select your ServiceNow version from the Service Now Version field.

  • Set the Username and Password fields to your ServiceNow username and password.

  1. Click X to close the settings screen. Tricentis Test Automation for ServiceNow opens the specified browser and logs in to the specified ServiceNow instance using the supplied username and password.

Browser Configuration

If necessary out the following steps to allow your browser to display the Tricentis Test Automation for ServiceNow mini welcome message.

Google Chrome

  1. Click Advanced.

  2. Click the Proceed to localhost (unsafe) link.

  3. The message Congratulations! Tricentis Test Automation for ServiceNow mini Server is Active will be displayed.

Mozilla Firefox

  1. Click Advanced.

  2. Click Add Exception...

  3. In the popup window, click Confirm Security Exception.

  4. The message Congratulations! Tricentis Test Automation for ServiceNow mini Server is Active will be displayed.

Microsoft Internet Explorer

  1. Click View Certificate.

  2. Click Install Certificate.

  3. A Wizard will run. It is save to accept all the default settings.

  4. Click OK in the import was successful message box.

  5. Click OK to close the window.

  6. Click Yes on the Security Alert.

User Interface

The Tricentis Test Automation for ServiceNow mini main screen looks like this:

Main Screen

The main screen has two panes, which form Tricentis Test Automation for ServiceNow mini’s Code Editor. The Code pane in the upper part of the screen allows you to enter test scripts to be run.

The following tabs are available in the header:

  • The CODE tab allows scripting commands to be entered and evaluated.

  • The DATA tab is also part of the Code Editor. It allows you to define static data to be used in tests; both data and variables may be defined in this tab.

  • The CUSTOM tab allows you to define custom commands for your tests.

If more than one tab is used, the scripts are executed in the sequence DATA, CUSTOM, CODE.

Click to run the test. The Results pane in the lower part of the screen shows its results.

Toolbar

The toolbar is displayed on the left-hand side of the main screen, and includes the following icons:

Editor

Displays the Code Editor in the main screen.

History

Displays a history of the results sent to the Results pane. Test results are listed from newest to oldest. If applicable, click the screenshot icon to display the test result’s screenshot. Click (Copy) to copy a test result to the Clipboard.

Selenium

Displays the Selenium Server output.

Run

Runs the commands in the Code pane and writes their results to the Results pane. A complete history of your test commands will be displayed along with their output, result and screenshot. If applicable, click the screenshot icon to in the Results pane to display the test result’s screenshot.

Save

Saves the code in the CODE, DATA and CUSTOM tabs. Code is saved in a single file with a .capio extension.

Import

Imports the contents of the selected .capio file into the Code Editor, replacing the Code pane’s existing contents.

Clear Browser Sessions

Clears any browser sessions maintained by Tricentis Test Automation for ServiceNow mini. This resolves a problem where browser sessions have closed and will not relaunch.

Delete History

Clears the testing history stored in the History window.

Settings

Displays the Settings screen.

Info

Displays the About dialog.

Code Pane Features

The Code pane has a context menu with the following options:

Format Code

This option formats the scripting code according to the requirements of Tricentis Test Automation for ServiceNow mini. It enforces a consistent style by parsing the code and reformatting it using rules that take the maximum line length into account, wrapping code when necessary.

Snippet Builder

This option displays the selected code in the Snippet Builder dialog, which allows you to save it as a snippet. The snippet may be inserted into the Code pane by selecting its name from the context menu.

  • To save the code as a snippet, enter a snippet name in the Name field, and click .

  • To view an existing snippet, select its name from the drop-down list.

  • To delete the selected snippet, click . A confirmation dialog is displayed.

  • Click to close the Snippet Builder.

<Saved Snippets>

The context menu also lists the names of the snippets that have been saved in the Snippet builder. Select a name to insert the snippet into the Code pane at the current cursor location. Two snippets are provided by default.

  • ServiceNow Login: Contains a login command for ServiceNow.

  • Workday Login: Displays a login command for Workday.

Clicking x in the Code pane clears its contents.

Keyboard Shortcuts

The following shortcuts are available for Tricentis Test Automation for ServiceNow mini running under Windows.

  • Ctrl+S: Saves the current code.

  • Ctrl+O: Opens the Import window.

  • Ctrl+/: Comments or uncomments the selected code, Commented code lines begin with //.

  • Ctrl+A: Selects all the text in the Code pane.

  • Ctrl+X: Cuts the selected text in the code pane to the Clipboard.

  • Ctrl+C: Copies the selection to the Clipboard.

  • Ctrl+Z: Undo.

  • Ctrl+Y: Redo.

Troubleshooting Tricentis Test Automation for ServiceNow mini

We are continuously working on ways to improve the Tricentis Test Automation for ServiceNow mini experience. However, if you are having issues with reloading a Tricentis Test Automation for ServiceNow mini browser, please try any of the following:

  • Click to clear your current browser sessions.

  • Check that the Code pain contains valid code, and click to run the test.

  • Open and then close the Settings window . A browser window should be displayed.

  • Restart Tricentis Test Automation for ServiceNow mini and reload your tests.

If you are still having problems, please contact Technical Support.