📊 We use cookies & analytics to improve your experience. Learn more
Latest

Software Testing — Manual and Automation Module 5 · Lesson 15 of 15

0% Exit to course

Module 5 · Working like a QA engineer Lesson 15 of 15

A portfolio suite a recruiter can open

Learning objective

One repository with a readable test suite, a sample report and a README beats a certificate. It shows the work, and it can be run in front of an interviewer.

The concept

Structure the repo so a stranger understands it in a minute: tests/ for the cases, pages/ for the helpers, and a README that says what it covers and how to run it.

Mention the one thing it does not cover. Honesty about the gap is what makes the rest of the suite believable in an interview.

Python
# tests/test_jobs.py     run:  pytest -q --html=report.html
import pytest
from pages.jobs import JobsPage

@pytest.mark.parametrize("keyword,minimum", [("analyst", 1), ("zzz", 0)])
def test_search_results(driver, keyword, minimum):
    page = JobsPage(driver).open()
    assert len(page.search(keyword).results()) >= minimum

def test_apply_requires_login(driver):
    page = JobsPage(driver).open().open_first_job()
    page.apply()
    assert page.current_path() == "/login"

Worked example

pytest --html=report.html produces a shareable report, and the README explains how to run it in two commands.

Your practice task

Put your best ten tests in one repo with a README and a generated HTML report, and push it.

Do this before moving on. Reading a solution teaches the shape of it; typing it teaches you.

Key takeaway

Structure the repo so a stranger understands it in a minute: tests/ for the cases, pages/ for the helpers, and a README that says what it covers and how to run it.

Create free account or sign in

Almost there

15 lessons left of 15

Finish every lesson to unlock the certificate. Each one ends in a practice task — do them and the final project brief writes itself.

Next recommended course Full-Stack Web Development Bootcamp