Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

I would like to extract the status of a test and post it directly to Rally API.

laksramy
laksramy Posts: 4
edited September 2018 in SOAtest

I have to update the test result status of my tests to Rally. I am checking if there is any way I could extract the status of a test from the execution report and post it directly to Rally API. Is it possible to extract just the pass/fail status of a test from SOATest? If so, how to do it?

If there are any other options through which I can achieve this, pls do let me know.

Comments

  • benken_parasoft
    benken_parasoft Posts: 1,302 ✭✭✭

    I haven't tried sending results to Rally. Perhaps someone else might be able to comment about Rally's API. However, in case this helps you, reporting to external systems is generally accomplished by processing the SOAtest XML report which contains all the test execution results. In some cases this might mean writing custom code to parse the report to extract the desired information and pass that to another test reporting API. In other cases, I have also seen XSLT used to transform the SOAtest report XML into a different format that is natively understood by the external system.

  • laksramy
    laksramy Posts: 4

    Thanks, I am exploring the possibility of extracting data from XML.

    In other test automation tools I have worked on, it is possible to get the test staus through a parameter/variable. I just wanted to make sure if such a thing exists in SOAtest.

  • benken_parasoft
    benken_parasoft Posts: 1,302 ✭✭✭

    After a test execution has finished, the results of that test execution are only available from the XML report. Fortunately, XML is an open standard with XML processing APIs available for a number of different programming languages. If you wanted to query the test results from Java, for example, you can use JAXP API.

  • jakubiak
    jakubiak Posts: 813 admin

    If you start SOAtest in a server mode, you can execute tests through its REST API. The execution REST API will return the results in its response. This doesn't work from CLI, but will work if executing via SOAtest server.

  • benken_parasoft
    benken_parasoft Posts: 1,302 ✭✭✭
    edited September 2018

    The execution REST API will return the results in its response

    The response message includes a summary plus the XML report with individual test execution details.