SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    New Member
    Join Date
    Feb 2015
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Lightbulb Upload multiple test results using TestLink API

    Hello everyone,

    I am using the XML code below to upload the test results from my test enviroment. I can upload one result everytime using this code, but I would like to upload all the test results at the same time. Can someone tell me how I can modify the XML file in order to do this?


    <?xml version="1.0" encoding="utf-8" ?>
    <methodCall>
    <methodName>tl.setTestCaseExecutionResult</methodName>
    <testsuite name="Main functionalities" >
    <params>
    <param>
    <value>
    <struct>
    <member>
    <name>devKey</name><value><string>42f...3e3</string></value>
    </member>
    <member>
    <name>testcaseexternalid</name><value><string>1</string></value>
    </member>
    <member>
    <name>testplanid</name><value><string>168</string></value>
    </member>
    <member>
    <name>buildid</name><value><string>1</string></value>
    </member>
    <member>
    <name>testcaseid</name><value><string>3</string></value>
    </member>
    <member><name>status</name><value><string>f</string></value></member>
    </struct>
    </value>
    </param>
    </params>
    </testsuite>
    </methodCall>

    Thank you for the help!

  2. #2
    Member
    Join Date
    May 2005
    Location
    Noida
    Posts
    131
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Are you able to update test results of multiple test cases (in one go )from UI?

  3. #3
    New Member
    Join Date
    Feb 2015
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Yes I am. I sorry it was the wrong file, it is he right one, the steps are defined at the end of the code. Thanks a lot for your quick reply!

    <?xml version="1.0" encoding="utf-8"?>
    <methodCall xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <methodName>tl.createTestCase</methodName>
    <params>
    <param>
    <value>
    <struct>
    <member>
    <name>devKey</name>
    <value>
    <string>cc0af587990612934482eaee9</string>
    </value>
    </member>
    <member>
    <name>testcasename</name>
    <value>
    <string>TC_9999_ItIsJustATest</string>
    </value>
    </member>
    <member>
    <name>testsuiteid</name>
    <value>
    <int>28431</int>
    </value>
    </member>
    <member>
    <name>testprojectid</name>
    <value>
    <int>24141</int>
    </value>
    </member>
    <member>
    <name>authorlogin</name>
    <value>
    <string>afetts</string>
    </value>
    </member>
    <member>
    <name>summary</name>
    <value>
    <string>It is just a test</string>
    </value>
    </member>
    </struct>
    </steps>
    <step>
    <step_number>1</step_number>
    <actions>Do first step</actions>
    <expectedresults>Something is going to happen</expectedresults>
    <execution_type>1</execution_type>
    </step>
    </steps>
    </value>
    </param>
    </params>
    </methodCall>

  4. #4
    New Member
    Join Date
    Feb 2015
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Question

    Quote Originally Posted by navseema View Post
    Are you able to update test results of multiple test cases (in one go )from UI?
    Yes, I am. I am sorry, but part of my code was missing from the initial post

    Code:
    </struct>
              </steps>
              <step>
                <step_number>1</step_number>
                <actions>Do first step</actions>
                <expectedresults>Something is going to happen</expectedresults>
                <execution_type>1</execution_type>
              </step>
            </steps>
          </value>
        </param>
      </params>
    </methodCall>

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:03 PM.

Copyright BetaSoft Inc.