SoftwareTestPilot
38 Q&A · Pillar · Freshers → Senior

Software Testing Interview Questions and Answers (1970)

The complete pillar: 38 top interview questions across fundamentals, manual, automation, API + SQL, SDET, Agile/CI-CD and scenario-based rounds — with links to every specialist hub (manual, automation, Selenium, Playwright, API, SQL, SDET) and 8 People-Also-Ask FAQs.

  • 8 min read
  • Difficulty: Mixed (Easy → Hard)
  • Freshers · 1–10+ YOE
  • Updated July 1970
  • Avinash Kamble

1. Software Testing Fundamentals

Easy Very Common 1 min read

Q1.What is software testing?

Software testing is the process of evaluating a system to find defects, verify it meets requirements, and validate it solves the user's problem. It combines verification (are we building the product right?) and validation (are we building the right product?).

Easy Very Common 1 min read

Q2.What is the difference between SDLC and STLC?

SDLC (Software Development Life Cycle) covers building the product: requirements → design → development → testing → deployment → maintenance. STLC (Software Testing Life Cycle) covers only QA activities inside SDLC: requirement analysis → test planning → test design → environment setup → test execution → closure.

Medium Very Common 1 min read

Q3.What are the 7 principles of testing?

(1) Testing shows the presence of defects, not their absence. (2) Exhaustive testing is impossible. (3) Early testing saves time and money. (4) Defects cluster together. (5) The pesticide paradox — same tests stop finding bugs. (6) Testing is context-dependent. (7) Absence-of-errors is a fallacy — a bug-free app that solves the wrong problem still fails.

Easy Very Common 1 min read

Q4.What is the difference between verification and validation?

Verificationare we building the product right? Static, done via reviews, walkthroughs, inspections. Validationare we building the right product? Dynamic, done via test execution and UAT against real user needs.

Easy Very Common 1 min read

Q5.What is severity vs priority?

Severity = business impact (Critical/High/Medium/Low). Priority = urgency to fix (P1/P2/P3/P4). A misspelled company name on the homepage is low severity but high priority; a crash on a rarely used admin feature is high severity but low priority.

Easy Very Common 1 min read

Q6.What is the difference between smoke and sanity testing?

Smoke is a wide, shallow build-verification pass — 'does the build even start?' Run on every build, usually automated. Sanity is a narrow, deep check on a specific bug fix or small feature after a minor change. Smoke is broader; sanity is deeper.

Easy Very Common 1 min read

Q7.Explain the bug life cycle.

Standard flow: New → Assigned → Open → In Progress → Fixed → Retest → Verified → Closed. Alternate states: Rejected, Deferred, Duplicate, Not-Reproducible, Reopened. Every transition is logged in Jira for audit and trend metrics.

Easy Very Common 1 min read

Q8.What is regression testing?

Regression re-runs a curated suite after every change to confirm existing features still work. Typically automated at UI/API layer, gated in CI, and prioritised by risk (recent changes, high-traffic flows, top-defect modules).

Confidence check

If you can confidently answer the Software Testing Fundamentals questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

2. Manual Testing Essentials

Easy Very Common 1 min read

Q9.How do you write a good test case?

Unique ID, clear title, precondition, atomic steps, single expected result, traceability to a requirement, priority, no dependency on other tests. Rule of thumb: another tester should reproduce it exactly from your steps alone. See our Manual Testing Q&A hub for 42 more.

Easy Very Common 1 min read

Q10.What is boundary value analysis (BVA)?

BVA tests at input-range edges — min, min-1, min+1, max, max-1, max+1. For a text field 5–15 chars: test 4, 5, 6, 14, 15, 16 characters. Bugs cluster at boundaries where developers use wrong operators (< vs ≤).

Easy Very Common 1 min read

Q11.What is equivalence partitioning?

EP divides inputs into partitions where behaviour should be identical, then tests one value per partition. For age 18–60: one from <18 (invalid), one from 18–60 (valid), one from >60 (invalid) — three tests instead of dozens.

