Hierarchy (View Summary)

Implements

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient

Methods

  • Delete test suite.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan that contains the suite.

    • suiteId: number

      ID of the test suite to delete.

    Returns Promise<void>

  • Get a particular Test Point from a suite.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan for which test points are requested.

    • suiteId: number

      ID of the test suite for which test points are requested.

    • pointId: string

      ID of test point to be fetched.

    • OptionalreturnIdentityRef: boolean

      If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.

    • OptionalincludePointDetails: boolean

      If set to false, will get a smaller payload containing only basic details about the test point object

    Returns Promise<TestPoint[]>

  • Get all the points inside a suite based on some filters

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan for which test points are requested.

    • suiteId: number

      ID of the test suite for which test points are requested

    • OptionaltestPointIds: string

      ID of test points to fetch.

    • OptionaltestCaseId: string

      Get Test Points for specific test case Ids.

    • OptionalcontinuationToken: string

      If the list of test point returned is not complete, a continuation token to query next batch of test points is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test points.

    • OptionalreturnIdentityRef: boolean

      If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.

    • OptionalincludePointDetails: boolean

      If set to false, will get a smaller payload containing only basic details about the test point object

    • OptionalisRecursive: boolean

      If set to true, will also fetch test points belonging to child suites recursively.

    Returns Promise<PagedList<TestPoint>>

  • Get a particular Test Case from a Suite.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan for which test cases are requested.

    • suiteId: number

      ID of the test suite for which test cases are requested.

    • testCaseId: string

      Test Case Id to be fetched.

    • OptionalwitFields: string

      Get the list of witFields.

    • OptionalreturnIdentityRef: boolean

      If set to true, returns all identity fields, like AssignedTo, ActivatedBy etc., as IdentityRef objects. If set to false, these fields are returned as unique names in string format. This is false by default.

    Returns Promise<TestCase[]>

  • Get Test Case List return those test cases which have all the configuration Ids as mentioned in the optional parameter. If configuration Ids is null, it return all the test cases

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan for which test cases are requested.

    • suiteId: number

      ID of the test suite for which test cases are requested.

    • OptionaltestIds: string

      Test Case Ids to be fetched.

    • OptionalconfigurationIds: string

      Fetch Test Cases which contains all the configuration Ids specified.

    • OptionalwitFields: string

      Get the list of witFields.

    • OptionalcontinuationToken: string

      If the list of test cases returned is not complete, a continuation token to query next batch of test cases is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test cases.

    • OptionalreturnIdentityRef: boolean

      If set to true, returns all identity fields, like AssignedTo, ActivatedBy etc., as IdentityRef objects. If set to false, these fields are returned as unique names in string format. This is false by default.

    • Optionalexpand: boolean

      If set to false, will get a smaller payload containing only basic details about the suite test case object

    • OptionalexcludeFlags: ExcludeFlags

      Flag to exclude various values from payload. For example to remove point assignments pass exclude = 1. To remove extra information (links, test plan , test suite) pass exclude = 2. To remove both extra information and point assignments pass exclude = 3 (1 + 2).

    • OptionalisRecursive: boolean

    Returns Promise<PagedList<TestCase>>

  • Get a list of test plans

    Parameters

    • project: string

      Project ID or project name

    • Optionalowner: string

      Filter for test plan by owner ID or name

    • OptionalcontinuationToken: string

      If the list of plans returned is not complete, a continuation token to query next batch of plans is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test plans.

    • OptionalincludePlanDetails: boolean

      Get all properties of the test plan

    • OptionalfilterActivePlans: boolean

      Get just the active plans

    Returns Promise<PagedList<TestPlan>>

  • Get test suites for plan.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan for which suites are requested.

    • Optionalexpand: SuiteExpand

      Include the children suites and testers details.

    • OptionalcontinuationToken: string

      If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites.

    • OptionalasTreeView: boolean

      If the suites returned should be in a tree structure.

    Returns Promise<PagedList<TestSuite>>

  • Get a list of test variables.

    Parameters

    • project: string

      Project ID or project name

    • OptionalcontinuationToken: string

      If the list of variables returned is not complete, a continuation token to query next batch of variables is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test variables.

    Returns Promise<PagedList<TestVariable>>

  • Removes test cases from a suite based on the list of test case Ids provided.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan from which test cases are to be removed.

    • suiteId: number

      ID of the test suite from which test cases are to be removed.

    • testCaseIds: string

      Test Case Ids to be removed.

    Returns Promise<void>

  • Removes test cases from a suite based on the list of test case Ids provided. This API can be used to remove a larger number of test cases.

    Parameters

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan from which test cases are to be removed.

    • suiteId: number

      ID of the test suite from which test cases are to be removed.

    • testIds: string

      Comma separated string of Test Case Ids to be removed.

    Returns Promise<void>

  • Update Test Points. This is used to Reset test point to active, update the outcome of a test point or update the tester of a test point

    Parameters

    • testPointUpdateParams: TestPointUpdateParams[]

      A TestPointUpdateParams Object.

    • project: string

      Project ID or project name

    • planId: number

      ID of the test plan for which test points are requested.

    • suiteId: number

      ID of the test suite for which test points are requested.

    • OptionalincludePointDetails: boolean

      If set to false, will get a smaller payload containing only basic details about the test point object

    • OptionalreturnIdentityRef: boolean

      If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.

    Returns Promise<TestPoint[]>