How To Generate Test Reports đź“ť | pytest Framework Tutorial | Part-X | LambdaTest
In this Part 10 of the pytest framework tutorial series, Rex Jones (@RexJonesII), a seasoned QA Engineer, Trainer, YouTuber, and Blogger, deep dives into creating two types of test reports: HTML and Allure report. By the end of the tutorial, you'll have a comprehensive understanding of generating test reports in pytest and how to apply them while performing test automation.
00:00 Introduction
00:34 HTML Report
08:46 Allure Report
17:06 Closing
Introduction to Test Reports: The video begins by explaining the importance of test reports in summarizing activities and results. Test reports help stakeholders understand the product's quality.
Generating an HTML Report:
It guides on installing the PyTest-HTML plugin via pip and shows the command pip install pytest-html.
The process of generating an HTML report for a specific set of tests is demonstrated. The command used is pytest <test_directory> --html=<report_name>.html.
The video walks through the contents of the generated HTML report, including the environment setup, test summary (showing the number of passed tests), and detailed results for individual tests.
Additional tips on including HTML report generation commands directly in the PyTest configuration file for convenience are shared.
Generating an Allure Report:
The process starts with installing the Allure-PyTest plugin using pip install allure-pytest.
The necessity of downloading the Allure command-line tool from Maven to view the Allure reports is highlighted, as Allure generates JSON and TXT files that need to be converted to a human-readable format.
Detailed steps for downloading, extracting, and setting up the Allure command-line tool are provided.
The command to generate Allure reports (pytest --alluredir=<folder_for_results>) and the command to serve the Allure report (allure serve <folder_for_results>) are demonstrated.
An overview of the Allure report's interface is given, including the Overview page, Categories, Suites, Graphs, Timeline, Behaviors, and Packages sections. Each section's purpose and the type of information it provides are explained.
Cross Browser Testing on LambdaTest: The video concludes with a mention of cross-browser testing on LambdaTest and encourages viewers to explore LambdaTest's blog, community, and certifications for further learning.
How To Generate pytest Code Coverage Report
Page Object Model (POM) In Selenium Python
End To End Tutorial For pytest Fixtures With Examples
pytest Tutorial – Python Selenium Test in Parallel
Selenium Python Tutorial: Getting Started With pytest
pytest Tutorial: Executing Multiple Test Cases From Single File
Rex Jones
Rex is an Experienced Quality Assurance (QA) Engineer with a history of working in the IT and Services industry. Certified as a Certified Software Test Engineer (CSTE) and Test Management Approach (TMap). Also skilled in Automation, Agile Methodologies, Test Strategies, and Software Development Life Cycle (SDLC) with a passion for testing software manually or automation such as Selenium.
Learn pytest in 6 Hours⏰ | Complete pytest framework Tutorial | LambdaTest
pytest Framework TutorialHow To Perform Cross Browser Testing | pytest Framework Tutorial | Part-XI | LambdaTest
pytest Framework TutorialHow To Generate Test Reports đź“ť | pytest Framework Tutorial | Part-X | LambdaTest
pytest Framework TutorialWhat Is Page Object Model? | pytest Framework Tutorial | Part-IX | LambdaTest
pytest Framework TutorialHow To Skip And Stop Tests | pytest Framework Tutorial | Part-VIII | LambdaTest
pytest Framework TutorialWhat Is Parameterization In pytest | pytest Framework Tutorial | Part-VII | LambdaTest
pytest Framework TutorialWhat Are pytest Fixtures | pytest Framework Tutorial | Part-VI | LambdaTest
pytest Framework TutorialHow To Group Tests Using Markers | pytest Framework Tutorial | Part-V | LambdaTest
pytest Framework TutorialHow To Run Multiple Tests In pytest | pytest Framework Tutorial | Part-IV | LambdaTest
pytest Framework TutorialWhat Are Assertions In pytest | pytest Framework Tutorial | Part-III | LambdaTest
pytest Framework Tutorial