拉力赛使用Web服务API添加测试用例结果散装 [英] Rally add test case results in bulk using web services API
问题描述
我们即将开始通过API的更新拉力测试结果的阶段。
We are about to start the phase of updating test results in Rally via the api.
我找不到一个例子通过Web服务API(例如发布XML)来做到这一点。任何人都可以点我吗?
I couldn't find an example to do this via the web services API (e.g. posting xml). Can anyone point me to this?
我也想知道有什么本事没有做到这一点散装的,例如上传一组测试结果中一气呵成。或许有连接器,用于这一点,上传各种测试结果的标准(例如JUnit的报告)到拉力赛?
Also I wondered what ability there is to do this in bulk, e.g. upload a set of test results in one go. Perhaps there are connectors for this that will upload various test result standards (e.g. JUnit report) into Rally?
的想法和观点的欢迎。
谢谢,
刘德华
推荐答案
如果你正在做针对测试用例结果一个简单的POST创建REST端点:
If you're doing a simple POST against the Test Case Result Create REST endpoint:
https://rally1.rallydev.com/slm/webservice/1.41/ testcaseresult /制作
然后适当的XML有效载荷将是:
Then the appropriate XML payload would be:
<TestCaseResult>
<Build>2345</Build>
<Date>2012-12-11T23:05:49.365Z</Date>
<TestCase ref="/testcase/12345678910"/>
<Tester ref="/user/12345678911"/>
<Verdict>Pass</Verdict>
</TestCaseResult>
当长整数是TestCase的到的对象ID的结果伙伴和拉力网友认为是测试仪。
Where the long integers are the ObjectID's of the TestCase to which the result associates, and the Rally User that is the tester.
我还将包括JSON语法,因为Web服务2.0将JSON只:
I'll also include the JSON syntax, since Webservices 2.0 will be JSON-only:
https://rally1.rallydev.com/slm/webservice/ 1.41 / testcaseresult / create.js
有效载荷:
{ "TestCaseResult" : {
"Build" : "2345",
"Date" : "2011-10-13T23:05:49.365Z",
"TestCase" : {
"_ref" : "/testcase/12345678910.js"
},
"Tester" : {
"_ref : "/user/12345678911.js"
},
"Verdict" : "Fail"
}
}
据我所知,有没有上传JUnit的成果转化为拉力赛pre-内置连接器。有些客户找到拉力Excel加载成为批量上传TestCaseResults有用,除其他事项。你只需要指定导入工作表中的列具有拉力对象ID或TestCase的(县)要你的结果联系起来。
As far as I'm aware, there's not a pre-built connector for uploading JUnit results into Rally. Some customers find the Rally Excel Add-in to be useful for bulk uploading TestCaseResults, amongst other things. You just have to specify a column in your import worksheet that has the Rally ObjectID or FormattedID of the TestCase(s) to which you want to associate your results.
这篇关于拉力赛使用Web服务API添加测试用例结果散装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!