IKivan-kozenko -aqa
Try yourself as a QA tester
Back to topic

Quiz

Parameterize tests

Check yourself

  1. 1.You want to test the same form validation with 5 invalid inputs. What's the cleanest approach?
  2. 2.How does Playwright name each generated test when you use a for...of loop to create parameterized tests?
  3. 3.You place a beforeEach hook outside the for...of loop that generates parameterized tests. How many times does beforeEach run per test run?
  4. 4.How can you run parameterized tests for the same data set in parallel within one test file?
  5. 5.You have test data in a CSV file. What is the typical approach to load it for parameterized Playwright tests?
  6. 6.What is the project-level parameterization approach and when would you choose it over test-level forEach?
  7. 7.You want to switch the tested environment (staging vs production) using an environment variable. Where do you read the variable to set baseURL?
  8. 8.Which of these is NOT a valid reason to use test-level parameterization with a for...of loop?