Myvideo

Guest

Login

Playwright Python 10 | Data Driven Testing

Uploaded By: Myvideo
10 views
0
0 votes
0

In this session… - How to parameterize tests - How to get data from csv file - How to get data from json file DEMO - How to do Data Driven Testing Step 1 - Create a simple test that uses some data Step 2 - Parameterize the test i.e. use variables in place of hard coded data values pass values to the variables using @. parameterize() fixture Using CSV File Step 3 - Now store the test data in a csv file Step 4 - In the test file create function to read and get data from csv file Using JSON File Step 5 - Create a json file and add the test data Step 6 - In the test file create function to read and get data from json file - Function to get data from csv file import csv def get_csv_data(): data = [] with open(““, newline=““) as csvfile: reader = csv.D ... #RaghavPal #how_to_do_data_driven_testing_in_playwright #how_to_get_data_from_csv_file #how_to_get_data_from_json_file 20250708 w9ZeNaHuoks

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later