Загрузка...

Part 16: POSTMAN SERIES(Publish HTML, JUnit Reports in Jenkins)

Part 16: @postman SERIES(Publish HTML, Junit Reports in Jenkins)

Steps to integrate the junit and html report in Jenkins:-
1: Go to Manage Jenkins
2: Go to Manage Plugins
3: Add "Junit" and "HTML Publisher" plugins
4: Go to your project --- Go to Configure --- Go to Post Build Actions --- click and select Publish Junit Test result --- Add the xml report name and save (Ex: Newman_Junit.xml)
5: Go to your project -- Go to Configure --- Go to Post Build Actions --- click and select Publish HTML reports --- Add the HTML Directory and report name in Index Page and save (Ex: Newman_HTML_Report.html)
************************************************
If html report is not visible properly:
1: Open the Jenkin home page
2: Go to Manage Jenkins.
3: Now go to Script Console.
4: In that console paste below line and click on Run.
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
5: Build again and open the report, this time you will see report in correct format
************************************************
Batch command:
cd C:\Users\Admin\AppData\Roaming\npm\node_modules\newman\bin
node newman run "C:\Postman Collection\User Details.postman_collection.json" -e "C:\Postman Collection\Dev Env.postman_environment.json" --reporters cli,junit,htmlextra --reporter-junit-export "C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\Postman\Newman_Junit.xml" --reporter-htmlextra-export "C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\Postman\Newman_HTML_Report.html"
**************************************************
Please watch previous tutorials, in case if you have missed them, and subscribe to this channel.

POSTMAN Tutorial Series
**********************************************
https://www.youtube.com/playlist?list=PL-W-TIIzdLb4j4F1H4mlNxh2usqABdOyi

Selenium 4 Features
**********************************************
https://www.youtube.com/playlist?list=PL-W-TIIzdLb4kAGudzF_K0BNam5XUiD-L

API Testing using by Rest-assured library
**********************************************
https://www.youtube.com/playlist?list=PL-W-TIIzdLb5RMDsmoKHL0kEIVku_AkZ3

Extent Report
**********************************************
https://youtu.be/8fKFnDhzBoM

Builder Pattern
**********************************************
https://youtu.be/w3V6vzTDjfA

GIT Repository: https://github.com/sachinguptait/SeleniumAutomation
Facebook Group: https://www.facebook.com/groups/2281575021954417/
LinkedIn Group: https://www.linkedin.com/groups/10311201/
Telegram Group: https://t.me/joinchat/ONh25RUYqfBjsCtBJVDU5Q

Видео Part 16: POSTMAN SERIES(Publish HTML, JUnit Reports in Jenkins) канала Sachin Gupta
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять