0
如何檢索與某些版本相關的測試用例。檢索與版本相關的測試用例
我想檢索與Release有關的測試用例的相關數據。 但測試用例沒有發佈提交。順便說一下,測試用例有WorkProduct這是測試用例的創建。但是當我試圖從測試用例對象中獲取WorkProdut時,我沒有任何有用的信息,除了美國名稱,實際上我可以使用此名稱來獲取合法的美國對象。
但看起來很難......
如何檢索與某些版本相關的測試用例。檢索與版本相關的測試用例
我想檢索與Release有關的測試用例的相關數據。 但測試用例沒有發佈提交。順便說一下,測試用例有WorkProduct這是測試用例的創建。但是當我試圖從測試用例對象中獲取WorkProdut時,我沒有任何有用的信息,除了美國名稱,實際上我可以使用此名稱來獲取合法的美國對象。
但看起來很難......
TestCases通過測試集計劃到迭代和發佈中。我有一個應用程序this github repo,它構建了一個計劃發佈的故事網格,計劃發佈的測試集以及相關的測試用例。
這裏是測試集對象被加載,用他們的TestCases集合的代碼片段,然後收集的TestCases水合(因爲這不能在單個請求來完成):
_makeAnotherStore: function(){
Ext.create('Rally.data.WsapiDataStore', {
model: 'TestSet',
fetch: ['FormattedID', 'TestCases', 'TestCaseStatus'],
pageSize: 100,
autoLoad: true,
filters: [this.getContext().getTimeboxScope().getQueryFilter()],
listeners: {
load: this._onTestSetsLoaded,
scope: this
}
});
},
_onTestSetsLoaded: function(store, data){
console.log('store...',store);
console.log('data...',data);
var testSets = [];
var pendingTestCases = data.length;
console.log(data.length);
if (data.length ===0) {
this._createTestSetGrid(testSets);
}
Ext.Array.each(data, function(testset){
var ts = {
FormattedID: testset.get('FormattedID'),
_ref: testset.get('_ref'),
TestCaseStatus: testset.get('TestCaseStatus'),
TestCaseCount: testset.get('TestCases').Count,
TestCases: []
};
var testCases = testset.getCollection('TestCases');
testCases.load({
fetch: ['FormattedID'],
callback: function(records, operation, success){
Ext.Array.each(records, function(testcase){
ts.TestCases.push({_ref: testcase.get('_ref'),
FormattedID: testcase.get('FormattedID')
});
}, this);
--pendingTestCases;
if (pendingTestCases === 0) {
this._createTestSetGrid(testSets);
}
},
scope: this
});
testSets.push(ts);
},this);
}
,