API Docs for:
Show:

TestLinkApi Class

TestLink API Client brings you a pure JavaScript Node-Module for TestLink tool

Methods

getBuildsForTestPlan

(
  • testPlanId
  • callback
)
Json Object

Retrieves Builds Created for TestPlan.

Parameters:

  • testPlanId Object
  • callback Function

Returns:

Json Object:

JSON Object for Builds

getExecCountersByBuild

(
  • testPlanId
  • callback
)
Json Object

Retrieves Execution Counters for Build

Parameters:

  • testPlanId Object
  • callback Function

Returns:

Json Object:

JSON Object for Execution Counters

getFirstLevelTestSuitesForTestProject

(
  • testProjectId
  • callback
)
Json Object

Retrieves First Level of TestSuites in a Project

Parameters:

  • testProjectId Object
  • callback Function

Returns:

Json Object:

JSON Object for TestSuite

getFullPath

(
  • nodeId
  • callback
)
Json Object

Retrieves Full Path for a Node

Parameters:

  • nodeId Object
  • callback Function

Returns:

Json Object:

JSON Object for FullPath

getLastExecutionResult

(
  • testPlanId
  • testCaseExternalId
  • callback
)
Json Object

Retrieves Last Execution Result for a TestCase

Parameters:

  • testPlanId Object
  • testCaseExternalId Object
  • callback Function

Returns:

Json Object:

JSON Object for Last Execution Result

getProjectPlatforms

(
  • testProjectId
  • callback
)
Json Object

Retrieves Platforms Assigned for Project.

Parameters:

  • testProjectId Object
  • callback Function

Returns:

Json Object:

JSON Object for Project Platforms

getProjects

(
  • callback
)
Json Object

Retrieves Created Test Projects.

Parameters:

  • callback Function

Returns:

Json Object:

JSON Object for Project(s)

getProjectTestPlans

(
  • testProjectId
  • callback
)
Json Object

Retrieves TestPlans Created for Project.

Parameters:

  • testProjectId Object
  • callback Function

Returns:

Json Object:

JSON Object for Project TestPlan(s)

getTestCase

(
  • callback
  • testCaseExternalId
)
Json Object

Retrieves Created TestCase based on External Id.

Parameters:

  • callback Function
  • testCaseExternalId Object

Returns:

Json Object:

JSON Object for TestCase

getTestCaseAttachments

(
  • testCaseExternalId
  • downloadPath
  • callback
)

Get attached files for a TestCase.

Parameters:

  • testCaseExternalId Object
  • downloadPath Object
  • callback Function

getTestCaseCustomFieldDesignValue

(
  • testProjectId
  • testCaseExternalId
  • customFieldName
  • details
  • version
  • callback
)
Json Object

Retrieves Custom Field Design Value Created for TestCase.

Parameters:

  • testProjectId Object
  • testCaseExternalId Object
  • customFieldName Object
  • details Object
  • version Object
  • callback Function

Returns:

Json Object:

JSON Object for TestCase Custom field Value

getTestCaseIDByName

(
  • testCaseName
  • callback
)
Json Object

Retrieves Created TestCase based on Id

Parameters:

  • testCaseName Object
  • callback Function

Returns:

Json Object:

JSON Object for TestCase

getTestCasesForTestPlan

(
  • testPlanId
  • callback
)
Json object

Retrieves Created TestCase(s) for a TestPlan

Parameters:

  • testPlanId Object
  • callback Function

Returns:

Json object:

JSON Object for TestCases(s)

getTestCasesForTestSuite

(
  • testProjectId
  • testSuiteId
  • callback
)
Json Object

Retrieves Created TestCase(s) for a TestSuite

Parameters:

  • testProjectId Object
  • testSuiteId Object
  • callback Function

Returns:

Json Object:

JSON Object for TestCases(s)

getTestLinkVersion

(
  • callback
)
Json Object

Retrieves TestList Version.

Parameters:

  • callback Function

Returns:

Json Object:

JSON Object for version

getTestPlanByName

(
  • testProjectName
  • testPlanName
  • callback
)
Json Object

Retrieves TestPlan and its Properties

