这是我尝试使用的基本代码:
//create new QueryRequest
QueryRequest tests = new QueryRequest("Test Case");
//Gets the information from QueryFilter
tests.setFetch(new Fetch("FormattedID","Name","Owner","Test Folder"));
//checks to see if the test Case's test folder matches the given one
testFolderFilter = new QueryFilter("Test Folder", "=", testFolder);
// set query filter
tests.setQueryFilter(testFolderFilter);
// Query Rally
QueryResponse queryResponse = restApi.query(tests);
我已经成功地使用Name
andFormattedID
代替了它,Test Folder
所以我假设我只需要为Test Folder
. 欢迎任何建议。
示例对我没有帮助,但可以在以下位置找到:http ://www.rallydev.com/developer/java-toolkit-rally-rest-api