Page 1 of 1

remote update of test execution results (and remote executio

Posted: Sun Aug 22, 2010 9:29 am
by zeevikn
Hi.

We would like to integrate testlink into our automation system.
for that we need two functionalities:
1) (must) Allow our automation system (Jsystem) to update tests results. I looked and played with the XML-RPC API, but did not find any way to update a test case result (while providing test case id, build, result, notes, etc).
Is there a way to do so ?

2) remote test execution - I browsed the code and saw the functionality, but I could not find any post / document on how to configure this functionality.
can any one please direct me to such link ?

Thanks,
Zeevik.

Re: remote update of test execution results (and remote exec

Posted: Sun Aug 29, 2010 11:11 am
by zeevikn
Does someone have any info on this issue ?
(before I start digging the code :roll: )

Thanks,
Zeevik.

Re: remote update of test execution results (and remote exec

Posted: Sun Aug 29, 2010 2:05 pm
by fman
Test Link 1.9 Beta 5


* Reports a result for a single test case
*
* @param struct $args
* @param string $args["devKey"]
* @param int $args["testcaseid"]: optional, if not present
* testcaseexternalid must be present
*
* @param int $args["testcaseexternalid"]: optional, if does not is present
* testcaseid must be present
*
*
*
* @param int $args["testplanid"]
* @param string $args["status"] - status is {@link $validStatusList}
* @param 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
*
* @param int $args["buildname"] - optional.
* if not present Build with higher internal ID will be used
*
*
* @param string $args["notes"] - optional
* @param bool $args["guess"] - optional defining whether to guess optinal params or require them
* explicitly default is true (guess by default)
*
* @param string $args["bugid"] - optional
*
* @param string $args["platformid"] - optional, if not present platformname must be present
* @param string $args["platformname"] - optional, if not present platformid must be present
*
*
* @param 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
*
* @param boolean $args["overwrite"] - optional, if present and true, then last execution
* for (testcase,testplan,build,platform) will be overwritten.
*
* @return mixed $resultInfo
* [status] => true/false of success
* [id] => result id or error code
* [message] => optional message for error message string
* @access public
*/


use also
<tl install dir>\lib\api\sample_clients\php\

Re: remote update of test execution results (and remote exec

Posted: Tue Aug 31, 2010 11:29 am
by zeevikn
Thanks.
this was a great help.
I posted out Java based XML-RPC integration example here
http://www.teamst.org/forum/viewtopic.php?f=10&t=3462

Note for all others:
The link[url]http://<server-ip>/testlink/lib/api/sample_clients/php/[/url] lists only PART of the possible functions.
listing the files in the dir <tl install dir>\lib\api\sample_clients\php\
will show ALL possible options.

Re: remote update of test execution results (and remote exec

Posted: Wed Dec 15, 2010 8:02 am
by svaze74
Hi All,

Can I update the test execution status from TestComplete in vbscript? Can anyone provide me the valid code snippet?

Thanks in advance.

Shrirang