pytest Framework Tutorial Home / Video /

How To Generate Test Reports đź“ť | pytest Framework Tutorial | Part-X | LambdaTest

How To Generate Test Reports đź“ť | pytest Framework Tutorial | Part-X | LambdaTest

...Playlist

...
  • What is pytest | pytest Framework Tutorial | Part-I | LambdaTest
  • How To Run First Test In pytest | pytest Framework Tutorial | Part-II | LambdaTest
  • What Are Assertions In pytest | pytest Framework Tutorial | Part-III | LambdaTest
  • How To Run Multiple Tests In pytest | pytest Framework Tutorial | Part-IV | LambdaTest
  • How To Group Tests Using Markers | pytest Framework Tutorial | Part-V | LambdaTest
  • What Are pytest Fixtures | pytest Framework Tutorial | Part-VI | LambdaTest
  • What Is Parameterization In pytest | pytest Framework Tutorial | Part-VII | LambdaTest
  • How To Skip And Stop Tests | pytest Framework Tutorial | Part-VIII | LambdaTest
  • What Is Page Object Model? | pytest Framework Tutorial | Part-IX | LambdaTest
  • How To Generate Test Reports đź“ť | pytest Framework Tutorial | Part-X | LambdaTest
  • How To Perform Cross Browser Testing | pytest Framework Tutorial | Part-XI | LambdaTest
  • Learn pytest in 6 Hours⏰ | Complete pytest framework Tutorial | LambdaTest

About The Video

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.

Video Chapters

00:00 Introduction

00:34 HTML Report

08:46 Allure Report

17:06 Closing

Key Topics Covered

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.

Related Blogs & Hubs

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 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.

More Videos from pytest Framework Tutorial

LT Video

Learn pytest in 6 Hours⏰ | Complete pytest framework Tutorial | LambdaTest

pytest Framework Tutorial
LT Video

How To Perform Cross Browser Testing | pytest Framework Tutorial | Part-XI | LambdaTest

pytest Framework Tutorial
LT Video

How To Generate Test Reports đź“ť | pytest Framework Tutorial | Part-X | LambdaTest

pytest Framework Tutorial
LT Video

What Is Page Object Model? | pytest Framework Tutorial | Part-IX | LambdaTest

pytest Framework Tutorial
LT Video

How To Skip And Stop Tests | pytest Framework Tutorial | Part-VIII | LambdaTest

pytest Framework Tutorial
LT Video

What Is Parameterization In pytest | pytest Framework Tutorial | Part-VII | LambdaTest

pytest Framework Tutorial
LT Video

What Are pytest Fixtures | pytest Framework Tutorial | Part-VI | LambdaTest

pytest Framework Tutorial
LT Video

How To Group Tests Using Markers | pytest Framework Tutorial | Part-V | LambdaTest

pytest Framework Tutorial
LT Video

How To Run Multiple Tests In pytest | pytest Framework Tutorial | Part-IV | LambdaTest

pytest Framework Tutorial
LT Video

What Are Assertions In pytest | pytest Framework Tutorial | Part-III | LambdaTest

pytest Framework Tutorial
LT Video

How To Run First Test In pytest | pytest Framework Tutorial | Part-II | LambdaTest

pytest Framework Tutorial
LT Video

What is pytest | pytest Framework Tutorial | Part-I | LambdaTest

pytest Framework Tutorial
LT Video

PyTest Tutorial | Learn PyTest In 90 minutes

pytest Framework Tutorial
LT Video

Cross Browser Testing With PyTest

pytest Framework Tutorial
LT Video

Parallel Testing With PyTest

pytest Framework Tutorial
LT Video

Writing First UI Test Using PyTest And Pylenium

pytest Framework Tutorial
LT Video

Getting Started With PyTest

pytest Framework Tutorial
LT Video

Introduction To Web Automation With LambdaTest And PyTest

pytest Framework Tutorial