How to set up Selenium HTML Reports in Jenkins

We have Java MOJO configured in Jenkins. After the code is created in CI, reporting reports will be created. We have test cases for Junit and Selenium to test the application.

I need to present the results obtained from the test cases in HTML format. Is there a plugin available for Jenkins to display HTML content?

+4
source share
2 answers

First you need to install Selenium HTML Report Plugin . If you do not know about installing the plugin, use the link

After installing the Selenium HTML report plugin, add a post build script to generate HTML content from surefire reports. Use the following screenshot to configure the HTML plugin.

Configuring the Selenium HTML Report plugin in Jenkins

Change ProjectRoot to your MOJO

+4
source
  • Install "Selenium HTML Report Plugin" in jenkins.
  • In the post-build action, add the steps below.

    Step 1: Publish Selenium Release Report

    Value : * / (Job title) / workspace / → note: (put your test result in this folder)

    step 2: publish a report on selenium

    Value : * / (Job Name) /workspace/.html

In this way, we can create a successful report on selenium.

+1
source

Source: https://habr.com/ru/post/1442256/


All Articles