|
111 | 111 |
|
112 | 112 | # CHANGE this name into a valid account, known in your TL application |
113 | 113 | myTestUserName="admin" |
| 114 | +myTestUserName2="admin" |
114 | 115 | # get user information |
115 | 116 | response = myTestLink.getUserByLogin(myTestUserName) |
116 | 117 | print "getUserByLogin", response |
|
120 | 121 |
|
121 | 122 |
|
122 | 123 | # example asking the api client about methods arguments |
123 | | -print myTestLink.whatArgs('createTestCase') |
| 124 | +print myTestLink.whatArgs('assignTestCaseExecutionTask') |
124 | 125 |
|
125 | 126 |
|
126 | 127 | # -- Start CHANGE v0.4.5 -- |
|
413 | 414 | print "createBuild", newBuild |
414 | 415 | newBuildID_A = newBuild[0]['id'] |
415 | 416 | print "New Build '%s' - id: %s" % (NEWBUILD_A, newBuildID_A) |
| 417 | + |
| 418 | +# assign user to test case execution tasks - test plan with platforms |
| 419 | +response = myTestLink.assignTestCaseExecutionTask( myTestUserName, |
| 420 | + newTestPlanID_A, tc_aa_full_ext_id, |
| 421 | + buildid=newBuildID_A, platformname=NEWPLATFORM_A) |
| 422 | +print "assignTestCaseExecutionTask", response |
| 423 | +response = myTestLink.assignTestCaseExecutionTask( myTestUserName2, |
| 424 | + newTestPlanID_A, tc_aa_full_ext_id, |
| 425 | + buildname=NEWBUILD_A, platformid=newPlatFormID_B) |
| 426 | +print "assignTestCaseExecutionTask", response |
| 427 | +response = myTestLink.assignTestCaseExecutionTask( myTestUserName, |
| 428 | + newTestPlanID_A, tc_b_full_ext_id, |
| 429 | + buildname=NEWBUILD_A, platformname=NEWPLATFORM_B) |
| 430 | +print "assignTestCaseExecutionTask", response |
416 | 431 |
|
417 | 432 | # report Test Case Results for platform 'Big Bird' |
418 | 433 | # TC_AA failed, build should be guessed, TC identified with external id |
|
456 | 471 | newBuildID_B = newBuild[0]['id'] |
457 | 472 | print "New Build '%s' - id: %s" % (NEWBUILD_B, newBuildID_B) |
458 | 473 |
|
| 474 | +# assign user to test case execution tasks - test plans without platforms |
| 475 | +response = myTestLink.assignTestCaseExecutionTask( myTestUserName, |
| 476 | + newTestPlanID_B, tc_b_full_ext_id, buildname=NEWBUILD_B) |
| 477 | +print "assignTestCaseExecutionTask", response |
| 478 | + |
| 479 | + |
459 | 480 | # TC_B blocked (without platform), explicit build and some notes , |
460 | 481 | # TC identified with internal id, report by myTestUserName |
461 | 482 | newResult = myTestLink.reportTCResult(newTestCaseID_B, newTestPlanID_B, NEWBUILD_B, |
|
0 commit comments