2017 October Release

Apache Ant Tasks for Fabasoft app.test report consolidationPermanent link for this heading

With these tasks Fabasoft app.test reports can be imported into a database.

Apache Ant Task "apptest-configuration": Define a configurationPermanent link for this heading

This task allows the definition of commonly used configuration values.

Example for a database configuration:

  <apptest-configuration id="DatabaseSettings" >
     <!-- Database type (SQLServer / PostGreSQL) -->
     <config key="ReportAnalyzer.dbtype" value="${database.type}" />
     
     <!-- Server address and database name -->
     <config key="ReportAnalyzer.address" value="${database.address}" />
     <config key="ReportAnalyzer.dbname" value="${database.name}"/>
     
     <!-- Credentials -->
     <config key="ReportAnalyzer.username" value="${database.username}"/>
     <config key="ReportAnalyzer.password" value="${database.password}" />
     
     <!-- Create the tables of the database scheme if they do not already exists -->
     <config key="ReportAnalyzer.createtables" value="true"/>
  </apptest-configuration>

Apache Ant Task "apptest-reportanalyzersessionstart": Create a new report sessionPermanent link for this heading

This Apache Ant task creates a new session for reports. The session ID will be saved in the Ant variable ${session.id}.

Example

<apptest-reportanalyzersessionstart>
   <!-- You can either define all the settings in this block or reference a formerly created configuration and overwrite or add values as needed. -->
   <Configuration refid="DatabaseSettings"/>
   <!-- Define the name of the session -->
   <config key="name" value="Fabasoft app.test Report Analyzer Session" />
   </Configuration>
</apptest-reportanalyzersessionstart>

Apache Ant Task "apptest-reportanalyzer": Load a set of reportsPermanent link for this heading

This Apache Ant task loads the specified set of reports into a database adding them to the specified session.

Example

<apptest-reportanalyzer>
   <!-- You can either define all the settings in this block or reference a formerly created configuration and overwrite or add values as needed. -->
   <Configuration refid="DatabaseSettings"/>
      <config key="session.id" value="${session.id}" />

      <!-- Specify the product you are testing. Product and version are mandatory while the edition is optional. -->
      <config key="product" value="Fabasoft app.test" />
      <config key="version" value="11.0.6.1" />
      <config key="edition" value="Primo" />

      <!-- Optional field to specify the stage of testing (e.g. Prepare, Testing, Cleanup). -->
      <config key="stage" value="Test" />

      <!-- If true, only block statements with statistics are loaded (i.e. Test/Sequence/UseCase). Set this if detailed data is not necessary as it greatly reduces the amount of data. -->
      <config key="summarize" value="false" />
   </Configuration>
   <!-- Set of app.test reports to load -->
   <fileset dir="${reportpath}">
      <include name="*.ducx-rep"/>
   </fileset>
</apptest-reportanalyzer>

Apache Ant Task "apptest-reportanalyzercoverage": Load coverage dataPermanent link for this heading

This Apache Ant task loads coverage data in form of Cobertura XML files into the database adding the data to the specified session.

Example

<apptest-reportanalyzercoverage>
   <!-- You can either define all the settings in this block or reference a formerly created configuration and overwrite or add values as needed. -->
   <Configuration refid="DatabaseSettings"/>
      <config key="session.id" value="${session.id}" />

      <!-- Specify the product you are testing. Product and version are mandatory while the edition is optional. -->
      <config key="product" value="Fabasoft app.test" />
      <config key="version" value="11.0.6.1" />
      <config key="edition" value="Primo" />

      <!-- Specify the type of coverage data (Java, C/C++/C#, Fabasoft Expression). -->
      <config key="type" value="Java" />
   </Configuration>
   <!-- Set of coverage files to load -->
   <fileset dir="${coverage}">
      <include name="*.xml"/>
   </fileset>
</apptest-reportanalyzercoverage>

Apache Ant Task "apptest-reportanalyzersessionstop": Close a report sessionPermanent link for this heading

This Apache Ant task closes the specified session.

Example

<apptest-reportanalyzersessionstop>
   <!-- You can either define all the settings in this block or reference a formerly created configuration and overwrite or add values as needed. -->
   <Configuration refid="DatabaseSettings"/>
   <!-- Define the ID of the session you want to close-->
   <config key="session.id" value="${session.id}" />
   </Configuration>
</apptest-reportanalyzersessionstop>

Start Apache AntPermanent link for this heading

Open a console window and navigate to the folder, where the build.xml file is located.

For starting a target with Apache Ant enter the following command into the command line: ant <target name>

The tasks in the specified target are executed and a report is created. After the execution has finished you can open the reports.

Note: Further information on Apache Ant tasks can be found here.