xray
Xray
Bases: AtlassianRestAPI
Source code in server/vendor/atlassian/xray.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 |
|
create_test_repo_folder(project_key, folder_name, parent_folder_id=-1)
Create test repository folder for a project. :param project_key: Project key (eg. 'FOO'). :param folder_name: Name of folder. :param parent_folder_id: Internal folder ID; "-1" corresponds to the root folder of the test repository. :return: Returns the created test repository folder.
Source code in server/vendor/atlassian/xray.py
559 560 561 562 563 564 565 566 567 568 569 |
|
create_test_step(test_key, step, data, result)
Create a new test steps for a given test. NOTE: attachments are currently not supported! :param test_key: Test key (eg. 'TEST-001'). :param step: Test Step name (eg. 'Example step'). :param data: Test Step data (eg. 'Example data'). :param result: Test Step results (eg. 'Example results'). :return:
Source code in server/vendor/atlassian/xray.py
182 183 184 185 186 187 188 189 190 191 192 193 194 |
|
delete_test_execution_from_test_plan(test_plan_key, test_exec_key)
Remove association of the specified tests execution from the given test plan. :param test_plan_key: Test plan key (eg. 'PLAN-001'). :param test_exec_key: Test execution Key which should no longer be associate with the test plan (eg. 'TEST-100') :return:
Source code in server/vendor/atlassian/xray.py
377 378 379 380 381 382 383 384 385 |
|
delete_test_from_precondition(precondition_key, test_key)
Remove association of the specified tests from the given pre-condition. :param precondition_key: Precondition key (eg. 'TEST-001'). :param test_key: Test Key which should no longer be associate with the pre-condition (eg. 'TEST-100') :return:
Source code in server/vendor/atlassian/xray.py
252 253 254 255 256 257 258 259 260 |
|
delete_test_from_test_execution(test_exec_key, test_key)
Remove association of the specified tests from the given test execution. :param test_exec_key: Test execution key (eg. 'EXEC-001'). :param test_key: Test Key which should no longer be associate with the test execution (eg. 'TEST-100') :return:
Source code in server/vendor/atlassian/xray.py
426 427 428 429 430 431 432 433 434 |
|
delete_test_from_test_plan(test_plan_key, test_key)
Remove association of the specified tests from the given test plan. :param test_plan_key: Test plan key (eg. 'PLAN-001'). :param test_key: Test Key which should no longer be associate with the test plan (eg. 'TEST-100') :return:
Source code in server/vendor/atlassian/xray.py
342 343 344 345 346 347 348 349 350 |
|
delete_test_from_test_set(test_set_key, test_key)
Remove association of the specified tests from the given test set. :param test_set_key: Test set key (eg. 'SET-001'). :param test_key: Test Key which should no longer be associate with the test set (eg. 'TEST-100') :return:
Source code in server/vendor/atlassian/xray.py
297 298 299 300 301 302 303 304 305 |
|
delete_test_repo_folder(project_key, folder_id)
Delete test repository folder for a project. :param project_key: Project key (eg. 'FOO'). :param folder_id: Internal folder Id. :return: Returns the delete results.
Source code in server/vendor/atlassian/xray.py
584 585 586 587 588 589 590 591 592 |
|
delete_test_step(test_key, test_step_id)
Remove the specified test steps from a given test. :param test_key: Test key (eg. 'TEST-001'). :param test_step_id: ID of the test step. :return:
Source code in server/vendor/atlassian/xray.py
216 217 218 219 220 221 222 223 224 |
|
get_test_executions(test_key)
Retrieve test executions of a test. :param test_key: Test key (eg. 'TEST-001'). :return: Returns the exported test executions.
Source code in server/vendor/atlassian/xray.py
136 137 138 139 140 141 142 143 |
|
get_test_executions_with_test_plan(test_plan_key)
Retrieve test executions associated with the given test plan. :param test_plan_key: Test plan key (eg. 'PLAN-001'). :return: Return a list of the test executions associated with the test plan.
Source code in server/vendor/atlassian/xray.py
352 353 354 355 356 357 358 359 |
|
get_test_plans(test_key)
Retrieve test plans associated with a test. :param test_key: Test key (eg. 'TEST-001'). :return: Returns the exported test plans.
Source code in server/vendor/atlassian/xray.py
145 146 147 148 149 150 151 152 |
|
get_test_preconditions(test_key)
Retrieve pre-conditions of a test. :param test_key: Test key (eg. 'TEST-001'). :return: Returns the test pre-conditions of a given test.
Source code in server/vendor/atlassian/xray.py
118 119 120 121 122 123 124 125 |
|
get_test_repo_folder(project_key, folder_id)
Retrieve test repository folder of a project. :param project_key: Project key (eg. 'FOO'). :param folder_id: Internal folder ID. :return: Returns the test repository folder.
Source code in server/vendor/atlassian/xray.py
549 550 551 552 553 554 555 556 557 |
|
get_test_repo_folder_tests(project_key, folder_id, all_descendants=False, page=1, limit=50)
Retrieve tests of a test repository folder. :param project_key: Project key (eg. 'FOO'). :param folder_id: Internal folder ID. :param all_descendants: Include all descendants (i.e. all child Tests); "false", by default. :param page: Page of paginated data (first 1) :param limit: Amount of Tests per paginated data. :return: Returns list of the Tests contained in a given folder of the test repository. Note: param "page" and "limit" must coexist, otherwise rest api will raise 400
Source code in server/vendor/atlassian/xray.py
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 |
|
get_test_repo_folders(project_key)
Retrieve test repository folders of a project. :param project_key: Project key (eg. 'FOO'). :return: Returns the list of test repository folders.
Source code in server/vendor/atlassian/xray.py
540 541 542 543 544 545 546 547 |
|
get_test_run(test_run_id)
Retrieve detailed information about the given test run. :param test_run_id: ID of the test run (e.g. 100). :return: Returns detailed information about the test run.
Source code in server/vendor/atlassian/xray.py
437 438 439 440 441 442 443 444 |
|
get_test_run_assignee(test_run_id)
Retrieve the assignee for the given test run. :param test_run_id: ID of the test run (e.g. 100). :return: Returns the assignee for the given test run
Source code in server/vendor/atlassian/xray.py
446 447 448 449 450 451 452 453 |
|
get_test_run_comment(test_run_id)
Retrieve the comment for the given test run. :param test_run_id: ID of the test run (e.g. 100). :return: Returns the comment for the given test run
Source code in server/vendor/atlassian/xray.py
511 512 513 514 515 516 517 518 |
|
get_test_run_defects(test_run_id)
Retrieve the defects for the given test run. :param test_run_id: ID of the test run (e.g. 100). :return: Returns a list of defects for the given test run
Source code in server/vendor/atlassian/xray.py
486 487 488 489 490 491 492 493 |
|
get_test_run_status(test_run_id)
Retrieve the status for the given test run. :param test_run_id: ID of the test run (e.g. 100). :return: Returns the status for the given test run
Source code in server/vendor/atlassian/xray.py
466 467 468 469 470 471 472 473 |
|
get_test_run_steps(test_run_id)
Retrieve the steps for the given test run. :param test_run_id: ID of the test run (e.g. 100). :return: Returns the steps for the given test run
Source code in server/vendor/atlassian/xray.py
531 532 533 534 535 536 537 538 |
|
get_test_runs(test_key)
Retrieve test runs of a test. :param test_key: Test key (eg. 'TEST-001'). :return: Returns the exported test runs.
Source code in server/vendor/atlassian/xray.py
44 45 46 47 48 49 50 51 |
|
get_test_runs_in_context(test_exec_key=None, test_key=None, test_plan_key=None, include_test_fields=None, saved_filter_id=None, limit=None, page=None)
Retrieves all the Test Runs from a given context. With this endpoint you can obtain all the Test Runs (paginated) in one of the following contexts: * In a Test Execution issue (use testKey to limit to single test) * In a Test Plan issue * In a JQL filter that returns several Test Execution issue In case the Test Run has iterations, steps will not appear. However, if the Test has parameters but executed one time, it will show the steps and the parameters' info :param test_exec_key: The Test Execution issue key :param test_key: The Test issue key (may only be used when using the "test_exec_key" param) :param test_plan_key: The Test Plan issue key :param include_test_fields: List of custom fields of the Test issue to be return in the responde (several custom fields can be requested by separating them with ',') :param saved_filter_id: The Jira JQL filter ID or name containing Test Executions issues :param limit: The number of maximum Test Runs to be returned :param page: The number of the results page :return: Returns the exported test runs.
Source code in server/vendor/atlassian/xray.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
get_test_runs_with_environment(test_key, test_environments)
Retrieve test runs of a test filtered by tests environments. :param test_key: Test key (eg. 'TEST-001'). :param test_environments: Test execution environments separated by ','. :return: Returns the exported test runs.
Source code in server/vendor/atlassian/xray.py
106 107 108 109 110 111 112 113 114 115 116 |
|
get_test_sets(test_key)
Retrieve test sets associated with a test. :param test_key: Test key (eg. 'TEST-001'). :return: Returns the exported test sets.
Source code in server/vendor/atlassian/xray.py
127 128 129 130 131 132 133 134 |
|
get_test_statuses()
Retrieve a list of all Test Statuses available in Xray sorted by rank. :return: Returns the test statuses.
Source code in server/vendor/atlassian/xray.py
36 37 38 39 40 41 42 |
|
get_test_step(test_key, test_step_id)
Retrieve the specified test step of a given test. :param test_key: Test key (eg. 'TEST-001'). :param test_step_id: ID of the test step. :return: Return the test step with the given id.
Source code in server/vendor/atlassian/xray.py
163 164 165 166 167 168 169 170 171 |
|
get_test_step_statuses()
Retrieve the test step statuses available in Xray sorted by rank. :return: Returns the test step statuses available in Xray sorted by rank.
Source code in server/vendor/atlassian/xray.py
155 156 157 158 159 160 161 |
|
get_test_steps(test_key)
Retrieve the test steps of a given test. :param test_key: Test key (eg. 'TEST-001'). :return: Return the test steps of a given test.
Source code in server/vendor/atlassian/xray.py
173 174 175 176 177 178 179 180 |
|
get_tests(test_keys)
Retrieve information about the provided tests. :param test_keys: list of tests (eg. ['TEST-001', 'TEST-002']
) to retrieve. :return: Returns the retrieved tests.
Source code in server/vendor/atlassian/xray.py
27 28 29 30 31 32 33 34 |
|
get_tests_with_precondition(precondition_key)
Retrieve the tests associated with the given pre-condition. :param precondition_key: Precondition key (eg. 'TEST-001'). :return: Return a list of the test associated with the pre-condition.
Source code in server/vendor/atlassian/xray.py
227 228 229 230 231 232 233 234 |
|
get_tests_with_test_execution(test_exec_key, detailed=False, limit=None, page=None)
Retrieve the tests associated with the given test execution. :param test_exec_key: Test execution key (eg. 'EXEC-001'). :param detailed: OPTIONAL: (bool) Retrieve detailed information about the testrun :param limit: OPTIONAL: Limits the number of results per page. :param page: OPTIONAL: Number of the page to be returned. :return: Return a list of the test associated with the test execution.
Source code in server/vendor/atlassian/xray.py
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 |
|
get_tests_with_test_plan(test_plan_key, limit=None, page=None)
Retrieve the tests associated with the given test plan. :param test_plan_key: Test set key (eg. 'PLAN-001'). :param limit: OPTIONAL: Limits the number of results per page. :param page: OPTIONAL: Number of the page to be returned. :return: Return a list of the test associated with the test plan.
Source code in server/vendor/atlassian/xray.py
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 |
|
get_tests_with_test_set(test_set_key, limit=None, page=None)
Retrieve the tests associated with the given test set. :param test_set_key: Test set key (eg. 'SET-001'). :param limit: OPTIONAL: Limits the number of results per page. :param page: OPTIONAL: Number of the page to be returned. :return: Return a list of the test associated with the test set.
Source code in server/vendor/atlassian/xray.py
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
|
resource_url(resource, api_root=None, api_version=None)
Overloading the method from AtlassianRestAPI to be compatible with the "middle man" version used by Xray.
Source code in server/vendor/atlassian/xray.py
16 17 18 19 20 21 22 23 24 |
|
update_precondition(precondition_key, add=None, remove=None)
Associate tests with the given pre-condition. :param precondition_key: Precondition key (eg. 'TEST-001'). :param add: OPTIONAL: List of Test Keys to associate with the pre-condition (eg. ['TEST-2', 'TEST-3']) :param remove: OPTIONAL: List of Test Keys no longer associate with the pre-condition (eg. ['TEST-4', 'TEST-5']) :return:
Source code in server/vendor/atlassian/xray.py
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
|
update_test_execution(test_exec_key, add=None, remove=None)
Associate tests with the given test execution. :param test_exec_key: Test execution key (eg. 'EXEC-001'). :param add: OPTIONAL: List of Test Keys to associate with the test execution (eg. ['TEST-2', 'TEST-3']) :param remove: OPTIONAL: List of Test Keys no longer associate with the test execution (eg. ['TEST-4', 'TEST-5']) :return:
Source code in server/vendor/atlassian/xray.py
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 |
|
update_test_plan(test_plan_key, add=None, remove=None)
Associate tests with the given test plan. :param test_plan_key: Test plan key (eg. 'PLAN-001'). :param add: OPTIONAL: List of Test Keys to associate with the test plan (eg. ['TEST-002', 'TEST-003']) :param remove: OPTIONAL: List of Test Keys no longer associate with the test plan (eg. ['TEST-004', 'TEST-005']) :return:
Source code in server/vendor/atlassian/xray.py
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 |
|
update_test_plan_test_executions(test_plan_key, add=None, remove=None)
Associate test executions with the given test plan. :param test_plan_key: Test plan key (eg. 'PLAN-001'). :param add: OPTIONAL: List of Test Keys to associate with the test plan (eg. ['TEST-002', 'TEST-003']) :param remove: OPTIONAL: List of Test Keys no longer associate with the test plan (eg. ['TEST-004', 'TEST-005']) :return:
Source code in server/vendor/atlassian/xray.py
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
|
update_test_repo_folder(project_key, folder_id, folder_name, rank=1)
Update test repository folder for a project. :param project_key: Project key (eg. 'FOO'). :param folder_id: Internal folder ID. :param folder_name: Name of folder. :param rank: Rank within the parent folder. :return: Returns the updated test repository folder.
Source code in server/vendor/atlassian/xray.py
571 572 573 574 575 576 577 578 579 580 581 582 |
|
update_test_repo_folder_tests(project_key, folder_id, add=None, remove=None)
Update tests of a test repository folder. :param project_key: Project key (eg. 'FOO'). :param folder_id: Internal folder Id. :param add: OPTIONAL: List of tests to be added (eg. ['TEST-001', 'TEST-002']) :param remove: OPTIONAL: List of tests to be removed (eg. ['TEST-003']) :return: Returns the update result.
Source code in server/vendor/atlassian/xray.py
617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 |
|
update_test_run_assignee(test_run_id, assignee)
Update the assignee for the given test run. :param test_run_id: ID of the test run (eg. 100). :param assignee: Assignee id (eg. 'bob') :return:
Source code in server/vendor/atlassian/xray.py
455 456 457 458 459 460 461 462 463 464 |
|
update_test_run_comment(test_run_id, comment)
Update the comment for the given test run. :param test_run_id: ID of the test run (eg. 100). :param comment: Comment (e.g. 'Test needs to be reworked') :return:
Source code in server/vendor/atlassian/xray.py
520 521 522 523 524 525 526 527 528 529 |
|
update_test_run_defects(test_run_id, add=None, remove=None)
Update the defects associated with the given test run. :param test_run_id: ID of the test run (eg. 100). :param add: OPTIONAL: List of defects to associate to the test run (eg. ['BUG-001', 'BUG-002']) :param remove: OPTIONAL: List of defects which no longer need to be associated to the test run (eg. ['BUG-003']) :return:
Source code in server/vendor/atlassian/xray.py
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 |
|
update_test_run_status(test_run_id, status)
Update the status for the given test run. :param test_run_id: ID of the test run (e.g. 100). :param status: Status id (eg. 'PASS') :return:
Source code in server/vendor/atlassian/xray.py
475 476 477 478 479 480 481 482 483 484 |
|
update_test_set(test_set_key, add=None, remove=None)
Associate tests with the given test set. :param test_set_key: Test set key (eg. 'SET-001'). :param add: OPTIONAL: List of Test Keys to associate with the test set (eg. ['TEST-002', 'TEST-003']) :param remove: OPTIONAL: List of Test Keys no longer associate with the test set (eg. ['TEST-004', 'TEST-005']) :return:
Source code in server/vendor/atlassian/xray.py
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 |
|
update_test_step(test_key, test_step_id, step, data, result)
Update the specified test steps for a given test. NOTE: attachments are currently not supported! :param test_key: Test key (eg. 'TEST-001'). :param test_step_id: ID of the test step. :param step: Test Step name (eg. 'Example step'). :param data: Test Step data (eg. 'Example data'). :param result: Test Step results (eg. 'Example results'). :return:
Source code in server/vendor/atlassian/xray.py
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
|