Data-Driven Tests

Learn how to use Selenium for testing external data inputs.

Data-Driven Tests with Excel

Data-Driven testing means that the inputs of a test will be driven from external sources like an Excel or a CSV file. Let’s suppose there is a list of user credentials with different roles, but the login process is the same. Then we can extract data from the excel sheet and execute it one-by-one.

Consider a sample spreadsheet called users.xls. It contains three username-password combination as given below:

Get hands-on with 1400+ tech skills courses.