• Packt logo
  • FutureLearn logo

Test Automation Frameworks with Selenium WebDriver and Python

Increase functionality and enhance the efficiency of your test automation using Selenium Python frameworks.

A woman sits on her computer scrolling the mouse.

DIscover the benefits of using a test automation framework for quality assurance

Automated testing frameworks are a set of processes and tools that work together to deliver efficient testing of web applications for developers and QA professionals.

On this course, you’ll explore automation frameworks, identify the functions of Pytest, and learn how to integrate end-to-end frameworks from scratch. You’ll also examine continuous integration (CI) processes and demonstrate how CI can further improve your automated testing.

Run Selenium tests using the Pytest framework

Test automation frameworks lower costs, improve efficiency, and maximise functionality.

On this course, you’ll examine how to use the popular Pytest framework. You’ll explore its main functions and learn how to complete common tasks across multiple tests in parallel, using time-saving commands and fewer lines of code.

Implement an end-to-end Selenium Python testing framework from scratch

You’ll be expertly guided through every step of framework implementation, from generating browser invocation code through to producing HTML reports with logging integration.

With this knowledge, you’ll be able to test your web applications, gather data, and analyse the results with maximum efficiency, no matter the size or complexity of your applications.

Integrate your Selenium Python framework into Jenkins CI

CI gives you the ability to run tests every time software changes take place and to easily deploy your work once the test passes.

You’ll be introduced to Jenkins CI and learn how to integrate your Selenium Python framework into Jenkins. With these skills, you’ll be able to develop quicker, iterative responses to any bugs you catch.

Bringing your learning together, you’ll understand how to implement various frameworks within your automated test processes to save time, without reducing the quality of your tests.

Download video: standard or HD

Skip to 0 minutes and 2 seconds SPEAKER: Are you an automation frameworks fan? Well, this is your chance to learn how to use Selenium, Python, and the basics of automation testing in just two weeks. Learn from expert Rahul Shetty, founder of Rahul Shetty Academy. Let him guide you in all things automation. This course will enable you to describe the pytest unit testing framework, log and generate HTML reports in the Python framework, develop an end-to-end Selenium Python framework from scratch, integrate the Selenium Python framework into Jenkins, read and write data from Excel to the Selenium Python framework. Learn all this from wherever and whenever you want. Step into your future with Test Automation Frameworks with Selenium WebDriver and Python from Packt and FutureLearn.

Syllabus

  • Week 1

    Test Automation Frameworks with Selenium WebDriver and Python

    • Introduction to the course

      Welcome to Test Automation Frameworks with Selenium WebDriver and Python and the start of your learning journey, brought to you by Packt.

    • Unit testing framework

      In this activity, we will explore the framework design. We will discuss Pytest and its advantages, running Pytests from the terminal with different command flags, running selected Pytests and grouping Pytests with marks.

    • Unit testing framework continued

      In this activity, we'll discuss the unit testing framework. We'll explore fixtures, the importance of confest file, an introduction to data-driven fixtures, parameterizing tests with multiple datasets and generating HTML reports.

    • Logging and generating HTML reports in Python framework

      In this activity, we will discuss logging in Python tests, the importance of file handler in logging tests, building reusable utility for logging and integrating Pytest logs into HTML reporting.

    • Developing a Selenium Python framework part 1

      In this activity, we will describe the first steps in developing an end-to-end Selenium Python framework from scratch.

    • Wrap up

      You have reached the end of Week 1. In this activity, you'll reflect on what you have learned.

  • Week 2

    Framework design continued

    • Introduction to Week 2

      Welcome to Week 2. In this activity we'll highlight the main topics that will be covered this week.

    • Developing a Selenium Python framework part 2

      In this activity, we will discuss page object design pattern and its importance, implementing page objects mechanism into framework tests, optimising objects and creating custom utilities.

    • Developing a Selenium Python framework part 3

      In this activity, we will discuss implementing framework standards, debugging and developing custom utilities and implementing data-driven mechanism.

    • Developing a Selenium Python framework part 4

      In this activity, we will discuss parameterising the tests with multiple data sets, implementing logging into framework tests and generating HTML reports with logging integration.

    • Integrating framework to Jenkins

      In this activity, we will discuss Jenkins. We will describe how to integrate Jenkins into the Selenium Python framework, setting up Jenkins parametrised job variables and creating Jenkins Junit results with Pytest commands.

    • Reading and writing data from Excel to Selenium Python framework

      In this activity, we will discuss Excel data-driven testing, reading and writing data from Excel to Python tests.

    • Wrap up

      You have reached the end of this course. In this activity, you will reflect on what you have learned.

When would you like to start?

Start straight away and join a global classroom of learners. If the course hasn’t started yet you’ll see the future date listed below.

Learning on this course

On every step of the course you can meet other learners, share your ideas and join in with active discussions in the comments.

What will you achieve?

By the end of the course, you‘ll be able to...

  • Describe the Pytest unit testing framework.
  • Perform logging and generating HTML reports in the Python framework.
  • Demonstrate the ability to develop an end-to-end Selenium Python framework from scratch.
  • Perform the integration of the Selenium Python framework into Jenkins.
  • Demonstrate the ability to read and write data from Excel to the Selenium Python framework.

Who is the course for?

This course is for developers and testers who want to further their understanding of Selenium Python frameworks to improve their automated test processes.

Who developed the course?

Packt

Founded in 2004 in Birmingham, UK, Packt’s mission is to help the world put software to work in new ways, through the delivery of effective learning and information services to IT professionals.

FutureLearn

FutureLearn is a leading social learning platform and has been providing high quality online courses for learners around the world over the last ten years.

What's included?

This is a premium course. These courses are designed for professionals from specific industries looking to learn with a smaller group of like-minded individuals.

  • Unlimited access to this course
  • Includes any articles, videos, peer reviews and quizzes
  • Certificate of Achievement to prove your success when you're eligible
  • Download and print your Certificate of Achievement anytime

Still want to know more? Check out our FAQs

Learning on FutureLearn

Your learning, your rules

  • Courses are split into weeks, activities, and steps to help you keep track of your learning
  • Learn through a mix of bite-sized videos, long- and short-form articles, audio, and practical activities
  • Stay motivated by using the Progress page to keep track of your step completion and assessment scores

Join a global classroom

  • Experience the power of social learning, and get inspired by an international network of learners
  • Share ideas with your peers and course educators on every step of the course
  • Join the conversation by reading, @ing, liking, bookmarking, and replying to comments from others

Map your progress

  • As you work through the course, use notifications and the Progress page to guide your learning
  • Whenever you’re ready, mark each step as complete, you’re in control
  • Complete 90% of course steps and all of the assessments to earn your certificate

Want to know more about learning on FutureLearn? Using FutureLearn

Get a taste of this course

Find out what this course is like by previewing some of the course steps before you join:

Do you know someone who'd love this course? Tell them about it...