remote update of test execution results (and remote executio

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

remote update of test execution results (and remote executio

Postby zeevikn » Sun Aug 22, 2010 9:29 am

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.
zeevikn
Advanced user
 
Posts: 18
Joined: Tue Aug 17, 2010 3:08 pm

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

Postby zeevikn » Sun Aug 29, 2010 11:11 am

Does someone have any info on this issue ?
(before I start digging the code :roll: )

Thanks,
Zeevik.
zeevikn
Advanced user
 
Posts: 18
Joined: Tue Aug 17, 2010 3:08 pm

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

Postby fman » Sun Aug 29, 2010 2:05 pm

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\
fman
Member of TestLink Community
 
Posts: 3062
Joined: Tue Nov 15, 2005 7:19 am

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

Postby zeevikn » Tue Aug 31, 2010 11:29 am

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 linkhttp://<server-ip>/testlink/lib/api/sample_clients/php/ 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.
zeevikn
Advanced user
 
Posts: 18
Joined: Tue Aug 17, 2010 3:08 pm

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

Postby svaze74 » Wed Dec 15, 2010 8:02 am

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
svaze74
TestLink user
 
Posts: 5
Joined: Mon Oct 11, 2010 6:49 am


Return to XML-RPC API



Who is online

Users browsing this forum: No registered users and 1 guest

cron