Posts

Showing posts from September, 2018

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/install-node-js-npm-win