Example of datagroupConfig and environmentConfig cli options
This article builds upon the explanation provided in the SOAtest Documentation under the following section:
https://docs.parasoft.com/display/SOA9103/CLI+Options
XML Files for datagroupConfig and environmentConfig
The files are specified in the following format:
Make note of the forward slashes to separate directories
datagroupConfig XML File Format<tests>
<test> <!--1 or more-->
<workspacePath>/${Project_folder_Name}/${TST_Name}.tst</workspacePath>
<dataGroups>
<dataGroup> <!--1 or more-->
<dataGroupName>${Data_Group_Name}</dataGroupName>
<activeDataSourceName>${Data_Source_Name}</activeDataSourceName>
</dataGroup>
</dataGroups>
</test>
</tests>
environmentConfig XML File Format<tests>
<test> <!--1 or more-->
<workspacePath>/${Project_folder_Name}/${TST_Name}.tst</workspacePath>
<Environment>
<Variable> <!--1 or more-->
<Name>${Variable_Name}</Name>
<Value>${Environment_Variable_value}</Value>
</Variable>
<Variable> <!--1 or more-->
<Name>${Variable_Name}</Name>
<Value>${Environment_Variable_value}</Value>
</Variable>
..........
</Environment>
</test>
</tests>
Example:<tests>
<test> <!--1 or more-->
<workspacePath>/TestAssets/Parabank_Validation.tst</workspacePath>
<Environment>
<Variable> <!--1 or more-->
<Name>Endpoint</Name>
<Value>http://parabank.parasoft.com/parabank/services/store-01V2</Value>
</Variable>
</Environment>
</test>
</tests>
Things to keep in mind file creating your file:
1.) In the data group XML file you create, for the element, that path is relative to the workspace you are using. So, for example, your path should look like "/myProject/myTest.tst".
2.) The values used in the XML file are case sensitive. For example, if your data sources in SOAtest were called id1 and id2 but, in the XML file you reference ID2, this will not work. The XML file needs to be referenced exactly like the GUI.9
3) Additional details can be found at the following link:
https://docs.parasoft.com/display/SOA9103/CLI+Options