Skip to main content

Test Cases

Test Cases Tab

The Test Cases tab consists of a table of information about the test cases that are part of the project. From this page you can also create a new test case.

Merging Test Cases

To merge multiple test cases into a new test case:

  1. On the Test Cases page, click the three dots to the far right of the ADD TEST CASE button, and then click Merge Test Case.
Merging test cases - ADD TEST CASE button
  1. In the Merge Cases window, on the Merge tab, enter a name for the new test case, and select or deselect the cases to merge. Click Next.
Merge Cases window - Merge tab
  1. On the Arrange tab, drag the cases to arrange them in your preferred order, or click the X to remove them. Click Save.
Merge Cases window - Arrange tab

Test Cases Table Columns

ColumnDescription
CaseThe name given to the test case. Click the test case name to open the step editor.

Click the up or down arrow next to the column name to sort the table by case name.
UploadedThe date the test case was uploaded.

Click the up or down arrow next to the column name to sort the table by the dates the cases were uploaded.
Generation StatusThe current status of the test case. Possible statuses:
  • Success
  • Failed
  • Failed at step X
  • Ready to generate
  • Stopped at step X
Click the up or down arrow next to the column name to sort the table by generation status.
Generated Last RunThe date the last run was generated. Click the up or down arrow next to the column name to sort the table by the dates the cases were last run.
GenerateHover under the column name next to the test case you want to generate a test for. Click the Generate button. See Generating a Test for more information.
ExecuteHover under the column name next to the test case you want to execute a test for. Click the Execute button. See Executing a Test for more information.
CloneHover under the column name next to the test case you want to clone and click the Clone button.
DeleteHover under the column name next to the test case you want to delete and click the Delete button. In the Delete Test Case window, click Delete or Cancel.
MoreUpdate CaseUpdate the name and description for the test case.
Copy URLCopy the URL of the test case.
Disable CaseDisable the test case.
Preview and DownloadTest CaseDisplays the steps in the test and gives you the option to download the information as a .csv or a .xlsx file.
DataDisplays a preview of the test data and gives you the option to download it as an .xlsx file.
ScriptDisplays the script for the test and gives you the option to copy the script to clipboard or download the .java file.
Generation reportDownload the test’s .html report file.

Adding a Test Case

There are three ways to add a test case. You can record the case using the recorder, upload the case as an .xls, .xlsx, or .csv file, or manually enter the case and its steps.

Using the Recorder

To record a test case you first have to download and install the recorder extension in Google Chrome.

Installing the Recorder

If you click the Record icon and do not have the recorder extension installed, you will be prompted to do so. To install the recorder without the prompt:

  1. Go to the AutonomIQ AI Enterprise Recorder extension page.
  2. Click Add to Chrome.
  3. In the Add “AutonomIQ AI Enterprise Recorder”? window, click Add extension.
  4. The recorder will now be available in your extensions. To launch the recorder, in Google Chrome, click the Extensions icon and then click AutonomIQ AI Enterprise Recorder.

Recording a Test Case

When you launch the recorder, it records the actions you perform and translates them into test steps that can be managed in the step editor (see Using the Step Editor for more information). The recording happens in the background and is displayed in the AI Test Studio window. The recorder will start recording as soon as it is launched.

AI Test Studio window

AI Test Studio Window

ComponentDescription
Main Recorder
Exit buttonCloses the recorder.
More optionsShow recorder always on topWhen set to On, the recorder will remain positioned on top of all other windows.
Record HoverWhen enabled, actions in which you hover your mouse pointer over an item will be recorded as steps. Click to enable/disable.
Record Double ClickWhen enabled, double-clicking items will be recorded as steps. Click to enable/disable.
Add Test Case buttonOpens the New Test Case window. Enter a name for the new test case and then click Save.
Edit Test Case Name buttonOpens the Update Test Case Name window. Enter a new name for the test case and then click Update.
Save Test Case buttonSaves the test case. Saved test cases can be viewed on the Plan -> Test Cases page.
Delete Test Case buttonDeletes the test case.
Pause buttonPauses the recording of actions. The test case will remain in the recorder until you click Exit.
StepsActionThe action that was performed in the step.
LocationThe URL of the action.
Add stepClick to manually add a step to the test case.
Delete stepClick to delete a step from the test case.
Test Case List
Add Test Case buttonOpens the New Test Case window. Enter a name for the new test case and then click Save.
Search barEnter text to search for in the list of test cases.
Test Cases checkboxSelect the checkbox next to Test Cases to select or deselect all test cases in the list.
Mass delete buttonWhen multiple test case checkboxes are selected, click the delete button next to Test Cases to delete them.
Edit buttonClick to edit the name of the test case.
Delete buttonClick to delete the test case from the list.

Uploading a Test Case

To upload a test case:

  1. On the Test Cases tab, click ADD TEST CASE and then click the Upload button.
