Hi Rich,
Basically my idea as below, i try to automate it to avoid manual work but I was new to soapUI and 0 knowledge in writing the script. Sorry if i asking a silly question.
My test step as below:
1. DataSource
testCase Ccy Tenor Expected_Status Expected_statusMsg
TC_01 GBPUSD SPOT OK
TC_02 EURUSD SPOT ERROR No rate available
TC_03 AUDUSD SPOT OK
TC_04 USDCAD TODAY ERROR Currency holidays
2. DataGen
3. Rest Request 1
This step will send the request to get market rate.
I have add and group this 2 assertion ("Json_status" and "Json_statusMsg") to validate the response with the expected result in step 1. If both match, then return PASSED to "finalTestResults" in DataSink else FAILED.
4. Data Sink
In this step i want to write out results for each test case loops to excel.
testCase Ccy Tenor finalTestResults
TC_01 GBPUSD SPOT PASSED
TC_02 EURUSD SPOT FAILED
TC_03 AUDUSD SPOT PASSED
TC_04 USDCAD TODAY PASSED
5. DataSource Loop
Thank for you help.