Parameters:

  • testProjectName Object
  • testPlanName Object
  • callback Function

Returns:

Json Object:

JSON Object for TestPlan

getTestPlanPlatforms

(
  • testPlanId
  • callback
)
Json Object

Retrieves Platforms Assigned for TestPlan

Parameters:

  • testPlanId Object
  • callback Function

Returns:

Json Object:

JSON Object for Platform

getTestProjectByName

(
  • testProjectName
  • callback
)
Json Object

Retrieves TestProject and its Properties

Parameters:

  • testProjectName Object
  • callback Function

Returns:

Json Object:

JSON Object for Project

getTestSuitesForTestPlan

(
  • testPlanId
  • callback
)
Json Object

Retrieves TestSuites created for TestPlan(s)

Parameters:

  • testPlanId Object
  • callback Function

Returns:

Json Object:

JSON Object for TestSuite

getTestSuitesForTestSuite

(
  • testSuiteId
  • callback
)
Json Object

Retrieves Child TestSuite(s) created under a TestSuite(s)

Parameters:

  • testSuiteId Object
  • callback Function

Returns:

Json Object:

JSON Object for TestSuite

getUserByID

(
  • userId
  • callback
)
Json Object

Retrieves User and user properties

Parameters:

  • userId Object
  • callback Function

Returns:

Json Object:

JSON Object for User

getUserByLogin

(
  • user
  • callback
)
Json Object

Retrieves LoggedIn User and properties

Parameters:

  • user Object
  • callback Function

Returns:

Json Object:

JSON Object for User

removePlatformFromTestPlan

(
  • testPlanId
  • platformName
  • callback
)
Json Object

Un-Assign a Platform for a given TestPlan

Parameters:

  • testPlanId Object
  • platformName Object
  • callback Function

Returns:

Json Object:

JSON Object for a PlatformTestPlan

reportTCResult

(
  • testPlanId
  • testCaseExternalId
  • buildId
  • notes
  • status
  • platformName
  • user
  • bugId
  • callback
)
Json object

Update Result for a given TestCase.

Parameters:

  • testPlanId Object
  • testCaseExternalId Object
  • buildId Object
  • notes Object
  • status Object
  • platformName Object
  • user Object
  • bugId Object
  • callback Function

Returns:

Json object:

JSON Object for TestCase Result

reportTCResultOverwrite

(
  • testPlanId
  • testCaseExternalId
  • buildId
  • notes
  • status
  • platformName
  • overwrite
  • user
  • bugId
  • callback
)
Json object

Overwrite Result for a given TestCase.

Parameters:

  • testPlanId Object
  • testCaseExternalId Object
  • buildId Object
  • notes Object
  • status Object
  • platformName Object
  • overwrite Object
  • user Object
  • bugId Object
  • callback Function

Returns:

Json object:

JSON Object for TestCase Result

setTestCaseExecutionType

(
  • testProjectId
  • testCaseExternalId
  • executionType
  • callback
)
Json object

Set the Execution Type for a given TestCase.

Parameters:

  • testProjectId Object
  • testCaseExternalId Object
  • executionType Object
  • callback Function

Returns:

Json object:

JSON Object for TestCase Execution Type

updateTestCase

(
  • testCaseExternalId
  • version
  • summary
  • callback
)
Json object

Update TestCase Version and Summary.

Parameters:

  • testCaseExternalId Object
  • version Object
  • summary Object
  • callback Function

Returns:

Json object:

JSON Object for TestCase

updateTestCaseCustomFieldDesignValue

(
  • testProjectId
  • testCaseExternalId
  • version
  • customFieldName
  • customFieldValue
  • callback
)
Json object

Update TestCase Custom Field Design Values.

Parameters:

  • testProjectId Object
  • testCaseExternalId Object
  • version Object
  • customFieldName Object
  • customFieldValue Object
  • callback Function

Returns:

Json object:

JSON Object for TestCase

uploadTestCaseAttachment

(
  • testCaseId
  • fileName
  • uploadPath
  • callback
)

Uploads a Given file to TestCase

Parameters:

  • testCaseId Object
  • fileName Object
  • uploadPath Object
  • callback Function