Visual studio 如何使用Parasoft SOAtest 9.9.x生成XML报告
我想生成一个XML报告SOAtest,如所示,但没有相同的结果。我遵循了完全相同的步骤,但我的“标签”完全不同 我使用的是Parasoft SOAtest版本9.9.5 SOAtestToMTM解决方案显示的XML结果如下:Visual studio 如何使用Parasoft SOAtest 9.9.x生成XML报告,visual-studio,parasoft,Visual Studio,Parasoft,我想生成一个XML报告SOAtest,如所示,但没有相同的结果。我遵循了完全相同的步骤,但我的“标签”完全不同 我使用的是Parasoft SOAtest版本9.9.5 SOAtestToMTM解决方案显示的XML结果如下: <?xml version='1.0' encoding='utf-8'?> <ResultsSession buildId="build-2016-08-18 15:17:02" date="08/18/16 15:17:02" project="Def
<?xml version='1.0' encoding='utf-8'?>
<ResultsSession buildId="build-2016-08-18 15:17:02" date="08/18/16 15:17:02" project="Default Project" tag="Example Configuration" time="2016-08-18T15:17:02-07:00" toolName="SOAtest" toolVer="9.9.3.20151123">
<TestConfig machine="nitrogen" name="Example Configuration" pseudoUrl="soatest.user://Example Configuration" user="kchen" />
<Authors>
<Author id="dev1" name="kchen" />
</Authors>
<VersionInfos>
<StorageInfo ownerId="com.parasoft.xtest.checkers.api.execution" resultId="IFunctionalTestViolation" ver="3" />
...
<StorageInfo ownerId="com.parasoft.xtest.checkers.api.standards" resultId="IDupCodeViolation" ver="2" />
</VersionInfos>
<ExecutedTestsDetails>
<Total authChange="0;" authFail="3;" change="0" changePass="0" changeTotal="0" fail="3" name="Passed / Total" pass="13" time="0:00:00.120" total="16">
<Project authChange="0;" authFail="3;" change="0" changePass="0" changeTotal="0" fail="3" name="test" pass="13" time="0:00:00.120" total="16">
<TestSuite authChange="0;" authFail="3;" change="0" changePass="0" changeTotal="0" fail="3" id="wk:///test/Premera.tst" name="Premera.tst" pass="13" time="0:00:00.120" total="16">
<TestSuite auth="kchen" authChange="0;" authFail="3;" change="0" changePass="0" changeTotal="0" fail="3" id="wk:///test/Premera.tst#0000000000" name="Test Suite: Test Suite" pass="13" root="true" time="0:00:00.120" total="16">
<TestSuite auth="kchen" authChange="0;" authFail="1;" change="0" changePass="0" changeTotal="0" fail="1" id="wk:///test/Premera.tst#0000000000#0000000002" name="Test Suite: Test Suite A" pass="2" time="0:00:00.026" total="3">
<Test auth="kchen" authChange="0;" authFail="1;" change="0" changePass="0" changeTotal="0" fail="1" id="wk:///test/Premera.tst#0000000000#0000000002#0000000006" name="Test 1: Test A" pass="0" startTime="1471558622262" time="0:00:00.015" tool="Test A" total="1">
<assoc id="308" tag="pr" />
<assoc id="303" tag="req" />
</Test>
<Test auth="kchen" authChange="0;" authFail="0;" change="0" changePass="0" changeTotal="0" fail="0" id="wk:///test/Premera.tst#0000000000#0000000002#0000000007" name="Test 2: Test B" pass="1" startTime="1471558622279" time="0:00:00.005" tool="Test B" total="1">
<assoc id="309" tag="pr" />
<assoc id="303" tag="req" />
</Test>
<Test auth="kchen" authChange="0;" authFail="0;" change="0" changePass="0" changeTotal="0" fail="0" id="wk:///test/Premera.tst#0000000000#0000000002#0000000008" name="Test 3: Test C" pass="1" startTime="1471558622287" time="0:00:00.006" tool="Test C" total="1">
<assoc id="310" tag="pr" />
<assoc id="303" tag="req" />
</Test>
</TestSuite>
...
</ExecutedTestsDetails>
</ResultsSession>
<?xml version="1.0" encoding="UTF-8"?>
<Report time="Tue Mar 27 14:42:40 EDT 2018" app="SOAtest" version="9.9.5.20160601" project="C:\Users\rejean.therrien\parasoft\workspace\Test\DneOnline\Calculator.tst">
<TestSuite name="Test Suite: Test Suite" runConcurrently="false" testPath="/Test Suite: Test Suite">
<Requirements>
<Notes>Created from: http://www.dneonline.com/calculator.asmx?WSDL
 Timestamp: 2018-01-18 13:00:44</Notes>
