Monday 15 September 2014

javascript - Rally: Create an app where the user stories are listed against the Test Cases which they are linked to -


Rally: Create an app where the user's stories are listed against the test case, which they are linked to.

I am using rally sdk to get it.

  var queryConfig = {type: 'hierarchicalRequirement', key: 'stories',' fetch: 'name, testcasestatus, testcases'}; Var rallyDataSource = new rally.sdk.data.RallyDataSource ('__Version SPACE_OID__', '__PROJECT_OID__', '__PROJECT_SCOPING_UP__', '__PROJECT_SCOPING_DOWN__'); RallyDataSource.findAll (queryConfig, displayStory);   

When I show the test case field, give me [object object]

how do I access testcaseID? I also tried to use some variables which are part of the hierarchical requirement: c_TestCasesCreated It does not work and does not do anything

I'm not sure how to get this solution.

Please help

thanks,

Patrick

The Test Cases field on User Story Object is a collection of test cases, and you need to iterate over the collection to get the formatted IDs and other areas of the collection's personal contents here:

  var rallyDataSource = null; Var iterDropdown = null; Var table = null; Function showUserStoriesTable (results) {for (var i = 0; i & lt; results.stories.length; i ++) {var t = ""; If (results. Store [I]. Test case) {console.log (Results Stories [i]. Testcases.lampper); (Var j = 0; j & lt; result. Store. [I]. Testcases lan; j ++) {t + = ""; T + = results.stories [i]. Test case [J] Formatted id; } Results.stories [i]. Testcases = t; }} Var table config = {columnKeys: ['FormattedID', 'name', 'testcases'], column quart: ['80px', '360px', '400px']}; Table = new rally.sdk.ui.Table (tableConfig); Table.addRows (results.stories); Table.display (document.getElementById ('Stories')); } Interaction on function () {if (table) {table.destroy ()); } Var queryConfig = {type: 'hierarchicalrequirement', key: 'stories', fetch: 'formattedID, name, testcases', query: '(Iteration.Name = "' + iterDropdown.getSelectedName () + '")', order : 'category' }; Rally Data ResourceTable } Function onload () {// rallyDataSource = new rally.sdk.data.RallyDataSource ('__WorkspacE_OID __', '__ PROJECT_OID__', '__ PROJECT_SCOPING_UP __', '__ PROJECT_SCOPING_DOWN__'); Railydasource = New rally.sdk.data.RallyDataSource ('111111', '222222', 'wrong', 'wrong'); // Use the rally to use the rally OIDs var iterConfig = {}; IterDropdown = new rally.sdk.ui.IterationDropdown (iterConfig, rallyDataSource); IterDropdown.display (document.getElementById ("movable"), selected atomic selection); } Rally. AddOnLoad (onload);    

No comments:

Post a Comment