Easy Very Common 1 min read

Q12.What is decision table testing?

Lists every combination of conditions and expected actions. For a loan-approval rule (age, income, credit score), each row becomes a test case. Guarantees complete logical coverage and exposes missing rules early.

Easy Very Common 1 min read

Q13.What is exploratory testing?

Exploratory testing is simultaneous learning, test design, and execution — the tester uses charters, heuristics, and domain knowledge to probe the system. Best for new features, incomplete specs, and time-boxed risk assessments. Managed via Session-Based Test Management (SBTM).

Easy Very Common 1 min read

Q14.What information should a bug report contain?

Title, environment (browser/OS/build/device), preconditions, exact repro steps, actual vs expected result, severity, priority, screenshots/video, console + network logs, reproducibility %, and a link to the failing test case.

Confidence check

If you can confidently answer the Manual Testing Essentials questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

3. Automation Testing Essentials

Easy Very Common 1 min read

Q15.When should you automate a test?

Automate when the test is (1) repeatable across builds, (2) stable in requirements, (3) high-value (top revenue flows), and (4) low-flake in the target environment. Do NOT automate one-off exploratory checks, UX-subjective screens, or captchas.

Medium Common 1 min read

Q16.What is the Page Object Model (POM)?

POM encapsulates a page's locators and actions in a class. Tests call loginPage.loginAs(user) instead of raw driver.findElement(...). Benefits: single point of change when the UI shifts, reusable actions, cleaner tests. See Automation Q&A.

Easy Common 1 min read

Q17.Selenium vs Playwright — which should I pick in 2026?

Playwright wins for new projects: built-in auto-waits, first-class trace viewer, parallel by default, network stubbing, cross-browser without Grid. Selenium still wins for legacy suites, IE/older browsers, and Selenium Grid infra investments. See Playwright vs Selenium 2026.

Easy Common 1 min read

Q18.What is a good test pyramid?

~70% unit + component tests (fast, cheap), ~20% API/integration tests (medium), ~10% end-to-end UI tests (slow, brittle). Inverting the pyramid ('ice-cream cone') is the #1 cause of flaky, slow CI pipelines.

Easy Common 1 min read

Q19.How do you handle flaky tests?

Diagnose the root cause (timing, test data, environment, order-dependence) before retrying. Use explicit waits, isolate test data per run, reset state via API (not UI), pin browser versions, and quarantine chronically flaky tests instead of hiding them behind retries.

Medium Common 1 min read

Q20.What is data-driven testing?

Same test logic runs against multiple data sets from CSV/JSON/DB/Excel. Frameworks: TestNG @DataProvider, JUnit 5 @ParameterizedTest, Playwright test.describe.parallel with a data array. Keeps test code DRY and expands coverage cheaply.

Confidence check

If you can confidently answer the Automation Testing Essentials questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

4. API & Database Testing

Easy Common 1 min read

Q21.What is API testing?

API testing validates requests and responses at the service layer — status codes, headers, payload schema, business rules, auth, and performance. Tools: Postman, REST Assured, Playwright, k6, Karate. See API Q&A hub.

Easy Common 1 min read

Q22.What are the common HTTP status codes testers must know?

2xx success (200 OK, 201 Created, 204 No Content). 3xx redirect (301, 304). 4xx client (400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 409 Conflict, 429 Too Many Requests). 5xx server (500 Internal Server Error, 502, 503, 504).

Easy Common 1 min read

Q23.Difference between PUT, POST and PATCH?

POST creates a resource (not idempotent). PUT replaces a resource fully (idempotent). PATCH partially updates specific fields (idempotent when applied to the same state).

Easy Common 1 min read

Q24.What is contract testing?

Verifies that the API request/response contract between consumer and provider holds — even when either evolves independently. Tools: Pact (consumer-driven), Spring Cloud Contract. Prevents 'my service works but breaks yours' incidents in microservices.

Easy Common 1 min read

Q25.What SQL joins do QA engineers need to know?