Navigating to the Upload Test Case window
  1. In the Upload Test Case window:

    • On the Test Case tab, drag and drop or navigate to the .xls, .xlsx, or .csv file to upload. Click Next.
    Upload Test Case - Test Case tab
    • (Optional) On the Test Data tab, drag and drop or navigate to the .xls, .xlsx, or .csv file to upload. Click Next.
    Upload Test Case - Test Data tab
    • (Optional) On the Artifacts tab, drag and drop or navigate to the file(s) to upload. Click Next.
    Upload Test Case - Artifacts tab
    • (Optional) On the Audio tab, drag and drop or navigate to the .wav file to upload. Click Next.
    Upload Test Case - Audio tab
  2. Click Submit.

Manually Creating a Test Case

To manually add a test case:

On the Test Cases tab, click ADD TEST CASE and then click the Write button. See Using the Step Editor for information about the next steps.

Navigating to the step editor

Using the Step Editor

The step editor utilizes Natural Language Processing (NLP) and allows you to manually enter test steps, as opposed to using the recorder. This method gives you more focused control over the actions to test, but it can also result in more errors and frustration for a less-experienced user. If you are new to AutonomIQ, or to testing in general, you can start with the recorder (see Recording a Test Case for more information).

Creating a Step

The following are the basic instructions to add a step to a test case, but the step editor is a very robust tool that can perform much more complex functions. For more detailed information about using the step editor and NLP commands, see NLP Reference.

To create a new step in the step editor:

  1. On the Test Cases tab, click the test case you want to create a step for. To create a new test case, see Adding a Test Case.
  2. To add a new step, click the blue plus sign.
New step in the step editor - blue plus sign
  1. In the Action field, enter a command and any additional details. As you type, suggestions will be displayed; you can select one or continue entering the text manually.
Step editor - Suggested actions
  1. In the Data field, you can enter any data that is required for the action.
Step editor - Data field
  1. You can add and edit step details in the list of steps, or you can click the expand button to open the editor in a separate window.
Step editor - Separate window
  1. To edit the step as code, click the Code button.
Step editor - Code editor
  1. To save the step, click the green checkmark.

Copying Excel Data

To paste copied data from an Excel spreadsheet into the step editor, on the Step Editor page, click the clipboard icon or use the CTRL+V or command+V keyboard shortcuts. The pasted steps will be added to the end of the list of steps.

Step editor - Copy Excel data

Step Editor Page Components

ComponentDescription
Test case name and descriptionClick the pencil icon to open the Update Case Name and Description window.
Time elapsedThe time the steps take to complete.
Selected StepsThe number of steps in the test case that are selected.
Total StepsThe number of steps in the test case.
Save buttonSaves the test steps.
Generate buttonClick to generate the test. For more information about generating tests, see Generating a Test.
Execute buttonClick to open the Execute Test window and begin the test execution process. For more information about test execution, see Executing a Test.
Mass checkboxClick to select or deselect all steps in the list.
Paste steps from clipboard buttonAdds the steps copied to the clipboard to the test case.
Copy selected steps to clipboard buttonCopies the selected steps to the clipboard, which can then be pasted using the Paste steps from clipboard button.
New Flow buttonOpens the New Flow window. For more information about flows, see Flows.
Delete buttonDeletes the selected steps from the test case.
Action columnThe action performed in the step.
Data columnThe data related to the action.
Expected Result columnThe expected result of the action.
Stop buttonStops the test being generated.
Undo buttonUndoes the most recent action.
Redo buttonRedoes the most recently undone action.
Download Test Steps buttonClick to download the test steps as a .csv or .xlsx file.
More Options
Line view optionsSwitch between two views of the step editor: Current and Original Steps
Image view optionsScreen displays a thumbnail of the step in test. Line View displays the steps as text only.
Auto ScrollToggle the auto scroll feature on or off.
Cache Steps On | OffToggle the step caching feature on or off.
Creation Mode On | OffToggle creation mode on or off.
Remove All Debug StepsClick to remove the debug steps in the test case.
Download LogsClick to download the log file as a .zip.

Generating a Test

To generate a test:

On the Test Cases tab, hover in the GENERATE column and then click the Generate button.

Navigating to the test generation window

Executing a Test

To execute a test:

On the Test Cases tab, hover in the EXECUTE column and then click the Execute button.

Navigating to the test execution window

Test Cases Page

On the Test Cases page you can view, update, move, or disable a test case.

Test Cases Page Components

ComponentDescription
CaseThe name given to the test case.

Click the up or down arrow next to the column name to sort the table by case name.
ProjectThe project the test case is associated with.

Click the up or down arrow next to the column name to sort the table by project name.
CreatedThe date the test case was created.

Click the up or down arrow next to the column name to sort the table by created date.
Last GeneratedThe date the test case was last generated.

Click the up or down arrow next to the column name to sort the table by the last generated date.
Last StatusThe most recent status of the test case.

Click the up or down arrow next to the column name to sort the table by last status.
ActionsUpdate Test CaseUpdate the test case details. See Adding a Test Case for more information.
Move Test CaseMove the test case to a different project. See Project Details for more information.
Disable Test CaseDisable the test case.

You can also disable a test case by selecting its check box and then clicking the Disable Test Case button.
Go To Step EditorOpens the step editor for the test case. See Using the Step Editor for more information.