"From Manual Testing to Automation - Your First Robot QA"
Theme: Automation Kickoff
๐ "Imagine testing OpenCart manually: you open Chrome, type the URL, enter login, verify. Now, Playwright is just a robot doing the same for us โ faster, repeatable, and across multiple browsers."
Analogy: "Like installing WhatsApp before chatting. Playwright is our test messenger."
"Think of tests/ as your Test Case folder, and config as your Test Plan."
Folder/File | Purpose | QA Analogy |
---|---|---|
tests/ | Contains all test files | Test Case Repository |
playwright.config.js | Project configuration | Test Environment Sheet |
node_modules/ | Dependencies and tools | Toolbox |
package.json | Project metadata | Project Documentation |
"Like borrowing a tool from a toolbox instead of re-making it every time."
"If I don't import test, expect, what will happen?"
Answer: Error: not defined
"Imagine you're testing OpenCart checkout. One context = one customer. If you want 5 customers buying at once, you need 5 contexts."
Analogy: "Like standing in a queue. You can't pay before scanning groceries."
If you don't use await, the test will try to execute all steps at once, causing failures.
Mode | UI Visible | Speed | Use Case |
---|---|---|---|
Headless | No UI | Faster | CI/CD, Production |
Headed | You can see steps | Slower | Debugging, Development |
"Headless = robot working at night unseen. Headed = robot working in front of you."
Duration: 1.5 hrs