Course outline: Tools and specialisms
Module 03 · Tools and specialisms
Software testing tools
The tools by the job they do, what each is good at, and how to choose and start with one.
What you'll be able to do
- Choose a tool for each kind of testing: API, browser, performance, mobile, defects, test management, CI, security.
- Pick a locator that survives a redesign, and say why CSS and XPath come last.
- Read and write a first Playwright test, and keep its locators in a page object.
- Write a Gherkin feature that the product owner can read and a tool can run.
Essential Testing Tools for QA Engineers
Having the right tools is crucial for effective software testing. This guide highlights industry-standard tools that QA engineers use for different types of testing, from API and browser automation to performance and security testing.
Each tool has its own strengths and specialties. Understanding when and how to use each tool will make you a more effective QA professional, capable of addressing diverse testing challenges across the software development lifecycle. Choosing the appropriate toolset can significantly impact testing efficiency and coverage.
Filter by category
Postman
A comprehensive platform for API development and testing. Postman simplifies each step of the API lifecycle and streamlines collaboration, making it easier to create better APIs—faster.
Simplifies the entire API lifecycle from design to testing.
Key Use Cases:
- Creating and managing API requests
- Automating API tests
- Generating API documentation
- Creating mock servers
- Team collaboration on API development
Selenium
A powerful suite of tools for browser automation. Selenium WebDriver allows you to write tests in various languages (Java, Python, C#, etc.) to automate browser actions for testing web applications.
Highly flexible and supports multiple programming languages.
Key Use Cases:
- Automated browser testing
- Cross-browser compatibility testing
- Regression testing of web applications
- Data extraction and web scraping
- Integration with CI/CD pipelines
Apache JMeter
Open-source application designed to load test functional behavior and measure performance. It can simulate heavy loads on servers or networks to test strength or analyze overall performance.
Excellent for simulating heavy user loads and analyzing bottlenecks.
Key Use Cases:
- Load testing web applications
- Performance testing of API endpoints
- Stress testing servers
- Database performance testing
- Analyzing server response under various load conditions
Jira
Widely-used project management and issue tracking tool by Atlassian. Essential for agile teams, Jira helps plan sprints, track bugs, manage workflows, and monitor progress throughout the development lifecycle.
Industry standard for agile project and issue tracking.
Key Use Cases:
- Defect tracking and management
- Test case management (with plugins)
- Agile project planning and tracking
- Workflow customization for QA processes
- Integration with development tools
TestRail
Test case management tool that helps QA teams organize, track, and manage software testing efforts. It allows for detailed test case specification, execution tracking, and comprehensive reporting.
Provides structured test case management and reporting.
Key Use Cases:
- Comprehensive test case management
- Test plan organization
- Test run execution and tracking
- QA reporting and metrics
- Integration with defect tracking tools
Appium
Open-source test automation framework for mobile applications. It allows QA engineers to write tests against mobile apps on multiple platforms using the same API.
Enables cross-platform mobile test automation with a single API.
Key Use Cases:
- Mobile app automated testing
- Cross-platform mobile testing
- Native, hybrid, and web app testing
- Integration with continuous integration systems
- Mobile app performance testing
SoapUI
Open-source web service testing application for SOAP and REST APIs. It allows QA engineers to quickly create and execute automated functional, regression, compliance, and load tests.
Strong support for SOAP services and comprehensive API testing features.
Key Use Cases:
- SOAP and REST API testing
- Web service simulation and mocking
- Load and performance testing of APIs
- Security testing
- Data-driven API testing
Jenkins
Open-source automation server that helps automate parts of the software development process, including building, testing, and deploying applications.
Extensible automation server for building robust CI/CD pipelines.
Key Use Cases:
- Continuous integration and deployment
- Automated test execution
- Build pipeline management
- Test result reporting
- Integration with source control and issue tracking
Cypress
Next generation front-end testing tool built for the modern web. It addresses the key pain points developers face when testing modern applications.
Offers fast, reliable testing with excellent debugging features for modern web apps.
Key Use Cases:
- End-to-end testing of web applications
- Component testing
- Visual regression testing
- API testing
- Time travel debugging
OWASP ZAP
The world's most widely used web app scanner. Free and open source, it automatically finds security vulnerabilities in web applications during development and testing.
Free, open-source tool for finding common web application vulnerabilities.
Key Use Cases:
- Automated security scanning
- Vulnerability detection in web applications
- Penetration testing
- Security regression testing
- API security testing
Choosing the Right Tool for Your Testing Needs
| Testing Type | Recommended Tools | Key Considerations |
|---|---|---|
| API Testing | PostmanSoapUI |
|
| Browser Automation | SeleniumCypress |
|
| Performance Testing | JMeter |
|
| Mobile Testing | Appium |
|
| Defect Tracking | Jira |
|
| Test Management | TestRailJira (with plugins) |
|
| Security Testing | OWASP ZAP |
|
Locators: how a test finds an element
An automated test has to find every element it uses: a button to click, a field to fill, a line to check. The way it finds one is its locator. Locators are the most common reason automated tests break: a test that finds the Sort by list by its place in the page breaks when a designer moves it, although nothing changed for the shopper.
Here are seven ways for Playwright to find elements of the search page of Cedar Books, the Academy's practice shop, from the most robust to the least:
| Kind | Playwright | It depends on |
|---|---|---|
| Role and name | page.getByRole('combobox', { name: 'Sort by' }) | What a user and a screen reader meet: a list called Sort by |
| Label | page.getByLabel('Sort by') | The visible label of the field |
| Placeholder | page.getByPlaceholder('Search books, authors or ISBN') | The hint inside an empty field, here the search box |
| Text | page.getByText('40 books') | The words on the page, here the count of results |
| Test id | page.getByTestId('sort-select') | A data-testid attribute agreed with the developers |
| CSS | page.locator('#sort') | An id or a class, which developers may rename freely |
| XPath | page.locator('xpath=/html/body/main/form/select') | The exact structure of the page: one new wrapper breaks it |
Which comes last? Prefer what the user sees: role and name first, then the label. Use a test id where nothing visible fits, agreed with the developers so that it stays. Keep CSS and XPath for last: they describe how the page is built, so a change no shopper notices can break them. A role locator has a second benefit: if a test cannot find a button by its name, a screen reader user probably cannot either.
Worked example · Cedar Books
Your first Playwright test: search and add to the basket
Playwright drives a real browser from code. This test does what a shopper does: it searches for a book, opens it, adds it to the basket and checks the basket. Its locators come from the table above, and it runs against the real practice shop.
import { test, expect } from '@playwright/test';
test('a shopper finds a book and adds it to the basket', async ({ page }) => {
await page.goto('https://practice.qaia.io/');
await page.getByPlaceholder('Search books, authors or ISBN').fill('The Cedar Tree');
await page.getByRole('button', { name: 'Search' }).click();
await page.getByRole('link', { name: 'The Cedar Tree' }).click();
await expect(page.getByRole('heading', { level: 1 })).toHaveText('The Cedar Tree');
await page.getByRole('button', { name: 'Add to basket' }).click();
await expect(page).toHaveURL(/\/basket$/);
await expect(page.getByRole('row', { name: 'The Cedar Tree' })).toBeVisible();
await expect(page.getByTestId('total-subtotal')).toHaveText('19.00');
});Read it in three parts: arrange (open the shop), act (search, open the book, add it), assert (the basket holds the book at 19.00). Each expect waits until its condition is true, for up to five seconds, so the test needs no fixed pauses. To run it, type npm init playwright@latest in an empty folder, save the file in its tests folder, then run npx playwright test.
Try it: The automation code lab · The journey lab
Page objects
Copy the locators of the basket into twenty tests, and one change to the basket page breaks all twenty. A page object keeps one page's locators and actions in one class, and the tests speak the shop's language instead: basket.applyCoupon('CEDAR10'). When the page changes, one file changes. Here is a page object for the basket of Cedar Books:
import { type Page, type Locator } from '@playwright/test';
export class BasketPage {
readonly page: Page;
readonly couponInput: Locator;
readonly applyButton: Locator;
readonly couponMessage: Locator;
readonly total: Locator;
constructor(page: Page) {
this.page = page;
this.couponInput = page.getByLabel('Coupon code');
this.applyButton = page.getByRole('button', { name: 'Apply' });
this.couponMessage = page.getByTestId('coupon-message');
this.total = page.getByTestId('total-total');
}
async open() {
await this.page.goto('https://practice.qaia.io/basket');
}
line(title: string): Locator {
return this.page.getByRole('row', { name: title });
}
async applyCoupon(code: string) {
await this.couponInput.fill(code);
await this.applyButton.click();
}
}And a test that uses it:
test('CEDAR10 takes 10% off The Cedar Tree', async ({ page }) => {
await page.goto('https://practice.qaia.io/books/1');
await page.getByRole('button', { name: 'Add to basket' }).click();
const basket = new BasketPage(page);
await expect(basket.line('The Cedar Tree')).toBeVisible();
await basket.applyCoupon('CEDAR10');
await expect(basket.total).toHaveText('17.10');
});Two habits keep page objects useful: the page object holds the locators and the actions, while the test holds the checks (its expect lines); and there is one class per page, or per part of a page, named the way the shop names it.
BDD and Gherkin
Behaviour-driven development (BDD) starts from examples. Before coding, the product owner, a developer and a tester (the "three amigos") agree what a feature should do, as concrete examples written in Gherkin: Given a situation, When someone acts, Then something can be observed. The whole team can read them, and tools such as Cucumber, SpecFlow and Behave run them as tests. Here is the coupon feature of Cedar Books:
Feature: Coupons at checkout
A shopper takes money off with one coupon code (REQ-03, REQ-06).
Background:
Given a basket with The Cedar Tree at 19.00
Scenario: A valid code lowers the total once
When I apply the code CEDAR10
Then the total is 17.10
Scenario Outline: A refused code says why
When I apply the code <code>
Then the message says "<message>"
And the total is still 19.00
Examples:
| code | message |
| EXPIRED24 | This code expired on 31 Dec 2024 |
| SPRING25 | This code has been used up |
| HELLO10 | This code is not valid |The Background runs before every scenario, and the Scenario Outline runs once for each row of its Examples table. Each step is matched by a step definition, a few lines of code. With Cucumber for JavaScript, the When step can call the page object:
When('I apply the code {word}', async function (code) {
await this.basket.applyCoupon(code);
});One When per scenario keeps each scenario about one behaviour, and a Then states what someone can observe, never another click. The Gherkin checker checks a feature file like this one and lines up its tables.
Tips for Getting Started with Testing Tools
Start Small
Begin with simple test cases before tackling complex scenarios. Master the basics first.
Leverage Tutorials
Watch video tutorials and follow step-by-step guides to grasp practical implementation quickly.
Consult Documentation
Don't skip the official docs! They hold key details, configurations, and advanced usage tips.
Sign in to keep your progress: a tick here lives in this browser only.
Test yourself
Quiz: Testing tools
10 questions, about 8 minutes. Sign in to take the quiz.
10 questions, about 8 minutes, no time limit. 7 right answers pass, and passing marks the lesson as read. Every new quiz draws new questions.