0% found this document useful (0 votes)
24 views13 pages

RobotFramework Setup

The document discusses how to test APIs by providing information needed like endpoint URL, headers, content type, request format, response, and method. It also provides instructions on installing Robot Framework, a test automation framework, including installing Python, downloading PyCharm IDE, creating a virtual environment, and installing Robot Framework and other libraries.

Uploaded by

AmirImam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views13 pages

RobotFramework Setup

The document discusses how to test APIs by providing information needed like endpoint URL, headers, content type, request format, response, and method. It also provides instructions on installing Robot Framework, a test automation framework, including installing Python, downloading PyCharm IDE, creating a virtual environment, and installing Robot Framework and other libraries.

Uploaded by

AmirImam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

API : It allows two applications to communicate with one another to access data

Information required to test API :


 End Point Url
 Headers
 Content Type
 Request (JSON / XML )
 Response
 Method (Get/Post/Delete) https://www.w3schools.com/tags/ref_httpmethods.asp

Postman example

Robot framework:
http://robotframework.org/robotframework/2.9b2/RobotFrameworkUserGuide.html
https://robotframework.org/#libraries

Installation: https://youtu.be/8h5knh2jLCA
Step 1: Install Python
 Visit the following website to download Python software.
https://www.python.org/downloads/
 Double-click the Python software to begin the installation.
 Set environment Variable (Environment variables help programs know what directory to
install files in, where to store temporary files, and where to find user profile settings)
 Verify that environment variable is setup correctly
 To check if Python is correctly installed, open the command prompt, and run the version
command.
python --version

Step 2: Download and Install PyCharm community edition


https://www.jetbrains.com/pycharm/download/#section=windows
Step3 : Create Virtual Environment (A virtual environment is a tool that helps to keep
dependencies required by different projects separate by creating isolated python virtual
environments for them)
OR
Go to File > New Project
Select Create

Step 4 : Install robot framework and other libraries


Open PyCharm
Select Terminal from footer
Execute the following commands:
 python -m pip install robotframework-requests
 pip install robotframework-jsonlibrary==0.3.1
Use command “pip list” to see installed packages. pip is the package installer for Python

You might also like