INNER JOIN — matching rows in both tables. LEFT JOIN — all left + matched right. RIGHT JOIN — reverse. FULL OUTER JOIN — all rows from both, nulls where no match. SELF JOIN — table joined to itself. See SQL Q&A for testers.

Medium Common 1 min read

Q26.How do you validate data in the database after a UI action?

(1) Capture the primary key returned by the UI/API. (2) Run a SELECT against the target table with that key. (3) Assert row exists, column values match input, audit columns populated (created_at, updated_by). (4) Clean up test data or run inside a transaction rolled back at teardown.

Confidence check

If you can confidently answer the API & Database Testing questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

5. SDET, Agile & CI/CD

Easy Common 1 min read

Q27.What is an SDET?

SDET (Software Development Engineer in Test) writes production-grade test code, frameworks, tooling, and CI/CD pipelines. Expected to code fluently in one language (Java/Python/JS), design frameworks, review PRs, and own quality end-to-end. See SDET Q&A hub.

Easy Common 1 min read

Q28.What is shift-left testing?

Involving QA earlier in SDLC — requirement grooming, story-point estimation, unit-test reviews, contract definition. Cuts defect-fix cost by 6–10× (bug found in prod vs bug found in design).

Easy Occasional 1 min read

Q29.How does QA fit into Agile / Scrum?

QA is embedded in the squad, not a downstream gate. Participates in refinement (adds acceptance criteria), sprint planning (test estimates), daily standups (blocker calls), and demos (validation). Definition-of-Done includes automated tests + no P1/P2 open.

Easy Occasional 1 min read

Q30.What is CI/CD from a QA lens?

CI = every commit is built + unit + component + API tested automatically. CD = every green build is deployable (Continuous Delivery) or auto-deployed (Continuous Deployment). QA owns pipeline gates: unit → API → smoke UI → full regression → performance.

Easy Occasional 1 min read

Q31.What metrics do you track in QA?

Defect density, defect leakage %, escaped-defect trend, automation coverage %, mean-time-to-detect, mean-time-to-fix, flaky-test %, CI green-build %, sprint acceptance-criteria pass rate.

Easy Occasional 1 min read

Q32.How do you decide test coverage is 'enough' to ship?

Risk-based: cover every P0/P1 acceptance criterion, top-5 revenue flows, top-5 defect-density modules, and any changed code. 100% coverage is a myth — aim for coverage of business risk, not lines of code.

Confidence check

If you can confidently answer the SDET, Agile & CI/CD questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

6. Scenario-Based & Behavioral

Easy Occasional 1 min read

Q33.A build fails only in the CI environment but passes locally. How do you debug?

Compare env vars, browser version, screen resolution, network policy, test data isolation, timezone, and race conditions with parallel workers. Reproduce inside the same Docker image CI uses. Capture Playwright trace / Selenium video from CI to see the exact failure step.

Easy Occasional 1 min read

Q34.You have 500 regression tests and only 2 hours in the release window. What do you cut?

Keep: (1) top revenue flows, (2) recently changed modules, (3) tests protecting past P1 defects. Cut: duplicates, deprecated features, low-risk cosmetic checks. Run the trimmed set in parallel to fit the window and schedule the full suite post-release.

Easy Occasional 1 min read

Q35.The developer says a bug is 'not reproducible'. What do you do?

Re-verify in a clean environment with exact steps, capture video + logs + HAR, share back. If still disagreed, escalate with the requirement reference and a screen recording — never argue on Slack without evidence.

Easy Occasional 1 min read

Q36.A stakeholder asks for 100% automation. How do you respond?

Explain that automation ROI drops after ~80% because remaining tests are exploratory, visual, subjective, or one-off. Propose a target of 70–80% automated regression + 100% CI gating on smoke, backed by defect-leakage metrics — not a raw automation-% target.

Easy Occasional 1 min read

Q37.How do you test a login page? (open-ended)

Positive (valid creds), negative (invalid password, empty fields, SQL injection, XSS), boundary (max username length), security (rate-limit, brute-force, forgot-password token expiry), session (concurrent logins, remember-me), accessibility (keyboard-only, screen reader), performance (100 concurrent logins), API-layer (401/403 responses).

