From the course: Scripting for Testers

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Generating test images

Generating test images - Python Tutorial

From the course: Scripting for Testers

Generating test images

- [Instructor] We've covered a lot about how you can validate and compare images, but what if you want to generate some images for your testing? We could use generative AI for this, but let's be honest, most of the time as testers, we aren't that concerned with the content of the images. We're trying to test things like how different image sizes or resolutions are handled. For this video, I'm going to use something a little more tame than generative AI, but sometimes the simpler tools get the job done better than the complicated things. Using the right tool for the right job lets you move faster and be more productive as a tester. Let's say that your site offers the ability to upload images and you want to test out some of that functionality. You might want to test certain image dimensions or different image sizes. In this video, I'm going to show you two different ways to generate images like this. The first way is using the site dummyimage.com. As you can see from this…

Contents