Reporting Automation Testing Results
Test Automation engineers often use ReportNG to generate results reports for automations performed using the Selenium WebDriver framework. ReportNG can be quite complex in terms of configuring, and it also lacks a variety of features.
Listed below are some of the limitations in ReportNG.
- Inability to add visually appealing graphs and charts illustrating the comparison of test results with previous cycles, at a glance.
- Inability to capture screen shots/videos as test result evidence.
- Absence of a customizable index page with project description, logo etc.
- Inability to export results in PDF, Microsoft Excel and HTML formats.
ATU Reporter is an open source Test NG Listener designed for Selenium. Users can easily add this reporting feature to the code. Users can add the ATU Reporter feature even after completing the automation code for their respective projects.
The following features are available in the ATU Reporter:
- Customizable graphical reports (Line Charts, Bar Charts, and Index Page)
- Consolidated reports with the ability to compare information with previous test cycles
- Screen shot capturing
- Video recording
- Ability to export results in Microsoft Excel, PDF, and HTML formats
Configuring ATU Reporter for an existing Selenium code
- Download ATU Reporter for Selenium TestNG from the following location https://automationtestingutilities.blogspot.com/p/reporting.html.
- The downloaded file contains two executable JAR files. Copy the JAR files to the respective project folders.
- Open the properties file and provide the location. The reports appear in atu.reports.dir file.
- Integrate ATU reports and the automation project by setting the ATU property information in the main method as follows:
//Set Property for ATU Reporter Configuration
System.setProperty(“atu.reporter.config”, “D:\\Hisan Backup\\HisanS\\D\\ATUReporter_Selenium_testNG_2.1 jar javadoc prop file demo proj atu recorder\\ATUReporter_Selenium_testNG_2.1 jar+javadoc+prop file+demo proj+atu recorder\\atu.properties”);
Adding the screen shot capturing feature to the Selenium code
- In the Property file, change the value of reports.takescreenshot property to true.
- Enter the following code after the respective test execution code in the test method, in order to capture the screen at the relevant instance.
The steps, input value, expected value and actual value can be described in the respective test cases, which will be shown in the report.
public void testME()
ATUReports.add(“Step Desc”, “inputValue”, “expectedValue”,
- Click the screen shot thumbnail to enlarge the screen shot.
Customizing the index page
You can change the header text and add a client logo and a description for the respective project by configuring the following properties in the Property file.
#change header text
atu.proj.header.text=My Proj Reports
#add project/client logo, the image is copied to “HTML_Design_Files/IMG” directory
#specify your project description
atu.proj.description=MyProject Testing Reports
Enabling the video recording feature
You can enable the video recording feature by changing the Property file.
To enable the video recording feature, enter ‘suite’ as the value for the “atu.reports.recordExecution” property, and run the selenium test automation code. A video will be created in the respective cycle folder, which the user can watch while running the automated test. You can watch the video only using VLC Media Player.
The user could also click the ‘Click Me to Show/Hide the Execution’ Video link in the report to watch the recording.
#Record test execution
#testmethod: record execution for every single test method in its own movie file, not yet implemented
#suite: record execution of complete suite in a single movie file
#Available options: suite, none
Click here to download our Software Testing brochure for more information
Click here to read more about Brandix i3’s Software Testing and QA Solution
i3 Labs is the technology and innovations Lab at Brandix i3
From insights to thought-leadershipView More
Enabling farm-to-table transparency and visibility with Industry 4.0 technologies
In our last blog post on food supply chain visibility, we talked about why visibility and related concepts such as transparency and traceability matter. In this blog post, we delve into how food and beverage manufacturers and retailers can optimally use Industry 4.0 technologies to achieve and deliver stakeholder expectations concerning visibility, transparency, and traceability.
Building low-code feature-rich applications for CloudSuite with Infor Mongoose
A part of Infor CloudSuite, Mongoose acts as a Platform-as-a-Service (PaaS) and is fully integrated with Infor Ming.le and Infor ION. Due to Mongoose's ability to simplify the application designing and deployment process, Nucleus Research recently positioned Infor as a Leader in the Low-Code Application Platforms Value Matrix.
Six reasons to embrace food supply chain transparency
F&B manufacturers should not consider supply chain transparency a burden or an invasion of company privacy. When done right, transparency can benefit all stakeholders in the F&B supply chain: manufacturers, logistics, retailers, regulatory bodies, & most importantly, the conscious consumers. Explore why transparency matters and key concepts such as visibility, and traceability, in our latest blog post:
Making the most of your data with Infor-Ephesoft integration
Businesses generate mountains of data throughout the supply chain and at various customer and partner touchpoints. Leveraging these data is one of the critical goals for enterprises driven by innovation and as it helps them be more competitive, productive, and digital.
Finance & Accounting Guide: Enhancing productivity and accelerating processes with IDM Capture
The finance and accounting departments and processes are among the most critical and essential functions of a business. However, multiple studies indicate that about 50% of organizations are still wrangling their data manually.