Zeenyx Academy

Publishing AscentialTest Results in Junit format for integration with Azure

Print Friendly, PDF & Email

Because AscentialTest’s built-in test framework contains calls to actions that start and complete each test, it is very easy to transform test results into whatever format is needed for integration with continuous integration tools like Azure DevOps.

Zeenyx Support has written the following components for writing AscentialTest results in Junit format.

1. CreateXMLResultsFileInJUnitFormat
This test creates a results file in XML-JUnit format. It should be included as the first test at the top of each Test Plan:

2. WriteTestResultInJUnitFormat
This function updates the results file with the result of the current test:

3. Appstate Requirements.
In order to implement the provided project components, the following lines need to be added to the OnFinish() function of your appstate:

The appstate needs to be further modified to add a new String member called sErrorMsg. The OnException() needs to be overridden to set the value of sErrorMsg as displayed below:

4. Project Data Requirement
In order to implement the provided project components, ResultsFileName and ResultsFilePath string parameters must be added to the Project Data:

Once the provided components are added to the project, the results will automatically be transformed into the Junit XML format.

Below is an image depicting the results as displayed in Azure DevOps. This example was generated using the ‘Publish Test Results’ Task.

 

If you would like a copy of the Junit Results generation, please contact Zeenyx Support.

 

Share the Post:

Related Content

Instructional Content, Thought Leadership

A Thousand G2 Reviews Later: Software Testing Tools Are Too Expensive

Instructional Content, Thought Leadership

Build Tests, Not Frameworks

Instructional Content

AscentialTest Error Tracking and Debugging

Instructional Content

Self-Guided PowerBuilder Tutorial

Get Started For Free: 30 Day Trial

Click here to download the Host ID generator. The download package includes full instructions. Please send us your details below to speed the process along.

Our Distribution and Consulting Partners

Appeon

Cigniti

Loop Software

Marlabs

Matryxsoft Tech

Novalys

OCS Consulting

Loading...

What We Are Up To Next

TFS/Azure Integration

Check our new Azure extension for executing AscentialTest command lines in the Azure Marketplace.

We look forward to offering additional integration with Microsoft’s Team Foundation Server and Azure through defect tracking and version control soon.

Omnis Studio

Automated testing support for OMNIS Studio is coming soon. All OMNIS elements will be supported including complex grids, list boxes, tables and tree views.

Custom Objects

Add automated testing support easily for your custom application elements by responding to simple test API messages with json strings. This feature will open up the possibility of testing any GUI element and  will be offered free of charge.

Test Debugger

Set breakpoints in your automated tests, view global and local variables and execute statements to make it easier to debug tests running on any of our supported platforms.

Get a Competitive Quote

Thank you for submitting your inquiry!

We will get back to you ASAP.  We aim to respond to all inquiries within 24 hours.