Robot Framework HTTPD Simulator
Project description
Robot Framework keyword library for HTTPD Simulator.
This module allows easy to create http server and test request that http server is received
Installation
pip install robotframework-httpd
Usage
HTTPDLibrary keyword documentation
*** Settings ***
Library HTTPDLibrary port=5060
Library RequestsLibrary
Library Collections
*** Test Cases ***
Test HttpdLibrary GET
Get Request /test?param1=p1
Run Httpd
Create Session Httpd http://localhost:5060
${resp}= Get Httpd /test?param1=p1
wait to get request
Test HttpdLibrary Post
Post Request this is body
Run Httpd
Create Session Httpd http://localhost:5060
${resp}= Post Httpd / data=this is body
wait to get request
*** Keywords ***
Get Request
[Arguments] ${path}
${request}= create dictionary method GET path ${path}
set wished request ${request}
Post Request
[Arguments] ${post_body}
${request}= create dictionary method POST post_body ${post_body}
set wished request ${request}
Contribute
If you like this module, please contribute! I welcome patches, documentation, issues, ideas, and so on.
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
File details
Details for the file robotframework-httpd-0.8.2.tar.gz
.
File metadata
- Download URL: robotframework-httpd-0.8.2.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34fe81222db96843a1163dce2d0ead196d92971c1ea3b5227d41eff373e31a35 |
|
MD5 | d432dc46a1161ad5f6e12eed51361970 |
|
BLAKE2b-256 | 7c3ff8d35ecb37015791595a28815ccb1a60c3ff4903e99e925fccc3078d3be4 |