Example of Defining Multiple TestSteps
Refer to the following example for TestCase configuration:
<ns:TestCase>
<ns:Name>TC02</ns:Name>
<ns:ExternalProperties>
<ns:Property>
<ns:Key>IgnoreKeywordFile</ns:Key>
<ns:Value>misc/ignore.txt</ns:Value>
</ns:Property>
</ns:ExternalProperties>
<ns:TestSteps>
<ns:TestStep>
<ns:Name>TC02-RecordAdd</ns:Name>
<ns:SOAPUILookup>
<ns:TestSuite>Master Suite</ns:TestSuite>
<ns:TestCase>CommonActions</ns:TestCase>
<ns:TestStep>RecordActions</ns:TestStep>
</ns:SOAPUILookup>
<ns:TestStepProperties>
<ns:RequestXML>
<ns:File>request/TC02/TC02-RecordAdd.xml</ns:File>
</ns:RequestXML>
</ns:TestStepProperties>
</ns:TestStep>
<ns:TestStep>
<ns:Name>TC02-RecordAdd-ValidateResponse</ns:Name>
<ns:SOAPUILookup>
<ns:TestSuite>Master Suite</ns:TestSuite>
<ns:TestCase>GroovyUtils</ns:TestCase>
<ns:TestStep>ValidateResponse</ns:TestStep>
</ns:SOAPUILookup>
<ns:ExternalProperties>
<ns:Property>
<ns:Key>MasterResponseFile</ns:Key> <ns:Value>masterdata/TC02/Response-TC02-RecordAdd.xml</ns:Value>
</ns:Property>
</ns:ExternalProperties>
</ns:TestStep>
<ns:TestStep>
<ns:Name>TC02-DeleteRecord</ns:Name>
<ns:SOAPUILookup>
<ns:TestSuite>Master Suite</ns:TestSuite>
<ns:TestCase>CommonActions</ns:TestCase>
<ns:TestStep>RecordActions</ns:TestStep>
</ns:SOAPUILookup>
<ns:TestStepProperties>
<ns:RequestXML> <ns:File>request/TC02/TC02-DeleteRecord.xml</ns:File>
</ns:RequestXML>
</ns:TestStepProperties>
</ns:TestStep>
<ns:TestStep>
<ns:Name>TC02-DeleteRecord-ValidateResponse</ns:Name>
<ns:SOAPUILookup>
<ns:TestSuite>Master Suite</ns:TestSuite>
<ns:TestCase>GroovyUtils</ns:TestCase>
<ns:TestStep>ValidateResponse</ns:TestStep>
</ns:SOAPUILookup>
<ns:ExternalProperties>
<ns:Property>
<ns:Key>MasterResponseFile</ns:Key> <ns:Value>masterdata/TC02/Response-TC02-DeleteRecord.xml</ns:Value>
</ns:Property>
</ns:ExternalProperties>
</ns:TestStep>
<ns:TestStep>
<ns:Name>TC02-RecordQuery</ns:Name>
<ns:SOAPUILookup>
<ns:TestSuite>Master Suite</ns:TestSuite>
<ns:TestCase>CommonActions</ns:TestCase>
<ns:TestStep>RecordActions</ns:TestStep>
</ns:SOAPUILookup>
<ns:TestStepProperties>
<ns:RequestXML>
<ns:File>request/TC02/TC02-RecordQuery.xml</ns:File>
</ns:RequestXML>
</ns:TestStepProperties>
</ns:TestStep>
<ns:TestStep>
<ns:Name>TC02-RecordQuery-ValidateResponse</ns:Name>
<ns:SOAPUILookup>
<ns:TestSuite>Master Suite</ns:TestSuite>
<ns:TestCase>GroovyUtils</ns:TestCase>
<ns:TestStep>ValidateResponse</ns:TestStep>
</ns:SOAPUILookup>
<ns:ExternalProperties>
<ns:Property>
<ns:Key>MasterResponseFile</ns:Key>
<ns:Value>masterdata/TC02/Response-TC02-RecordQuery.xml</ns:Value>
</ns:Property>
</ns:ExternalProperties>
</ns:TestStep>
</ns:TestSteps>
</ns:TestCase>
The RequestXML tag provides the location of custom requests. The location of Master Response files is defined as a key-value pair in ExternalProperty. MasterResponseFile serves as the key and a path relative to TestAutomations/Projects/BasicSanity/pacl serves as the value.
Copyright © Cloud Software Group, Inc. All rights reserved.
