forked from ChaitanyaQA/testlink-api-client
-
Notifications
You must be signed in to change notification settings - Fork 7
Methods
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.
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); });
required parameters: testplanid
var obj = {testplanid: "111111"};
tc.getBuildsForTestPlan(obj,function(callback){ console.log(callback); });
console.log (tc.getDevKey());
required parameters: nodeid
var obj = {nodeid:"555555"};
tc.getFullPath(obj,function(callback){ console.log(callback); });
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); });
console.log (tc.getUrl());
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); });