Saturday, 14 December 2019

Top 11 Linux commands for Automation Tester/SDET interview?



  • ls: used for listing of files
                ls -al; gives detailed information of the files

                ls -a:Listing Hidden Files
  • cat: creating and viewing of files
                cat > filename : create new file

                cat filename: to view file

                cat fileone finetwo > filecombined : combine two files into one
  • rm: to delete files
                rm filename
  • mv: to move files
                mv file location   (location is the path where you want to move the file)
  • chmod: To change permission
               chmod 777 filename (777 is the permission code)

               chown: change ownership of file

               chown owner:groupowner filename
  • grep:To search pattern
              search test in all text files then grep command will be:

             grep test *.txt
  • tail: to display last lines of files
             tail -n 5 test.txt : it will display last 5 lines of test.txt file
  • ssh: to connect to remote linux machines
              ssh user@IP

             for example the command will look like; ssh sidharth@192.168.x.x

  • traceroute:
               tracks the route that a particular packet of information takes to reach to the host
               traceroute www.automationreinvented.blogspot.com
  • ftp and sftp:
               to connect to remote server and download files

               $ ftp IP/hostname

               ftp> mget *.txt

  • ps: to check process

               ps -ef: current running process

              we can choose more or less with below
              ps -ef | less or more
  •  dstat – view processes, memory, paging, I/O, CPU, etc., in real-time. All-in-one for vmstat, iostat, netstat, and ifstat.
  • iotop – interactive I/O viewer. Get an overview of storage r/w activity.
  • rsync – remote file transfers and syncing. 
 

*************************************************

API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API

 
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes

 
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html

 
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux

 
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign


Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java


GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT


Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions

Saturday, 7 December 2019

Top 11 GIT Interview question for Automation Testing/SDET/Lead QA?

1. How to create repository in GIT?

    $ git init

2. How to clone a repo?

Clone the test repo into a new directory called TEST:
$ git clone https://github.com/<username>/test.git TEST

3. How to switch branch?
 git switch branchname

4.  How to unstage changes or restore files?

 Maybe you accidentally staged some files that you don't want to commit.
 $ git restore test.js
 $ git restore .

 5. How to undo commits?

 The following command will undo your most recent commit and put those changes back into staging, so you don't lose any work:
$ git reset --soft HEAD~1
The next one will completely delete the commit and throw away any changes. Be absolutely sure this is what you want:
$ git reset --hard HEAD~1

6. How to undo last push?

Some would say this is bad practice. Once you push something you shouldn't overwrite those changes. Instead, you're supposed to create a new commit that reverts the changes in the last one. So, technically, you shouldn't do this, but... you can?

$ git reset --hard HEAD~1 && git push -f origin master

7. How to fetch changes from both origin and upstream?

$ git fetch --multiple origin upstream

8. How to delete a local branch?

$ git branch -d <local_branch>
Use the -D option flag to force it.

9. How to stash ur chnages?

$ git stash


10.  How to push changes?

 git add -all
 git commit -m "message"
 git push remote_server branch_Name

11. Difference between rebase and merge?
 git merge apply all unique commits from branch A into branch B in one commit 
 git rebase gets all unique commits from both branches and applies them one by one.
 git rebase rewrites commit history but doesn't create extra commit for merging.

*************************************************

API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API

 
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes

 
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html

 
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux

 
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign


Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java


GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT


Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions


Thursday, 28 November 2019

How to prepare for Automation testing and SDET Interview? What to cover before Automation testing Interview?


1. Always give higher importance to coding section, if you are using selenium then do prepare for    Core Java programming question

2. Practise Collection, Constructor and exception handling throughly

3. Go through Selenium Webdriver basic questions

4. Always rememer the Automation Framework structure

5. Be sure that you are well known with TestNG, maven, Extent Reporting

6. Learn basic commands of GIT and Linux

7. Have a brief idea on implementation of CI/CD

8. Go through basic sql queries

