5. How do you test an API?- Check status codes (200, 400, 500).
- Validate response body (fields, data types).
- Verify headers (auth, content type).
- Cover negative scenarios (invalid input, missing fields).
Example:“I usually start with
Postman, validating both positive and negative cases, then move to automation using RestAssured or Playwright API testing.”
6. What’s the difference between Selenium, Cypress, and Playwright?- Selenium: Old, widely used, supports many languages, slower.
- Cypress: Modern, JavaScript-only, fast, but limited browser support.
- Playwright: New, multi-language, multi-browser, supports UI and API testing.
Example:“I prefer Playwright for modern projects because of speed and CI/CD integration. But I also understand Selenium’s role in legacy systems.”
7. How do you handle conflicts with developers?Show teamwork and professionalism.
Example:“If a developer questions my bug report, I provide clear reproduction steps, logs, and explain the impact. My goal is collaboration, not confrontation.”