Created
May 31, 2024 15:11
-
-
Save SarahElson/e5f101453e67d0f8e5619fa1c16c1042 to your computer and use it in GitHub Desktop.
What Is Parallel Testing And Why Is It Important?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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