|
264 | 264 | newTestCaseID_AA = newTestCase[0]['id'] |
265 | 265 | print("New Test Case '%s' - id: %s" % (NEWTESTCASE_AA, newTestCaseID_AA)) |
266 | 266 |
|
267 | | -#Creates the test case TC_B with state rework |
| 267 | +#Creates the test case TC_B with state rework - in wrong test suite A |
268 | 268 | myTestLink.initStep("Step action 1", "Step result 1", AUTOMATED) |
269 | 269 | myTestLink.appendStep("Step action 2", "Step result 2", AUTOMATED) |
270 | 270 | myTestLink.appendStep("Step action 3", "Step result 3", AUTOMATED) |
271 | 271 | myTestLink.appendStep("Step action 4", "Step result 4", AUTOMATED) |
272 | 272 | myTestLink.appendStep("Step action 5", "Step result 5", AUTOMATED) |
273 | 273 |
|
274 | | -newTestCase = myTestLink.createTestCase(NEWTESTCASE_B, newTestSuiteID_B, |
| 274 | +newTestCase = myTestLink.createTestCase(NEWTESTCASE_B, newTestSuiteID_A, |
275 | 275 | newProjectID, myTestUserName, "This is the summary of the Test Case B", |
276 | 276 | preconditions='these are the preconditions', executiontype=AUTOMATED, |
277 | 277 | status=REWORK, estimatedexecduration=0.5) |
278 | | -print("createTestCase", newTestCase) |
| 278 | +print("createTestCase TC-B in TS-A", newTestCase) |
279 | 279 | newTestCaseID_B = newTestCase[0]['id'] |
280 | 280 | print("New Test Case '%s' - id: %s" % (NEWTESTCASE_B, newTestCaseID_B)) |
| 281 | + |
| 282 | +# Move test case TC_B to correct test suite B |
| 283 | +tc_b_full_ext_id = myTestLink.getTestCase(newTestCaseID_B)[0]['full_tc_external_id'] |
| 284 | +response = myTestLink.setTestCaseTestSuite(tc_b_full_ext_id, newTestSuiteID_B) |
| 285 | +print("setTestCaseTestSuite TC-B to TS-B" , response) |
281 | 286 |
|
282 | 287 | # Add test cases to test plan - we need the full external id ! |
283 | 288 | # for every test case version 1 is used |
|
0 commit comments