JsonObject newTS = new JsonObject();
newTS.addProperty("Workspace", "/workspace/25194919975");
newTS.addProperty("Name", "name");
newTS.addProperty("Project", "/project/81223493876");
newTS.addProperty("Tags", tagName);
newTS.addProperty("Release.Name", releaseID);
newTS.addProperty("Iteration.Name", iterationID);
newTS.addProperty("projectScopeUp", false);
newTS.addProperty("projectScopeDown", true);
newTS.addProperty("fetch", true);
newTS.addProperty("rankTo", "BOTTOM");
newTS.add("TestCases", testCaseList);
CreateRequest createRequest = new CreateRequest("testset",newTS)
CreateResponse createResponse = restApi.create(createRequest);
結果:java的反彈API,不能在特定迭代來創建測試集和釋放,在不定期迭代越來越創建
{"CreateResult": { "_rallyAPIMajor": "2", "_rallyAPIMinor": "0", "Errors": [], "Warnings": ["It is no longer necessary to append \".js\" to WSAPI resources.", "Ignored JSON element testset.Tags.Name during processing of this request.", "Ignored JSON element testset.Release.Name during processing of this request.", "Ignored JSON element testset.Iteration.Name during processing of this request.", "Ignored JSON element testset.projectScopeUp during processing of this request.", "Ignored JSON element testset.projectScopeDown during processing of this request.", "Ignored JSON element testset.fetch during processing of this request.", "Ignored JSON element testset.rankTo during processing of this request."]
能幫會並欣賞 – bhamo02