Why Selenium?
Selenium interview questions! To begin with, Selenium with Java is one of the most important and trending skills in the Software Testing Domain where most of the jobs are posted. Point often overlooked is that most of the CMMI V companies prefer to hire Quality Analysts with this skill set. Undoubtedly this is the best profile to enter into coding from Manual Testing. This article helps you to get the most common interview questions. Therefore, without delay, let’s get started!
Popular JD For QA’s
Generally, we post Job description for the following requirements:
- Core Java (Mandatory Skill Set)
- In the second place, Selenium (Mandatory Skill Set)
- Testng/Cucumber(BDD) (One is mandatory)
- Database Knowledge
- Manual Testing and API Questions
Skills Required For Automation Profile?
Core Java:
This is the one of the most important skill set for an Automation Tester and most of the time it’s deciding skill. This is to say with attention to its popularity, refer below for questions:
Java Interview Question required for Selenium: Selenium interview questions
- Name some OOPs concepts of Java?
- What do you understand with Polymorphism?
- Difference between Abstract class and Interface and why it is used?
- Static Keyword and why it is used?
- Difference between final, finally and finalize?
- Difference between throws and throw?
- In effect can an Interface implement or extend another interface?
- What is a marker Interface?
- Can we have try without catch block?
- Difference between String, StringBuilder, and StringBuffer?
- Why String is popular HashMap key in Java?
- What is difference between comparator and comparable class?
- Write a Java program to check Palindrome?
- Write a java program to found duplicate words from sentence. Ex. Sentence = “AGRA IS MY HOMETOWN AGRA NOIDA AGRA”. Output: AGRA 3
- Write a java program to find duplicate characters from string, find number from the given string, print reverse sentence in reverse order ?Input: “INDIA IS MY HOME COUNTRY”. Output: “COUNTRY HOME MY IS HOME”
- Write a java program to read data from notepad.
- Write a program to count files in a given directory.
- What is Maven and why it is used?
- What are the Life cycles of Maven?
- Which code management tool do you use? Write few git command to create branch, clone and commit?
Selenium:
After completion of Core Java round interviewer moved on Selenium Concepts. With this intention we bring here the mostly expected questions. Hence, without a doubt let us check the following top questions
Selenium Interview Questions:
- Write code to capture screenshots?
- Write selenium code to assert all links are working and there is no broken links on-page.
- How to switch within Iframes.
- Write relative Xpath using following ancestor and following siblings.
- Why we use WebDriver Manager ?
- What are the methods available in the WebDriver Event Listener interface?
- Explain internal architecture of Selenium WebDriver ?
- Why and how you use Selenium Grid ?
- How to get details of multiple windows and how to switch between Windows.
- How you get data from WebTables ?
- Desired capabilities and why it is used?
- Different types of Wait available in Selenium?
- Difference between implicit and explicit wait?
- Common exceptions found during Selenium Automation and how do you handle them?
- Explain your automation framework and what are the features in it?
- Write few utilities code like excel reader, CSV reader, and JDBC connection code.
TestNg:
While it may be true, it is one of the popular frameworks in industries so most the interviewer likes deep dive into it. As has been noted, despite going to its root, let us firstly straightaway take the case of what’s more if we were facing an interview.
Interview Questions:
- Why testing is used in Automation framework?
- What is difference between Hard assert and soft assert.
- How to pass parameter from testing XML.
- How to run test classes parallel and how test methods.
- Write the structure of testing XML structure.
- How you run TestNG XML from the command line.
- What are the annotations available in TestNG and what is the sequence of their execution?
- Ignore a test in TestNG.
- Data providers in TestNG?
- Run failed test cases using TestNG XML.?
Cucumber BDD:
One of the demanding frameworks and used in most of the MMCs. In this case, good answers on Cucumber ensure your selection. Here are the interview questions:
Cucumber BDD Interview Questions:
- What is BDD (Behavioral Driven Development) framework and why it is used?
- Which language is used to write feature file?
- What are the components of the feature file?
- What is the difference between Scenario and Scenario Outline?
- How do you run the Cucumber feature file?
- How you perform Data-Driven Testing with Cucumber ?
- What is the purpose of Step Definition file ?
- Why Background Keyword is used?
Database Testing:
All in all, being a senior Software Test Engineer, Database knowledge is mandatory. Although this may be true, one required proper knowledge of database. With this purpose in mind, together with database and testing, here are the important Database questions for Automation Engineer:
Database Testing Interview Questions:
- What is the difference between truncate, delete and drop commands?
- Write query to find third highest salary of employee?
- Difference between view and table?
- Difference between procedure and trigger?
- What is stored procedure?
- What is a cursor?
- String functions?
- What is a coalition?
Manual & API Testing:
As a matter of fact, an automation tester is best if he has the gene of Manual Tester. However, he should be good in either scenario creation, test plan Test strategy, or agile methodology. Therefore, to sum up, here are few important questions which interviewer likes to ask at the end of interview and are equally important.
Manual & API Testing Interview Questions:
- Agile ceremonies involved in Project Life Cycle?
- Story point and who gave these story points?
- Difference between project backlog and sprint backlog?
- Burn down chart?
- Difference between a test strategy and test plan?
- What is Kanban ?
- Extreme programming and scrum?
- Velocity of Sprint and how do we measure it?
- Common architectural style of creating a web api ?
- Principle of API Test Design?
- Procedure to perform API Testing?
- Major challenges you faced in API Testing?
- Difference between POST and PUT Request?
- Common response codes of API ?
- Difference between PATCH and UPDATE?
- Differences between SOAP and REST API?
- Continuous Integration and How you will achieve this?
To conclude, with the result that the above questions are enough to crack interview any Senior Automation Engineer role. In general, Thought Coders website not only have very good content but also helps you to learn new technologies and crack interview. Therefore, explore our website and share your feedback on query@thoughtcoders.com
To this end, follow us on Facebook and Instagram for the latest updates.