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 - 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
-
-
-
-
-
-
(Locked)
Taking a snapshot of your site5m 20s
-
(Locked)
Verifying images in a snapshot6m 6s
-
(Locked)
Emulating different devices3m 37s
-
(Locked)
Create image diff (difference) tools4m 4s
-
(Locked)
Comparing images5m 57s
-
(Locked)
Generating test images5m 42s
-
(Locked)
Find a subimage in an image6m 38s
-
(Locked)
Challenge: Cross browser data validation1m 22s
-
(Locked)
Solution: Cross browser data validation5m 52s
-
(Locked)
-