Will cover each and every point in separate post, so keep reading.
 
*******************************************************************
For any doubts or career guidance from me, reach out here : https://topmate.io/sidharth_shukla

********************************************************************

These commands cover a range of basic UI interactions and are a good starting point for building automated tests with Cypress.

Do remember that knowing Linux is one of the most important aspect to work as an SDET.

Basic Linux Commands for Automation QA


****************************************

TOP 15 BDD - CUCUMBER Interview Q&A


************************************************

✍️AUTHOR: LinkedIn Profile

************************************************

Learn (API-Microservice)Testing+ Selenium UI Automation-SDET with Self Paced Videos prepared by FAANG employees and LIVE Doubt Session 

SDET TRANING VIDEOS AVAILABLE with Live Doubt Session(course-1 below,API TRaining Videos With Class Notes and Coding Set) and (API++Mobile+UI, course-1 & 2 below) Check Training Page for Course Content or reach out @whatsapp +91-9619094122. 
This includes classnotes, 300+ interview questions, 3 projects, Java Coding question set for product companies along with career guidance from FAANG employees for Automation and SDET.

For more details whatsapp : https://lnkd.in/dnBWDM33

*************************************************

SeleniumWebdriver Automation Testing Interview Questions:

https://automationreinvented.blogspot.com/search/label/SeleniumWebdriver

API Testing Interview Question Set:

https://automationreinvented.blogspot.com/2022/03/top-80-api-testing-interview-questions.html

DevOps Interview Q&A:

https://automationreinvented.blogspot.com/2021/11/top-11-devops-interview-questions-and.html 

Kubernetes Interview Question Set

https://automationreinvented.blogspot.com/search/label/Kubernetes

Docker Interview Question Set

https://automationreinvented.blogspot.com/Docker

Linux Interview question Set

https://automationreinvented.blogspot.com/search/label/Linux

Automation Testing/SDET Framework Design

https://automationreinvented.blogspot.com/search/label/FrameworkDesign

Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java

GIT Interview Question Set:

https://automationreinvented.blogspot.com/2021/09/top-40-git-interview-questions-and.html

Coding Interview Question Set:

https://automationreinvented.blogspot.com/search/label/Coding%20Questions

Mobile Testing Interview Question Set:

https://automationreinvented.blogspot.com/search/label/Mobile%20Testing

Python Interview Question Set for QAE - SDET - SDE:

https://automationreinvented.blogspot.com/search/label/Python

Monday, 25 November 2019

How to Add/Join/Combine two arraylist? Core java Interview question? Top 5 programming qus on Arraylist?

Let there are two array list and we need to add value of both arraylist into one:

 // use import java.util.ArrayList;

public class AddTwoArrayList
{
    public static void main(String [] args)
    {
        //First ArrayList
        ArrayList<String> arraylist01=new ArrayList<String>();
        arraylist01.add("Kist1");
        arraylist01.add("Kist2");
        arraylist01.add("Kist3");

        //Second ArrayList
        ArrayList<String> arraylist02=new ArrayList<String>();
        arraylist02.add("Nist1");
        arraylist02.add("Nist2");
        arraylist02.add("Nist3");

        //Combined ArrayList
        ArrayList<String> arraylistCombined= new ArrayList<String>();
        arraylistCombined.addAll(arraylist01);
        arraylistCombined.addAll(arraylist02);

        //Displaying elements of the joined ArrayList
        for(String temp: arraylistCombined){
            System.out.println(temp);
        }
    }
}
 

*************************************************

API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API

 
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes

 
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html

 
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux

 
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign


Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java


GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT


Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions

Top 5 differences between Arraylist and Linkedlist? Arraylist vs Linked list? When to use arraylist and linkedlist?Interview question for Automation testing/Core Java?

  • LinkedList can be iterated in reverse direction using descendingIterator() but to iterate over the ArrayList in reverse direction we need to write our own code

  • Insertions and Deletions are faster in LinkedList as compared to ArrayList because there is no need of resizing array and copying content to new array if array gets full which makes adding into ArrayList of O(n) in worst case, while adding is O(1) operation in LinkedList in Java. so if we have more add or delete operations then we should go with Linked list.
  • LinkedList has more memory overhead as each node holds both data and address of next and previous node but in ArrayList each index only holds actual object or we can say data.
  • ArrayList internally uses a dynamic array while LinkedList internally uses a doubly linked list.
  • Arraylist get method is faster than Linked list so fetching data or search operations is good in arraylist.

 

 

*************************************************

API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API

 
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes

 
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html

 
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux

 
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign


Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java


GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT


Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions

 


Thursday, 14 November 2019

Selenium Webdriver most asked Interview Question? Top 5 selenium Interview Qus?Most asked Selenium webdriver question?

In this post we will go through the MOST asked Top 5 selenium Interview questions:

1. What are the types of locators used to identify object?

ANS:

  •     ID
  •     Name
  •     Class Name
  •     Tag Name
  •     Link Text & Partial Link Text
  •     Link Text
  •     CSS Selector
  •     DOM (Document Object Model)
  •     XPath


2. Difference between getwindowHandle and getwindowHandles ?

ANS:
driver.getWindowHandle() return a String of alphanumeric window handle and is mainly used to get the window handle of the current window.
driver.getWindowHandles() return a set of window handles and is mainly used to get the window handle of all the current windows.


3. How to handle popup and alerts in selenium?

ANS:  

Alert alert = driver.switchTo().alert();

alert.accept(); //it will click on "ok"

alert.dismiss();  //it will click on "cancel"

4. How to handle mouse and key board events using selenium?

 Keyboard Events Using Selenium Actions Class:
  • sendKeys(keysToSend) : sends a series of keystrokes
  • keyDown(theKey) : Sends a key press without release it. (example: Keys.ALT, Keys.SHIFT, or Keys.CONTROL)
  • keyUp(theKey): Performs a key release

Mouse Events Using Selenium Actions Class:

  • click ():  click on element

  • doubleClick (): Double clicks on Element

  • contextClick() : Performs a context-click (right click) 

  • clickAndHold(): Clicks at the present mouse location 

  • dragAndDrop(source, target): Invokes click-and-hold at the source location and moves to the location of the target element before releasing the mouse. source – element to grab, target – element to release
     
  • dragAndDropBy(source, xOffset, yOffset) : Performs click-and-hold at the source location, shifts by a given offset, then frees the mouse. xOffset – to shift horizontally, yOffset – to shift vertically
     
  • moveByOffset(x-offset, y-offset): Shifts the mouse from its current position (or 0,0) by the given offset. x-offset – Sets the horizontal offset (negative value – shifting the mouse to the left), y-offset – Sets the vertical offset (negative value – shifting the mouse to the up)
     
  • moveToElement(toElement): It shifts the mouse to the center of the element

  • release(): Releases the depressed left mouse button at the existing mouse location

5. What are the functions most commonly used in xpath, describe any 5?

ANS: 

All Time Popular Posts

Most Featured Post

𝗦𝘁𝗶𝗹𝗹 𝘀𝘁𝗿𝘂𝗴𝗴𝗹𝗶𝗻𝗴 𝘄𝗶𝘁𝗵 𝗝𝗮𝘃𝗮 𝗰𝗼𝗱𝗶𝗻𝗴 𝗿𝗼𝘂𝗻𝗱𝘀?

❓ 𝗦𝘁𝗶𝗹𝗹 𝘀𝘁𝗿𝘂𝗴𝗴𝗹𝗶𝗻𝗴 𝘄𝗶𝘁𝗵 𝗝𝗮𝘃𝗮 𝗰𝗼𝗱𝗶𝗻𝗴 𝗿𝗼𝘂𝗻𝗱𝘀? The issue isn’t your logic—it’s the lack of pattern recogniti...