Pages

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


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

✍️AUTHORLinkedIn 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: