Friday, September 12, 2025

Robot Framework : Sample code to verify if Robot Framework is installed properly ? - part2

Sample code to verify if Robot Framework is installed properly ?



1. Create a file name test.robot and save it.
*** Test Cases *** 
Sample Test 
    Log     Hello from Robot Framework! 
2. Execute the script using below command. -> robot test.robot


3. Lets see this in details

a) *** Test Cases *** # This part is called Section and                                   its case-sensitive.

b) Sample Test # This is the user-defined Testcase name.

c) Log Hello from Robot Framework! # Here Log is inbuilt Keyword of RobotFramework for logging.                                           # Hello from Robot Framework! This is the message user want to log                                             during execution.

Thursday, September 11, 2025

How to install Robot Framework on your Windows OS? - part1

How to install Robot Framework on your Windows OS ?

Robot Framework is an open-source automation framework mainly used for:

  1. Test automation (acceptance testing, regression testing, system testing)
  2. Robotic Process Automation (RPA)

It’s designed to be keyword-driven, meaning tests are written in a readable, almost natural language style using keywords that represent actions.


Steps to install Robot Framework :

### Open Command Prompt / terminal
        -    Press Windows + r key
        -    then type - cmd

### Check if you have Python installed or not, if not then install Python first
            python --version
### Create a folder and navigate to the created folder
          
       mkdir robot_f
       cd robot_f 

### Now create a virtual environment
            python -m venv robotenv
### Then activate the virtual environment
            .\robotenv\Scripts\activate
### Install Robot Framework
            pip install robotframework

### Check the version of Robot Framework
           robot --version

If you can see the robot framework version then it installed successfully.

Tuesday, September 9, 2025

Docker : How to install docker on Ubuntu 24.04 Linux OS ?

 

How to install docker on Ubuntu 24.04 Linux OS  


Installing Docker on Ubuntu 24.04 is a straightforward process. Here's a step-by-step walkthrough

🛠️ Step-by-Step Guide to Install Docker on Ubuntu 24.04

Update Your System

sudo apt update && sudo apt upgrade


Install Required Packages. 

These help your system communicate securely with Docker’s repository. 

sudo apt install apt-transport-https ca-certificates curl software-properties-common


Add Docker’s Official GPG Key

        curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg


Add Docker Repository

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null


Update Package Index Again

sudo apt update


Install Docker Engine

sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin


Start and Enable Docker

sudo systemctl start docker
sudo systemctl enable docker


(Optional) Run Docker Without Sudo

sudo usermod -aG docker $USER
newgrp docker


Test Your Installation

docker run hello-world

Robot Framework : Sample code to verify if Robot Framework is installed properly ? - part2

Sample code to verify if Robot Framework is installed properly ? 1. Create a file name test.robot and save it. *** Test Cases *** Sample ...