Skip to content
Jason Mavandi edited this page Jun 6, 2015 · 12 revisions

The hopefully in the future we will support all the methods that the java implementation supports.

createTestCase

required parameters: testprojectid testsuiteid testcasename authorlogin summary steps

var obj = {
    testprojectid:"54321",
    testsuiteid:"12234",
    testcasename:"Name of test case",
    authorlogin:"username",
    summary:"A summary"
};
tc.createTestCase(obj,function(callback){ console.log(callback); });

getBuildsForTestPlan

required parameters: testplanid

var obj = {testplanid: "111111"};
tc.getBuildsForTestPlan(obj,function(callback){ console.log(callback); });

getDevKey

console.log (tc.getDevKey());

getExecCountersByBuild

getFirstLevelTestSuitesForTestProject

getFullPath

required parameters: nodeid

var obj = {nodeid:"555555"};
tc.getFullPath(obj,function(callback){ console.log(callback); });

getLastExecutionResult

required parameters: testplanid

interchangeable parameters: testcaseexternalid testcaseid

var objExternal = {testplanid:"111111", testcaseexternalid:"TC-444444" };
tc.getLastExecutionResult(objExternal,function(callback){ console.log(callback); });

or

var objInternal = {testplanid:"111111", testcaseid:"222222" }
tc.getLastExecutionResult(objInternal,function(callback){ console.log(callback); });

getProjectPlatforms

getProjects

getProjectTestPlans

getTestCase

getTestCaseAttachments

getTestCaseCustomFieldDesignValue

getTestCaseIDByName

getTestCasesForTestPlan

getTestCasesForTestSuite

getTestLinkVersion

getTestPlanByName

getTestPlanPlatforms

getTestProjectByName

getTestSuitesForTestPlan

getTestSuitesForTestSuite

getUrl

console.log (tc.getUrl());

getUserByID

getUserByLogin

removePlatformFromTestPlan

reportTCResult

required parameters: user testplanid buildid status

interchangeable parameters: testcaseexternalid testcaseid

optional parameters: overwrite

var objExternal = {
    user: "username",
    testplanid: "111111",
    buildid: "7777",
    testcaseexternalid: "TC-444444",
    notes: "",
    status: "p",
    overwrite: "true"
};
tc.reportTCResult(objInternal,function(callback){ console.log(callback); });

or

var objInternal = {
    user: "usernam",
    testplanid: "111111",
    buildid: "7777",
    testcaseid: "222222",
    notes: "",
    status: "f",
};
tc.reportTCResult(objInternal,function(callback){ console.log(callback); });

setTestCaseExecutionType

updateTestCase

updateTestCaseCustomFieldDesignValue

uploadTestCaseAttachment