Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008966TestLinkAPI - XMLRPCpublic2020-07-24 04:392020-09-08 14:41
Reportersantoshkumar_201@yahoo.com 
Assigned Tofman 
PriorityhighSeveritymajorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformChromeOSWindowsOS VersionWindows 8
Product Version1.9.20 
Fixed in Version 
Summary0008966: reportTCResult() always updating result for same test case.
DescriptionI have integrated the testlink with our automation scripts ( Java Selenium - TestNG)

Issue: Every time i call reportTCResult() method for updating result of different test cases, it is always updating result of only 1 or the first test case,

I tried passing different testCaseId, externalTestCaseId,
Also i tired with different test plan, build id etc...

Below is my sample code:

String result = "PASS";
Integer testCaseId = 20;
Integer testCaseExternalId = 28;
Integer testPlanId = 22;
public String DEV_KEY = "d041d447d51bf6147a5ee5fc6e128485";
public String TESTLINK_URL = "http://localhost/testlink/lib/api/xmlrpc.php"; [^]
Map<String,String> mp ;

TestLinkAPI tc = new TestLinkAPI(new URL(TESTLINK_URL),DEV_KEY);
tc.reportTCResult(20, 28, 22, ExecutionStatus.PASSED, 4, "build-3", "notes-build3", true, "", 1, "Chrome",mp, true);
Steps To ReproduceAbove..
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
BrowserChrome
PHP Version7
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships

-  Notes
(0029842)
fman (administrator)
2020-07-25 08:50

This is the documentation you can find inside the code: xmlrpc.class.php
Read it carefully, then retry.


In your example you are passing the test case identity in two different ways, when just once is needed.
Please try with our PHP sample clients that you will find in the code distribution.



     * 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 array $args["steps"]
     * - each element is an array with following
     * structure:
     * array('step_number' => 1, 'result' => 'p', 'notes' => 'the notes')
     *
     *
     * @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 string $args["execduration"]
     * - 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:
     * character '!'' as separator when multiple values are allowed
     *
     * 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.
     *
     * @param boolean $args["user"]
     * - optional, if present and user is a valid login
     * (no other check will be done) it will be used when
     * writting execution.
     *
     * @param string $args["timestamp"]
     * - optional, if not present now is used
     * format YYYY-MM-DD HH:MM:SS
     * example 2015-05-22 12:15:45
     * @return mixed $resultInfo
     * [status] => true/false of success
     * [id] => result id or error code
     * [message] => optional message for error message string
     * @access public
     *
(0029906)
fman (administrator)
2020-09-08 14:41

no more user feedback

- Issue History
Date Modified Username Field Change
2020-07-24 04:39 santoshkumar_201@yahoo.com New Issue
2020-07-25 08:50 fman Note Added: 0029842
2020-07-25 08:52 fman Assigned To => fman
2020-07-25 08:52 fman Status new => feedback
2020-09-08 14:41 fman QA Team - Task Workflow Status => TBD
2020-09-08 14:41 fman Note Added: 0029906
2020-09-08 14:41 fman Status feedback => resolved
2020-09-08 14:41 fman Resolution open => no change required



Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker