1 2 3 4 5 6 7 8 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 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922
|
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------
from msrest.serialization import Model
class BuildDefinitionReference(Model):
"""
The build definition reference resource
:param id: ID of the build definition
:type id: int
:param name: Name of the build definition
:type name: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, id=None, name=None):
super(BuildDefinitionReference, self).__init__()
self.id = id
self.name = name
class CloneOperationCommonResponse(Model):
"""
Common Response for clone operation
:param clone_statistics: Various statistics related to the clone operation
:type clone_statistics: :class:`CloneStatistics <azure.devops.v5_1.test_plan.models.CloneStatistics>`
:param completion_date: Completion data of the operation
:type completion_date: datetime
:param creation_date: Creation data of the operation
:type creation_date: datetime
:param links: Reference links
:type links: :class:`ReferenceLinks <azure.devops.v5_1.test_plan.models.ReferenceLinks>`
:param message: Message related to the job
:type message: str
:param op_id: Clone operation Id
:type op_id: int
:param state: Clone operation state
:type state: object
"""
_attribute_map = {
'clone_statistics': {'key': 'cloneStatistics', 'type': 'CloneStatistics'},
'completion_date': {'key': 'completionDate', 'type': 'iso-8601'},
'creation_date': {'key': 'creationDate', 'type': 'iso-8601'},
'links': {'key': 'links', 'type': 'ReferenceLinks'},
'message': {'key': 'message', 'type': 'str'},
'op_id': {'key': 'opId', 'type': 'int'},
'state': {'key': 'state', 'type': 'object'}
}
def __init__(self, clone_statistics=None, completion_date=None, creation_date=None, links=None, message=None, op_id=None, state=None):
super(CloneOperationCommonResponse, self).__init__()
self.clone_statistics = clone_statistics
self.completion_date = completion_date
self.creation_date = creation_date
self.links = links
self.message = message
self.op_id = op_id
self.state = state
class CloneOptions(Model):
"""
Clone options for cloning the test suite.
:param clone_requirements: If set to true requirements will be cloned
:type clone_requirements: bool
:param copy_all_suites: copy all suites from a source plan
:type copy_all_suites: bool
:param copy_ancestor_hierarchy: copy ancestor hierarchy
:type copy_ancestor_hierarchy: bool
:param destination_work_item_type: Name of the workitem type of the clone
:type destination_work_item_type: str
:param override_parameters: Key value pairs where the key value is overridden by the value.
:type override_parameters: dict
:param related_link_comment: Comment on the link that will link the new clone test case to the original Set null for no comment
:type related_link_comment: str
"""
_attribute_map = {
'clone_requirements': {'key': 'cloneRequirements', 'type': 'bool'},
'copy_all_suites': {'key': 'copyAllSuites', 'type': 'bool'},
'copy_ancestor_hierarchy': {'key': 'copyAncestorHierarchy', 'type': 'bool'},
'destination_work_item_type': {'key': 'destinationWorkItemType', 'type': 'str'},
'override_parameters': {'key': 'overrideParameters', 'type': '{str}'},
'related_link_comment': {'key': 'relatedLinkComment', 'type': 'str'}
}
def __init__(self, clone_requirements=None, copy_all_suites=None, copy_ancestor_hierarchy=None, destination_work_item_type=None, override_parameters=None, related_link_comment=None):
super(CloneOptions, self).__init__()
self.clone_requirements = clone_requirements
self.copy_all_suites = copy_all_suites
self.copy_ancestor_hierarchy = copy_ancestor_hierarchy
self.destination_work_item_type = destination_work_item_type
self.override_parameters = override_parameters
self.related_link_comment = related_link_comment
class CloneStatistics(Model):
"""
Clone Statistics Details.
:param cloned_requirements_count: Number of requirements cloned so far.
:type cloned_requirements_count: int
:param cloned_shared_steps_count: Number of shared steps cloned so far.
:type cloned_shared_steps_count: int
:param cloned_test_cases_count: Number of test cases cloned so far
:type cloned_test_cases_count: int
:param total_requirements_count: Total number of requirements to be cloned
:type total_requirements_count: int
:param total_test_cases_count: Total number of test cases to be cloned
:type total_test_cases_count: int
"""
_attribute_map = {
'cloned_requirements_count': {'key': 'clonedRequirementsCount', 'type': 'int'},
'cloned_shared_steps_count': {'key': 'clonedSharedStepsCount', 'type': 'int'},
'cloned_test_cases_count': {'key': 'clonedTestCasesCount', 'type': 'int'},
'total_requirements_count': {'key': 'totalRequirementsCount', 'type': 'int'},
'total_test_cases_count': {'key': 'totalTestCasesCount', 'type': 'int'}
}
def __init__(self, cloned_requirements_count=None, cloned_shared_steps_count=None, cloned_test_cases_count=None, total_requirements_count=None, total_test_cases_count=None):
super(CloneStatistics, self).__init__()
self.cloned_requirements_count = cloned_requirements_count
self.cloned_shared_steps_count = cloned_shared_steps_count
self.cloned_test_cases_count = cloned_test_cases_count
self.total_requirements_count = total_requirements_count
self.total_test_cases_count = total_test_cases_count
class CloneTestPlanOperationInformation(Model):
"""
Response for Test Plan clone operation
:param clone_operation_response: Various information related to the clone
:type clone_operation_response: :class:`CloneOperationCommonResponse <azure.devops.v5_1.test_plan.models.CloneOperationCommonResponse>`
:param clone_options: Test Plan Clone create parameters
:type clone_options: :class:`CloneOptions <azure.devops.v5_1.test_plan.models.CloneOptions>`
:param destination_test_plan: Information of destination Test Plan
:type destination_test_plan: :class:`TestPlan <azure.devops.v5_1.test_plan.models.TestPlan>`
:param source_test_plan: Information of source Test Plan
:type source_test_plan: :class:`SourceTestplanResponse <azure.devops.v5_1.test_plan.models.SourceTestplanResponse>`
"""
_attribute_map = {
'clone_operation_response': {'key': 'cloneOperationResponse', 'type': 'CloneOperationCommonResponse'},
'clone_options': {'key': 'cloneOptions', 'type': 'CloneOptions'},
'destination_test_plan': {'key': 'destinationTestPlan', 'type': 'TestPlan'},
'source_test_plan': {'key': 'sourceTestPlan', 'type': 'SourceTestplanResponse'}
}
def __init__(self, clone_operation_response=None, clone_options=None, destination_test_plan=None, source_test_plan=None):
super(CloneTestPlanOperationInformation, self).__init__()
self.clone_operation_response = clone_operation_response
self.clone_options = clone_options
self.destination_test_plan = destination_test_plan
self.source_test_plan = source_test_plan
class CloneTestPlanParams(Model):
"""
Parameters for Test Plan clone operation
:param clone_options: Test Plan Clone create parameters
:type clone_options: :class:`CloneOptions <azure.devops.v5_1.test_plan.models.CloneOptions>`
:param destination_test_plan: Information about destination Test Plan
:type destination_test_plan: :class:`DestinationTestPlanCloneParams <azure.devops.v5_1.test_plan.models.DestinationTestPlanCloneParams>`
:param source_test_plan: Information about source Test Plan
:type source_test_plan: :class:`SourceTestPlanInfo <azure.devops.v5_1.test_plan.models.SourceTestPlanInfo>`
"""
_attribute_map = {
'clone_options': {'key': 'cloneOptions', 'type': 'CloneOptions'},
'destination_test_plan': {'key': 'destinationTestPlan', 'type': 'DestinationTestPlanCloneParams'},
'source_test_plan': {'key': 'sourceTestPlan', 'type': 'SourceTestPlanInfo'}
}
def __init__(self, clone_options=None, destination_test_plan=None, source_test_plan=None):
super(CloneTestPlanParams, self).__init__()
self.clone_options = clone_options
self.destination_test_plan = destination_test_plan
self.source_test_plan = source_test_plan
class CloneTestSuiteOperationInformation(Model):
"""
Response for Test Suite clone operation
:param cloned_test_suite: Information of newly cloned Test Suite
:type cloned_test_suite: :class:`TestSuiteReferenceWithProject <azure.devops.v5_1.test_plan.models.TestSuiteReferenceWithProject>`
:param clone_operation_response: Various information related to the clone
:type clone_operation_response: :class:`CloneOperationCommonResponse <azure.devops.v5_1.test_plan.models.CloneOperationCommonResponse>`
:param clone_options: Test Plan Clone create parameters
:type clone_options: :class:`CloneOptions <azure.devops.v5_1.test_plan.models.CloneOptions>`
:param destination_test_suite: Information of destination Test Suite
:type destination_test_suite: :class:`TestSuiteReferenceWithProject <azure.devops.v5_1.test_plan.models.TestSuiteReferenceWithProject>`
:param source_test_suite: Information of source Test Suite
:type source_test_suite: :class:`TestSuiteReferenceWithProject <azure.devops.v5_1.test_plan.models.TestSuiteReferenceWithProject>`
"""
_attribute_map = {
'cloned_test_suite': {'key': 'clonedTestSuite', 'type': 'TestSuiteReferenceWithProject'},
'clone_operation_response': {'key': 'cloneOperationResponse', 'type': 'CloneOperationCommonResponse'},
'clone_options': {'key': 'cloneOptions', 'type': 'CloneOptions'},
'destination_test_suite': {'key': 'destinationTestSuite', 'type': 'TestSuiteReferenceWithProject'},
'source_test_suite': {'key': 'sourceTestSuite', 'type': 'TestSuiteReferenceWithProject'}
}
def __init__(self, cloned_test_suite=None, clone_operation_response=None, clone_options=None, destination_test_suite=None, source_test_suite=None):
super(CloneTestSuiteOperationInformation, self).__init__()
self.cloned_test_suite = cloned_test_suite
self.clone_operation_response = clone_operation_response
self.clone_options = clone_options
self.destination_test_suite = destination_test_suite
self.source_test_suite = source_test_suite
class CloneTestSuiteParams(Model):
"""
Parameters for Test Suite clone operation
:param clone_options: Test Plan Clone create parameters
:type clone_options: :class:`CloneOptions <azure.devops.v5_1.test_plan.models.CloneOptions>`
:param destination_test_suite: Information about destination Test Suite
:type destination_test_suite: :class:`DestinationTestSuiteInfo <azure.devops.v5_1.test_plan.models.DestinationTestSuiteInfo>`
:param source_test_suite: Information about source Test Suite
:type source_test_suite: :class:`SourceTestSuiteInfo <azure.devops.v5_1.test_plan.models.SourceTestSuiteInfo>`
"""
_attribute_map = {
'clone_options': {'key': 'cloneOptions', 'type': 'CloneOptions'},
'destination_test_suite': {'key': 'destinationTestSuite', 'type': 'DestinationTestSuiteInfo'},
'source_test_suite': {'key': 'sourceTestSuite', 'type': 'SourceTestSuiteInfo'}
}
def __init__(self, clone_options=None, destination_test_suite=None, source_test_suite=None):
super(CloneTestSuiteParams, self).__init__()
self.clone_options = clone_options
self.destination_test_suite = destination_test_suite
self.source_test_suite = source_test_suite
class Configuration(Model):
"""
Configuration of the Test Point
:param configuration_id: Id of the Configuration Assigned to the Test Point
:type configuration_id: int
"""
_attribute_map = {
'configuration_id': {'key': 'configurationId', 'type': 'int'}
}
def __init__(self, configuration_id=None):
super(Configuration, self).__init__()
self.configuration_id = configuration_id
class DestinationTestSuiteInfo(Model):
"""
Destination Test Suite information for Test Suite clone operation
:param id: Destination Suite Id
:type id: int
:param project: Destination Project Name
:type project: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'project': {'key': 'project', 'type': 'str'}
}
def __init__(self, id=None, project=None):
super(DestinationTestSuiteInfo, self).__init__()
self.id = id
self.project = project
class GraphSubjectBase(Model):
"""
:param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
:type _links: :class:`ReferenceLinks <azure.devops.v5_1.microsoft._visual_studio._services._web_api.models.ReferenceLinks>`
:param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
:type descriptor: str
:param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
:type display_name: str
:param url: This url is the full route to the source resource of this graph subject.
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, descriptor=None, display_name=None, url=None):
super(GraphSubjectBase, self).__init__()
self._links = _links
self.descriptor = descriptor
self.display_name = display_name
self.url = url
class IdentityRef(GraphSubjectBase):
"""
:param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
:type _links: :class:`ReferenceLinks <azure.devops.v5_1.microsoft._visual_studio._services._web_api.models.ReferenceLinks>`
:param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
:type descriptor: str
:param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
:type display_name: str
:param url: This url is the full route to the source resource of this graph subject.
:type url: str
:param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary
:type directory_alias: str
:param id:
:type id: str
:param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary
:type image_url: str
:param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary
:type inactive: bool
:param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType)
:type is_aad_identity: bool
:param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType)
:type is_container: bool
:param is_deleted_in_origin:
:type is_deleted_in_origin: bool
:param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef
:type profile_url: str
:param unique_name: Deprecated - use Domain+PrincipalName instead
:type unique_name: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'directory_alias': {'key': 'directoryAlias', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'image_url': {'key': 'imageUrl', 'type': 'str'},
'inactive': {'key': 'inactive', 'type': 'bool'},
'is_aad_identity': {'key': 'isAadIdentity', 'type': 'bool'},
'is_container': {'key': 'isContainer', 'type': 'bool'},
'is_deleted_in_origin': {'key': 'isDeletedInOrigin', 'type': 'bool'},
'profile_url': {'key': 'profileUrl', 'type': 'str'},
'unique_name': {'key': 'uniqueName', 'type': 'str'}
}
def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, is_deleted_in_origin=None, profile_url=None, unique_name=None):
super(IdentityRef, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url)
self.directory_alias = directory_alias
self.id = id
self.image_url = image_url
self.inactive = inactive
self.is_aad_identity = is_aad_identity
self.is_container = is_container
self.is_deleted_in_origin = is_deleted_in_origin
self.profile_url = profile_url
self.unique_name = unique_name
class LastResultDetails(Model):
"""
Last result details of test point.
:param date_completed: CompletedDate of LastResult.
:type date_completed: datetime
:param duration: Duration of LastResult.
:type duration: long
:param run_by: RunBy.
:type run_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._team_foundation._test_management._web_api.models.IdentityRef>`
"""
_attribute_map = {
'date_completed': {'key': 'dateCompleted', 'type': 'iso-8601'},
'duration': {'key': 'duration', 'type': 'long'},
'run_by': {'key': 'runBy', 'type': 'IdentityRef'}
}
def __init__(self, date_completed=None, duration=None, run_by=None):
super(LastResultDetails, self).__init__()
self.date_completed = date_completed
self.duration = duration
self.run_by = run_by
class NameValuePair(Model):
"""
Name value pair
:param name: Name
:type name: str
:param value: Value
:type value: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, name=None, value=None):
super(NameValuePair, self).__init__()
self.name = name
self.value = value
class PointAssignment(Configuration):
"""
Assignments for the Test Point
:param configuration_id: Id of the Configuration Assigned to the Test Point
:type configuration_id: int
:param configuration_name: Name of the Configuration Assigned to the Test Point
:type configuration_name: str
:param id: Id of the Test Point
:type id: int
:param tester: Tester Assigned to the Test Point
:type tester: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
"""
_attribute_map = {
'configuration_id': {'key': 'configurationId', 'type': 'int'},
'configuration_name': {'key': 'configurationName', 'type': 'str'},
'id': {'key': 'id', 'type': 'int'},
'tester': {'key': 'tester', 'type': 'IdentityRef'}
}
def __init__(self, configuration_id=None, configuration_name=None, id=None, tester=None):
super(PointAssignment, self).__init__(configuration_id=configuration_id)
self.configuration_name = configuration_name
self.id = id
self.tester = tester
class ReferenceLinks(Model):
"""
The class to represent a collection of REST reference links.
:param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only.
:type links: dict
"""
_attribute_map = {
'links': {'key': 'links', 'type': '{object}'}
}
def __init__(self, links=None):
super(ReferenceLinks, self).__init__()
self.links = links
class ReleaseEnvironmentDefinitionReference(Model):
"""
Reference to release environment resource.
:param definition_id: ID of the release definition that contains the release environment definition.
:type definition_id: int
:param environment_definition_id: ID of the release environment definition.
:type environment_definition_id: int
"""
_attribute_map = {
'definition_id': {'key': 'definitionId', 'type': 'int'},
'environment_definition_id': {'key': 'environmentDefinitionId', 'type': 'int'}
}
def __init__(self, definition_id=None, environment_definition_id=None):
super(ReleaseEnvironmentDefinitionReference, self).__init__()
self.definition_id = definition_id
self.environment_definition_id = environment_definition_id
class Results(Model):
"""
Results class for Test Point
:param outcome: Outcome of the Test Point
:type outcome: object
"""
_attribute_map = {
'outcome': {'key': 'outcome', 'type': 'object'}
}
def __init__(self, outcome=None):
super(Results, self).__init__()
self.outcome = outcome
class SourceTestPlanInfo(Model):
"""
Source Test Plan information for Test Plan clone operation
:param id: ID of the source Test Plan
:type id: int
:param suite_ids: Id of suites to be cloned inside source Test Plan
:type suite_ids: list of int
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'suite_ids': {'key': 'suiteIds', 'type': '[int]'}
}
def __init__(self, id=None, suite_ids=None):
super(SourceTestPlanInfo, self).__init__()
self.id = id
self.suite_ids = suite_ids
class SourceTestSuiteInfo(Model):
"""
Source Test Suite information for Test Suite clone operation
:param id: Id of the Source Test Suite
:type id: int
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'}
}
def __init__(self, id=None):
super(SourceTestSuiteInfo, self).__init__()
self.id = id
class SuiteEntryUpdateParams(Model):
"""
A suite entry defines properties for a test suite.
:param id: Id of the suite entry in the test suite: either a test case id or child suite id.
:type id: int
:param sequence_number: Sequence number for the suite entry object in the test suite.
:type sequence_number: int
:param suite_entry_type: Defines whether the entry is of type test case or suite.
:type suite_entry_type: object
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'sequence_number': {'key': 'sequenceNumber', 'type': 'int'},
'suite_entry_type': {'key': 'suiteEntryType', 'type': 'object'}
}
def __init__(self, id=None, sequence_number=None, suite_entry_type=None):
super(SuiteEntryUpdateParams, self).__init__()
self.id = id
self.sequence_number = sequence_number
self.suite_entry_type = suite_entry_type
class SuiteTestCaseCreateUpdateParameters(Model):
"""
Create and Update Suite Test Case Parameters
:param point_assignments: Configurations Ids
:type point_assignments: list of :class:`Configuration <azure.devops.v5_1.test_plan.models.Configuration>`
:param work_item: Id of Test Case to be updated or created
:type work_item: :class:`WorkItem <azure.devops.v5_1.test_plan.models.WorkItem>`
"""
_attribute_map = {
'point_assignments': {'key': 'pointAssignments', 'type': '[Configuration]'},
'work_item': {'key': 'workItem', 'type': 'WorkItem'}
}
def __init__(self, point_assignments=None, work_item=None):
super(SuiteTestCaseCreateUpdateParameters, self).__init__()
self.point_assignments = point_assignments
self.work_item = work_item
class TeamProjectReference(Model):
"""
Represents a shallow reference to a TeamProject.
:param abbreviation: Project abbreviation.
:type abbreviation: str
:param default_team_image_url: Url to default team identity image.
:type default_team_image_url: str
:param description: The project's description (if any).
:type description: str
:param id: Project identifier.
:type id: str
:param last_update_time: Project last update time.
:type last_update_time: datetime
:param name: Project name.
:type name: str
:param revision: Project revision.
:type revision: long
:param state: Project state.
:type state: object
:param url: Url to the full version of the object.
:type url: str
:param visibility: Project visibility.
:type visibility: object
"""
_attribute_map = {
'abbreviation': {'key': 'abbreviation', 'type': 'str'},
'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'},
'name': {'key': 'name', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'long'},
'state': {'key': 'state', 'type': 'object'},
'url': {'key': 'url', 'type': 'str'},
'visibility': {'key': 'visibility', 'type': 'object'}
}
def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, last_update_time=None, name=None, revision=None, state=None, url=None, visibility=None):
super(TeamProjectReference, self).__init__()
self.abbreviation = abbreviation
self.default_team_image_url = default_team_image_url
self.description = description
self.id = id
self.last_update_time = last_update_time
self.name = name
self.revision = revision
self.state = state
self.url = url
self.visibility = visibility
class TestCase(Model):
"""
Test Case Class
:param links: Reference links
:type links: :class:`ReferenceLinks <azure.devops.v5_1.test_plan.models.ReferenceLinks>`
:param order: Order of the TestCase in the Suite
:type order: int
:param point_assignments: List of Points associated with the Test Case
:type point_assignments: list of :class:`PointAssignment <azure.devops.v5_1.test_plan.models.PointAssignment>`
:param project: Project under which the Test Case is
:type project: :class:`TeamProjectReference <azure.devops.v5_1.test_plan.models.TeamProjectReference>`
:param test_plan: Test Plan under which the Test Case is
:type test_plan: :class:`TestPlanReference <azure.devops.v5_1.test_plan.models.TestPlanReference>`
:param test_suite: Test Suite under which the Test Case is
:type test_suite: :class:`TestSuiteReference <azure.devops.v5_1.test_plan.models.TestSuiteReference>`
:param work_item: Work Item details of the TestCase
:type work_item: :class:`WorkItemDetails <azure.devops.v5_1.test_plan.models.WorkItemDetails>`
"""
_attribute_map = {
'links': {'key': 'links', 'type': 'ReferenceLinks'},
'order': {'key': 'order', 'type': 'int'},
'point_assignments': {'key': 'pointAssignments', 'type': '[PointAssignment]'},
'project': {'key': 'project', 'type': 'TeamProjectReference'},
'test_plan': {'key': 'testPlan', 'type': 'TestPlanReference'},
'test_suite': {'key': 'testSuite', 'type': 'TestSuiteReference'},
'work_item': {'key': 'workItem', 'type': 'WorkItemDetails'}
}
def __init__(self, links=None, order=None, point_assignments=None, project=None, test_plan=None, test_suite=None, work_item=None):
super(TestCase, self).__init__()
self.links = links
self.order = order
self.point_assignments = point_assignments
self.project = project
self.test_plan = test_plan
self.test_suite = test_suite
self.work_item = work_item
class TestCaseReference(Model):
"""
Test Case Reference
:param assigned_to: Identity to whom the test case is assigned
:type assigned_to: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param id: Test Case Id
:type id: int
:param name: Test Case Name
:type name: str
:param state: State of the test case work item
:type state: str
"""
_attribute_map = {
'assigned_to': {'key': 'assignedTo', 'type': 'IdentityRef'},
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'state': {'key': 'state', 'type': 'str'}
}
def __init__(self, assigned_to=None, id=None, name=None, state=None):
super(TestCaseReference, self).__init__()
self.assigned_to = assigned_to
self.id = id
self.name = name
self.state = state
class TestConfigurationCreateUpdateParameters(Model):
"""
Test Configuration Create or Update Parameters
:param description: Description of the configuration
:type description: str
:param is_default: Is the configuration a default for the test plans
:type is_default: bool
:param name: Name of the configuration
:type name: str
:param state: State of the configuration
:type state: object
:param values: Dictionary of Test Variable, Selected Value
:type values: list of :class:`NameValuePair <azure.devops.v5_1.test_plan.models.NameValuePair>`
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'is_default': {'key': 'isDefault', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'state': {'key': 'state', 'type': 'object'},
'values': {'key': 'values', 'type': '[NameValuePair]'}
}
def __init__(self, description=None, is_default=None, name=None, state=None, values=None):
super(TestConfigurationCreateUpdateParameters, self).__init__()
self.description = description
self.is_default = is_default
self.name = name
self.state = state
self.values = values
class TestConfigurationReference(Model):
"""
Test Configuration Reference
:param id: Id of the configuration
:type id: int
:param name: Name of the configuration
:type name: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, id=None, name=None):
super(TestConfigurationReference, self).__init__()
self.id = id
self.name = name
class TestEnvironment(Model):
"""
Test environment Detail.
:param environment_id: Test Environment Id.
:type environment_id: str
:param environment_name: Test Environment Name.
:type environment_name: str
"""
_attribute_map = {
'environment_id': {'key': 'environmentId', 'type': 'str'},
'environment_name': {'key': 'environmentName', 'type': 'str'}
}
def __init__(self, environment_id=None, environment_name=None):
super(TestEnvironment, self).__init__()
self.environment_id = environment_id
self.environment_name = environment_name
class TestOutcomeSettings(Model):
"""
Test outcome settings
:param sync_outcome_across_suites: Value to configure how test outcomes for the same tests across suites are shown
:type sync_outcome_across_suites: bool
"""
_attribute_map = {
'sync_outcome_across_suites': {'key': 'syncOutcomeAcrossSuites', 'type': 'bool'}
}
def __init__(self, sync_outcome_across_suites=None):
super(TestOutcomeSettings, self).__init__()
self.sync_outcome_across_suites = sync_outcome_across_suites
class TestPlanCreateParams(Model):
"""
The test plan create parameters.
:param area_path: Area of the test plan.
:type area_path: str
:param automated_test_environment:
:type automated_test_environment: :class:`TestEnvironment <azure.devops.v5_1.test_plan.models.TestEnvironment>`
:param automated_test_settings:
:type automated_test_settings: :class:`TestSettings <azure.devops.v5_1.test_plan.models.TestSettings>`
:param build_definition: The Build Definition that generates a build associated with this test plan.
:type build_definition: :class:`BuildDefinitionReference <azure.devops.v5_1.test_plan.models.BuildDefinitionReference>`
:param build_id: Build to be tested.
:type build_id: int
:param description: Description of the test plan.
:type description: str
:param end_date: End date for the test plan.
:type end_date: datetime
:param iteration: Iteration path of the test plan.
:type iteration: str
:param manual_test_environment:
:type manual_test_environment: :class:`TestEnvironment <azure.devops.v5_1.test_plan.models.TestEnvironment>`
:param manual_test_settings:
:type manual_test_settings: :class:`TestSettings <azure.devops.v5_1.test_plan.models.TestSettings>`
:param name: Name of the test plan.
:type name: str
:param owner: Owner of the test plan.
:type owner: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan.
:type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference <azure.devops.v5_1.test_plan.models.ReleaseEnvironmentDefinitionReference>`
:param start_date: Start date for the test plan.
:type start_date: datetime
:param state: State of the test plan.
:type state: str
:param test_outcome_settings: Value to configure how same tests across test suites under a test plan need to behave
:type test_outcome_settings: :class:`TestOutcomeSettings <azure.devops.v5_1.test_plan.models.TestOutcomeSettings>`
"""
_attribute_map = {
'area_path': {'key': 'areaPath', 'type': 'str'},
'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'},
'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'},
'build_definition': {'key': 'buildDefinition', 'type': 'BuildDefinitionReference'},
'build_id': {'key': 'buildId', 'type': 'int'},
'description': {'key': 'description', 'type': 'str'},
'end_date': {'key': 'endDate', 'type': 'iso-8601'},
'iteration': {'key': 'iteration', 'type': 'str'},
'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'},
'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'},
'name': {'key': 'name', 'type': 'str'},
'owner': {'key': 'owner', 'type': 'IdentityRef'},
'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'},
'start_date': {'key': 'startDate', 'type': 'iso-8601'},
'state': {'key': 'state', 'type': 'str'},
'test_outcome_settings': {'key': 'testOutcomeSettings', 'type': 'TestOutcomeSettings'}
}
def __init__(self, area_path=None, automated_test_environment=None, automated_test_settings=None, build_definition=None, build_id=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, test_outcome_settings=None):
super(TestPlanCreateParams, self).__init__()
self.area_path = area_path
self.automated_test_environment = automated_test_environment
self.automated_test_settings = automated_test_settings
self.build_definition = build_definition
self.build_id = build_id
self.description = description
self.end_date = end_date
self.iteration = iteration
self.manual_test_environment = manual_test_environment
self.manual_test_settings = manual_test_settings
self.name = name
self.owner = owner
self.release_environment_definition = release_environment_definition
self.start_date = start_date
self.state = state
self.test_outcome_settings = test_outcome_settings
class TestPlanReference(Model):
"""
The test plan reference resource.
:param id: ID of the test plan.
:type id: int
:param name: Name of the test plan.
:type name: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, id=None, name=None):
super(TestPlanReference, self).__init__()
self.id = id
self.name = name
class TestPlansHubRefreshData(Model):
"""
This data model is used in TestPlansHubRefreshDataProvider and populates the data required for initial page load
:param is_advanced_extension_enabled:
:type is_advanced_extension_enabled: bool
:param selected_suite_id:
:type selected_suite_id: int
:param selected_suite_name:
:type selected_suite_name: str
:param test_case_page_size:
:type test_case_page_size: int
:param test_cases:
:type test_cases: list of :class:`TestCase <azure.devops.v5_1.test_plan.models.TestCase>`
:param test_cases_continuation_token:
:type test_cases_continuation_token: str
:param test_plan:
:type test_plan: :class:`TestPlanDetailedReference <azure.devops.v5_1.test_plan.models.TestPlanDetailedReference>`
:param test_point_page_size:
:type test_point_page_size: int
:param test_points:
:type test_points: list of :class:`TestPoint <azure.devops.v5_1.test_plan.models.TestPoint>`
:param test_points_continuation_token:
:type test_points_continuation_token: str
:param test_suites:
:type test_suites: list of :class:`TestSuite <azure.devops.v5_1.test_plan.models.TestSuite>`
:param test_suites_continuation_token:
:type test_suites_continuation_token: str
"""
_attribute_map = {
'is_advanced_extension_enabled': {'key': 'isAdvancedExtensionEnabled', 'type': 'bool'},
'selected_suite_id': {'key': 'selectedSuiteId', 'type': 'int'},
'selected_suite_name': {'key': 'selectedSuiteName', 'type': 'str'},
'test_case_page_size': {'key': 'testCasePageSize', 'type': 'int'},
'test_cases': {'key': 'testCases', 'type': '[TestCase]'},
'test_cases_continuation_token': {'key': 'testCasesContinuationToken', 'type': 'str'},
'test_plan': {'key': 'testPlan', 'type': 'TestPlanDetailedReference'},
'test_point_page_size': {'key': 'testPointPageSize', 'type': 'int'},
'test_points': {'key': 'testPoints', 'type': '[TestPoint]'},
'test_points_continuation_token': {'key': 'testPointsContinuationToken', 'type': 'str'},
'test_suites': {'key': 'testSuites', 'type': '[TestSuite]'},
'test_suites_continuation_token': {'key': 'testSuitesContinuationToken', 'type': 'str'}
}
def __init__(self, is_advanced_extension_enabled=None, selected_suite_id=None, selected_suite_name=None, test_case_page_size=None, test_cases=None, test_cases_continuation_token=None, test_plan=None, test_point_page_size=None, test_points=None, test_points_continuation_token=None, test_suites=None, test_suites_continuation_token=None):
super(TestPlansHubRefreshData, self).__init__()
self.is_advanced_extension_enabled = is_advanced_extension_enabled
self.selected_suite_id = selected_suite_id
self.selected_suite_name = selected_suite_name
self.test_case_page_size = test_case_page_size
self.test_cases = test_cases
self.test_cases_continuation_token = test_cases_continuation_token
self.test_plan = test_plan
self.test_point_page_size = test_point_page_size
self.test_points = test_points
self.test_points_continuation_token = test_points_continuation_token
self.test_suites = test_suites
self.test_suites_continuation_token = test_suites_continuation_token
class TestPlanUpdateParams(TestPlanCreateParams):
"""
The test plan update parameters.
:param area_path: Area of the test plan.
:type area_path: str
:param automated_test_environment:
:type automated_test_environment: :class:`TestEnvironment <azure.devops.v5_1.test_plan.models.TestEnvironment>`
:param automated_test_settings:
:type automated_test_settings: :class:`TestSettings <azure.devops.v5_1.test_plan.models.TestSettings>`
:param build_definition: The Build Definition that generates a build associated with this test plan.
:type build_definition: :class:`BuildDefinitionReference <azure.devops.v5_1.test_plan.models.BuildDefinitionReference>`
:param build_id: Build to be tested.
:type build_id: int
:param description: Description of the test plan.
:type description: str
:param end_date: End date for the test plan.
:type end_date: datetime
:param iteration: Iteration path of the test plan.
:type iteration: str
:param manual_test_environment:
:type manual_test_environment: :class:`TestEnvironment <azure.devops.v5_1.test_plan.models.TestEnvironment>`
:param manual_test_settings:
:type manual_test_settings: :class:`TestSettings <azure.devops.v5_1.test_plan.models.TestSettings>`
:param name: Name of the test plan.
:type name: str
:param owner: Owner of the test plan.
:type owner: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan.
:type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference <azure.devops.v5_1.test_plan.models.ReleaseEnvironmentDefinitionReference>`
:param start_date: Start date for the test plan.
:type start_date: datetime
:param state: State of the test plan.
:type state: str
:param test_outcome_settings: Value to configure how same tests across test suites under a test plan need to behave
:type test_outcome_settings: :class:`TestOutcomeSettings <azure.devops.v5_1.test_plan.models.TestOutcomeSettings>`
:param revision: Revision of the test plan.
:type revision: int
"""
_attribute_map = {
'area_path': {'key': 'areaPath', 'type': 'str'},
'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'},
'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'},
'build_definition': {'key': 'buildDefinition', 'type': 'BuildDefinitionReference'},
'build_id': {'key': 'buildId', 'type': 'int'},
'description': {'key': 'description', 'type': 'str'},
'end_date': {'key': 'endDate', 'type': 'iso-8601'},
'iteration': {'key': 'iteration', 'type': 'str'},
'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'},
'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'},
'name': {'key': 'name', 'type': 'str'},
'owner': {'key': 'owner', 'type': 'IdentityRef'},
'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'},
'start_date': {'key': 'startDate', 'type': 'iso-8601'},
'state': {'key': 'state', 'type': 'str'},
'test_outcome_settings': {'key': 'testOutcomeSettings', 'type': 'TestOutcomeSettings'},
'revision': {'key': 'revision', 'type': 'int'}
}
def __init__(self, area_path=None, automated_test_environment=None, automated_test_settings=None, build_definition=None, build_id=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, test_outcome_settings=None, revision=None):
super(TestPlanUpdateParams, self).__init__(area_path=area_path, automated_test_environment=automated_test_environment, automated_test_settings=automated_test_settings, build_definition=build_definition, build_id=build_id, description=description, end_date=end_date, iteration=iteration, manual_test_environment=manual_test_environment, manual_test_settings=manual_test_settings, name=name, owner=owner, release_environment_definition=release_environment_definition, start_date=start_date, state=state, test_outcome_settings=test_outcome_settings)
self.revision = revision
class TestPoint(Model):
"""
Test Point Class
:param comment: Comment associated to the Test Point
:type comment: str
:param configuration: Configuration associated with the Test Point
:type configuration: :class:`TestConfigurationReference <azure.devops.v5_1.test_plan.models.TestConfigurationReference>`
:param id: Id of the Test Point
:type id: int
:param is_active: Variable to decide whether the test case is Active or not
:type is_active: bool
:param is_automated: Is the Test Point for Automated Test Case or Manual
:type is_automated: bool
:param last_reset_to_active: Last Reset to Active Time Stamp for the Test Point
:type last_reset_to_active: datetime
:param last_updated_by: Last Updated details for the Test Point
:type last_updated_by: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param last_updated_date: Last Update Time Stamp for the Test Point
:type last_updated_date: datetime
:param links: Reference links
:type links: :class:`ReferenceLinks <azure.devops.v5_1.test_plan.models.ReferenceLinks>`
:param project: Project under which the Test Point is
:type project: :class:`TeamProjectReference <azure.devops.v5_1.test_plan.models.TeamProjectReference>`
:param results: Results associated to the Test Point
:type results: :class:`TestPointResults <azure.devops.v5_1.test_plan.models.TestPointResults>`
:param test_case_reference: Test Case Reference
:type test_case_reference: :class:`TestCaseReference <azure.devops.v5_1.test_plan.models.TestCaseReference>`
:param tester: Tester associated with the Test Point
:type tester: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param test_plan: Test Plan under which the Test Point is
:type test_plan: :class:`TestPlanReference <azure.devops.v5_1.test_plan.models.TestPlanReference>`
:param test_suite: Test Suite under which the Test Point is
:type test_suite: :class:`TestSuiteReference <azure.devops.v5_1.test_plan.models.TestSuiteReference>`
"""
_attribute_map = {
'comment': {'key': 'comment', 'type': 'str'},
'configuration': {'key': 'configuration', 'type': 'TestConfigurationReference'},
'id': {'key': 'id', 'type': 'int'},
'is_active': {'key': 'isActive', 'type': 'bool'},
'is_automated': {'key': 'isAutomated', 'type': 'bool'},
'last_reset_to_active': {'key': 'lastResetToActive', 'type': 'iso-8601'},
'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'},
'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'},
'links': {'key': 'links', 'type': 'ReferenceLinks'},
'project': {'key': 'project', 'type': 'TeamProjectReference'},
'results': {'key': 'results', 'type': 'TestPointResults'},
'test_case_reference': {'key': 'testCaseReference', 'type': 'TestCaseReference'},
'tester': {'key': 'tester', 'type': 'IdentityRef'},
'test_plan': {'key': 'testPlan', 'type': 'TestPlanReference'},
'test_suite': {'key': 'testSuite', 'type': 'TestSuiteReference'}
}
def __init__(self, comment=None, configuration=None, id=None, is_active=None, is_automated=None, last_reset_to_active=None, last_updated_by=None, last_updated_date=None, links=None, project=None, results=None, test_case_reference=None, tester=None, test_plan=None, test_suite=None):
super(TestPoint, self).__init__()
self.comment = comment
self.configuration = configuration
self.id = id
self.is_active = is_active
self.is_automated = is_automated
self.last_reset_to_active = last_reset_to_active
self.last_updated_by = last_updated_by
self.last_updated_date = last_updated_date
self.links = links
self.project = project
self.results = results
self.test_case_reference = test_case_reference
self.tester = tester
self.test_plan = test_plan
self.test_suite = test_suite
class TestPointCount(Model):
"""
Test Point Count
:param count: Test Point Count
:type count: int
:param test_plan_id: Test Plan under which the Test Points are
:type test_plan_id: int
:param test_suite_id: Test Suite under which the Test Points are
:type test_suite_id: int
"""
_attribute_map = {
'count': {'key': 'count', 'type': 'int'},
'test_plan_id': {'key': 'testPlanId', 'type': 'int'},
'test_suite_id': {'key': 'testSuiteId', 'type': 'int'}
}
def __init__(self, count=None, test_plan_id=None, test_suite_id=None):
super(TestPointCount, self).__init__()
self.count = count
self.test_plan_id = test_plan_id
self.test_suite_id = test_suite_id
class TestPointResults(Model):
"""
Test Point Results
:param failure_type: Failure Type for the Test Point
:type failure_type: object
:param last_resolution_state: Last Resolution State Id for the TEst Point
:type last_resolution_state: object
:param last_result_details: Last Result Details for the Test Point
:type last_result_details: :class:`LastResultDetails <azure.devops.v5_1.test_plan.models.LastResultDetails>`
:param last_result_id: Last Result Id
:type last_result_id: int
:param last_result_state: Last Result State of the Test Point
:type last_result_state: object
:param last_run_build_number: Last RUn Build Number for the Test Point
:type last_run_build_number: str
:param last_test_run_id: Last Test Run Id for the Test Point
:type last_test_run_id: int
:param outcome: Outcome of the Test Point
:type outcome: object
:param state: State of the Test Point
:type state: object
"""
_attribute_map = {
'failure_type': {'key': 'failureType', 'type': 'object'},
'last_resolution_state': {'key': 'lastResolutionState', 'type': 'object'},
'last_result_details': {'key': 'lastResultDetails', 'type': 'LastResultDetails'},
'last_result_id': {'key': 'lastResultId', 'type': 'int'},
'last_result_state': {'key': 'lastResultState', 'type': 'object'},
'last_run_build_number': {'key': 'lastRunBuildNumber', 'type': 'str'},
'last_test_run_id': {'key': 'lastTestRunId', 'type': 'int'},
'outcome': {'key': 'outcome', 'type': 'object'},
'state': {'key': 'state', 'type': 'object'}
}
def __init__(self, failure_type=None, last_resolution_state=None, last_result_details=None, last_result_id=None, last_result_state=None, last_run_build_number=None, last_test_run_id=None, outcome=None, state=None):
super(TestPointResults, self).__init__()
self.failure_type = failure_type
self.last_resolution_state = last_resolution_state
self.last_result_details = last_result_details
self.last_result_id = last_result_id
self.last_result_state = last_result_state
self.last_run_build_number = last_run_build_number
self.last_test_run_id = last_test_run_id
self.outcome = outcome
self.state = state
class TestPointUpdateParams(Model):
"""
Test Point Update Parameters
:param id: Id of Test Point to be updated
:type id: int
:param is_active: Reset the Test Point to Active
:type is_active: bool
:param results: Results of the test point
:type results: :class:`Results <azure.devops.v5_1.test_plan.models.Results>`
:param tester: Tester of the Test Point
:type tester: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'is_active': {'key': 'isActive', 'type': 'bool'},
'results': {'key': 'results', 'type': 'Results'},
'tester': {'key': 'tester', 'type': 'IdentityRef'}
}
def __init__(self, id=None, is_active=None, results=None, tester=None):
super(TestPointUpdateParams, self).__init__()
self.id = id
self.is_active = is_active
self.results = results
self.tester = tester
class TestSettings(Model):
"""
Represents the test settings of the run. Used to create test settings and fetch test settings
:param area_path: Area path required to create test settings
:type area_path: str
:param description: Description of the test settings. Used in create test settings.
:type description: str
:param is_public: Indicates if the tests settings is public or private.Used in create test settings.
:type is_public: bool
:param machine_roles: Xml string of machine roles. Used in create test settings.
:type machine_roles: str
:param test_settings_content: Test settings content.
:type test_settings_content: str
:param test_settings_id: Test settings id.
:type test_settings_id: int
:param test_settings_name: Test settings name.
:type test_settings_name: str
"""
_attribute_map = {
'area_path': {'key': 'areaPath', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'is_public': {'key': 'isPublic', 'type': 'bool'},
'machine_roles': {'key': 'machineRoles', 'type': 'str'},
'test_settings_content': {'key': 'testSettingsContent', 'type': 'str'},
'test_settings_id': {'key': 'testSettingsId', 'type': 'int'},
'test_settings_name': {'key': 'testSettingsName', 'type': 'str'}
}
def __init__(self, area_path=None, description=None, is_public=None, machine_roles=None, test_settings_content=None, test_settings_id=None, test_settings_name=None):
super(TestSettings, self).__init__()
self.area_path = area_path
self.description = description
self.is_public = is_public
self.machine_roles = machine_roles
self.test_settings_content = test_settings_content
self.test_settings_id = test_settings_id
self.test_settings_name = test_settings_name
class TestSuiteCreateUpdateCommonParams(Model):
"""
Test Suite Create/Update Common Parameters
:param default_configurations: Test suite default configurations.
:type default_configurations: list of :class:`TestConfigurationReference <azure.devops.v5_1.test_plan.models.TestConfigurationReference>`
:param default_testers: Test suite default testers.
:type default_testers: list of :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param inherit_default_configurations: Default configuration was inherited or not.
:type inherit_default_configurations: bool
:param name: Name of test suite.
:type name: str
:param parent_suite: Test suite parent shallow reference.
:type parent_suite: :class:`TestSuiteReference <azure.devops.v5_1.test_plan.models.TestSuiteReference>`
:param query_string: Test suite query string, for dynamic suites.
:type query_string: str
"""
_attribute_map = {
'default_configurations': {'key': 'defaultConfigurations', 'type': '[TestConfigurationReference]'},
'default_testers': {'key': 'defaultTesters', 'type': '[IdentityRef]'},
'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'parent_suite': {'key': 'parentSuite', 'type': 'TestSuiteReference'},
'query_string': {'key': 'queryString', 'type': 'str'}
}
def __init__(self, default_configurations=None, default_testers=None, inherit_default_configurations=None, name=None, parent_suite=None, query_string=None):
super(TestSuiteCreateUpdateCommonParams, self).__init__()
self.default_configurations = default_configurations
self.default_testers = default_testers
self.inherit_default_configurations = inherit_default_configurations
self.name = name
self.parent_suite = parent_suite
self.query_string = query_string
class TestSuiteReference(Model):
"""
The test suite reference resource.
:param id: ID of the test suite.
:type id: int
:param name: Name of the test suite.
:type name: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, id=None, name=None):
super(TestSuiteReference, self).__init__()
self.id = id
self.name = name
class TestSuiteReferenceWithProject(TestSuiteReference):
"""
Test Suite Reference with Project
:param id: ID of the test suite.
:type id: int
:param name: Name of the test suite.
:type name: str
:param project: Reference of destination Project
:type project: :class:`TeamProjectReference <azure.devops.v5_1.test_plan.models.TeamProjectReference>`
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'project': {'key': 'project', 'type': 'TeamProjectReference'}
}
def __init__(self, id=None, name=None, project=None):
super(TestSuiteReferenceWithProject, self).__init__(id=id, name=name)
self.project = project
class TestSuiteUpdateParams(TestSuiteCreateUpdateCommonParams):
"""
Test Suite Update Parameters
:param default_configurations: Test suite default configurations.
:type default_configurations: list of :class:`TestConfigurationReference <azure.devops.v5_1.test_plan.models.TestConfigurationReference>`
:param default_testers: Test suite default testers.
:type default_testers: list of :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param inherit_default_configurations: Default configuration was inherited or not.
:type inherit_default_configurations: bool
:param name: Name of test suite.
:type name: str
:param parent_suite: Test suite parent shallow reference.
:type parent_suite: :class:`TestSuiteReference <azure.devops.v5_1.test_plan.models.TestSuiteReference>`
:param query_string: Test suite query string, for dynamic suites.
:type query_string: str
:param revision: Test suite revision.
:type revision: int
"""
_attribute_map = {
'default_configurations': {'key': 'defaultConfigurations', 'type': '[TestConfigurationReference]'},
'default_testers': {'key': 'defaultTesters', 'type': '[IdentityRef]'},
'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'parent_suite': {'key': 'parentSuite', 'type': 'TestSuiteReference'},
'query_string': {'key': 'queryString', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'}
}
def __init__(self, default_configurations=None, default_testers=None, inherit_default_configurations=None, name=None, parent_suite=None, query_string=None, revision=None):
super(TestSuiteUpdateParams, self).__init__(default_configurations=default_configurations, default_testers=default_testers, inherit_default_configurations=inherit_default_configurations, name=name, parent_suite=parent_suite, query_string=query_string)
self.revision = revision
class TestVariableCreateUpdateParameters(Model):
"""
Test Variable Create or Update Parameters
:param description: Description of the test variable
:type description: str
:param name: Name of the test variable
:type name: str
:param values: List of allowed values
:type values: list of str
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'values': {'key': 'values', 'type': '[str]'}
}
def __init__(self, description=None, name=None, values=None):
super(TestVariableCreateUpdateParameters, self).__init__()
self.description = description
self.name = name
self.values = values
class WorkItem(Model):
"""
Work Item
:param id: Id of the Work Item
:type id: int
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'}
}
def __init__(self, id=None):
super(WorkItem, self).__init__()
self.id = id
class WorkItemDetails(Model):
"""
Work Item Class
:param id: Work Item Id
:type id: int
:param name: Work Item Name
:type name: str
:param work_item_fields: Work Item Fields
:type work_item_fields: list of object
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'work_item_fields': {'key': 'workItemFields', 'type': '[object]'}
}
def __init__(self, id=None, name=None, work_item_fields=None):
super(WorkItemDetails, self).__init__()
self.id = id
self.name = name
self.work_item_fields = work_item_fields
class DestinationTestPlanCloneParams(TestPlanCreateParams):
"""
Destination Test Plan create parameters
:param area_path: Area of the test plan.
:type area_path: str
:param automated_test_environment:
:type automated_test_environment: :class:`TestEnvironment <azure.devops.v5_1.test_plan.models.TestEnvironment>`
:param automated_test_settings:
:type automated_test_settings: :class:`TestSettings <azure.devops.v5_1.test_plan.models.TestSettings>`
:param build_definition: The Build Definition that generates a build associated with this test plan.
:type build_definition: :class:`BuildDefinitionReference <azure.devops.v5_1.test_plan.models.BuildDefinitionReference>`
:param build_id: Build to be tested.
:type build_id: int
:param description: Description of the test plan.
:type description: str
:param end_date: End date for the test plan.
:type end_date: datetime
:param iteration: Iteration path of the test plan.
:type iteration: str
:param manual_test_environment:
:type manual_test_environment: :class:`TestEnvironment <azure.devops.v5_1.test_plan.models.TestEnvironment>`
:param manual_test_settings:
:type manual_test_settings: :class:`TestSettings <azure.devops.v5_1.test_plan.models.TestSettings>`
:param name: Name of the test plan.
:type name: str
:param owner: Owner of the test plan.
:type owner: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan.
:type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference <azure.devops.v5_1.test_plan.models.ReleaseEnvironmentDefinitionReference>`
:param start_date: Start date for the test plan.
:type start_date: datetime
:param state: State of the test plan.
:type state: str
:param test_outcome_settings: Value to configure how same tests across test suites under a test plan need to behave
:type test_outcome_settings: :class:`TestOutcomeSettings <azure.devops.v5_1.test_plan.models.TestOutcomeSettings>`
:param project: Destination Project Name
:type project: str
"""
_attribute_map = {
'area_path': {'key': 'areaPath', 'type': 'str'},
'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'},
'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'},
'build_definition': {'key': 'buildDefinition', 'type': 'BuildDefinitionReference'},
'build_id': {'key': 'buildId', 'type': 'int'},
'description': {'key': 'description', 'type': 'str'},
'end_date': {'key': 'endDate', 'type': 'iso-8601'},
'iteration': {'key': 'iteration', 'type': 'str'},
'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'},
'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'},
'name': {'key': 'name', 'type': 'str'},
'owner': {'key': 'owner', 'type': 'IdentityRef'},
'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'},
'start_date': {'key': 'startDate', 'type': 'iso-8601'},
'state': {'key': 'state', 'type': 'str'},
'test_outcome_settings': {'key': 'testOutcomeSettings', 'type': 'TestOutcomeSettings'},
'project': {'key': 'project', 'type': 'str'}
}
def __init__(self, area_path=None, automated_test_environment=None, automated_test_settings=None, build_definition=None, build_id=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, test_outcome_settings=None, project=None):
super(DestinationTestPlanCloneParams, self).__init__(area_path=area_path, automated_test_environment=automated_test_environment, automated_test_settings=automated_test_settings, build_definition=build_definition, build_id=build_id, description=description, end_date=end_date, iteration=iteration, manual_test_environment=manual_test_environment, manual_test_settings=manual_test_settings, name=name, owner=owner, release_environment_definition=release_environment_definition, start_date=start_date, state=state, test_outcome_settings=test_outcome_settings)
self.project = project
class SourceTestplanResponse(TestPlanReference):
"""
Source Test Plan Response for Test Plan clone operation
:param id: ID of the test plan.
:type id: int
:param name: Name of the test plan.
:type name: str
:param project: project reference
:type project: :class:`TeamProjectReference <azure.devops.v5_1.test_plan.models.TeamProjectReference>`
:param suite_ids: Id of suites to be cloned inside source Test Plan
:type suite_ids: list of int
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'project': {'key': 'project', 'type': 'TeamProjectReference'},
'suite_ids': {'key': 'suiteIds', 'type': '[int]'}
}
def __init__(self, id=None, name=None, project=None, suite_ids=None):
super(SourceTestplanResponse, self).__init__(id=id, name=name)
self.project = project
self.suite_ids = suite_ids
class SuiteEntry(SuiteEntryUpdateParams):
"""
A suite entry defines properties for a test suite.
:param id: Id of the suite entry in the test suite: either a test case id or child suite id.
:type id: int
:param sequence_number: Sequence number for the suite entry object in the test suite.
:type sequence_number: int
:param suite_entry_type: Defines whether the entry is of type test case or suite.
:type suite_entry_type: object
:param suite_id: Id for the test suite.
:type suite_id: int
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'sequence_number': {'key': 'sequenceNumber', 'type': 'int'},
'suite_entry_type': {'key': 'suiteEntryType', 'type': 'object'},
'suite_id': {'key': 'suiteId', 'type': 'int'}
}
def __init__(self, id=None, sequence_number=None, suite_entry_type=None, suite_id=None):
super(SuiteEntry, self).__init__(id=id, sequence_number=sequence_number, suite_entry_type=suite_entry_type)
self.suite_id = suite_id
class TestConfiguration(TestConfigurationCreateUpdateParameters):
"""
Test configuration
:param description: Description of the configuration
:type description: str
:param is_default: Is the configuration a default for the test plans
:type is_default: bool
:param name: Name of the configuration
:type name: str
:param state: State of the configuration
:type state: object
:param values: Dictionary of Test Variable, Selected Value
:type values: list of :class:`NameValuePair <azure.devops.v5_1.test_plan.models.NameValuePair>`
:param id: Id of the configuration
:type id: int
:param project: Id of the test configuration variable
:type project: :class:`TeamProjectReference <azure.devops.v5_1.test_plan.models.TeamProjectReference>`
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'is_default': {'key': 'isDefault', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'state': {'key': 'state', 'type': 'object'},
'values': {'key': 'values', 'type': '[NameValuePair]'},
'id': {'key': 'id', 'type': 'int'},
'project': {'key': 'project', 'type': 'TeamProjectReference'}
}
def __init__(self, description=None, is_default=None, name=None, state=None, values=None, id=None, project=None):
super(TestConfiguration, self).__init__(description=description, is_default=is_default, name=name, state=state, values=values)
self.id = id
self.project = project
class TestPlan(TestPlanUpdateParams):
"""
The test plan resource.
:param area_path: Area of the test plan.
:type area_path: str
:param automated_test_environment:
:type automated_test_environment: :class:`TestEnvironment <azure.devops.v5_1.test_plan.models.TestEnvironment>`
:param automated_test_settings:
:type automated_test_settings: :class:`TestSettings <azure.devops.v5_1.test_plan.models.TestSettings>`
:param build_definition: The Build Definition that generates a build associated with this test plan.
:type build_definition: :class:`BuildDefinitionReference <azure.devops.v5_1.test_plan.models.BuildDefinitionReference>`
:param build_id: Build to be tested.
:type build_id: int
:param description: Description of the test plan.
:type description: str
:param end_date: End date for the test plan.
:type end_date: datetime
:param iteration: Iteration path of the test plan.
:type iteration: str
:param manual_test_environment:
:type manual_test_environment: :class:`TestEnvironment <azure.devops.v5_1.test_plan.models.TestEnvironment>`
:param manual_test_settings:
:type manual_test_settings: :class:`TestSettings <azure.devops.v5_1.test_plan.models.TestSettings>`
:param name: Name of the test plan.
:type name: str
:param owner: Owner of the test plan.
:type owner: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param release_environment_definition: Release Environment to be used to deploy the build and run automated tests from this test plan.
:type release_environment_definition: :class:`ReleaseEnvironmentDefinitionReference <azure.devops.v5_1.test_plan.models.ReleaseEnvironmentDefinitionReference>`
:param start_date: Start date for the test plan.
:type start_date: datetime
:param state: State of the test plan.
:type state: str
:param test_outcome_settings: Value to configure how same tests across test suites under a test plan need to behave
:type test_outcome_settings: :class:`TestOutcomeSettings <azure.devops.v5_1.test_plan.models.TestOutcomeSettings>`
:param revision: Revision of the test plan.
:type revision: int
:param _links: Relevant links
:type _links: :class:`ReferenceLinks <azure.devops.v5_1.test_plan.models.ReferenceLinks>`
:param id: ID of the test plan.
:type id: int
:param previous_build_id: Previous build Id associated with the test plan
:type previous_build_id: int
:param project: Project which contains the test plan.
:type project: :class:`TeamProjectReference <azure.devops.v5_1.test_plan.models.TeamProjectReference>`
:param root_suite: Root test suite of the test plan.
:type root_suite: :class:`TestSuiteReference <azure.devops.v5_1.test_plan.models.TestSuiteReference>`
:param updated_by: Identity Reference for the last update of the test plan
:type updated_by: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param updated_date: Updated date of the test plan
:type updated_date: datetime
"""
_attribute_map = {
'area_path': {'key': 'areaPath', 'type': 'str'},
'automated_test_environment': {'key': 'automatedTestEnvironment', 'type': 'TestEnvironment'},
'automated_test_settings': {'key': 'automatedTestSettings', 'type': 'TestSettings'},
'build_definition': {'key': 'buildDefinition', 'type': 'BuildDefinitionReference'},
'build_id': {'key': 'buildId', 'type': 'int'},
'description': {'key': 'description', 'type': 'str'},
'end_date': {'key': 'endDate', 'type': 'iso-8601'},
'iteration': {'key': 'iteration', 'type': 'str'},
'manual_test_environment': {'key': 'manualTestEnvironment', 'type': 'TestEnvironment'},
'manual_test_settings': {'key': 'manualTestSettings', 'type': 'TestSettings'},
'name': {'key': 'name', 'type': 'str'},
'owner': {'key': 'owner', 'type': 'IdentityRef'},
'release_environment_definition': {'key': 'releaseEnvironmentDefinition', 'type': 'ReleaseEnvironmentDefinitionReference'},
'start_date': {'key': 'startDate', 'type': 'iso-8601'},
'state': {'key': 'state', 'type': 'str'},
'test_outcome_settings': {'key': 'testOutcomeSettings', 'type': 'TestOutcomeSettings'},
'revision': {'key': 'revision', 'type': 'int'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'id': {'key': 'id', 'type': 'int'},
'previous_build_id': {'key': 'previousBuildId', 'type': 'int'},
'project': {'key': 'project', 'type': 'TeamProjectReference'},
'root_suite': {'key': 'rootSuite', 'type': 'TestSuiteReference'},
'updated_by': {'key': 'updatedBy', 'type': 'IdentityRef'},
'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}
}
def __init__(self, area_path=None, automated_test_environment=None, automated_test_settings=None, build_definition=None, build_id=None, description=None, end_date=None, iteration=None, manual_test_environment=None, manual_test_settings=None, name=None, owner=None, release_environment_definition=None, start_date=None, state=None, test_outcome_settings=None, revision=None, _links=None, id=None, previous_build_id=None, project=None, root_suite=None, updated_by=None, updated_date=None):
super(TestPlan, self).__init__(area_path=area_path, automated_test_environment=automated_test_environment, automated_test_settings=automated_test_settings, build_definition=build_definition, build_id=build_id, description=description, end_date=end_date, iteration=iteration, manual_test_environment=manual_test_environment, manual_test_settings=manual_test_settings, name=name, owner=owner, release_environment_definition=release_environment_definition, start_date=start_date, state=state, test_outcome_settings=test_outcome_settings, revision=revision)
self._links = _links
self.id = id
self.previous_build_id = previous_build_id
self.project = project
self.root_suite = root_suite
self.updated_by = updated_by
self.updated_date = updated_date
class TestPlanDetailedReference(TestPlanReference):
"""
The test plan detailed reference resource. Contains additional workitem realted information
:param id: ID of the test plan.
:type id: int
:param name: Name of the test plan.
:type name: str
:param area_path: Area of the test plan.
:type area_path: str
:param end_date: End date for the test plan.
:type end_date: datetime
:param iteration: Iteration path of the test plan.
:type iteration: str
:param root_suite_id: Root Suite Id
:type root_suite_id: int
:param start_date: Start date for the test plan.
:type start_date: datetime
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'area_path': {'key': 'areaPath', 'type': 'str'},
'end_date': {'key': 'endDate', 'type': 'iso-8601'},
'iteration': {'key': 'iteration', 'type': 'str'},
'root_suite_id': {'key': 'rootSuiteId', 'type': 'int'},
'start_date': {'key': 'startDate', 'type': 'iso-8601'}
}
def __init__(self, id=None, name=None, area_path=None, end_date=None, iteration=None, root_suite_id=None, start_date=None):
super(TestPlanDetailedReference, self).__init__(id=id, name=name)
self.area_path = area_path
self.end_date = end_date
self.iteration = iteration
self.root_suite_id = root_suite_id
self.start_date = start_date
class TestSuiteCreateParams(TestSuiteCreateUpdateCommonParams):
"""
Test suite Create Parameters
:param default_configurations: Test suite default configurations.
:type default_configurations: list of :class:`TestConfigurationReference <azure.devops.v5_1.test_plan.models.TestConfigurationReference>`
:param default_testers: Test suite default testers.
:type default_testers: list of :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param inherit_default_configurations: Default configuration was inherited or not.
:type inherit_default_configurations: bool
:param name: Name of test suite.
:type name: str
:param parent_suite: Test suite parent shallow reference.
:type parent_suite: :class:`TestSuiteReference <azure.devops.v5_1.test_plan.models.TestSuiteReference>`
:param query_string: Test suite query string, for dynamic suites.
:type query_string: str
:param requirement_id: Test suite requirement id.
:type requirement_id: int
:param suite_type: Test suite type.
:type suite_type: object
"""
_attribute_map = {
'default_configurations': {'key': 'defaultConfigurations', 'type': '[TestConfigurationReference]'},
'default_testers': {'key': 'defaultTesters', 'type': '[IdentityRef]'},
'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'parent_suite': {'key': 'parentSuite', 'type': 'TestSuiteReference'},
'query_string': {'key': 'queryString', 'type': 'str'},
'requirement_id': {'key': 'requirementId', 'type': 'int'},
'suite_type': {'key': 'suiteType', 'type': 'object'}
}
def __init__(self, default_configurations=None, default_testers=None, inherit_default_configurations=None, name=None, parent_suite=None, query_string=None, requirement_id=None, suite_type=None):
super(TestSuiteCreateParams, self).__init__(default_configurations=default_configurations, default_testers=default_testers, inherit_default_configurations=inherit_default_configurations, name=name, parent_suite=parent_suite, query_string=query_string)
self.requirement_id = requirement_id
self.suite_type = suite_type
class TestVariable(TestVariableCreateUpdateParameters):
"""
Test Variable
:param description: Description of the test variable
:type description: str
:param name: Name of the test variable
:type name: str
:param values: List of allowed values
:type values: list of str
:param id: Id of the test variable
:type id: int
:param project: Id of the test variable
:type project: :class:`TeamProjectReference <azure.devops.v5_1.test_plan.models.TeamProjectReference>`
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'values': {'key': 'values', 'type': '[str]'},
'id': {'key': 'id', 'type': 'int'},
'project': {'key': 'project', 'type': 'TeamProjectReference'}
}
def __init__(self, description=None, name=None, values=None, id=None, project=None):
super(TestVariable, self).__init__(description=description, name=name, values=values)
self.id = id
self.project = project
class TestSuite(TestSuiteCreateParams):
"""
Test suite
:param default_configurations: Test suite default configurations.
:type default_configurations: list of :class:`TestConfigurationReference <azure.devops.v5_1.test_plan.models.TestConfigurationReference>`
:param default_testers: Test suite default testers.
:type default_testers: list of :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param inherit_default_configurations: Default configuration was inherited or not.
:type inherit_default_configurations: bool
:param name: Name of test suite.
:type name: str
:param parent_suite: Test suite parent shallow reference.
:type parent_suite: :class:`TestSuiteReference <azure.devops.v5_1.test_plan.models.TestSuiteReference>`
:param query_string: Test suite query string, for dynamic suites.
:type query_string: str
:param requirement_id: Test suite requirement id.
:type requirement_id: int
:param suite_type: Test suite type.
:type suite_type: object
:param _links: Links: self, testPoints, testCases, parent
:type _links: :class:`ReferenceLinks <azure.devops.v5_1.test_plan.models.ReferenceLinks>`
:param children: Child test suites of current test suite.
:type children: list of :class:`TestSuite <azure.devops.v5_1.test_plan.models.TestSuite>`
:param has_children: Boolean value dictating if Child test suites are present
:type has_children: bool
:param id: Id of test suite.
:type id: int
:param last_error: Last error for test suite.
:type last_error: str
:param last_populated_date: Last populated date.
:type last_populated_date: datetime
:param last_updated_by: IdentityRef of user who has updated test suite recently.
:type last_updated_by: :class:`IdentityRef <azure.devops.v5_1.test_plan.models.IdentityRef>`
:param last_updated_date: Last update date.
:type last_updated_date: datetime
:param plan: Test plan to which the test suite belongs.
:type plan: :class:`TestPlanReference <azure.devops.v5_1.test_plan.models.TestPlanReference>`
:param project: Test suite project shallow reference.
:type project: :class:`TeamProjectReference <azure.devops.v5_1.test_plan.models.TeamProjectReference>`
:param revision: Test suite revision.
:type revision: int
"""
_attribute_map = {
'default_configurations': {'key': 'defaultConfigurations', 'type': '[TestConfigurationReference]'},
'default_testers': {'key': 'defaultTesters', 'type': '[IdentityRef]'},
'inherit_default_configurations': {'key': 'inheritDefaultConfigurations', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'parent_suite': {'key': 'parentSuite', 'type': 'TestSuiteReference'},
'query_string': {'key': 'queryString', 'type': 'str'},
'requirement_id': {'key': 'requirementId', 'type': 'int'},
'suite_type': {'key': 'suiteType', 'type': 'object'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'children': {'key': 'children', 'type': '[TestSuite]'},
'has_children': {'key': 'hasChildren', 'type': 'bool'},
'id': {'key': 'id', 'type': 'int'},
'last_error': {'key': 'lastError', 'type': 'str'},
'last_populated_date': {'key': 'lastPopulatedDate', 'type': 'iso-8601'},
'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'IdentityRef'},
'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'},
'plan': {'key': 'plan', 'type': 'TestPlanReference'},
'project': {'key': 'project', 'type': 'TeamProjectReference'},
'revision': {'key': 'revision', 'type': 'int'}
}
def __init__(self, default_configurations=None, default_testers=None, inherit_default_configurations=None, name=None, parent_suite=None, query_string=None, requirement_id=None, suite_type=None, _links=None, children=None, has_children=None, id=None, last_error=None, last_populated_date=None, last_updated_by=None, last_updated_date=None, plan=None, project=None, revision=None):
super(TestSuite, self).__init__(default_configurations=default_configurations, default_testers=default_testers, inherit_default_configurations=inherit_default_configurations, name=name, parent_suite=parent_suite, query_string=query_string, requirement_id=requirement_id, suite_type=suite_type)
self._links = _links
self.children = children
self.has_children = has_children
self.id = id
self.last_error = last_error
self.last_populated_date = last_populated_date
self.last_updated_by = last_updated_by
self.last_updated_date = last_updated_date
self.plan = plan
self.project = project
self.revision = revision
__all__ = [
'BuildDefinitionReference',
'CloneOperationCommonResponse',
'CloneOptions',
'CloneStatistics',
'CloneTestPlanOperationInformation',
'CloneTestPlanParams',
'CloneTestSuiteOperationInformation',
'CloneTestSuiteParams',
'Configuration',
'DestinationTestSuiteInfo',
'GraphSubjectBase',
'IdentityRef',
'LastResultDetails',
'NameValuePair',
'PointAssignment',
'ReferenceLinks',
'ReleaseEnvironmentDefinitionReference',
'Results',
'SourceTestPlanInfo',
'SourceTestSuiteInfo',
'SuiteEntryUpdateParams',
'SuiteTestCaseCreateUpdateParameters',
'TeamProjectReference',
'TestCase',
'TestCaseReference',
'TestConfigurationCreateUpdateParameters',
'TestConfigurationReference',
'TestEnvironment',
'TestOutcomeSettings',
'TestPlanCreateParams',
'TestPlanReference',
'TestPlansHubRefreshData',
'TestPlanUpdateParams',
'TestPoint',
'TestPointCount',
'TestPointResults',
'TestPointUpdateParams',
'TestSettings',
'TestSuiteCreateUpdateCommonParams',
'TestSuiteReference',
'TestSuiteReferenceWithProject',
'TestSuiteUpdateParams',
'TestVariableCreateUpdateParameters',
'WorkItem',
'WorkItemDetails',
'DestinationTestPlanCloneParams',
'SourceTestplanResponse',
'SuiteEntry',
'TestConfiguration',
'TestPlan',
'TestPlanDetailedReference',
'TestSuiteCreateParams',
'TestVariable',
'TestSuite',
]
|