</Requirements>
<DataSources>
<DataSource name="Table: New Datasource" type="Table">
<Row index="0">
<Column name="intA">10</Column>
<Column name="intB">5</Column>
<Column name="intResultAdd">15</Column>
<Column name="intResultDivide">2</Column>
</Row>
...
</DataSource>
</DataSources>
<TestFlowLogic/>
<TestSuite name="Test Suite: CalculatorSoap" runConcurrently="false" testPath="/Test Suite: Test Suite/Test Suite: CalculatorSoap">
<TestFlowLogic/>
<Test name="Test 1: Add" testPath="/Test Suite: Test Suite/Test Suite: CalculatorSoap">
<Requirements>
<GRSIDs>
<ID>303</ID>
<ID>308</ID>
</GRSIDs>
</Requirements>
<Configuration type="SOAP Client" wsdlURI="http://www.dneonline.com/calculator.asmx?WSDL" soapVersion="SOAP 1.1" timeout="30000" outgoingEncoding="UTF-8" dataSource="Table: New Datasource" styleUse="document/literal" attachmentEncapsulation="MIME" operation="Add">
<Transport type="HTTP 1.0">
<Configuration endpoint="http://www.dneonline.com/calculator.asmx" chunking="false" followRedirects="true" connection="Close Connection"/>
</Transport>
<Input><?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <Add xmlns="http://tempuri.org/"> <intA>${intA}</intA> <intB>${intB}</intB> </Add> </SOAP-ENV:Body> </SOAP-ENV:Envelope></Input>
<Requirements>
<Notes>Test client for operation "Add" in "${WSDL}".</Notes>
</Requirements>
<ChainedTools/>
</Configuration>
</Test>
...
</TestSuite>
</TestSuite>
</Report>
...
...
但是SOAtest创建的Webservice SOAP的结果如下:
<?xml version='1.0' encoding='utf-8'?>
<ResultsSession buildId="build-2016-08-18 15:17:02" date="08/18/16 15:17:02" project="Default Project" tag="Example Configuration" time="2016-08-18T15:17:02-07:00" toolName="SOAtest" toolVer="9.9.3.20151123">
<TestConfig machine="nitrogen" name="Example Configuration" pseudoUrl="soatest.user://Example Configuration" user="kchen" />
<Authors>
<Author id="dev1" name="kchen" />
</Authors>
<VersionInfos>
<StorageInfo ownerId="com.parasoft.xtest.checkers.api.execution" resultId="IFunctionalTestViolation" ver="3" />
...
<StorageInfo ownerId="com.parasoft.xtest.checkers.api.standards" resultId="IDupCodeViolation" ver="2" />
</VersionInfos>
<ExecutedTestsDetails>
<Total authChange="0;" authFail="3;" change="0" changePass="0" changeTotal="0" fail="3" name="Passed / Total" pass="13" time="0:00:00.120" total="16">
<Project authChange="0;" authFail="3;" change="0" changePass="0" changeTotal="0" fail="3" name="test" pass="13" time="0:00:00.120" total="16">
<TestSuite authChange="0;" authFail="3;" change="0" changePass="0" changeTotal="0" fail="3" id="wk:///test/Premera.tst" name="Premera.tst" pass="13" time="0:00:00.120" total="16">
<TestSuite auth="kchen" authChange="0;" authFail="3;" change="0" changePass="0" changeTotal="0" fail="3" id="wk:///test/Premera.tst#0000000000" name="Test Suite: Test Suite" pass="13" root="true" time="0:00:00.120" total="16">
<TestSuite auth="kchen" authChange="0;" authFail="1;" change="0" changePass="0" changeTotal="0" fail="1" id="wk:///test/Premera.tst#0000000000#0000000002" name="Test Suite: Test Suite A" pass="2" time="0:00:00.026" total="3">
<Test auth="kchen" authChange="0;" authFail="1;" change="0" changePass="0" changeTotal="0" fail="1" id="wk:///test/Premera.tst#0000000000#0000000002#0000000006" name="Test 1: Test A" pass="0" startTime="1471558622262" time="0:00:00.015" tool="Test A" total="1">
<assoc id="308" tag="pr" />
<assoc id="303" tag="req" />
</Test>
<Test auth="kchen" authChange="0;" authFail="0;" change="0" changePass="0" changeTotal="0" fail="0" id="wk:///test/Premera.tst#0000000000#0000000002#0000000007" name="Test 2: Test B" pass="1" startTime="1471558622279" time="0:00:00.005" tool="Test B" total="1">
<assoc id="309" tag="pr" />
<assoc id="303" tag="req" />
</Test>
<Test auth="kchen" authChange="0;" authFail="0;" change="0" changePass="0" changeTotal="0" fail="0" id="wk:///test/Premera.tst#0000000000#0000000002#0000000008" name="Test 3: Test C" pass="1" startTime="1471558622287" time="0:00:00.006" tool="Test C" total="1">
<assoc id="310" tag="pr" />
<assoc id="303" tag="req" />
</Test>
</TestSuite>
...
</ExecutedTestsDetails>
</ResultsSession>
<?xml version="1.0" encoding="UTF-8"?>
<Report time="Tue Mar 27 14:42:40 EDT 2018" app="SOAtest" version="9.9.5.20160601" project="C:\Users\rejean.therrien\parasoft\workspace\Test\DneOnline\Calculator.tst">
<TestSuite name="Test Suite: Test Suite" runConcurrently="false" testPath="/Test Suite: Test Suite">
<Requirements>
<Notes>Created from: http://www.dneonline.com/calculator.asmx?WSDL
 Timestamp: 2018-01-18 13:00:44</Notes>
