Forum Discussion
LZhang
18 years agoFrequent Contributor
Hi:
I think I need to clarify a little bit. I don't want to compare to yesterday's test runs. I have a lot of datasources/dataloops for each testcase. So each testcase doesn't just run once, it runs in a loop to execute different values. Therefore, each testcases might have 4, 5, ..., 20 runs.
For example, if a test request has the following fields:
SourceId
ProgramId
title
startTime
duration
status
I can have 5 different values for each field and run the datasource in a loop. Then I should get 5 unique XML requests/responses.
Currently, SoapUI has no way of displaying all the XML requests/responses but only the last run. What I did was I used groovy script below to output them. Can you implement something that enables us to display ALL runs of XML requests/responses for each test case?
import java.text.SimpleDateFormat;
SimpleDateFormat dateFormat = new SimpleDateFormat("MMddhhmmss");
Date date = new Date();
def fileLocation="C:\\Workspace\\QA\\Automation\\soapUI_Scripts\\Phase2.5\\Integration_Environment\\RemoteRecord\\Tivo\\ScheduleRecording_GetRecordings\\Output\\"
def msg1=context.getProperty("GetRecordings_AfterUnlink#Request")
new File(fileLocation + "GetRecording_AfterUnlinkRQ" + dateFormat.format(date) + ".txt").write(msg1)
def msg2=context.getProperty("GetRecordings_AfterUnlink#Response")
new File(fileLocation + "GetRecording_AfterUnlinkRS" + dateFormat.format(date) + ".txt").write(msg2)
I hope I didn't confuse you more.
Thanks,
Li
I think I need to clarify a little bit. I don't want to compare to yesterday's test runs. I have a lot of datasources/dataloops for each testcase. So each testcase doesn't just run once, it runs in a loop to execute different values. Therefore, each testcases might have 4, 5, ..., 20 runs.
For example, if a test request has the following fields:
SourceId
ProgramId
title
startTime
duration
status
I can have 5 different values for each field and run the datasource in a loop. Then I should get 5 unique XML requests/responses.
Currently, SoapUI has no way of displaying all the XML requests/responses but only the last run. What I did was I used groovy script below to output them. Can you implement something that enables us to display ALL runs of XML requests/responses for each test case?
import java.text.SimpleDateFormat;
SimpleDateFormat dateFormat = new SimpleDateFormat("MMddhhmmss");
Date date = new Date();
def fileLocation="C:\\Workspace\\QA\\Automation\\soapUI_Scripts\\Phase2.5\\Integration_Environment\\RemoteRecord\\Tivo\\ScheduleRecording_GetRecordings\\Output\\"
def msg1=context.getProperty("GetRecordings_AfterUnlink#Request")
new File(fileLocation + "GetRecording_AfterUnlinkRQ" + dateFormat.format(date) + ".txt").write(msg1)
def msg2=context.getProperty("GetRecordings_AfterUnlink#Response")
new File(fileLocation + "GetRecording_AfterUnlinkRS" + dateFormat.format(date) + ".txt").write(msg2)
I hope I didn't confuse you more.
Thanks,
Li