Search code examples
rallytestcase

rally : how to get "description" attribute of a testcase from testcaseresult


I am querying for a testcaseresult and I want to print the "name" and "description" attributes of testcase, this testcaseresult belongs to. So I am using the following code to make a query.

var queryObject = {
                        type : 'TestCaseResult',
                        key : 'tcresults',
                        fetch: 'Build,Name,TestSet,Verdict,TestCase,Date'
                    };

From this query, I can get TestCase.Name ,but not TestCase.Description. Do I have to do a separate query for the testcase to access "Description" or is there something I am missing over here? Thanks.


Solution

  • Did you try to "fetch" description, too?

    fetch: 'Build,Name,TestSet,Verdict,TestCase,Date,Description'