Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework-httpd-0.4.1.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file robotframework-httpd-0.4.1.tar.gz.

File metadata

File hashes

Hashes for robotframework-httpd-0.4.1.tar.gz
Algorithm Hash digest
SHA256 7338b91bbd4cc0c5c90975907ac6032a1d2d5540b354290070c66d6010736acf
MD5 0e68b86de4e405235418ff4cbed5dfb5
BLAKE2b-256 6655849920a9f94022f7e85db153496b4dd05d3ee6ae7cb673fa016240a11967

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page