Search code examples
rallyappsdk2

Get all test cases with in a testset is unable to return all test cases v2.0


I have a test set that contains more than 200 test cases. I am trying to fetch all the test cases using the code below. However none of the config works

testSet.getCollection('TestCases').load({
    limit: Infinity,
    scope:this,
    callback: function(testCases, operation, success) {


    }
});

Solution

  • You can also try passing your config to the getCollection method instead. I think there are some bugs around directly passing them into load. I've had good luck doing something like this:

    testSet.getCollection('TestCases', {
        limit: Infinity,
        autoLoad: true
        listeners: {
            load: function(store, records) {
                //process testcases
            },
            scope: this
        }
    });