Skip to main content

Generate Test Suite from Workflow

Users can generate a Test Suite using Workflow.

Creating the Workflow​

Navigate to the Workflow Builder and click on + New Workflow.

Navigate to Workflow Builder '+ New Workflow' button in Workflow Builder

Fill in the name and description of the workflow. For example, Workflow-14Oct-01.

'Name' and 'Description' fields in Workflow Builder

The Designer tab shows the nodes in the current workflow. Select the Start node, and in the Parameters tab, add a new boolean parameter called read_source, set to true.

Start node and required parameters

Return to the Designer tab and add a new Agent node, then select a Test Suite agent.

Agents in Nodes 'Test Suite' agents in Nodes

This agent requires three parameters: Messages, read_all_sources, and Service Agent.

Required parameters for 'Test Suite' agents
  1. Messages, the instruction sent to the agent. For example, Generate test case, using Test Suite name "Test Workflow TC-14Oct".
  2. read_all_sources, insert the read_source variable from the Start node.
  3. Service Agent, shows the currently selected agent and its settings.

Next, add another Agent node and select a TC format agent, which formats the output of the Test Suite agent.

Agents in Nodes 'TC Format' agents in Nodes

This agent requires two parameters: Messages and Service Agent.

Required parameters for 'TC Format' agents
  1. Messages, insert the previous agent's reply followed by any additional instruction. For example Please merge this.
  2. Service Agent, shows the currently selected agent and its settings.

Add a third Agent node and select an RTM matrix agent, which generates the Requirements Traceability Matrix (RTM) for the Test Suite.

Agents in Nodes 'RTM' agents in Nodes

This agent requires three parameters: Messages, read_all_sources, and Service Agent.

Required parameters for 'RTM agents
  1. Messages, insert the previous agent's reply followed by any additional instruction. For example, Please generate RTM.
  2. read_all_sources, insert the read_source variable from the Start node.

To make the results of the workflow available in Recent Output, add a new Utilities node, and select Save to Recent Output.

Utilities in Nodes 'Save to Recent Output' in Utilities

This node requires three parameters: Content, Format, and Title.

Required parameters for 'Save to Recent Output'
  1. Content, the content of the file exported to Recent Output. Insert the previous agent's reply.
  2. Format, the format of the exported file. Set this to .xlsx.
  3. title, the name of the exported file. For example, rtm-tc-01.

Lastly, add a new Control node and select End to terminate the workflow.

Controls in Nodes 'End' in Control

Click Publish so the workflow becomes available in the Studio tab. A workflow must be published before it appears in Studio.

'Publish' button in Workflow Builder

Generating the Test Suite​

In Studio, select the workflow that was just created. Navigate to Source and select the document to be generating a Test Suite from.

Selecting workflow for Test Suite generation Selecting file for Test Suite generation

At the chat window, ask AGIS to run the workflow using the prompt: Generate Test Suite from the Workflow.

Prompt used for generating Test Suite from Workflow

Once the process is completed, the newly generated test case(s) will be available in Recent Output.

Exported test case generated from Workflow in Recent Output