A real-world technical assessment from a company hiring QA / Software Testers.
Find the assessment instructions in this file: quality-engineer-test.md
Give this a try yourself before looking at the solution in this repo!
To look at the solution I came up with, look for these files:
- Test Plan - veriff.feature in a Gherkin-style format
- UI Tests - test_ui.py
- API Tests - test_api.py
- Veriff Code abstraction (pages and api) - veriff.py
- Bugs found - BUGS.md
Besides that, my solution uses:
Python
as my languagepytest
as my test frameworkPylenium
to automate the browserrequests
to automate the API requests
⏰ I gave myself 2 hours to do this
- 🐍 Python v3.8 or higher is required
- 📦 Poetry as the package manager
- 👨🏽💻 Microsoft's Python extension installed in VSCode
-
Clone the repo
git clone https://github.com/qa-at-the-point/example-qa-assessment.git
-
Install packages with Poetry
# Installs all packages from pyproject.toml file poetry install # Then copy the path of the virtual environment poetry env info --path
-
Configure VSCode to use the proper virtual environment
- Open Command Palette (
CMD + SHIFT + P
orCTRL + SHIFT + P
) - Find and click
Python: Select Interpreter
- Paste the virtual environment path if it's not listed
- Open Command Palette (
Examples and Recipes should include the instructions and commands to run the tests. However, the base command is always the same:
# Run all tests
poetry run pytest
💡 The terminal will show test results and summary once the Test Run is complete
poetry run pytest --html=report.html -n 3 tests/test_ui.py
--html
will create an HTML report that you can view in the browser-n
specifies the number of tests to run in paralleltests/test_ui.py
executes tests within thetest_ui.py
module
poetry run pytest --html=report.html -n 3 tests/test_api.py
If you've found an bug or you have an idea or feature request, please create an issue on the Issues Tab