← All Playwright mock interview topics
Test your knowledge of API Testing with Playwright with a timed Playwright MCQ mock test. Each attempt gives you 20 random questions in 20 minutes from a 200-question bank covering the request fixture and APIRequestContext, GET, POST, PUT, PATCH and DELETE, data, form, multipart and params, status codes, response parsing, schema validation, authentication, API service objects, hybrid API and UI tests, polling and negative tests. Submit to see your score, the correct answers and an explanation for every question.
What this mock test covers
The questions follow Module 9 of the free Playwright with TypeScript tutorial. Revise these lessons if a question catches you out:
Sample questions with answers
- Q. Which built-in fixture is used for API testing in Playwright?
Answer: request
The `request` fixture is an APIRequestContext configured from your `use` options. - Q. What type is the `request` fixture?
Answer: APIRequestContext
APIRequestContext exposes get, post, put, patch, delete, head and fetch. - Q. How do you send a GET request?
Answer: await request.get('/api/users')
Relative URLs resolve against `baseURL`. - Q. How do you send a JSON body with POST?
Answer: await request.post('/api/users', { data: { name: 'QA', job: 'tester' } })
Objects passed in `data` are serialised as JSON and the content type is set automatically. - Q. Which option sends an HTML form-encoded body?
Answer: form: { user: 'qa', pass: 'x' }
`form` sends application/x-www-form-urlencoded.
Ready for more? Go back to the Playwright mock interview dashboard to track your overall interview readiness across all topics.
Frequently asked questions
How many questions does the API Testing with Playwright mock test have?
The question bank has 200 questions. Each test picks 20 at random, favouring questions you have not seen, so about 10 attempts cover the full bank.
What is the pass mark?
You pass a test with 70% or more, which is 14 of 20 questions correct.
Can I retake the test?
Yes. Retake as often as you like. Every retake draws a fresh set of 20 questions and counts toward your 20-exam readiness target.