2014-04-17 1 views
0

일부 릴리스와 관련된 테스트 사례를 검색하는 방법.릴리스 관련 테스트 사례 검색

Release와 관련된 테스트 사례에 대한 데이터를 검색하고 싶습니다. 그러나 테스트 케이스에는 릴리스 필드가 없습니다. Btw, Test Case에는이 테스트 케이스가 작성된 WorkProduct가 있습니다. 그러나 WorkProdut을 테스트 케이스 객체에서 가져 오려고 할 때 미국 이름을 제외한 유용한 정보가 없으므로 실제로이 이름을 합법적 인 미국 객체로 가져올 수 있습니다.

하지만 어려운 보이는 ...

답변

0

테스트 케이스는 TestSets를 통해 반복 및 자료에 예정 얻을. 나는 릴리스 용으로 계획된 스토리 그리드와 릴리스 및 관련 테스트 케이스 용 테스트 세트를 빌드하는 this github repo의 앱을 보유하고 있습니다.

_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); 
} 

,

을 (이는 하나의 요청으로 수행 할 수 없기 때문에) 여기서

는 테스트 세트 오브젝트가 그들의 테스트 케이스 컬렉션,로드 된 코드 단편하고 테스트 케이스 컬렉션 수화