Class: TestlinkXMLRPCServer
Source Location: /xmlrpc.class.php
Class TestlinkXMLRPCServer
Class Overview
The entry class for serving XML-RPC Requests
See examples for additional detail
Located in /xmlrpc.class.php [line 50]
IXR_Server
|
--TestlinkXMLRPCServer
Author(s):
API Tags:
Information Tags:
Version: | 1.0 |
Since: | Class available since Release 1.8.0 |
|
Properties
|
Methods
|
Property Summary
static mixed |
$activeParamName |
string for parameter names are all defined statically |
static mixed |
$bugIDParamName |
string for parameter names are all defined statically |
static mixed |
$deepParamName |
string for parameter names are all defined statically |
static mixed |
$devKeyParamName |
string for parameter names are all defined statically |
static mixed |
$guessParamName |
string for parameter names are all defined statically |
static mixed |
$nodeIDParamName |
string for parameter names are all defined statically |
static mixed |
$noteParamName |
string for parameter names are all defined statically |
static mixed |
$orderParamName |
string for parameter names are all defined statically |
static mixed |
$publicParamName |
string for parameter names are all defined statically |
static mixed |
$statusParamName |
string for parameter names are all defined statically |
static mixed |
$stepsParamName |
string for parameter names are all defined statically |
static mixed |
$titleParamName |
string for parameter names are all defined statically |
static mixed |
$userParamName |
string for parameter names are all defined statically |
mixed |
$args |
array where all the args are stored for requests |
mixed |
$authenticated |
boolean to allow a method to invoke another method and avoid double auth |
mixed |
$dbObj |
The DB object used throughout the class |
mixed |
$devKey |
The api key being used to make a request |
mixed |
$errors |
array where error codes and messages are stored |
mixed |
$statusCode |
An array containing strings for valid statuses |
mixed |
$testMode |
Whether the server will run in a testing mode |
mixed |
$user |
UserObject associated with the userID |
mixed |
$userID |
userID associated with the devKey provided |
Method Summary
TestlinkXMLRPCServer |
__construct() |
Constructor sets up the IXR_Server and db connection |
string |
about() |
Gives basic information about the API |
void |
assignRequirements() |
Assign Requirements to a test case we can assign multiple requirements. |
boolean |
authenticate() |
authenticates a user based on the devKey provided |
boolean |
checkBuildID() |
Helper method to see if the buildID provided is valid for testplan |
boolean |
checkExecutionID() |
Helper method to see if an execution id exists on DB no checks regarding other data like test case , test plam, build, etc are done |
boolean |
checkForeignKey() |
<p>Checks if the given foreign key is valid. What this method basically does is query the database looking for the foreign key id in the foreign key table.</p> |
boolean |
checkGuess() |
Helper method to see if the guess is set |
boolean |
checkPlatformIdentity() |
Helper method to see if the platform identity provided is valid This is the only method that should be called directly to check platform identity |
boolean |
checkStatus() |
Helper method to see if the status provided is valid |
boolean |
checkTestCaseID() |
Helper method to see if the tcid provided is valid |
boolean |
checkTestCaseIdentity() |
Helper method to see if the testcase identity provided is valid Identity can be specified in one of these modes: |
boolean |
checkTestCaseName() |
Helper method to see if the testcasename provided is valid |
boolean |
checkTestPlanID() |
Helper method to see if the tplanid provided is valid |
boolean |
checkTestSuiteID() |
Helper method to see if the TestSuiteID provided is valid |
boolean |
checkUploadAttachmentRequest() |
<p>Checks if the attachment parameters are valid. It checks if the file_name parameter is set, if the content is set and if the file type is set. If the file type is not set, then it uses application/octet-stream. |
mixed |
createBuild() |
Creates a new build for a specific test plan |
mixed |
getFullPath() |
Gets full path from the given node till the top using nodes_hierarchy_table |
mixed |
getLastExecutionResult() |
Gets the result of LAST EXECUTION for a particular testcase on a test plan, but WITHOUT checking for a particular build |
mixed |
getTestCase() |
get test case specification using external ir internal id |
boolean |
isAttachmentEnabled() |
<p>Checks if the attachments feature is enabled in TestLink configuration.</p> |
string |
repeat() |
Repeats a message back |
string |
sayHello() |
Lets you see if the server is up and running |
mixed |
uploadAttachment() |
Uploads an attachment for specified table. You must specify the table that the attachment is connected (nodes_hierarchy, builds, etc) and the foreign key id in this table. |
boolean |
userHasRight() |
checks if a user has requested right on test project, test plan pair. |
void |
_connectToDB() |
connect to the db and set up the db object |
boolean |
_isAutomatedPresent() |
Helper method to see if automated is given as one of the arguments |
boolean |
_isBuildIDPresent() |
Helper method to see if a buildID is given as one of the arguments |
boolean |
_isBuildNamePresent() |
Helper method to see if a buildname is given as one of the arguments |
boolean |
_isBuildNotePresent() |
Helper method to see if build notes are given as one of the arguments |
boolean |
_isDeepPresent() |
Helper method to see if the deep param is given as one of the arguments |
boolean |
_isDevKeyPresent() |
Helper method to see if a devKey is given as one of the arguments |
boolean |
_isGuessPresent() |
Helper method to see if the guess param is given as one of the arguments |
boolean |
_isNotePresent() |
Helper method to see if a note is given as one of the arguments |
boolean |
_isStatusPresent() |
Helper method to see if the status param is given as one of the arguments |
boolean |
_isStatusValid() |
Helper method to see if the status provided is valid |
boolean |
_isTestModePresent() |
Helper method to see if testMode is given as one of the arguments |
boolean |
_isTimeStampPresent() |
Helper method to see if a timestamp is given as one of the arguments |
Properties
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
string for parameter names are all defined statically
PLEASE define in DICTIONARY ORDER API Tags:
array where all the args are stored for requests
API Tags:
boolean to allow a method to invoke another method and avoid double auth
API Tags:
The DB object used throughout the class
API Tags:
The api key being used to make a request
API Tags:
array where error codes and messages are stored
API Tags:
An array containing strings for valid statuses
Will be initialized using user configuration via config_get() API Tags:
_checkTCIDAndTPIDValid()
API Tags:
Whether the server will run in a testing mode
API Tags:
UserObject associated with the userID
API Tags:
userID associated with the devKey provided
API Tags:
Methods
TestlinkXMLRPCServer __construct(
[
$callbacks = array()]
)
|
|
Constructor sets up the IXR_Server and db connection
Parameters:
API Tags:
Redefined in descendants as:
string about(
struct
$args
)
|
|
Gives basic information about the API
Parameters:
API Tags:
void addTestCaseToTestPlan(
args['testprojectid']
$args, args['testplanid']
1, args['testcaseexternalid']
2, args['version']
3, args['platformid']
4, args['executionorder']
5, args['urgency']
6
)
|
|
Add a test case version to a test plan
Parameters:
args['testplanid'] |
1: |
|
args['testcaseexternalid'] |
2: |
|
args['version'] |
3: |
|
args['platformid'] |
4: |
- OPTIONAL Only if test plan has no platforms |
args['executionorder'] |
5: |
- OPTIONAL |
args['urgency'] |
6: |
- OPTIONAL |
args['testprojectid'] |
$args: |
|
API Tags:
void assignRequirements(
struct
$args, string
$args["devKey"], int
$args["testcaseexternalid"], int
$args["testprojectid"], string
$args["requirements"]
)
|
|
Assign Requirements to a test case we can assign multiple requirements.
Requirements can belong to different Requirement Spec
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testcaseexternalid"]: |
|
int |
$args["testprojectid"]: |
|
string |
$args["requirements"]: |
array(array('req_spec' => 1,'requirements' => array(2,4)), array('req_spec' => 3,'requirements' => array(22,42)) |
API Tags:
boolean authenticate(
[string
$messagePrefix = '']
)
|
|
authenticates a user based on the devKey provided
This is the only method that should really be used directly to authenticate
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
boolean checkBuildID(
$msg_prefix
)
|
|
Helper method to see if the buildID provided is valid for testplan
if build id has not been provided on call, we can use build name if has been provided. This is the only method that should be called directly to check the buildID
Parameters:
API Tags:
true checkDevKey(
struct
$args, string
$args["devKey"]
)
|
|
check if Developer Key exists.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
API Tags:
Return: | if everything OK, otherwise error structure |
Access: | public |
boolean checkExecutionID(
[
$messagePrefix = ''], [
$setError = false]
)
|
|
Helper method to see if an execution id exists on DB no checks regarding other data like test case , test plam, build, etc are done
Parameters:
|
$messagePrefix: |
|
|
$setError: |
|
API Tags:
boolean checkForeignKey(
[
$msg_prefix = '']
)
|
|
<p>Checks if the given foreign key is valid. What this method basically does is query the database looking for the foreign key id in the foreign key table.</p>
Parameters:
API Tags:
Return: | true if the given foreign key exists, false otherwise. |
Access: | protected |
Information Tags:
Helper method to see if the guess is set
This is the only method that should be called directly to check the guess param Guessing is set to true by default
API Tags:
boolean checkPlatformIdentity(
int
$tplanID, [map
$platformInfo = null], [string
$messagePrefix = '']
)
|
|
Helper method to see if the platform identity provided is valid This is the only method that should be called directly to check platform identity
If everything OK, platform id is setted.
Parameters:
int |
$tplanID: |
Test Plan ID |
map |
$platformInfo: |
key: platform ID |
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
void checkReqSpecQuality(
)
|
|
API Tags:
Helper method to see if the status provided is valid
This is the only method that should be called directly to check the status
API Tags:
map checkTestCaseAncestry(
[string
$messagePrefix = '']
)
|
|
checks if a test case belongs to test project
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
Return: | with following keys boolean map['status_ok'] string map['error_msg'] int map['error_code'] |
Access: | protected |
boolean checkTestCaseID(
[string
$messagePrefix = '']
)
|
|
Helper method to see if the tcid provided is valid
This is the only method that should be called directly to check the tcid
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
boolean checkTestCaseIdentity(
[string
$messagePrefix = '']
)
|
|
Helper method to see if the testcase identity provided is valid Identity can be specified in one of these modes:
test case internal id test case external id (PREFIX-NNNN) This is the only method that should be called directly to check test case identoty If everything OK, test case internal ID is setted.
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
boolean checkTestCaseName(
)
|
|
Helper method to see if the testcasename provided is valid
This is the only method that should be called directly to check the testcasename
API Tags:
boolean checkTestCaseVersionNumber(
)
|
|
checks if test case version number is a valid.
Checks is is positive intenger
API Tags:
map checkTestCaseVersionNumberAncestry(
[string
$messagePrefix = '']
)
|
|
checks if a test case version number is defined for a test case
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
Return: | with following keys boolean map['status_ok'] string map['error_msg'] int map['error_code'] |
Access: | protected |
boolean checkTestPlanID(
[string
$messagePrefix = '']
)
|
|
Helper method to see if the tplanid provided is valid
This is the only method that should be called directly to check the tplanid
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
boolean checkTestProjectID(
[string
$messagePrefix = '']
)
|
|
Helper method to see if the TestProjectID provided is valid
This is the only method that should be called directly to check the TestProjectID
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
boolean checkTestSuiteID(
[string
$messagePrefix = '']
)
|
|
Helper method to see if the TestSuiteID provided is valid
This is the only method that should be called directly to check the TestSuiteID
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
boolean checkTestSuiteName(
[string
$messagePrefix = '']
)
|
|
test suite name provided is valid
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
boolean checkUploadAttachmentRequest(
[
$msg_prefix = '']
)
|
|
<p>Checks if the attachment parameters are valid. It checks if the file_name parameter is set, if the content is set and if the file type is set. If the file type is not set, then it uses application/octet-stream.
This default content type refers to binary files.</p>
Parameters:
API Tags:
Return: | true if the file name and the content are set |
Access: | protected |
Information Tags:
file createAttachmentTempFile(
)
|
|
<p>Creates a temporary file and writes the attachment content into this file.</p>
Before writing to the file it Base64 decodes the file content.
API Tags:
Return: | handler |
Access: | protected |
Information Tags:
mixed createBuild(
struct
$args, string
$args["devKey"], int
$args["testplanid"], string
$args["buildname"];, string
$args["buildnotes"];
)
|
|
Creates a new build for a specific test plan
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testplanid"]: |
|
string |
$args["buildname"];: |
|
string |
$args["buildnotes"];: |
|
API Tags:
mixed createTestCase(
struct
$args, string
$args["devKey"], string
$args["testcasename"], int
$args["testsuiteid"]:, int
$args["testprojectid"]:, string
$args["authorlogin"]:, string
$args["summary"], string
$args["steps"], string
$args["preconditions"], string
$args["importance"], string
$args["execution"], string
$args["order'], string
$args["internalid"], string
$args["checkduplicatedname"], string
$args["actiononduplicatedname"]
)
|
|
createTestCase
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
string |
$args["testcasename"]: |
|
int |
$args["testsuiteid"]:: |
test case parent test suite id |
int |
$args["testprojectid"]:: |
test case parent test suite id |
string |
$args["authorlogin"]:: |
to set test case author |
string |
$args["summary"]: |
|
string |
$args["steps"]: |
|
string |
$args["preconditions"]: |
- optional |
string |
$args["importance"]: |
- optional - see const.inc.php for domain |
string |
$args["execution"]: |
- optional - see ... for domain |
string |
$args["order']: |
- optional |
string |
$args["internalid"]: |
- optional - do not use |
string |
$args["checkduplicatedname"]: |
- optional |
string |
$args["actiononduplicatedname"]: |
- optional |
API Tags:
mixed createTestPlan(
struct
$args, string
$args["devKey"], int
$args["testplanname"], int
$args["testprojectname"], string
$args["notes"],, string
$args["active"],, string
$args["public"],
)
|
|
create a test plan
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testplanname"]: |
|
int |
$args["testprojectname"]: |
|
string |
$args["notes"],: |
optional |
string |
$args["active"],: |
optional default value 1 |
string |
$args["public"],: |
optional default value 1 |
API Tags:
mixed createTestProject(
struct
$args, string
$args["devKey"], string
$args["testprojectname"], string
$args["testcaseprefix"], string
$args["notes"], map
$args["options"], int
$args["active"], int
$args["public"]
)
|
|
create a test project
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
string |
$args["testprojectname"]: |
|
string |
$args["testcaseprefix"]: |
|
string |
$args["notes"]: |
OPTIONAL |
map |
$args["options"]: |
OPTIONAL ALL int treated as boolean keys requirementsEnabled,testPriorityEnabled,automationEnabled,inventoryEnabled |
int |
$args["active"]: |
OPTIONAL |
int |
$args["public"]: |
OPTIONAL |
API Tags:
mixed createTestSuite(
struct
$args, string
$args["devKey"], int
$args["testprojectid"], string
$args["testsuitename"], string
$args["details"], int
$args["parentid"], int
$args["order"], int
$args["checkduplicatedname"], int
$args["actiononduplicatedname"]
)
|
|
create a test suite
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testprojectid"]: |
|
string |
$args["testsuitename"]: |
|
string |
$args["details"]: |
|
int |
$args["parentid"]: |
optional, if do not provided means test suite must be top level. |
int |
$args["order"]: |
optional. Order inside parent container |
int |
$args["checkduplicatedname"]: |
optional, default true. will check if there are siblings with same name. |
int |
$args["actiononduplicatedname"]: |
optional applicable only if $args["checkduplicatedname"]=true what to do if already a sibling exists with same name. |
API Tags:
mixed deleteExecution(
struct
$args, string
$args["devKey"], int
$args["executionid"]
)
|
|
delete an execution
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["executionid"]: |
|
API Tags:
Return: | [status] => true/false of success [id] => result id or error code [message] => optional message for error message string |
Access: | public |
true doesUserExist(
struct
$args, string
$args["devKey"], int
$args["user"]
)
|
|
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["user"]: |
user name |
API Tags:
Return: | if everything OK, otherwise error structure |
Access: | public |
if getBuildsForTestPlan(
struct
$args, string
$args["devKey"], int
$args["testplanid"]
)
|
|
Gets a list of builds within a test plan
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testplanid"]: |
|
API Tags:
Return: | no errors no build present => null array of builds |
Access: | public |
array getFirstLevelTestSuitesForTestProject(
args['testprojectid']
$args
)
|
|
get set of test suites AT TOP LEVEL of tree on a Test Project
Parameters:
args['testprojectid'] |
$args: |
|
API Tags:
mixed getFullPath(
struct
$args, string
$args["devKey"], mixed
$args["nodeID"]
)
|
|
Gets full path from the given node till the top using nodes_hierarchy_table
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
mixed |
$args["nodeID"]: |
can be just a single node or an array of INTERNAL (DB) ID |
API Tags:
string getKeywordSet(
int
$tproject_id
)
|
|
getKeywordSet()
Parameters:
int |
$tproject_id: |
tproject_id |
API Tags:
Return: | that represent a list of keyword id (comma is character separator) |
Access: | protected |
mixed getLastExecutionResult(
struct
$args, string
$args["devKey"], int
$args["tplanid"], int
$args["testcaseid"]:, int
$args["testcaseexternalid"]:
)
|
|
Gets the result of LAST EXECUTION for a particular testcase on a test plan, but WITHOUT checking for a particular build
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["tplanid"]: |
|
int |
$args["testcaseid"]:: |
optional, if does not is present testcaseexternalid must be present |
int |
$args["testcaseexternalid"]:: |
optional, if does not is present testcaseid must be present |
API Tags:
Return: | if execution found, array with these keys: id (execution id),build_id,tester_id,execution_ts, status,testplan_id,tcversion_id,tcversion_number, execution_type,notes. if test case has not been execute, array('id' => -1) |
Access: | public |
mixed getLatestBuildForTestPlan(
struct
$args, string
$args["devKey"], int
$args["tplanid"]
)
|
|
Gets the latest build by choosing the maximum build id for a specific test plan
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["tplanid"]: |
|
API Tags:
mixed getProjects(
struct
$args, string
$args["devKey"]
)
|
|
Gets a list of all projects
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
API Tags:
mixed getProjectTestPlans(
struct
$args, string
$args["devKey"], int
$args["testprojectid"]
)
|
|
Gets a list of test plans within a project
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testprojectid"]: |
|
API Tags:
mixed getTestCase(
struct
$args, string
$args["devKey"], int
$args["testcaseid"]:, int
$args["testcaseexternalid"]:, int
$args["version"]:
)
|
|
get test case specification using external ir internal id
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testcaseid"]:: |
optional, if does not is present testcaseexternalid must be present |
int |
$args["testcaseexternalid"]:: |
optional, if does not is present testcaseid must be present |
int |
$args["version"]:: |
optional, if does not is present max version number will be retuned |
API Tags:
mixed getTestCaseAttachments(
struct
$args, string
$args["devKey"], int
$args["testcaseid"]:, int
$args["testcaseexternalid"]:
)
|
|
Gets attachments for specified test case.
The attachment file content is Base64 encoded. To save the file to disk in client, Base64 decode the content and write file in binary mode.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
Developer key |
int |
$args["testcaseid"]:: |
optional, if does not is present testcaseexternalid must be present |
int |
$args["testcaseexternalid"]:: |
optional, if does not is present testcaseid must be present |
API Tags:
mixed getTestCaseCustomFieldDesignValue(
struct
$args, string
$args["devKey"]:, string
$args["testcaseexternalid"]:, string
$args["version"]:, string
$args["testprojectid"]:, string
$args["customfieldname"]:, string
$args["details"]
)
|
|
Gets value of a Custom Field with scope='design' for a given Test case
Parameters:
struct |
$args: |
|
string |
$args["devKey"]:: |
used to check if operation can be done. if devKey is not valid => abort. |
string |
$args["testcaseexternalid"]:: |
|
string |
$args["version"]:: |
version number |
string |
$args["testprojectid"]:: |
|
string |
$args["customfieldname"]:: |
custom field name |
string |
$args["details"]: |
optional, changes output information null or 'value' => just value 'full' => a map with all custom field definition plus value and internal test case id 'simple' => value plus custom field name, label, and type (as code). |
API Tags:
mixed getTestCaseIDByName(
struct
$args, string
$args["devKey"], string
$args["testcasename"], string
$args["testsuitename"], string
$args["testprojectname"], string
$args["testcasepathname"]
)
|
|
Find a test case by its name
Searching is case sensitive. The test case will only be returned if there is a definite match. If possible also pass the string for the test suite name. No results will be returned if there are test cases with the same name that match the criteria provided.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
string |
$args["testcasename"]: |
|
string |
$args["testsuitename"]: |
- optional |
string |
$args["testprojectname"]: |
- optional |
string |
$args["testcasepathname"]: |
- optional Full test case path name, starts with test project name pieces separator -> :: -> default value of getByPathName() |
API Tags:
mixed getTestCasesForTestPlan(
struct
$args, string
$args["devKey"], int
$args["testplanid"], int
$args["testcaseid"], int
$args["buildid"], int
$args["keywordid"], int
$args["keywords"], boolean
$args["executed"], int
$args["$assignedto"], string
$args["executestatus"], array
$args["executiontype"], array
$args["getstepinfo"]
)
|
|
getTestCasesForTestPlan List test cases linked to a test plan
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testplanid"]: |
|
int |
$args["testcaseid"]: |
- optional |
int |
$args["buildid"]: |
- optional |
int |
$args["keywordid"]: |
- optional mutual exclusive with $args["keywords"] |
int |
$args["keywords"]: |
- optional mutual exclusive with $args["keywordid"] |
boolean |
$args["executed"]: |
- optional |
int |
$args["$assignedto"]: |
- optional |
string |
$args["executestatus"]: |
- optional |
array |
$args["executiontype"]: |
- optional |
array |
$args["getstepinfo"]: |
- optional - default false |
API Tags:
mixed getTestCasesForTestSuite(
struct
$args, string
$args["devKey"], int
$args["testsuiteid"], boolean
$args["deep"], boolean
$args["details"]
)
|
|
List test cases within a test suite
By default test cases that are contained within child suites will be returned. Set the deep flag to false if you only want test cases in the test suite provided and no child test cases.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testsuiteid"]: |
|
boolean |
$args["deep"]: |
- optional (default is true) |
boolean |
$args["details"]: |
- optional (default is simple) use full if you want to get summary,steps & expected_results |
API Tags:
mixed getTestPlanByName(
struct
$args, string
$args["devKey"], string
$args["testprojectname"], string
$args["testplanname"]
)
|
|
Gets info about target test project
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
string |
$args["testprojectname"]: |
|
string |
$args["testplanname"]: |
|
API Tags:
mixed getTestPlanPlatforms(
struct
$args, string
$args["devKey"], int
$args["testplanid"]
)
|
|
Returns the list of platforms associated to a given test plan
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testplanid"]: |
|
API Tags:
mixed getTestProjectByName(
struct
$args, string
$args["devKey"], string
$args["testprojectname"]
)
|
|
Gets info about target test project
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
string |
$args["testprojectname"]: |
|
API Tags:
mixed getTestSuiteByID(
struct
$args, string
$args["devKey"], int
$args["testsuiteid"]
)
|
|
Return a TestSuite by ID
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testsuiteid"]: |
|
API Tags:
mixed getTestSuitesForTestPlan(
struct
$args, string
$args["devKey"], int
$args["testplanid"]
)
|
|
List test suites within a test plan alphabetically
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testplanid"]: |
|
API Tags:
mixed getTestSuitesForTestSuite(
struct
$args, string
$args["devKey"], int
$args["testsuiteid"]
)
|
|
get list of TestSuites which are DIRECT children of a given TestSuite
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testsuiteid"]: |
|
API Tags:
map getTotalsForTestPlan(
struct
$args, string
$args["devKey"], int
$args["tplanid"]
)
|
|
Gets the summarized results grouped by platform.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["tplanid"]: |
test plan id |
API Tags:
Return: | where every element has: 'type' => 'platform' 'total_tc => ZZ 'details' => array ( 'passed' => array( 'qty' => X) 'failed' => array( 'qty' => Y) 'blocked' => array( 'qty' => U) ....) |
See: | testplan:getStatusTotalsByPlatform() |
Access: | public |
string getValidKeywordSet(
$tproject_id
$tproject_id, $keywords
$keywords, $byName
$byName
)
|
|
Parameters:
$tproject_id |
$tproject_id: |
the testprojectID the keywords belong |
$keywords |
$keywords: |
array of keywords or keywordIDs |
$byName |
$byName: |
set this to true if $keywords is an array of keywords, false if it's an array of keywordIDs |
API Tags:
Return: | that represent a list of keyword id (comma is character separator) |
Access: | protected |
string getValidKeywordSetById(
int
$tproject_id, $keywords
$keywords
)
|
|
getValidKeywordSetById()
Parameters:
int |
$tproject_id: |
|
$keywords |
$keywords: |
array of keywords ID |
API Tags:
Return: | that represent a list of keyword id (comma is character separator) |
Access: | protected |
string getValidKeywordSetByName(
int
$tproject_id, $keywords
$keywords
)
|
|
getValidKeywordSetByName()
Parameters:
int |
$tproject_id: |
|
$keywords |
$keywords: |
array of keywords names |
API Tags:
Return: | that represent a list of keyword id (comma is character separator) |
Access: | protected |
boolean isAttachmentEnabled(
[
$msg_prefix = '']
)
|
|
<p>Checks if the attachments feature is enabled in TestLink configuration.</p>
Parameters:
API Tags:
Return: | true if attachments feature is enabled in TestLink configuration, false otherwise. |
Access: | protected |
Information Tags:
string repeat(
struct
$args
)
|
|
Repeats a message back
Parameters:
struct |
$args: |
should contain $args['str'] parameter |
API Tags:
mixed reportTCResult(
struct
$args, string
$args["devKey"], int
$args["testcaseid"]:, int
$args["testcaseexternalid"]:, int
$args["testplanid"], string
$args["status"], int
$args["buildid"], int
$args["buildname"], string
$args["notes"], bool
$args["guess"], string
$args["bugid"], string
$args["platformid"], string
$args["platformname"], string
$args["customfields"], boolean
$args["overwrite"]
)
|
|
Reports a result for a single test case
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testcaseid"]:: |
optional, if not present testcaseexternalid must be present |
int |
$args["testcaseexternalid"]:: |
optional, if does not is present testcaseid must be present |
int |
$args["testplanid"]: |
|
string |
$args["status"]: |
- status is $validStatusList |
int |
$args["buildid"]: |
- optional. if not present and $args["buildname"] exists then $args["buildname"] will be checked and used if valid else build with HIGHEST ID will be used |
int |
$args["buildname"]: |
- optional. if not present Build with higher internal ID will be used |
string |
$args["notes"]: |
- optional |
bool |
$args["guess"]: |
- optional defining whether to guess optinal params or require them explicitly default is true (guess by default) |
string |
$args["bugid"]: |
- optional |
string |
$args["platformid"]: |
- optional, if not present platformname must be present |
string |
$args["platformname"]: |
- optional, if not present platformid must be present |
string |
$args["customfields"]: |
- optional contains an map with key:Custom Field Name, value: value for CF. VERY IMPORTANT: value must be formatted in the way it's written to db, this is important for types like: DATE: strtotime() DATETIME: mktime() MULTISELECTION LIST / CHECKBOX / RADIO: se multipli selezione ! come separatore these custom fields must be configured to be writte during execution. If custom field do not meet condition value will not be written |
boolean |
$args["overwrite"]: |
- optional, if present and true, then last execution for (testcase,testplan,build,platform) will be overwritten. |
API Tags:
Return: | [status] => true/false of success [id] => result id or error code [message] => optional message for error message string |
Access: | public |
string sayHello(
struct
$args
)
|
|
Lets you see if the server is up and running
Parameters:
API Tags:
Return: | "Hello!" |
Access: | public |
boolean setTestMode(
struct
$args
)
|
|
turn on/off testMode
This method is meant primarily for testing and debugging during development
Parameters:
API Tags:
void updateTestCase(
$args
)
|
|
Update an existing test case
Parameters:
API Tags:
mixed uploadAttachment(
struct
$args, [
$messagePrefix = ''], [
$setArgs = true], string
$args["devKey"], int
$args["fkid"], string
$args["fktable"], string
$args["title"], string
$args["description"], string
$args["filename"], string
$args["filetype"], string
$args["content"]
)
|
|
Uploads an attachment for specified table. You must specify the table that the attachment is connected (nodes_hierarchy, builds, etc) and the foreign key id in this table.
The attachment content must be Base64 encoded by the client before sending it.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
Developer key |
int |
$args["fkid"]: |
The Attachment Foreign Key ID |
string |
$args["fktable"]: |
The Attachment Foreign Key Table |
string |
$args["title"]: |
(Optional) The title of the Attachment |
string |
$args["description"]: |
(Optional) The description of the Attachment |
string |
$args["filename"]: |
The file name of the Attachment (e.g.:notes.txt) |
string |
$args["filetype"]: |
The file type of the Attachment (e.g.: text/plain) |
string |
$args["content"]: |
The content (Base64 encoded) of the Attachment |
|
$messagePrefix: |
|
|
$setArgs: |
|
API Tags:
Return: | an array containing the fk_id, fk_table, title, description, file_name, file_size and file_type. If any errors occur it returns the erros map. |
Access: | public |
Information Tags:
mixed uploadExecutionAttachment(
struct
$args, string
$args["devKey"], int
$args["executionid"], string
$args["title"], string
$args["description"], string
$args["filename"], string
$args["filetype"], string
$args["content"]
)
|
|
Uploads an attachment for an execution.
The attachment content must be Base64 encoded by the client before sending it.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
Developer key |
int |
$args["executionid"]: |
execution ID |
string |
$args["title"]: |
(Optional) The title of the Attachment |
string |
$args["description"]: |
(Optional) The description of the Attachment |
string |
$args["filename"]: |
The file name of the Attachment (e.g.:notes.txt) |
string |
$args["filetype"]: |
The file type of the Attachment (e.g.: text/plain) |
string |
$args["content"]: |
The content (Base64 encoded) of the Attachment |
API Tags:
Return: | an array containing the fk_id, fk_table, title, description, file_name, file_size and file_type. If any errors occur it returns the erros map. |
Access: | public |
Information Tags:
mixed uploadRequirementAttachment(
struct
$args, string
$args["devKey"], int
$args["requirementid"], string
$args["title"], string
$args["description"], string
$args["filename"], string
$args["filetype"], string
$args["content"]
)
|
|
Uploads an attachment for a Requirement.
The attachment content must be Base64 encoded by the client before sending it.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
Developer key |
int |
$args["requirementid"]: |
The Requirement ID |
string |
$args["title"]: |
(Optional) The title of the Attachment |
string |
$args["description"]: |
(Optional) The description of the Attachment |
string |
$args["filename"]: |
The file name of the Attachment (e.g.:notes.txt) |
string |
$args["filetype"]: |
The file type of the Attachment (e.g.: text/plain) |
string |
$args["content"]: |
The content (Base64 encoded) of the Attachment |
API Tags:
Return: | an array containing the fk_id, fk_table, title, description, file_name, file_size and file_type. If any errors occur it returns the erros map. |
Access: | public |
Information Tags:
mixed uploadRequirementSpecificationAttachment(
struct
$args, string
$args["devKey"], int
$args["reqspecid"], string
$args["title"], string
$args["description"], string
$args["filename"], string
$args["filetype"], string
$args["content"]
)
|
|
Uploads an attachment for a Requirement Specification.
The attachment content must be Base64 encoded by the client before sending it.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
Developer key |
int |
$args["reqspecid"]: |
The Requirement Specification ID |
string |
$args["title"]: |
(Optional) The title of the Attachment |
string |
$args["description"]: |
(Optional) The description of the Attachment |
string |
$args["filename"]: |
The file name of the Attachment (e.g.:notes.txt) |
string |
$args["filetype"]: |
The file type of the Attachment (e.g.: text/plain) |
string |
$args["content"]: |
The content (Base64 encoded) of the Attachment |
API Tags:
Return: | an array containing the fk_id, fk_table, title, description, file_name, file_size and file_type. If any errors occur it returns the error map. |
Access: | public |
Information Tags:
mixed uploadTestCaseAttachment(
struct
$args, string
$args["devKey"], int
$args["testcaseid"], string
$args["title"], string
$args["description"], string
$args["filename"], string
$args["filetype"], string
$args["content"]
)
|
|
Uploads an attachment for a Test Case.
The attachment content must be Base64 encoded by the client before sending it.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
Developer key |
int |
$args["testcaseid"]: |
Test Case INTERNAL ID |
string |
$args["title"]: |
(Optional) The title of the Attachment |
string |
$args["description"]: |
(Optional) The description of the Attachment |
string |
$args["filename"]: |
The file name of the Attachment (e.g.:notes.txt) |
string |
$args["filetype"]: |
The file type of the Attachment (e.g.: text/plain) |
string |
$args["content"]: |
The content (Base64 encoded) of the Attachment |
API Tags:
Return: | an array containing the fk_id, fk_table, title, description, file_name, file_size and file_type. If any errors occur it returns the erros map. |
Access: | public |
Information Tags:
mixed uploadTestProjectAttachment(
struct
$args, string
$args["devKey"], int
$args["testprojectid"], string
$args["title"], string
$args["description"], string
$args["filename"], string
$args["filetype"], string
$args["content"]
)
|
|
Uploads an attachment for a Test Project.
The attachment content must be Base64 encoded by the client before sending it.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
Developer key |
int |
$args["testprojectid"]: |
The Test Project ID |
string |
$args["title"]: |
(Optional) The title of the Attachment |
string |
$args["description"]: |
(Optional) The description of the Attachment |
string |
$args["filename"]: |
The file name of the Attachment (e.g.:notes.txt) |
string |
$args["filetype"]: |
The file type of the Attachment (e.g.: text/plain) |
string |
$args["content"]: |
The content (Base64 encoded) of the Attachment |
API Tags:
Return: | an array containing the fk_id, fk_table, title, description, file_name, file_size and file_type. If any errors occur it returns the erros map. |
Access: | public |
Information Tags:
mixed uploadTestSuiteAttachment(
struct
$args, string
$args["devKey"], int
$args["testsuiteid"], string
$args["title"], string
$args["description"], string
$args["filename"], string
$args["filetype"], string
$args["content"]
)
|
|
Uploads an attachment for a Test Suite.
The attachment content must be Base64 encoded by the client before sending it.
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
Developer key |
int |
$args["testsuiteid"]: |
The Test Suite ID |
string |
$args["title"]: |
(Optional) The title of the Attachment |
string |
$args["description"]: |
(Optional) The description of the Attachment |
string |
$args["filename"]: |
The file name of the Attachment (e.g.:notes.txt) |
string |
$args["filetype"]: |
The file type of the Attachment (e.g.: text/plain) |
string |
$args["content"]: |
The content (Base64 encoded) of the Attachment |
API Tags:
Return: | an array containing the fk_id, fk_table, title, description, file_name, file_size and file_type. If any errors occur it returns the erros map. |
Access: | public |
Information Tags:
boolean userHasRight(
string
$roleQuestion
)
|
|
checks if a user has requested right on test project, test plan pair.
Parameters:
string |
$roleQuestion: |
on of the right defined in rights table |
API Tags:
boolean _checkCreateBuildRequest(
[string
$messagePrefix = '']
)
|
|
Run all the necessary checks to see if the createBuild request is valid
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
void _checkCreateTestProjectRequest(
$msg_prefix
)
|
|
_checkCreateTestProjectRequest
Parameters:
API Tags:
boolean _checkGetBuildRequest(
)
|
|
Run all the necessary checks to see if the createBuild request is valid
API Tags:
boolean _checkGetTestCaseCustomFieldDesignValueRequest(
[string
$messagePrefix = '']
)
|
|
Run all the necessary checks to see if GetTestCaseCustomFieldDesignValueRequest() can be accepted.
- Custom Field exists ?
- Can be used on a test case ?
- Custom Field scope includes 'design' ?
- is linked to testproject that owns test case ?
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
boolean _checkGetTestCasesForTestPlanRequest(
[string
$messagePrefix = '']
)
|
|
Run all the necessary checks to see if a GetTestCasesForTestPlanRequest() can be accepted.
Parameters:
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
boolean _checkTCIDAndTPIDValid(
[map
$platformInfo = null], [string
$messagePrefix = '']
)
|
|
Helper method to See if the tcid and tplanid are valid together
Parameters:
map |
$platformInfo: |
key: platform ID |
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
connect to the db and set up the db object
API Tags:
map _getBugsForExecutionId(
int
$execution_id
)
|
|
get bugs linked to an execution ID
Parameters:
API Tags:
Return: | indexed by bug_id |
Access: | protected |
void _getLatestBuildForTestPlan(
struct
$args
)
|
|
_getLatestBuildForTestPlan
Parameters:
API Tags:
void _insertCustomFieldExecValues(
$executionID
)
|
|
Parameters:
API Tags:
boolean _insertExecutionBug(
int
$executionID, string
$bugID
)
|
|
Insert record into execution_bugs table
Parameters:
int |
$executionID: |
|
string |
$bugID: |
|
API Tags:
Adds the result to the database
API Tags:
boolean _isAutomatedPresent(
)
|
|
Helper method to see if automated is given as one of the arguments
API Tags:
boolean _isBuildIDPresent(
)
|
|
Helper method to see if a buildID is given as one of the arguments
API Tags:
boolean _isBuildNamePresent(
)
|
|
Helper method to see if a buildname is given as one of the arguments
API Tags:
boolean _isBuildNotePresent(
)
|
|
Helper method to see if build notes are given as one of the arguments
API Tags:
boolean _isDeepPresent(
)
|
|
Helper method to see if the deep param is given as one of the arguments
API Tags:
boolean _isDevKeyPresent(
)
|
|
Helper method to see if a devKey is given as one of the arguments
API Tags:
boolean _isDevKeyValid(
string
$devKey
)
|
|
Helper method to see if a devKey is valid
Parameters:
API Tags:
boolean _isGuessPresent(
)
|
|
Helper method to see if the guess param is given as one of the arguments
API Tags:
boolean _isNotePresent(
)
|
|
Helper method to see if a note is given as one of the arguments
API Tags:
boolean _isParamPresent(
string
$pname, [string
$messagePrefix = ''], [boolean
$setError = false]
)
|
|
Helper method to see if a param is present
Parameters:
string |
$pname: |
parameter name |
string |
$messagePrefix: |
used to be prepended to error message |
boolean |
$setError: |
default false true: add predefined error code to $this->error[] |
API Tags:
boolean _isStatusPresent(
)
|
|
Helper method to see if the status param is given as one of the arguments
API Tags:
boolean _isStatusValid(
$status
)
|
|
Helper method to see if the status provided is valid
Parameters:
API Tags:
boolean _isTestCaseExternalIDPresent(
)
|
|
Helper method to see if a testcasename is given as one of the arguments
API Tags:
boolean _isTestCaseIDPresent(
)
|
|
Helper method to see if a tcid is given as one of the arguments
API Tags:
boolean _isTestCaseIDValid(
struct
$tcaseid, [string
$messagePrefix = ''], [boolean
$setError = false]
)
|
|
Helper method to see if the tcid provided is valid
Parameters:
struct |
$tcaseid: |
|
string |
$messagePrefix: |
used to be prepended to error message |
boolean |
$setError: |
default false true: add predefined error code to $this->error[] |
API Tags:
boolean _isTestCaseNamePresent(
)
|
|
Helper method to see if a testcasename is given as one of the arguments
API Tags:
boolean _isTestModePresent(
)
|
|
Helper method to see if testMode is given as one of the arguments
API Tags:
boolean _isTestPlanIDPresent(
)
|
|
Helper method to see if a tplanid is given as one of the arguments
API Tags:
boolean _isTestProjectIDPresent(
)
|
|
Helper method to see if a TestProjectID is given as one of the arguments
API Tags:
boolean _isTestSuiteIDPresent(
)
|
|
Helper method to see if testsuiteid is given as one of the arguments
API Tags:
boolean _isTestSuiteNamePresent(
)
|
|
Helper method to see if the testsuitename param is given as one of the arguments
API Tags:
boolean _isTimeStampPresent(
)
|
|
Helper method to see if a timestamp is given as one of the arguments
API Tags:
boolean _runChecks(
array
$checkFunctions, [string
$messagePrefix = '']
)
|
|
Run a set of functions
Parameters:
array |
$checkFunctions: |
set of function to be runned |
string |
$messagePrefix: |
used to be prepended to error message |
API Tags:
void _setBuildID(
int
$buildID
)
|
|
Set the BuildID from one place
Parameters:
API Tags:
boolean _setBuildID2Latest(
)
|
|
Set Build Id to latest build id (if test plan has builds)
API Tags:
Helper method to set the tcVersion
API Tags:
void _setTestCaseID(
int
$tcaseID
)
|
|
Set test case internal ID
Parameters:
API Tags:
mixed _updateResult(
struct
$args, string
$args["devKey"], int
$args["testplanid"], int
$args["platformid"], int
$args["buildid"], int
$args["testcaseid"], string
$args["status"], string
$args["notes"]
)
|
|
update result of LASTE execution
Parameters:
struct |
$args: |
|
string |
$args["devKey"]: |
|
int |
$args["testplanid"]: |
|
int |
$args["platformid"]: |
|
int |
$args["buildid"]: |
|
int |
$args["testcaseid"]: |
internal ID |
string |
$args["status"]: |
|
string |
$args["notes"]: |
|
API Tags:
|
|