Interview Preparation Tips
Topics to prepare for Deutsche Bank Senior Automation Engineer interview:
Selenium
Java
Interview preparation tips for other job seekers- Practice all java concepts using
programs not only definitions . This is 7-8 years experience interview
String manipulatiton; array and dynami prog questiton
Duetshe ank interview questions;
1. In your framework how have you and why have used abstract classes and interfaces?
2. Program on reverse string
3. List and set differences
4. Exception handling in selenium
5. findElement and findElements
6. Can we create object of abstract class ?
7. Abstract class and interface differences ?
Answers;
Answers to interview questions for Senior Automation Engineer position
Abstract classes and interfaces are used for creating reusable code and implementing polymorphism
Example of abstract class: WebDriver in Selenium
Example of interface: WebElement in Selenium
Reverse string program can be implemented using StringBuilder or char array
List is ordered and allows duplicates, Set is unordered and does not allow duplicates
Exception handling in Selenium can be done using try-catch blocks
findElement returns the first matching element, findElements returns a list of all matching elements
Object of abstract class cannot be created, but reference variable can be created
Abstract class can have both abstract and non-abstract methods, interface can only have abstract
methods
Example of abstract class and interface differences: abstract class can have constructor, interface
cannot
1. Print numbers from 1 to 100 without using any loop ?
2. How do you take out duplicate values from array without using any set ? if you iterate the array
and take out unique values , how do you do it for 2lakh items in less time?
3. Difference between alert and verify in selenium?
4. If exception comes when we use verify what happens in selenium ?
5. What is singleton class ?
6. Suppose there is a login page and once user logs-in in db flag value becomes true, this we need
to verify using automation, which wait do you use on which element ?
Answers;
Answers to interview questions for Senior Automation Engineer
1. Using recursion to print numbers
2. Using nested loops to compare each element
3. Alert is a pop-up window while verify is a method to check if an element is present
4. Verify will continue the test even if the assertion fails
5. A class that can only have one instance at a time
6. Use explicit wait on the flag element
Programs to refere;
Of ameria;
Logical questions like Pick 3rd element from 5 element list without
using Index or looping concept, 2. 5 edit boxes are there with same
property, nearer to each edit box is unique URL, How you will edit the
4th box
3. Locators order of usage 4. TestNG annotation orders, 5. About Feature file, Step Definitions
BDD vs TDD, Framework creation, Competency based questions, Selenium, CI/CD using Jenkins
For Position: Test Automation Engineer
Updated on: 11.07.2021
I was asked to fill up a form asking a few basic questions about the
Candidate.
First obvious Question: Tell me about yourself.
SQL Questions
There are two tables, A and B. Both have two columns ID & Name.
The ID column is auto-incremented. There are four rows in each
table. We ran the delete command on table A and the truncate
command on table B. Now when we insert a new record, what
would be the sequence number coming in the case of A & B?
Two tables, A & B, have some common data. Write a query to
retrieve data that belongs only to B
There is a table containing student names and their courses.
Write a query to get all students enrolled in more than one
subject.
Java Related Questions
What does “public static void main(String Args[]) means?
What is the difference between abstract class and interface?
Programming
An array of 100 sizes has numbers 1 to 100 in an unsorted way,
and one of the numbers is missing(e.g., number 90 is missing,
and all other numbers are present). You have to find out that
number.
An array has data like 0 0 1 1 0 0 1 1. Write a program to sort
these numbers.
Selenium Interview Questions
How to open Google.com through Selenium WebDriver?
What’s the significance of HTTP in the driver?
get(“https://www.google.com)? what if we don’t write this?
How to get all the links on a webpage?
How to know a drop-down there are how many elements present
in it?
Test Cases Interview Question
There is a parking lot that has one entry and one exit. Write test
cases for testing this parking lot.
What if we make two entries and two exits? How does it affect
your cases?
Puzzle
There is a cake. You have to cut it into eight equal pieces with
three cuts.
The company looks cool, like a start-up having some fancy slogans written all
over.
Ttehnial;
1 resume questions; projetts and ourses ett
Writet simple ule sort prog, projetts
2 java and asi oops, tthoughtt proess , hospital management