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

Quiz

API testing

Check yourself

  1. 1.Why use API calls to seed test data instead of driving the UI?
  2. 2.What does the request fixture in Playwright Test provide?
  3. 3.Where do you configure the base URL so that request.get('/api/orders') resolves to the correct host?
  4. 4.What does request.post('/api/orders', { data: { item: 'Laptop' } }) return?
  5. 5.What is the difference between the request fixture and request.newContext() (also imported as playwright.request.newContext())?
  6. 6.How do you check that an API response returned HTTP 201 Created?
  7. 7.You need to authenticate with a token and make API calls without a browser in a global setup file. What do you use?
  8. 8.After your UI test deletes an order, how do you verify on the server side that the record is actually gone?