2
2
3
3
## Purpose
4
4
5
- Code for TAU (Test automation university) course on building an API framework with Python. Once ready this would be
6
- published at [ Test automation university] ( https://testautomationu.applitools.com/ ) , You can also find a series of blogs
7
- that I'm writing for this course on my blog [ https://automationhacks.io/ ] ( https://automationhacks.io/tags/ )
8
- under ` Python ` tag. However, the video courses are going to have much more context and in depth discussions
5
+ Code for TAU (Test automation university) course on building an API framework with Python. Once
6
+ ready this would be published at
7
+ [ Test automation university] ( https://testautomationu.applitools.com/ ) , You can also find a series of
8
+ blogs that I'm writing for this course on my blog
9
+ [ https://automationhacks.io/ ] ( https://automationhacks.io/tags/ ) under ` Python ` tag. However, the
10
+ video courses are going to have much more context and in depth discussions
9
11
10
12
## Setup
11
13
12
- Ensure you
13
- have [ pipenv already installed] ( https://automationhacks.io/2020/07/12/how-to-manage-your-python-virtualenvs-with-pipenv/ ) :
14
+ Ensure you have
15
+ [ pipenv already installed] ( https://automationhacks.io/2020/07/12/how-to-manage-your-python-virtualenvs-with-pipenv/ ) :
14
16
15
17
``` zsh
16
18
# Activate virtualenv
@@ -21,8 +23,8 @@ pipenv install
21
23
22
24
## How to navigate
23
25
24
- Each chapter has its own dedicated branch in ` /example/<chapter_no>_<topic> ` format. For
25
- e.g. ` example/01_setup_python_dependencies `
26
+ Each chapter has its own dedicated branch in ` /example/<chapter_no>_<topic> ` format. For e.g.
27
+ ` example/01_setup_python_dependencies `
26
28
27
29
You can either use your IDE or terminal to switch to that branch and see the last updated commit.
28
30
@@ -35,32 +37,39 @@ git checkout <sha>
35
37
36
38
## Application under test
37
39
38
- This automated test suite covers features of ` people-api ` , Please refer the Github
39
- repo [ here] ( https://github.com/automationhacks/people-api ) .
40
+ This automated test suite covers features of ` people-api ` , Please refer the Github repo
41
+ [ here] ( https://github.com/automationhacks/people-api ) .
40
42
41
- Note: These tests expect the ` people-api ` and ` covid-tracker ` API to be up. You would find instructions in
42
- the ` people-api ` repo
43
+ Note: These tests expect the ` people-api ` and ` covid-tracker ` API to be up. You would find
44
+ instructions in the ` people-api ` repo
43
45
44
46
## How to run
45
47
46
48
``` zsh
47
49
# Setup report portal on docker
48
50
# Update rp_uuid in pytest.ini with project token
49
51
docker-compose -f docker-compose.yml -p reportportal up -d
52
+
50
53
# Launch pipenv
51
54
pipenv shell
55
+
52
56
# Install all packages
53
57
pipenv install
58
+
54
59
# Run tests via pytest (single threaded)
55
60
python -m pytest
56
- # RUn tests in parallel
61
+
62
+ # Run tests in parallel
57
63
python -m pytest -n auto
64
+
65
+ # Report results to report portal
66
+ python -m pytest -n auto ./tests --reportportal
58
67
```
59
68
60
69
## Discuss?
61
70
62
- Feel free to use the [ Github discussions] ( https://github.com/automationhacks/course-api-framework-python/discussions/1 )
71
+ Feel free to use the
72
+ [ Github discussions] ( https://github.com/automationhacks/course-api-framework-python/discussions/1 )
63
73
in this repo to ✍🏼 your thoughts or even use the disqus comments section on the blogs.
64
74
65
75
Happy learning!
66
-
0 commit comments