head : to display specified number of lines from top of the file. ——– head cities.txt * Display 10 lines from top of the file. * 10 is the dfault value for head command head -n 15 cities.txt …
Category: Uncategorized
touch, pwd & ls Commands in Unix/Linux
ls : List Files ls -l : shows file or directory, size, modified date and time, file or folder name and owner of file and its permission. ls -a : view hidden files touch .myfile.txt ls -a ls…
Unix/Linux File and Directory Commands
cat Creating the new file Display content of the file Concatenating more than one file Appending data to the existing file cp – Copy contents from a file to another file(source to destination) mv Renaming a file(changing name of the…
How to use Java Collections, Lambda Expressions & Streams in Selenium Automation
Example1: /1) Find Number of Links in Page 2) Print Link Texts from all the links 3) Check how many links does not have href attribute(broken links) import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import io.github.bonigarcia.wdm.WebDriverManager; public…
Selenium Locators – XPath Axes
XPath axes are those axes that are used to search for the multiple nodes in the XML document from the current node context.These methods are mainly used when the web element is not identified with the help of ID, name,…
Selenium Locators – XPath
XPath is defined as XML path. It is a syntax or language for finding any element on the web page using XML path expression. XPath is used to find the location of any element on a webpage using HTML DOM…
Selenium Locators – Id, Name, LinksText, partial LinkText & CSS Selector
Locators in Selenium are one of the most powerful commands. Its ideally the building block of the Selenium automation scripts. It helps locate the GUI elements through which multiple user actions can be performed. These are one of the important parameters…
Good Test Automation Framework Checklist
Reusable methods or page classes – Create reusable methods wherever you discover repeatable code. Don’t duplicate an equivalent thing multiple tests. Data driven – Test data like URLs / User Names and Passwords are maintained in properties file or Excel…
Docker Commands
Basic Commands1)docker version2)docker -v3)docker info4)docker –help docker –help Example: Get information about images….. docker images –help –> Gives you details about how to use images command docker run –help –> Gives you details about how to use run commands5)docker…
How to Convert Database Results into JSON Files
[youtube=https://www.youtube.com/watch?v=mjpVbBS-854&w=500&h=300] Pre-Requisite: Create Mock Table \”constomersInfo\” in \”ClassicModels\” Database and insert some data. CREATE DATABASE ClassicModels; use ClassicModels; CREATE TABLE CustomerInfo (BookName varchar(50), PurchasedDate date, Amount int(50), Location varchar(50)); INSERT INTO CustomerInfo values(\”selenium\”,CURRENT_DATE(),350,\’Africa\’); INSERT INTO CustomerInfo values(\”Java\”,CURRENT_DATE(),200,\’Africa\’); INSERT INTO CustomerInfo…