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

Monday, January 1, 2018

Android : How to connect your Android device over Wifi using ADB command for App debugging

How to connect your Android device over Wi-Fi using ADB command


Sometimes it requires to connect your Android device over Wi-Fi using ADB command to get rid of USB cable. Also, if you want to run automation and you want to keep your mobile to a place where is it safe or locked, in such cases you won’t be able use USB cable all the time connected to your pc or laptop. The USB cable sometime limits your movements as well.
These above reasons are my experiences which I faced while working on Android App automation.

Let see how to overcome this issue with available ADB commands. Below are the procedures to connect Android Device over Wi-Fi using ADB Command.

Important: Make sure your PC/Laptop and Mobile phone are connected to same Wi-Fi network.


Pre-requisites:
1.    Make sure you have Android_Home configured into your PC/laptop - (click here to see how to configure)
2.    You must have USB debugging option enabled into your Mobile phone.
3.    Connect your Android Device using USB cable to your pc/laptop

You can watch Youtube video or follow the steps mentioned below






Now run below adb commands. 

4. To check list of devices connected & to ensure your USB debugging option is working fine.  
       -> adb devices
how to connect android device over wifi


5.    Run adb tcpip 5001
(you can choose any random port)

how to connect android device over wifi - adb tcpip

 6.  Disconnect your device (remove the USB cable).
7.  Go to the Settings -> About phone -> Status to view the IP address of your phone.



8. Run adb connect <IP address of your device>:5001

how to connect android device over wifi - adb connect 192.168.1.2


9. If you run adb devices again, you should see your device.




Now you can execute adb commands or use your IDE for android development/debugging - wireless

10. If you want to see IP address of your phone , run
 ->  adb shell ifconfig | grep inet

Or
To see list of Apps installed i.e packages onto your phone
 -> adb shell pm list packages

Hope you like this post. if you have any question ,please comment down below.
You can subscribe to my Youtube channel @ QAHUMOR
Thank you year 2017 :-)

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 ...