From the course: Scripting for Testers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Generate and use input data - Python Tutorial
From the course: Scripting for Testers
Generate and use input data
- [Narrator] Testers often need to analyze data, and we've seen how that can be done with scripting. But as testers, we often want to try many combinations of input, and this is another area where scripting can help you shine. Rather than manually creating and entering different data sets, you can use a script to help you do this more quickly. So, we'll use this demo site here, and we'll test some different inputs to the comment field. Over here I have a spreadsheet that has some input values that we've defined. So these are just some inputs that we can input into the comment sheet. So, what we're going to do is read these values out of the spreadsheet, into our script, and then we're going to use Selenium to feed those values into our text box. So let's take a look at a script that I've started. And you can see here that we've got our authorization set up. And we've got a connection to that spreadsheet, so let's go ahead and use that connection to read the data from the sheet. So, we…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.