MarketSquare / MarketSquare/robotframework-requests

I created functions using the requests library

Open
#246 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
512
Forks
283
PR merge metrics
No merged PRs in 30d

Description

Hello all,

I created some functions using the request library. So you can directly use this facility file in your projects.

`*** Settings ***
Library RequestsLibrary
Library HttpLibrary.HTTP
Library json
Resource ../variables/commonVariables.robot

*** Keywords ***
Create Service Session
Create Session session ${baseurl} verify=True
${headers} Create Dictionary Authorization=${apitoken} Content-Type=application/json
Set Global Variable ${headers}

GET Service Request
[Arguments] ${apiurl}
${response}= Get Request session ${apiurl} headers=${headers}
Set Global Variable ${response}

DELETE Service Request
[Arguments] ${apiurl}
${response}= Delete Request session ${apiurl}
Set Global Variable ${response}

Check Return Code
[Arguments] ${check_code}
Should Be Equal As Strings ${response.status_code} ${check_code}

Get Json Object
${json}= Json.Dumps ${response.json()}
Set Global Variable ${json}

Get Parameter Value
[Arguments] ${parameter} ${value}
Get Json Object
${parameter_value}= Get Json Value ${json} ${parameter}
Set Global Variable ${parameter_value}

Check Parameter Value is Null
[Arguments] ${parameter}
Get Parameter Value ${parameter} 0
Should Not Be Empty ${parameter_value}

Check Parameter Value is Correct
[Arguments] ${parameter} ${value}
Get Parameter Value ${parameter} ${value}
Should Be Equal ${parameter_value} ${value}

`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides an inline Robot Framework snippet but names no repository file, test, or specific change to make. First clarify whether these keywords should be integrated into robotframework-requests and what behavior is expected; completion criteria cannot be determined from the issue alone.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.