All Projects → adiralashiva8 → testng-metrics

adiralashiva8 / testng-metrics

Licence: MIT license
A HTML Report of test executions via TestNG (No code changes required, Export results)

Programming Languages

HTML
75241 projects
java
68154 projects - #9 most used programming language
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to testng-metrics

Selenium-Foundation
Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).
Stars: ✭ 51 (+1600%)
Mutual labels:  selenium, testng
TestLeafSeleniumTraining
This is public repository for Selenium Learners at TestLeaf
Stars: ✭ 80 (+2566.67%)
Mutual labels:  selenium, testng
autotest-framework
UI自动化测试框架,支持APP、Web、HTML5三端, 基于SpringBoot框架, 采用Page Object设计模式,基于 TestNG 测试框架构建测试用例,支持消息通知、失败截屏、HTTP 报告、并发执行等特性
Stars: ✭ 98 (+3166.67%)
Mutual labels:  selenium, testng
carina
Carina automation framework: Web, Mobile, API, DB etc testing...
Stars: ✭ 652 (+21633.33%)
Mutual labels:  selenium, testng
Selion
Enabling Test Automation in Java
Stars: ✭ 252 (+8300%)
Mutual labels:  selenium, testng
selenified
The Selenified Test Framework provides mechanisms for simply testing applications at multiple tiers while easily integrating into DevOps build environments. Selenified provides traceable reporting for both web and API testing, wraps and extends Selenium calls to more appropriately handle testing errors, and supports testing over multiple browser…
Stars: ✭ 38 (+1166.67%)
Mutual labels:  selenium, testng
difido-reports
This project aims to provide a generic implementation for HTML test reports.
Stars: ✭ 38 (+1166.67%)
Mutual labels:  selenium, testng
SeleniumTDD
A Selenium TDD framework that incorporates key features of Selenium and TestNG which can be used to create web-based automation scripts.
Stars: ✭ 23 (+666.67%)
Mutual labels:  selenium, testng
Katalium
Stars: ✭ 36 (+1100%)
Mutual labels:  selenium, testng
Fluentlenium
FluentLenium is a website & mobile automation framework which extends Selenium to write reliable and resilient UI functional tests. This framework is React ready. Written and maintained by people who are automating browser-based tests on a daily basis.
Stars: ✭ 766 (+25433.33%)
Mutual labels:  selenium, testng
MasterSeleniumFramework
Automation Testing | Web | Java | OOPS | Selenium WebDriver | TestNG | Maven | ExtentReport | Allure Reports | Java mail API | Design Patterns (Page Object Model, Singleton) | Jenkins | Data-Driven Testing using JSON file
Stars: ✭ 52 (+1633.33%)
Mutual labels:  selenium, testng
Java.webdriver
Browser test automation using Selenium WebDriver in Java
Stars: ✭ 135 (+4400%)
Mutual labels:  selenium, testng
teasy
Test easy with Teasy - UI automation testing framework
Stars: ✭ 27 (+800%)
Mutual labels:  selenium, testng
Carina
Carina automation framework: Web, Mobile, API, DB
Stars: ✭ 549 (+18200%)
Mutual labels:  selenium, testng
Java.appium
Mobile test automation using Appium in Java
Stars: ✭ 59 (+1866.67%)
Mutual labels:  selenium, testng
Reporting
Zebrunner Reporting Tool
Stars: ✭ 198 (+6500%)
Mutual labels:  selenium, testng
Alsatian
TypeScript testing framework with test cases
Stars: ✭ 244 (+8033.33%)
Mutual labels:  selenium
google-meet-bot
Bot for scheduling and entering google meet sessions automatically
Stars: ✭ 33 (+1000%)
Mutual labels:  selenium
Example Airflow Dags
Example DAGs using hooks and operators from Airflow Plugins
Stars: ✭ 243 (+8000%)
Mutual labels:  selenium
Nightwatch Cucumber
[DEPRECATED] Cucumber.js plugin for Nightwatch.js.
Stars: ✭ 243 (+8000%)
Mutual labels:  selenium

TestNg Metrics Report

TestNg Metrics is a custom report generated using TestNG Listener. Which generate awesome html report without making any changes in your existing automation code

Maven Central PRs Welcome Maintenance Open Source Love png1 HitCount


  • Sample Report link

Best viewed in desktop!


Key Features

  • Dashboard View of execution results
  • Top 10 Test Performances
  • Sort and Search Results
  • Export Results (pdf, excel, csv, print)
  • No Code changes required
  • Metrics of After* and Before*
  • Display dataprovider info for tests

Pre-requisite

  • JDK 8+
  • TestNG 6+

How to use in Project:

Maven:

  1. Add testng-metrics dependency in pom.xml

    <dependency>
      <groupId>com.github.adiralashiva8</groupId>
      <artifactId>testng-metrics</artifactId>
      <version>1.6</version>
    </dependency>
    
  2. Perform maven install

  3. Execute test cases

  4. TestNg Metrics report file will be created

    By default report will be generated at TestNG's output directory. i.e., test-output/metric.html


Not a Maven Project?

  1. Download testng-metrics.jar from here

  2. Add testng-metrics.jar in your project

    • Open Eclipse → Right click on the project
    • Go to Property → Build Path → Configure Build Path
    • Add the testng-metrics.jar in the libraries using Add External Jar button
  3. Execute test cases

  4. TestNg Metrics report will be generated


Customize Report:

  • Custom Logo: Logo can be modified by modifying:

    testng.metrics.report.logo parameter value in testng.xml

    Example:

      <suite name="Suite">
      <parameter name="testng.metrics.report.logo" value = "https://i.ibb.co/FqtQyC5/rfh.png"/>
        <test name="Test">
          <classes>
            <class name="com.github.functional.FunctionalSample"/>
          </classes>
        </test>
      </suite>
    
  • Custom Report Name: Similar to Custom Logo user can be modify report name by modifying:

    testng.metrics.report.name parameter value in testng.xml

    Example:

    <parameter name="testng.metrics.report.name" value = "regression.html"/>
    

    This helps in create different reports for different cases

  • Report With Timestamp: Helps to create new file by appending timestamp to report every time

    testng.metrics.report.appendTimestamp parameter value in testng.xml

    Example:

    <parameter name="testng.metrics.report.appendTimestamp" value = "True"/>
    

Thanks for using testng-metrics!

  • What is your opinion of this report?
  • What’s the feature I should add?

If you have any questions / suggestions / comments on the report, please feel free to reach me at


Special Thanks To:

Contributors:

  1. Krishnan Mahadevan

    • Mavenised the project ( To consume it from Maven library )
    • Converted the utility into a TestNg listener
    • Guided to publish the library into Maven Central
  2. Saurabh Gupta

    • Contributed source to display data-provider info in Test Metrics
    • Added brand LOGO for TestNG Metrics
  3. Nainappa Illi

    • Contributed source to archive test-output folder and display execution time

Feedback:

  1. Venkateswara Reddy G

  2. Shyam

  3. Testng Users Community


repo if you like it


Inspired from robotframework-metrics


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].