Posts

Docker configuration for selenium tests

Image
Why docker for selenium testers: Usually while configuring the Selenium grid we need to host multiple virtual machines as nodes and we need to connect every single node with the hub. Also, when we set up a normal grid we need to download the Selenium server jar file and run that jar file on each computer in which we are going to set up the Selenium grid. This is costly and sometimes a time-consuming task for the testers. However, Docker helps us to solve cost-related and time-consuming problems. Steps to create a automation project with the help of Docker: -Create a Maven project -Add selenium dependencies -Create a class like below.This will print Google by executing test in container created from docker. -Define and initialize a chromeStandAlone container in 4444 port.Below details gives details of docker. Most used common Docker commands: docker ps : Will give information of all containers running in the machine. Docker Images : will show all current images docker pull <image n...

Most common used Docker Commands for SDETs

Image
Why we need docker for selenium Tests: Selenium grid helps to run our test cases in different operating systems and on different browsers.  Usually while configuring the Selenium grid we need to host multiple virtual machines as nodes and we need to connect every single node with the hub. Also, when we set up a normal grid we need to download the Selenium server jar file and run that jar file on each computer in which we are going to set up the Selenium grid.   This is costly and sometimes a time-consuming task for the testers. However, Docker helps us to solve cost-related and time-consuming problems. By using Docker containers we can set up and pack a software application with all of the contents that are required to build that application, such as databases, libraries, and other dependencies, and finally, you can ship them all out as one package. So with the help docker of we can configure the hub and nodes as images which already built in docker hub. So since Docker is a...

Linux commands 1 : Commonly used FILE AND DIRECTORY COMMANDS for daily use and interview

Image
  Hello Techies, Unix Knowledge required for Software Testers - Manual and Automate the various UNIX / LINUX processes, So that we can achieve end to end test automation (If we have any Unix processes in your application).We use these command when we work on Git Bash too. So here I am listing all the commands which we use frequently. # List all files in a long listing (detailed) format ls -al # Display the present working directory pwd # Create a directory mkdir directory # Remove (delete) file rm file # Remove the directory and its contents recursively rm -r directory # Force removal of file without prompting for confirmation rm -f file # Forcefully remove directory recursively rm -rf directory # Copy file1 to file2 cp file1 file2 # Copy source_directory recursively to destination. If destination exists, copy source_directory into destination, otherwise create destination with the contents of source_directory. cp -r source_directory destination # Rename or ...

Coding Exercise 1

Image
 Coding Exercise 1: int a=4, 5,6,7 Int b=5, 90,31,44,20,32 Declare above array a and b Create 3rd array c which would have data of a and b In above question we can't use array list and sort method of collection. Java: import java.util.Arrays; public class copyonearraytoanother { public static void main(String[] args) { int a[]= {4,5,6,7}; int b[]= {5,90,31,44,20,32}; int[] mergedArray = new int[a.length+b.length];    //resultant array   //int c[]= {}; int pos=0; for(int ele : a) { mergedArray[pos]=ele; pos++; } for(int ele : b) { mergedArray[pos]=ele; pos++; } System.out.println(Arrays.toString(mergedArray)); } } Python: a=[4, 5,6,7] b=[5, 90,31,44,20,32] c=a+b print(c) Meet you in another Exercise!!

Coding challenges on Python and Java

Image
  Hello Guys!! As you aware these days to crack any Automation interview Java or Photon programming skill become mandatory and we are getting questions to write programs in the interview. So I will be posting two coding exercises per day. Solution will be given both in Java and Python. First try yourself without seeing the solution, this will improve your logical thinking. If you are not getting, its not an issue because making a century always starts with one run. So you can look at the solution, analyze and try yourself. See you in the next post!!!💬💬💥

Welcome to Next Gen Testing Show!!!

 Hey Guys!!! How are you all doing in this pandemic? I hope all good. This Pandemic made everyone to work from Home. So I too was forced to adjust for this. In the initial days it was quite strange and difficult to adjust with the WFH setup. But then enjoyed. This WFH gave a chance to learn so many new things. I restarted my hobby of Pencil Sketching.  Learnt cooking many native dishes and it was exiting to share it will all my friends and family  members. I completed reading a book 'Think and Grow Rich' which  gave me different perspective to my thinking skills. Apart from all above one important thing I did is exploring more into different Technologies of Information Technology. I did lot of courses from various learning channels like Coursera, Udemy and YouTube etc. I will be posting a series of blogs on my learnings during this time so it may be useful to others. I like to learn by teaching. That's all guys for now!! See you in next post!💻