Part 3- POST Request | Rest API Testing using Robot Framework

preview_player
Показать описание
Topic: How to Send Post Request to Rest API
Content Type : application/json
Body:
{
"FirstName" : "david1234",
"LastName" : "david1234",
"UserName" : "david1234",
"Password": "david1234",
}

Validations:
1) Status Code
2) Response Body

#########################
Udemy Courses:
#########################

Manual Testing+Agile with Jira Tool
************************************

Selenium with Java+Cucumber
********************************

Selenium with Python & PyTest
********************************

Selenium with python using Robot framework
****************************************

API Testing(Postman, RestAssured & SoapUI)
*****************************************

Web & API Automation using Cypress with Javascript
********************************************

Playwright with Javascript
**************************

Jmeter-Performance Testing
************************

SDET Essencials(Full Stack QA)
*************************

Appium-Mobile Automation Testing
************************************

Java Collections
*****************

Python Programming
*********************

Cucumber BDD Framework
***************************

Protractor with Javascript
***************************

####################################
Youtube Playlists:
####################################

Manual Testing & Agile
***********************

SQL
*************************

linux & Shell Scripting
**********************

Java
**********************

Selenium With Java+Cucumber
********************************

Python
********************************

Selenium With Python,Pytest&Behave
***************************************

Selenium With Python Using Robert Framework
(Web&API Testing)
*************************************************

API Testing (Postman,SoapUi,&Rest Assured)
**********************************************

Mobile App Testing Appium
****************************

Performance Testing Jmeter
*******************************

Maven,Jenkins,Git,Github,CI/CD
*******************************

SQL,DB Testing&ETL,Bigdata
*******************************

JavaScript Based Automation Tools
********************************

Selector Hub Tools
********************

GraphQL
******************

Cypress API Testing
********************

Cypress Web Testing
**********************

Playwright with Javascipt
**************************

#APItesting
#RobotFramework
#RESTAPI
#APITestingWithRobot
#TestAutomation
#APIAutomation
#QA
#SoftwareTesting
#RESTful
#APITest
#TestingAutomation
#QualityAssurance
#TestScripts
#RobotFrameworkTesting
#APIIntegration
#AutomatedTesting
#APIRequests
#TestAutomationFramework
#RESTfulAPI
#APIEndpoints
#RegressionTesting
#TestScenarios
#AutomationTesting
#APIValidation
#FunctionalTesting
#APIAutomationFramework
#TestCases
#ContinuousIntegration
#APIPerformance
#SmokeTesting
#LoadTesting
#APIContractTesting
#DataValidation
#CI/CD
#TestExecution
#APIResults
#TestSuite
#APIStandards
#TestFramework
#APIBestPractices
#CodeQuality
#APIHealthCheck
#ScriptedTesting
#APIEndpointsTesting
#AutomationScripts
#APIResponse
#APIStatus
#APIEndpointsValidation
#TestDrivenDevelopment
Рекомендации по теме
Комментарии
Автор

Indeed, you're a great teacher . Thank you for the video, it was very helpful for beginners

shruthishru
Автор

I would like to add that since we now have to use post on session instead of just the post command, you need to change "data=${body}" to "json={body}" for it to work. The syntax has changed.

Runeblade
Автор

Hi Sir, Thanks for the video. I have one doubt here.
In my case ${response.content} is a JSON response and I need to extract value from the specific 'key'.
I tried to use line#25 and modified it as below(dictionary flow) -
Attempt #1: ${respstrcontent}= convert to string ${response.content}
${responseidnum} get from dictionary ${respstrcontent} createdAt
Attempt #2: ${respstrcontent} get from dictionary ${response.content} createdAt

Looks like ${response.content} is not an dictionary. I can use the traditional way to get the data based on the index., but is it not possible to get the value based on the key? (the way ${response.headers} works)
Kindly provide guidance and help.

sharadmali
Автор

Thank you, this video was SO helpful!

pneumaticdetach
Автор

Thanks for your great efforts, i had a question how can i post a json body that includes one of its values as int data type instead of string and how to validate it?

kalblaization
Автор

Thank you SO MUCH for that video!


How we can take the value from the response, save it to variable and put it into the body of other requests, OR put it into the URL of other requests?? Please record a video for that!!!

vladv
Автор

Hello Sir, can you help me, how I can avoid certificate validation for the https url while using the get request. In curl we basically use --insecure or -k parameter to void the certificate validation but i dont have any idea how can use the same in robotframework-request

shivambajpai
Автор

How to put the value into the nested object in the body of PUT/POST request?

vladv
Автор

I have tried but got the error "Expected even number of keys and values, got 3." means?

vindhyapasupuleti
Автор

if i want to send value in array in dictionary can i do it for example id= ['3ac79c00', '3ac79c01']

vinayarora
Автор

waht if i dont have relative url
then how to send the post request

AnjaliSingh-unem
Автор

What kind of plugin are u using for Autocomplete code and styles?

andikapebrianto
Автор

im trying this on my api and im getting a 405 error, can you help me?

amalshaju
Автор

In get request I need to fetch one param from excel ..how to be done

evelineroser
Автор

First of all u great sir, Sir can u help me with passing XML content in body instead of json ..

Ajaysharma-rixi
Автор

How to pass complex body . If we have multiple array nd sub nodes in Json body, how to set body? If we want to print the result in excel or CSv file, wat s the command we will use for multiple data from input csv

diptisahoo
Автор

how to ignore ssl certification while in post?

ramanavenkat-iefb
Автор

Hello Pavan, Indeed your videos are very useful. How to send a complex data in post request using dictionary ? Thanks in advance.

meghanareddya
Автор

always fail, user already exist, how to create new user

cibelless
Автор

Getting error with this API
ConnectionError: HTTPConnectionPool(host='restapi.demoqa.com', port=80): Max retries exceeded with url: /customer/register (Caused by object at 0x10408aaa0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))

rajeevkombathula
join shbcf.ru