Read .tst file using java.

SunilDubeySunilDubey Posts: 2

Team, I have .tst files, I want to read content of tst files in XML format.

Tagged:

Answers

  • benken_parasoftbenken_parasoft Posts: 488 ✭✭✭
    edited June 26

    This functionality is provided by Parasoft SOAtest/Virtualize Server which has an API for manipulating Parasoft assets. A Java-based client is available, which you can use from Maven-based java projects as follows:

    In your pom.xml, add the build.parasoft.com Maven repository:

    <repositories>
      <repository>
        <id>Parasoft</id>
        <url>http://build.parasoft.com/maven/</url>
      </repository>
    </repositories>
    

    Add the following to the "dependencies" element:

    <dependency>
      <groupId>com.parasoft.soavirt</groupId>
      <artifactId>com.parasoft.api.rest.client</artifactId>
      <version>9.10.5</version>  <!-- should match version of your SOAtest server -->
    </dependency>
    

    The class com.parasoft.api.rest.client.ParasoftApiRestClient enables you to connect to the Parasoft SOAtest Server and invoke various operations, including those for manipulating tst files.

    As an aside, the file format for Parasoft assets is "open" in the sense that it is XML based. The schema/structure of the XML is proprietary. You must use the API provided by the Parasoft SOAtest/Virtualize Server. Writing your own java code to parse or update the XML directly, outside of Server API calls, is not officially supported.

Sign In or Register to comment.