Excel http api test
Project description
excel-runner
Run Http requests list in excel sheet
how to use
Install excel-runner v0.1.2
pip install excel-runner==0.1.2
Create excel data file data.xlsx
| name | method | url | data | headers | verify | result |
|---|---|---|---|---|---|---|
| get请求 | get | https://httpbin.org/get?a=1&b=2 | res.status_code==200 | |||
| post-form | post | https://httpbin.org/post | name=Kevin&age=1 | Content-Type: application/x-www-form-urlencoded | res.status_code==200 res.json()['form']['name']=='Kevin'] |
|
| post-json | post | https://httpbin.org/post | {"name": "Kevin", "age": 1} | Content-Type: application/json | ||
| post-xml | post | https://httpbin.org/post | hello | Content-Type: application/xml | result.json()["data"]=="hello" |
Run excel data file
from excel_runner import run_excel
run_excel('data.xlsx')
Open data.xlsx again, you will see the test result
| name | method | url | data | headers | verify | result |
|---|---|---|---|---|---|---|
| get请求 | get | https://httpbin.org/get?a=1&b=2 | res.status_code==200 | PASS | ||
| post-form | post | https://httpbin.org/post | name=Kevin&age=1 | Content-Type: application/x-www-form-urlencoded | res.status_code==200 res.json()['form']['name']=='Kevin'] |
PASS |
| post-json | post | https://httpbin.org/post | {"name": "Kevin", "age": 1} | Content-Type: application/json | PASS | |
| post-xml | post | https://httpbin.org/post | hello | Content-Type: application/xml | result.json()["data"]=="hello" | PASS |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
excel_runner-0.1.2.tar.gz
(11.7 kB
view details)
File details
Details for the file excel_runner-0.1.2.tar.gz.
File metadata
- Download URL: excel_runner-0.1.2.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9425f40c0e8435e747209fe7de2a5b409c4d8425000240803996d6904c24868c
|
|
| MD5 |
793acb597caff1051a3e13db106010f8
|
|
| BLAKE2b-256 |
1be928777b9140b6d5f075a4de02085edf19aba273d71da7fe64dec9964cb509
|