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.
Fill in the name and description of the workflow. For example, Workflow-14Oct-01.
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.
Return to the Designer tab and add a new Agent node, then select a Test Suite agent.
This agent requires three parameters: Messages, read_all_sources, and Service Agent.
- Messages, the instruction sent to the agent. For example,
Generate test case, using Test Suite name "Test Workflow TC-14Oct". - read_all_sources, insert the
read_sourcevariable from the Start node. - 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.
This agent requires two parameters: Messages and Service Agent.
- Messages, insert the previous agent's reply followed by any additional instruction. For example
Please merge this. - 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.
This agent requires three parameters: Messages, read_all_sources, and Service Agent.
- Messages, insert the previous agent's reply followed by any additional instruction. For example,
Please generate RTM. - read_all_sources, insert the
read_sourcevariable 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.
This node requires three parameters: Content, Format, and Title.
- Content, the content of the file exported to Recent Output. Insert the previous agent's reply.
- Format, the format of the exported file. Set this to
.xlsx. - 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.
Click Publish so the workflow becomes available in the Studio tab. A workflow must be published before it appears in Studio.
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.
At the chat window, ask AGIS to run the workflow using the prompt: Generate Test Suite from the Workflow.
Once the process is completed, the newly generated test case(s) will be available in Recent Output.
