<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: TestRun_Save code samples? How to save an array of TestRun results? (Thread)</title><description>&#xD;
Hello, I am using SOAP to save a list of TestRun results. The WSDL is retrieved from here:&#xD;
&#xD;
 https://www.inflectra.com/SpiraDemo3/Services/v4_0/ImportExport.aspx?     The WSDL seems fine. But it does not contain the call sequence I need to learn to get the job done. When I tried TestRun_Save method I got an error that I need to call Connection_Authenticate first.  The RemoteTestRunStep object requires many things I do not have, TestCaseId, TestRunId, TestRunStepId, TestStepId.   Can someone give me some idea how many steps I should follow?      Step 1, call Connection_Authenticate     Step 2, setup  TestCaseId, TestRunId, TestRunStepId, TestStepId for Spira to understand??? how do I do it         Step 3. call TestRunSave and pass in a list of   RemoteTestRunStep   objects as input parameters         Thank you for your help        </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spiratest/issues-questions/817.aspx</link><item><guid isPermaLink="false">threadId=817</guid><author>bob young (bb.yuan@gmail.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">api</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> soap</category><title>TestRun_Save code samples? How to save an array of TestRun results?</title><description>&#xD;
Hello, I am using SOAP to save a list of TestRun results. The WSDL is retrieved from here:&#xD;
&#xD;
 https://www.inflectra.com/SpiraDemo3/Services/v4_0/ImportExport.aspx?     The WSDL seems fine. But it does not contain the call sequence I need to learn to get the job done. When I tried TestRun_Save method I got an error that I need to call Connection_Authenticate first.  The RemoteTestRunStep object requires many things I do not have, TestCaseId, TestRunId, TestRunStepId, TestStepId.   Can someone give me some idea how many steps I should follow?      Step 1, call Connection_Authenticate     Step 2, setup  TestCaseId, TestRunId, TestRunStepId, TestStepId for Spira to understand??? how do I do it         Step 3. call TestRunSave and pass in a list of   RemoteTestRunStep   objects as input parameters         Thank you for your help        </description><pubDate>Thu, 06 Feb 2014 08:10:16 -0500</pubDate><a10:updated>2014-02-06T21:49:11-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/817.aspx</link></item><item><guid isPermaLink="false">messageId=1500</guid><author>bob young (bb.yuan@gmail.com)</author><title>&#xD;
Hello, SpiraTest support team, &#xD;
&#xD;
    Here is my best guess. Let me know if this would work. I am</title><description>&#xD;
Hello, SpiraTest support team, &#xD;
&#xD;
    Here is my best guess. Let me know if this would work. I am using WSDL here: https://www.inflectra.com/SpiraDemo/Services/v4_0/ImportExport.aspx     Step 1. Call Connection_Authenticate      Step 2. Call AutomationHost_Create to create the host, it returns a token for the host (what is the difference between automaited host and manual host???)     Step 3. Call TestRun_ CreateForAutomatedTestSet the input is the host token I got from step 2, plus a test set id. Can I assign a random id for test set id, or I have to get it from SpiraTest?   The method returns a bunch of RemoteAutomatedTestRun which includes TestCaseId, TestRunId, TestRunStepId         Step 4, I will collect the test results from my system then call TestRun_Save to pass in identifiers I obtained from step 2 and 3          Thank you again.             </description><pubDate>Thu, 06 Feb 2014 21:49:11 -0500</pubDate><a10:updated>2014-02-06T21:49:11-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/817.aspx#reply1500</link></item></channel></rss>