Forum Discussion

TheVole's avatar
13 years ago

Unexpected format of Test Run Log Report

Env/App:

Windows 7

SoapUI 4.5.1 32-bit
SoapUI 4.5.2 32-bit

Description

I have the following project:

Project
|
-TestSuite 1
| |
| - TestCase 1-1
| | |
| | - 11
| |
| - TestCase 1-2
| |
| - 12
|
-TestSuite 2
|
- TestCase 2-1
| |
| - 21
|
- TestCase 2-2
|
- 22

So two test suites each consisting of two test cases. This in turn has one test step each.

I then perform the following:
testrunner.bat -M -f"C:/SoapUI/logs/" myproject.xml

Result
And check the Test Run Log Report. This is the result:

<?xml version="1.0" encoding="UTF-8"?>
<con:testCaseRunLog testCase="TestCase 2-2" timeTaken="275" status="FINISHED" timeStamp="2013-08-31 08:35:47" xmlns:con="http://eviware.com/soapui/config">
<con:testCaseRunLogTestStep name="11" timeTaken="521" status="FAILED" timestamp="2013-08-31 08:35:46" endpoint="http://maps.googleapis.com/maps/api/geocode/json?sensor=false&amp;address=1600%20Amphitheatre%20Parkway%2C%20Mountain%20View%2C%20CA" httpStatus="200" contentLength="1919" readTime="21" totalTime="398" dnsTime="0" connectTime="165" timeToFirstByte="212" httpMethod="GET" ipAddress="74.125.143.95">
<con:message>[Check count of [e]] XPathContains comparison failed, expecting [09], actual was [1]</con:message>
</con:testCaseRunLogTestStep>
<con:testCaseRunLogTestStep name="12" timeTaken="475" status="OK" timestamp="2013-08-31 08:35:47" endpoint="http://maps.googleapis.com/maps/api/geocode/json?sensor=false&amp;address=broadway" httpStatus="200" contentLength="32413" readTime="188" totalTime="475" dnsTime="0" connectTime="1" timeToFirstByte="286" httpMethod="GET" ipAddress="74.125.143.95"/>
<con:testCaseRunLogTestStep name="21" timeTaken="183" status="FAILED" timestamp="2013-08-31 08:35:47" endpoint="http://maps.googleapis.com/maps/api/geocode/json?sensor=false&amp;address=1600%20Amphitheatre%20Parkway%2C%20Mountain%20View%2C%20CA" httpStatus="200" contentLength="1919" readTime="0" totalTime="182" dnsTime="0" connectTime="1" timeToFirstByte="181" httpMethod="GET" ipAddress="74.125.143.95">
<con:message>[Check count of [e]] XPathContains comparison failed, expecting [09], actual was [1]</con:message>
</con:testCaseRunLogTestStep>
<con:testCaseRunLogTestStep name="22" timeTaken="275" status="OK" timestamp="2013-08-31 08:35:47" endpoint="http://maps.googleapis.com/maps/api/geocode/json?sensor=false&amp;address=broadway" httpStatus="200" contentLength="32413" readTime="99" totalTime="276" dnsTime="0" connectTime="1" timeToFirstByte="176" httpMethod="GET" ipAddress="74.125.143.95"/>
</con:testCaseRunLog>


Expected result

I would'nt have expected the first element to be:
<con:testCaseRunLog testCase="TestCase 2-2"


I might have expected something like this:

<?xml version="1.0" encoding="UTF-8"?>
[b]<con:testCaseRunLog project="myproject">
<con:testCaseRunLogTestSuite name="TestSuite 1">
<con:testCaseRunLogTestCase name="TestCase 1-1">[/b]
<con:testCaseRunLogTestStep name="11" timeTaken="521" status="FAILED" timestamp="2013-08-31 08:35:46" endpoint="http://maps.googleapis.com/maps/api/geocode/json?sensor=false&amp;address=1600%20Amphitheatre%20Parkway%2C%20Mountain%20View%2C%20CA" httpStatus="200" contentLength="1919" readTime="21" totalTime="398" dnsTime="0" connectTime="165" timeToFirstByte="212" httpMethod="GET" ipAddress="74.125.143.95">
<con:message>[Check count of [e]] XPathContains comparison failed, expecting [09], actual was [1]</con:message>
</con:testCaseRunLogTestStep>
<con:testCaseRunLogTestStep name="12" timeTaken="475" status="OK" timestamp="2013-08-31 08:35:47" endpoint="http://maps.googleapis.com/maps/api/geocode/json?sensor=false&amp;address=broadway" httpStatus="200" contentLength="32413" readTime="188" totalTime="475" dnsTime="0" connectTime="1" timeToFirstByte="286" httpMethod="GET" ipAddress="74.125.143.95"/>
.
.
.
and so on


Of course with appropriate attributes for each element. Then one woulds see what test suite and test case that is executed. As it is now the test case of the latest test step is the parent element.

1 Reply

  • Can you please tell me if this test run log report can be generated by maven pom?