1 hour ago · Tech · 0 comments

Continuing walking through Butch Mayhew's LinkedIn Learning course Playwright Essential Training: Abstractions, Fixtures, and Complex Scenarios, we will be examining his code creating a DataFactory that dynamically generates new registered users for our app under test.The app we will be testing against is PracticeSoftwareTesting.com. examining how the registration call in the API creates new users. We will also be mimicking this call at a programmatic level, to be used in a Playwright automation framework. According to Butch Mayhew, in his there are two types of data we use in our tests: static, and dynamic:Static data that should never change. Already exists before the test. Example: Your go-to test user, or your go to product when testing a shopping cart. Dynamic Data: Data that is created as part of a test. Newly registered users. Products created as part of a test. Between static and dynamic data, Butch believes it should be around 15% / 85% split. You can dynamically generate…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.