Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created May 31, 2024 15:11
Show Gist options
  • Save SarahElson/e5f101453e67d0f8e5619fa1c16c1042 to your computer and use it in GitHub Desktop.
Save SarahElson/e5f101453e67d0f8e5619fa1c16c1042 to your computer and use it in GitHub Desktop.
What Is Parallel Testing And Why Is It Important?
# Import the functions for retrieving the title and its length from parallel_testing file
from parallel_testing import get_title, get_title_length
# Test function to verify the web page title retrieved from browser
def test_title():
title = get_title()
assert title == "Your Store", "Test not passed for title"
# Test function to verify the length of the web page title retrieved from browser
def test_title_length():
title_length = get_title_length()
assert title_length == 10, "Test not passed for title length"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment