Вопрос

I need to get a list of all of the test cases in Rally along with the person who either created them or last modified them. I thought I could achieve this by getting the changeset but that doesn't appear to have worked - I seem to get a lot of test cases that don't have any changesets at all

String myQuery = "(Method = Manual)";
QueryResult myArtifactReturn = m_rallyService.query(myWorkspace, "TestCase", myQuery, "", true, 0, 100);
long mycount = myArtifactReturn.TotalResultCount;
if (mycount > 0)
{
    myArtifact = (TestCase)myArtifactReturn.Results[0];
    myArtifact = (TestCase)m_rallyService.read(myArtifact);
    Changeset myInitial = (Changeset)m_rallyService.read(myArtifact.Changesets[0]);
}

Is there a way I can do this?

Or is there a way to query Rally to ask for 'all test cases created by User X'?

Thanks

Это было полезно?

Решение

I think you might be mixing up ChangeSets with RevisionHistory. If you're looking to track Revisions on a Rally Artifact, you should look at the RevisionHistory collection. ChangeSets are used by Rally's source code connectors to associate source code commits to various artifacts in Rally.

You might find this answer:

RevisionHistory and Revisions

Instructive for dealing with RevisionHistory in SOAP. The example is for User Stories, but is equally applicable to Test Cases.

Unfortunately, you can't query on RevisionHistory, so you would need to retrieve all the Test Cases that could potentially have matches against your search, and do the filtering for the TestCase creator in your SOAP client. You would need to check the Author attribute for Revision 0:

0 Original revision 2013-Feb-18 09:23:11 AM America/Denver Sam Tester

And verify that it matches your criteria.

Just a heads-up, especially if you're just getting started with building your integration, I'd highly recommend using one of Rally's .NET REST SDK instead of SOAP.

REST is more robust, more performant, and, Webservices API 1.43 was the final API release to have SOAP support, and 1.43 has about 9 months to go (as of 9/2013) before deprecation. Webservices 2.x is REST-only, so using REST will be essential to anyone wanting new Webservices features moving forward.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top