Skip to content

Commit 900c35b

Browse files
authored
Create README-Introduction.md
1 parent 51b8cd8 commit 900c35b

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

README-Introduction.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Introduction to HTTP and REST API testing
2+
3+
This workshop is an introduction to the world of HTTP and REST API testing for direct test or as prerequisites for your end to end test automation suite.
4+
5+
You will learn:
6+
- how HTTP works as application layer protocol
7+
- what is a REST API and why they are now so common
8+
- how to setup a basic API testing/rpa project using the RequestsLibrary
9+
- how to perform different HTTP requests
10+
- how to validate the response
11+
- how to handle shared session and authentication
12+
- what to address with api testing in your test suite
13+
We will use the new 0.9 pre-release version and we will talk about the RequestsLibrary development roadmap.
14+
15+
Most of the workshop is hands on and highly interactive: we will use mob programming techniques.
16+
17+
## What you need
18+
- I will use PyCharm as IDE (but of course you can use your own)
19+
- git
20+
- Python
21+
- Docker (needed to run a local HTTP server)
22+
23+
## How to setup a basic API testing/rpa project using the RequestsLibrary
24+
25+
#### Checkout a new project from git
26+
27+
From cli:
28+
29+
git clone git@github.com:RobotFramework-Italia/http-api-testing-workshop.git
30+
31+
or
32+
33+
git clone https://github.com/RobotFramework-Italia/http-api-testing-workshop.git
34+
35+
Or gui:
36+
37+
![](./readme-imgs/Selection_201.jpg)
38+
39+
![](./readme-imgs/Menu_200.jpg)
40+
41+
![](./readme-imgs/Clone%20Repository_202.jpg)
42+
43+
#### Setup a new Python virtual environment
44+
45+
![](./readme-imgs/Selection_203.jpg)
46+
47+
#### Install the needed dependencies
48+
49+
pip install -r requirements.txt
50+
51+
#### Run a local HTTP sever with Docker
52+
53+
docker run -p 5000:80 kennethreitz/httpbin
54+
55+
Wait until everything is up and running and then open the browser at this url: http://localhost:5000/
56+
57+
#### Run a self check test
58+
59+
robot selfcheck/selfcheck.robot

0 commit comments

Comments
 (0)