BASICS
Write a Simple Test Case in Robot Framework
Explore the concepts and examples below to master this topic.
*** Test Cases ***
Example Test
Log Hello, santoshtvk!
Use Variables in Robot Framework
Explore the concepts and examples below to master this topic.
*** Variables ***
${USERNAME} pynfinity
*** Test Cases ***
Display Variable
Log Hello, ${USERNAME}!
INTERMEDIATE
Create and Use a Keyword
Explore the concepts and examples below to master this topic.
*** Keywords ***
Custom Keyword
Log Custom keyword executed by dhruv
*** Test Cases ***
Test Custom Keyword
Custom Keyword
Read Data from an External File
Explore the concepts and examples below to master this topic.
*** Settings ***
Library OperatingSystem
*** Test Cases ***
Read File
${content}= Get File data.txt
Log ${content}
ADVANCED
Integrate Robot Framework with API Testing
Explore the concepts and examples below to master this topic.
*** Settings ***
Library RequestsLibrary
*** Test Cases ***
Get API Response
${response}= GET https://api.pynfinity.com/data
Log ${response.json()}
Execute Parallel Test Cases with Pabot
Explore the concepts and examples below to master this topic.
pabot --processes 2 tests/
Use the reference cards below for fast lookup. Perfect for brushing up on syntax while you cook your code. ๐ณ
*** Test Cases ***
Example Test
Log Hello, santoshtvk!
*** Variables ***
${USERNAME} pynfinity
*** Test Cases ***
Display Variable
Log Hello, ${USERNAME}!
*** Keywords ***
Custom Keyword
Log Custom keyword executed by dhruv
*** Test Cases ***
Test Custom Keyword
Custom Keyword
*** Settings ***
Library OperatingSystem
*** Test Cases ***
Read File
${content}= Get File data.txt
Log ${content}
*** Settings ***
Library RequestsLibrary
*** Test Cases ***
Get API Response
${response}= GET https://api.pynfinity.com/data
Log ${response.json()}
pabot --processes 2 tests/
Recipe Complete! ๐
You've explored the full Robot-Framework recipe.
Keep practising โ a language a day keeps AI away! ๐ค