Posts

GIT Cheatsheet

Clone a repo git clone <your repo URL> Create a branch and switch to it git checkout -b <branchname> Delete a branch git branch -d <branchname> List the local branches git branch List only remote branches git branch -r List all the remote and local branches git branch -a Renaming a branch git branch -m old-name new-name

Shell Scripting

Your first Shell script!! Open the terminal type the below command: this is to create a file vi helloworld.sh hit escape button (to enter the insert mode in vi editor) type the below echo "helloworld..!!" to save the script hit escape and colon (:)type wq! (like this :wq!)and hit enter now to execute the program use the below command . ./helloworld.sh hit enter output is as below helloworld..!! Printing on screen Example:1 This statement prints the statement as is on screen echo Hello, how are you doing? output: Hello, how are you doing? Example:2 Printing the value of any variable a=10 echo $a output: 10 Reading the user input the below shell script reads 2 inputs from the user and prints it on the screen. echo "Enter the name:" read name echo"Enter last name:" read lname echo "hello $name $lname, how are you?? " Operators in Shell Mathematical [x -eq y] =...

All about Cypress!!

What is Cypress.io Cypress is an open source front end automation tools for web applications. This is a non-selenium based tool, when i say non-selenium it does not use selenium libraries neither it is build on top of selenium. Its build all from scratch and offers the following interesting cool out of the box features. Time Travel :You can travel back and see what happened when you ran the test. Before and after. How cool is that!! Debugging : You can use chrome devtools to inspect the DOM Automatic waiting : No more adding waiting through code. All batteries included !! Screenshots and videos : For failed tests the screenshots and videos are taken automatically, no more adding code explicitly. Stubs and clocks : Can be used for unit tests by the devs. For more you can visit the  cypress site Setting up cypress Install nodejs On Mac http://blog.teamtreehouse.com/install-node-js-npm-mac  On a windows machine http://blog.teamtreehouse.com/inst...

Selenium Interview Questions and Answers

Listing down some of the links for Interview questions and answers for Selenium webdriver Please feel free to add more under the comments. 1. http://www.techbeamers.com/category/interview-questions/selenium-interview/ 2. https://www.linkedin.com/pulse/selenium-real-time-interview-questions-answers-technologies-13600- 3. https://intellipaat.com/interview-question/selenium-interview-questions/

Dockerfile Explained

Rule no 1 - The name of the file should be " Dockerfile " only. Dockerfile is used to build images. It's  is a text file that contains all the commands a user could call on the command line to create an image. Here the commands you can use in a  Dockerfile are explained with examples wherever possible . Hope it helps. The general format of a command is "INSTRUCTIONS arguments". Ex : RUN echo "Hello Docker !!" FROM FROM <image> The  FROM  instruction sets the  Base Image  for subsequent instructions. As such, a valid  Dockerfile  must have  FROM  as its first instruction. The image can be any valid image – it is especially easy to start by  pulling an image  from the  Public Repositories . Ex : FROM ubuntu MAINTAINER MAINTAINER <name> This allows you to set the  Author  field of the generated images. RUN Executes a command and save the result as a new layer....

Getting started with Docker

Installation docker on a ubuntu machine - use the following commands sudo apt-get install docker.io To verify the docker is installed and check its version: sudo docker version Create a simple docker container in interactive mode Here in the below command - it used base ubuntu image , if ubuntu is available on ur machine it will pull from der else pulls from docker public repo-called as docker hub sudo docker run -t -i —name “ur container name” ubuntu /bin/bash Now the new container is created by name given and the control is now the the newly created container. List the containers on the machine docker ps -a delete the container -  sudo docker rm “container name” list docker images available -  docker images get out from the container  exit

Practice sites for Selenium

I know most of the people who are new to Selenium are looking for sites to practice selenium which have all kinds of scenarios such as hovering, multi-level hovering, drag and drop , resizable text fields multi select drop downs, frames, multiple windows and so on. My suggestion is to automate anything that you would see or do day in day out to practice or to help you in your regular repeated work ;) For example, automate your timesheets (great time saver , isn't it + its pretty boring ;) ,no offence though). But,i thought i would share what i have found so far. Below are some of them, please feel free to suggest more in the comments. 1. http://www.seleniumframework.com/demo-sites/ 2. http://store.demoqa.com 3. http://demoqa.com 4. http://toolsqa.com/automation-practice-form/ 5. http://toolsqa.com/automation-practice-switch-windows/ 6. http://toolsqa.com/automation-practice-table/ 7. http://toolsqa.com/handling-alerts-using-selenium-web...