</Requirements>
<DataSources>
<DataSource name="Table: New Datasource" type="Table">
<Row index="0">
<Column name="intA">10</Column>
<Column name="intB">5</Column>
<Column name="intResultAdd">15</Column>
<Column name="intResultDivide">2</Column>
</Row>
...
</DataSource>
</DataSources>
<TestFlowLogic/>
<TestSuite name="Test Suite: CalculatorSoap" runConcurrently="false" testPath="/Test Suite: Test Suite/Test Suite: CalculatorSoap">
<TestFlowLogic/>
<Test name="Test 1: Add" testPath="/Test Suite: Test Suite/Test Suite: CalculatorSoap">
<Requirements>
<GRSIDs>
<ID>303</ID>
<ID>308</ID>
</GRSIDs>
</Requirements>
<Configuration type="SOAP Client" wsdlURI="http://www.dneonline.com/calculator.asmx?WSDL" soapVersion="SOAP 1.1" timeout="30000" outgoingEncoding="UTF-8" dataSource="Table: New Datasource" styleUse="document/literal" attachmentEncapsulation="MIME" operation="Add">
<Transport type="HTTP 1.0">
<Configuration endpoint="http://www.dneonline.com/calculator.asmx" chunking="false" followRedirects="true" connection="Close Connection"/>
</Transport>
<Input><?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <Add xmlns="http://tempuri.org/"> <intA>${intA}</intA> <intB>${intB}</intB> </Add> </SOAP-ENV:Body> </SOAP-ENV:Envelope></Input>
<Requirements>
<Notes>Test client for operation "Add" in "${WSDL}".</Notes>
</Requirements>
<ChainedTools/>
</Configuration>
</Test>
...
</TestSuite>
</TestSuite>
</Report>
创建自:http://www.dneonline.com/calculator.asmx?WSDL
时间戳:2018-01-18 13:00:44
10
5.
15
2.
...
303
308
${intA}
${intB}
在“${WSDL}”中测试操作“Add”的客户端。
...
完全不同:(Rejean
第一个报告由SOAtest v9.9.3生成,但是我看到v9.10.4的语法相同。
你是怎么得到你的最新报告的?
您说过“WebServiceSOAP”,但您是否使用SOAtest的SOAP接口来获取报告?
或者您正在使用SOAtest cli接口:soatestcli[.exe]?
如果是,在测试(tst文件)执行期间,您使用哪些参数来获取报告?
通常,在使用cli时,应运行以下命令:
soatestcli -data <workspace_location> -resource <project name> -config "team://Team Configuration" -report <Report_location> -localsettings acme_policy.settings
soatestcli-data-resource-config”team://Team 配置“-报告-localsettings acme\u policy.settings
where Report_location定义了应该在哪里找到xml和html报告。
不过,您可以使用XML转换来更改报告的格式。
然后必须检查-localsettings参数的内容(通常是文件,这里是acme\u policy.settings)您可以在此处找到有关报表创建的其他信息。请提供一些代码,向我们展示您得到了什么、尝试了什么以及遇到了什么错误/问题感谢您的回答。我无法在命令行中执行SOAtest。假设我的许可证:(.这可能是主要原因。那么您是如何获得报告的呢?我使用.tst文件中的GUI SOAtest上下文菜单:右键单击、结构报告、默认结构报告、另存为XML…我也尝试过:结构报告包含不同的数据集。您必须要求提供命令行功能,以便获得正确的数据集。