Easy Occasional 1 min read

Q38.Tell me about a bug you're proud of finding.

Use STAR: Situation (context and stakes), Task (what you owned), Action (how you designed the test / spotted the anomaly), Result (impact avoided, in $ or user reach). Pick a bug with data — 'prevented a $40K refund incident' beats 'found a payment bug'.

Confidence check

If you can confidently answer the Scenario-Based & Behavioral questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

Quick revision

  1. Q1: What is software testing — Software testing is the process of evaluating a system to find defects, verify it meets requirements, and validate it solves the user's problem.
  2. Q2: What is the difference between SDLC and STLC — SDLC (Software Development Life Cycle) covers building the product: requirements → design → development → testing → deployment → maintenance.
  3. Q3: What are the 7 principles of testing — (1) Testing shows the presence of defects, not their absence.
  4. Q4: What is the difference between verification and validation — Verification — are we building the product right?
  5. Q5: What is severity vs priority — Severity = business impact (Critical/High/Medium/Low).

Frequently asked questions

The 2026 shortlist: SDLC vs STLC, severity vs priority, bug life cycle, boundary value analysis, smoke vs sanity, regression vs retesting, POM, API status codes, joins in SQL, and a real defect you found — every one is answered on this page.

Split prep into 5 tracks: (1) fundamentals + ISTQB glossary, (2) one automation tool (Selenium or Playwright), (3) API testing with Postman, (4) SQL joins + aggregates, (5) 8–10 STAR behavioral stories. Rehearse out loud with an AI mock interviewer for pace and clarity.

For 0–3 YOE: manual fundamentals (30%), automation basics (25%), API + SQL (25%), behavioral (20%). For 4+ YOE: framework design (30%), CI/CD + parallelism (20%), test strategy (20%), leadership + scenarios (30%).

Startups: 2–3 (screen, tech, culture). Product companies: 4–6 (screen, coding, framework design, system design for QA, behavioral, bar-raiser). Service companies: 2–4 (aptitude, tech, manager, HR).

Yes — 45% of open QA roles still list manual/exploratory testing, especially in BFSI, healthcare, insurance, and government. Domain-heavy testing, UAT, accessibility auditing, and usability cannot be fully automated.

India: Freshers ₹3.5–5 LPA, mid-level ₹8–15 LPA, senior ₹18–35 LPA. USA: junior $70–95K, mid $95–130K, senior $130–180K. SDETs at FAANG-tier: $180K–280K total comp.

QA owns quality process end-to-end (planning, metrics, sign-off). Tester primarily executes tests (manual or automated). SDET writes production-grade test code, frameworks, and CI/CD pipelines — closer to a software engineer specialised in quality.

Yes for pure manual/functional roles at service companies. No for SDET, automation engineer, or product-company QA roles — expect a coding round (Python/Java/JS) plus a framework or system-design discussion.

Was this article helpful?

Cluster · QA Career

More from QA Interview Questions

Behavioral, framework, coding — full interview prep.

Pillar guide · 10 articles
More in this cluster
From the QA Career pillar

Key takeaways

  • Master the fundamentals before tackling advanced Software Testing scenarios.
  • Always explain trade-offs — interviewers reward judgement, not memorisation.
  • Use real project examples; generic answers blend in.
  • Practice answers out loud — written prep doesn't transfer to live rounds.
  • Revise the 30-second cheat sheet the night before your interview.
  • Keep one strong scenario story ready for every section above.

These Questions Are Just the Start

Get 1000+ more with detailed model answers in our QA Interview Preparation Kit. Covers manual testing, automation, API, SQL, Selenium, Playwright, and framework concepts — everything asked in real QA interviews.

Get Interview Kit — ₹1,045

Software Testing jobs hiring now

Live, indexable Software Testing openings — updated daily in Jobs Radar.

Browse all QA jobs on Jobs Radar

Loading current openings…

Home