All Projects → MarketSquare → Robotframework Requests

MarketSquare / Robotframework Requests

Licence: mit
Robot Framework keyword library wrapper for requests

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Robotframework Requests

wappdriver
Wondering how to send WhatsApp messages using Python using only 3 lines of code? You have come to the right place!
Stars: ✭ 40 (-88.41%)
Mutual labels:  requests
Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (+741.45%)
Mutual labels:  requests
Renrenbackup
A backup tool for renren.com
Stars: ✭ 309 (-10.43%)
Mutual labels:  requests
django-debug-toolbar-requests
A Django Debug Toolbar panel for most popular http library requests.
Stars: ✭ 16 (-95.36%)
Mutual labels:  requests
axios-for-observable
A RxJS wrapper for axios, same api as axios absolutely
Stars: ✭ 13 (-96.23%)
Mutual labels:  requests
Python3 Concurrency Pics 02
爬取 www.mzitu.com 全站图片,截至目前共5162个图集,16.5万多张美女图片,使用 asyncio 和 aiohttp 实现的异步版本只需要不到2小时就能爬取完成。按日期创建图集目录,保存更合理。控制台只显示下载的进度条,详细信息保存在日志文件中。支持异常处理,不会终止爬虫程序。失败的请求,下次再执行爬虫程序时会自动下载
Stars: ✭ 275 (-20.29%)
Mutual labels:  requests
Interface TestPlatform
python3+django+requests+ddt+unittest接口自动化测试平台
Stars: ✭ 52 (-84.93%)
Mutual labels:  requests
Node Request Retry
💂 Wrap NodeJS request module to retry http requests in case of errors
Stars: ✭ 330 (-4.35%)
Mutual labels:  requests
stats
📊 Request statistics middleware that stores response times, status code counts, etc
Stars: ✭ 15 (-95.65%)
Mutual labels:  requests
Turkce Python Kaynaklari
Türkçe olarak hazırlanmış Python programlama dili ile ilgili içeriklerin derlendiği sayfa.
Stars: ✭ 295 (-14.49%)
Mutual labels:  requests
nap
Convenient way to request HTTP APIs
Stars: ✭ 42 (-87.83%)
Mutual labels:  requests
korbit-python
Korbit API wrapper for Python
Stars: ✭ 17 (-95.07%)
Mutual labels:  requests
Sasila
一个灵活、友好的爬虫框架
Stars: ✭ 286 (-17.1%)
Mutual labels:  requests
NetworkAgent
This package is meant to make http request of an easy way inspiren in the architecture of Moya package. This package is 100% free of dependencies and works with Combine api + Codable
Stars: ✭ 16 (-95.36%)
Mutual labels:  requests
Begoneads
BeGoneAds is a script that puts some popular hosts file lists into the systems hosts file as a adblocker measure.
Stars: ✭ 314 (-8.99%)
Mutual labels:  requests
opentracing-utils
Convenient utilities for adding OpenTracing support in your python projects
Stars: ✭ 20 (-94.2%)
Mutual labels:  requests
Requester
Powerful, modern HTTP/REST client built on top of the Requests library
Stars: ✭ 273 (-20.87%)
Mutual labels:  requests
Webspider
在线地址: http://119.23.223.90:8000
Stars: ✭ 340 (-1.45%)
Mutual labels:  requests
J.a.r.v.i.s
python powered Intelligent System
Stars: ✭ 325 (-5.8%)
Mutual labels:  requests
Dianping textmining
大众点评评论文本挖掘,包括点评数据爬取、数据清洗入库、数据分析、评论情感分析等的完整挖掘项目
Stars: ✭ 289 (-16.23%)
Mutual labels:  requests

Python application codecov PyPi downloads Latest Version

🏠 RequestsLibrary is a Robot Framework library aimed to provide HTTP api testing functionalities by wrapping the well known Python Requests Library.

Install stable version

pip install robotframework-requests

✨ Install latest 0.9 pre-release (alpha) version ✨

pip install robotframework-requests --pre

What's new in 0.9 pre-release

Session less keywords are now available, you can just GET, POST, etc.. without creating a session before!

${resp}=  GET  https://www.google.com

See the full 0.9 Keywords documentation

What's new in 0.8

New keywords structure: All requests keywords have been rewritten because of many not backward compatible changes and to allow in the near future requests keywords without a session. Example Get Request become GET On Session and soon there will be also just GET when a session is not needed. Old keywords * Request are now deprecated and will be removed in 1.0.0 version.

Implicit assert on status code: * On Session keywords automatically fail if an error status code is returned. expect_status= could be used to specify a status code (201, OK, Bad request) or any if you want to evaluate the response in any case.

Closer to the original Requests library: New keywords have the same parameter orders and structure as the original. Lot of pre-parsing / encoding has been removed to have a more accurate and unchanged behaviour.

Cleaner project architecture: Main keywords file has been split with a more logic division to allow better and faster maintenance.

🤖 Example usage

*** Settings ***
Library               Collections
Library               RequestsLibrary

Suite Setup           Create Session    jsonplaceholder    https://jsonplaceholder.typicode.com

*** Test Cases ***

Get Request Test
    Create Session    google             http://www.google.com

    ${resp_google}=   GET On Session     google             /           expected_status=200
    ${resp_json}=     GET On Session     jsonplaceholder    /posts/1

    Should Be Equal As Strings           ${resp_google.reason}    OK
    Dictionary Should Contain Value      ${resp_json.json()}    sunt aut facere repellat provident occaecati excepturi optio reprehenderit

Post Request Test
    &{data}=          Create dictionary  title=Robotframework requests  body=This is a test!  userId=1
    ${resp}=          POST On Session    jsonplaceholder     /posts    json=${data}
    
    Status Should Be                     201    ${resp}
    Dictionary Should Contain Key        ${resp.json()}     id

📖 Keywords documentation

Robotframework-requests offers a wide set of keywords which can be found in the Keywords documentation

🔬 Test examples

You can find many test examples inside the atests folder.

🤝 Contributing ✍️

Feel free to contribute and open an issue in order to discuss it. Before doing it take a look at the contribution guidelines.

📢 Get in touch with the community via slack and Users group

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].