|
353 | 353 | buildname=NEWBUILD_A, platformname=NEWPLATFORM_B)
|
354 | 354 | print "assignTestCaseExecutionTask", response
|
355 | 355 |
|
| 356 | +# get bugs for test case TC_AA in test plan A - state TC not executed |
| 357 | +response = myTestLink.getTestCaseBugs(newTestPlanID_A, |
| 358 | + testcaseexternalid=tc_aa_full_ext_id) |
| 359 | +print "getTestCaseBugs TC_AA in TP_A (TC is not executed)", response |
| 360 | + |
356 | 361 | # report Test Case Results for platform 'Big Bird'
|
357 | 362 | # TC_AA failed, build should be guessed, TC identified with external id
|
358 | 363 | newResult = myTestLink.reportTCResult(newTestPlanID_A, 'f', guess=True,
|
359 | 364 | testcaseexternalid=tc_aa_full_ext_id,
|
360 | 365 | platformname=NEWPLATFORM_A)
|
361 | 366 | print "reportTCResult", newResult
|
362 | 367 | newResultID_AA = newResult[0]['id']
|
| 368 | + |
| 369 | +# get bugs for test case TC_AA in test plan A - state TC is executed |
| 370 | +response = myTestLink.getTestCaseBugs(newTestPlanID_A, |
| 371 | + testcaseexternalid=tc_aa_full_ext_id) |
| 372 | +print "getTestCaseBugs TC_AA in TP_A (TC is executed, no bug)", response |
| 373 | + |
363 | 374 | # report Test Case Results for platform 'Small Bird'
|
364 | 375 | # TC_AA passed, build should be guessed, TC identified with external id
|
365 | 376 | newResult = myTestLink.reportTCResult(newTestPlanID_A, 'p', guess=True,
|
|
402 | 413 | print "assignTestCaseExecutionTask", response
|
403 | 414 |
|
404 | 415 | # TC_B in test plan b (without platform)
|
405 |
| -# first try failed, second blocked - all by user myTestUserName |
| 416 | +# first try failed (with bug), second blocked - all by user myTestUserName |
406 | 417 | newResult = myTestLink.reportTCResult(newTestPlanID_B, 'f',
|
407 |
| - buildid=newBuildID_B, testcaseid=newTestCaseID_B, |
| 418 | + buildid=newBuildID_B, testcaseid=newTestCaseID_B, bugid='007', |
408 | 419 | notes="no birds are singing", user=myTestUserName)
|
409 | 420 | print "reportTCResult", newResult
|
410 | 421 | newResultID_B_f = newResult[0]['id']
|
411 | 422 | newResult = myTestLink.reportTCResult(newTestPlanID_B, 'b',
|
412 |
| - buildid=newBuildID_B, testcaseid=newTestCaseID_B, |
| 423 | + buildid=newBuildID_B, testcaseid=newTestCaseID_B, bugid='008', |
413 | 424 | notes="hungry birds blocks the execution", user=myTestUserName)
|
414 | 425 | print "reportTCResult", newResult
|
415 | 426 | newResultID_B_b = newResult[0]['id']
|
| 427 | +# get bugs for test case TC_B in test plan B - state TC is executed with bug |
| 428 | +response = myTestLink.getTestCaseBugs(newTestPlanID_B, |
| 429 | + testcaseid=newTestCaseID_B) |
| 430 | +print "getTestCaseBugs TC_B in TP_B (TC is executed with 2 bugs)", response |
| 431 | + |
416 | 432 |
|
417 | 433 | # now we make a mistake and commit the same result a second time
|
418 | 434 | # and try to delete this mistake
|
|
0 commit comments