0% found this document useful (0 votes)
90 views13 pages

Manas Jha Follow Me On-Join Our: Linkedin Whatsapp Group

The document contains a list of questions related to Java, Selenium, and automation testing. There are over 80 questions covering topics like OOP concepts in Java like inheritance, polymorphism, abstraction; Java collections like ArrayList, HashMap; Selenium locators, waits, page object model; and testing frameworks, exceptions handling. The questions range from basic to advanced levels and cover concepts, syntax, and real-world usage in testing frameworks.

Uploaded by

santhosh s
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views13 pages

Manas Jha Follow Me On-Join Our: Linkedin Whatsapp Group

The document contains a list of questions related to Java, Selenium, and automation testing. There are over 80 questions covering topics like OOP concepts in Java like inheritance, polymorphism, abstraction; Java collections like ArrayList, HashMap; Selenium locators, waits, page object model; and testing frameworks, exceptions handling. The questions range from basic to advanced levels and cover concepts, syntax, and real-world usage in testing frameworks.

Uploaded by

santhosh s
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Manas Jha Follow me on-LINKEDIN Join Our WhatsApp Group

General:

• Tell me aboutyourself?
• What is your Role and Responsibilities?
• Architecture of your current application?
• Which Automation framework you are using in your organization
canyoutellmethefolderstructureandflowof your framework?

Java:
• Why String is immutable in Java?
• What is static in java?
• What is final in java?
• What is this word in java?
• What is finally and where do we use it?
• What is Autoboxing and unboxing?
• What is serialization and deserialization?
• What is an abstract modifier?
• What is call by reference and call by value?
• Primitives and Non-Primitives datatypes in Java? String is primitive or
non-primitive?
• What is the method of overloading?
• Why is it important to override HashCode() when you override equals()?
• What is the difference between a checked and unchecked exceptions?
• Difference between final, finally, finalize?
• Difference between abstract and interface?
• Difference between String Builder and String Buffer?
• Difference between Array and ArrayList?
• Difference between ArrayList and LinkedList?
• How to define dynamic array?
• Can we create the object for the abstract classes?
• Can we create the object for an interface?
• Can we create constructor of abstract class?
• Can constructor be overloaded. Explain why?
• Canmainmethodbeoverloaded?
• Can main method be overridden?
• Can we override static method?
• Can we overload static method?

MANAS JHA 9145735668 1


Manas Jha Follow me on-LINKEDIN Join Our WhatsApp Group

• Can we write non-abstract methods in Interface?


• Can we execute a java program without main method?
• Can we call a non-static variable in static method?
• Can I execute multiple catch blocks without try will it give me compile
time error?
• How to achieve serialization and deserialization?
• If we declare the main method as private what will happen?
• How to check whether the array is empty and null?
• What are the classes available in a list interface?
• What is the use of constructor in java?
• What is Hashmap? Can we store objects in Hashmap and how to retrieve
them?
• Difference between Hash Map and Hash Set?
• Where did you use HashMap in your project and also oops concepts in
your Automation Framework?
• Access modifiers in java and its scope?
• What is meant by Thread?
• What is singleton class in java?
• What is the difference between static binding and dynamic binding?
• Is Hashmap threadsafe?
• What is static, How to set value of static variable
• Can we overload private methods?
• Is it possible to extend Final Class?
• Is it possible to override Static method?
• Is it possible to overload main method?
• Is it possible to initialize a variable present in an Interface?
• What would happen, if multiple inheritance is possible, in Java?
• Explain Exceptions hierarchy in java?
• Explain Set and Map in Java?
• Explain about Inheritance.
• Difference between overloading and overriding?
• Difference Encapsulation and Abstraction ?
• Difference between throw and throws?
• What is polymorphism?
• How and when to use interface?
• Can we instantiate an interface?

MANAS JHA 9145735668 2


Manas Jha Follow me on-LINKEDIN Join Our WhatsApp Group

• Can we over load main method in Java?


• Can we overrideconstructor?
• Where do you use polymorphism in java?
• What is the system.out.println? and use of it?
• Whydo we use finally and how it differs from the final keyword?
• Can we use multiple catches? When can we use multiple catches?
• Different between POI and JXL?
• How to prevent the override method in Java?
• Why is the main method static?
• What is the use of static variables?
• What is the difference between list and set?
• How will you access default and protected class?
• Why Object creation not possible in Abstract classes?
• Design pattern inJAVA.
• What All of the classes in the Java Collection Framework have?
• Situations when we use abstraction and Interface - explanation about loosely
coupled and tightly coupled
• Will Java provide default constructor by own?How
• Difference between Arraylist and Linked List, In which situation they are
used?
• Difference between
List<String> list = new ArrayList<String>() and ArrayList<String> list = new
ArrayList<String>();
• Difference between HashMap and Multimap?
• In which situation the method should be static and when non-static?
• How does HashMap is implemented using key value pair?
• Supposeyouhaveclassandabstractclassinclassthereisauser defined
constructor and main method which one will get executed first?
• What do you mean by POJO why we use POJO?
• class A have 3 method, class B have 2 method, class B inherited class A, how do
you call method of class A by creating object of class B?

MANAS JHA 9145735668 3


Manas Jha Follow me on-LINKEDIN Join Our WhatsApp Group

Selenium:

• What are the challenges you have faced during testing?


• What strategies you followed while building a selenium framework
from scratch?
• Where do you perform the singleton design pattern? If you
don’t use it, then do you have an idea about this?
• Difference between Implicit, Explicit and Fluent waits in Selenium?
• Pros and cons of Implicit wait and Explicit wait.
• Whywepreferexplicitwaitinsteadoffluentwait?Whatare the
disadvantages of fluent wait?
• Without implicit wait selenium script will work or not?
• What is default polling time in explicit wait and in implicit wait?
• Explain about synchronization in selenium?
• Which concept they have implemented in explicit and fluent wait?
• Explain abstraction and interface respect of selenium with some
example
• Difference between Factory design and Singleton framework?
• What is page object and page factory model?
• Have you used interface in your framework other than selenium
interfaces?
• How do you achieve inheritance in your framework?
• What is Webdriver, Name methods which do not have the
implementation?
• What are the methods present in the webdriver interface?
• What's the fastest locator in Selenium?
• What does :: ( doubles colon ) in sibling xpaths represent?
• Explain. “Driver.manage.window.maximize” (talk about option
interface here)
• What is difference between get() and navigate().to() in Selenium?
• How would you check the broken links, in the webpage?
• Difference between submit() and click() in Selenium?
• DifferencebetweenabsoluteXPath(/)andrelativeXPath(//)
• Difference between findelement and findelements?
• Difference between frames and iframes?
• Return type of findelement and findelements?
• What error will be thrown when no element found for

MANAS JHA 9145735668 4


Manas Jha Follow me on-LINKEDIN Join Our WhatsApp Group

findelement and findelements?


• State some exception which you have faced in your framework? (Don’t
mention only selenium explain. Explain java exception also)
• Types of Exceptions and how to handle stale element exception?
• What are the interface used in selenium?
• Where do you used inheritance in selenium?
• How do you initialize web elements in POM? What error or exception
will come if not initiated?
• Ifbothwaitmethodthatisimplicitandexplicitismentionedin the script,
then which one is work? is it good practice to mention both ingood?
• What is the difference between close and quit in selenium?
• How do you handle Alert in Selenium?
• In a web page, there are several Pop-up, but we don’t when the pop-upwill
appear,inthiscasehowwewillhandlethePop-up using Selenium
WebDriver (Java)
• Howtohandlefileuploadwhentypeattribute doesnotfilefor upload web
element.
• How to cover character keyboard operation from the context menu
utilizing user-defined keyword?
• Consider this snippet
Web driver driver=new chromedriver(); what
does the above code snippet mean?
• Where can “Dynamic Polymorphism” in Selenium WebDriver be
observed?
• What is the difference between “/” and “//” in XPath?
• If proper Xpath, CssSelector and ID are not available, how do you identify
anobject?
• Attributes of CSSSelector?
• Which is most faster xpath or css?
• How to get n-th element using XPath and CSS?
• Consider you are only allowed to use css locator, how will you find the
parent/grandparent of a web element?
• Will driver.findelements() throw an exception ?
• What is returned by driver().manage() ?
• Inselenium,ifyouwanttoaccessthe element thathasthetext
“This element has an ID that changes every time the page is loaded”
in it, then which of the following will you use?

MANAS JHA 9145735668 5


Manas Jha Follow me on-LINKEDIN Join Our WhatsApp Group

• On page Object Model Framework (POM), how do you initialize the elements
of a page to be used in the runner class?
(name of the PageObjects class is “”SignupPage.java”” and the dirver
object name is “”driver””).
• Get the values from the dropdown and print them in Ascending order
• Using TreeSet to find elements command
• Does takes screenshot is interface or class
• Selenium uses lots of third parties jars for scripting. Then why do we still go
for selenium?
• Whydowehavetousebuild()andperform()withtheaction object
• Can we use perform() along in scripting without build()
• Whatisdifferencebetweenbuild()andperform()inselenium?
• Return type of getwindowhandle() and getwindowhandles()?
• Window Handling in Selenium -Switching from another window to Parent
window
• If the button is disabled? how to check -using getattribute()
• Explain method overloading with selenium and some example
• How do you read excel in the script? (very careful while answering. the
counter-question will come as per your answer)
• Doyouusethepropertyfileinyourframework?Ifyes,then whichjava
conceptgetsutilizehere?(JavaCollection)
• Onawebpage, thereareseveralPop-up,but wedon’twhen the pop-up will
appear, in this case how we will handle the Pop- up using Selenium
WebDriver (Java)
• Started automation test suite execution and few test cases are failed in a test
run. How can you execute only failed test cases atonce(withone click) what
designpatterndoweusewhen we trigger differentbrowsers?
• What are approached to handle dynamic WebElement?
• Click last option in the dropdown (Last drop-down changes dynamically)
• How to calculate links on a page? (Answer with HTML tag)
• Write the code to read the value from the excel sheet.
• What is Page Factory in POM Design pattern?
• Suppose you have 10 pages in your application then how to achieve POM.
What you will do?
• Annotation used in Page Object Model?
• Ways to find broken links in Selenium?
• How to handle frame in Selenium?
MANAS JHA 9145735668 6
Manas Jha Follow me on-LINKEDIN Join Our WhatsApp Group

• How to handle Alerts in Selenium?


• Different types of Navigation Commands?
• Difference between assert and verify?
• How to download a file using Selenium?
• How do you manage a set of Data Tables in Selenium?
• Howdoyouautomatelocalizationtesting-difflanguageinUI?
• How to avoid NoSuchElementException without using try/catch block and
with try/catch block?
• How to handle web tables whose values change dynamically?
• How to check whether web element is enabled or Disabled without
using isEnabled method?
• Why is CSS locator faster than Xpath?
• Even though CSS is faster than Xpath ,why do 95% of the companies
use XPath ?
• Error is throwing as Element not found but when I go and check thatelementis
availableinthewebpage?Theelementisnot hiddenso no need to useJava
scriptexecutor? Howdoyou solve this?
• How do you execute using headless mode?
• InSelenium,howtogettextvaluefromtext-boxifgettext()is not working?
• Ifweareusingcorrectlocatorbutstillgettingelementnot found error
then how you will resolve this error?
• InPageobject modelonceyoucreateloginpage.javaclasswhat is the first thing
you start with writing initially. How are you initiating writing something
into a page class?
• What if Windows popup occurs during test execution and due tothatcan't
executeautomatedtests,howuwillresolvethis error?
• Different ways to handle hidden elements?
• What is the difference between click() function in webelement interface
and click() function in Actions class?
• Is it possible to change the behavior of a test at runtime?
• Describe how to handle the below items using selenium

-iframe -windows -table -Alerts

• How to click right click of mouse?


• How to scroll down a page?
• What will driver.getWindowHandels() return?

MANAS JHA 9145735668 7


Manas Jha Follow me on-LINKEDIN Join Our WhatsApp Group

• How will you automate Windows based application?

Java Program:

• Swap string without 3rd variable?


• Duplicates in aString?
• How to find the length of the string without using length?
• Largest Number in an Array?
• Reverse string without using reverse function
• Write code to print the Fibonacci series?
• Write code to print only the even numbers from an array.
• Write code to find special character, number, capital and small letter in a
given string.
• Write code to check if a number is palindrome?
• Writeacodetoreversethecode,withoutusingthebuilt-in method.
• WriteaJavacodetoidentify,ifthepairofstringsarean Anagram or
not?
• Write a code to get Highest number using array.

MANAS JHA 9145735668 8


TestNG:
• What is the importance of the testng framework?

• Why we use TestNG in your framework


• What is the purpose of testing XML
• Explain the purpose of listeners? is it the selenium concept of TestNG?
• Case Scenario: How to run the same method 100 times in TestNG with the same
data?
• What is the reporting tool in your framework? and why?
• Some questions in TestNG XML?
• What are different testng annotations?
• How can you configure tests in testng?
• What is @dataprovider?
• Difference between @Factory and @DataProvider?
• @Factory explain with real time example?
• Test Order inTestNG?
• How to add/remove test cases in Testng.xml?

• Explain the difference between beforemethod, beforetest, and beforeclass


• List out the testng annotation hierarchy order?
• How you achieve parallel execution using testng?
• Outof50testcases,howyouwillrunonlythefailedtestcases?
• How can you take the screenshot for the failed testcases?
• How can you run the same tests for 10 times?
• Types of Listeners?
• TestNG: Parallel executions, Grouping?
• Difference between after suite and before suite?
• What is the use of testng.xml?
• Howmanysuitscanbetherein testNG,whatifIrunallthe suits?
• SyntaxtoperformparalleltestinginTestNGandwhatdoyou write in <suite tag> also
what do you mention in double quotes like parallel = “ ”
• IntestNG,dowehavemultiplesuiteinoneXMLfileandwhatIf I want to run all suits?
• What is invocationcount in testng?
• Cucumber tags and annotations?
• What is background in Cucumber?
9|
• Difference between Scenario and Scenario Outline?
• Write skeleton of test runner?
• Explain retry analyzer?
• Cucumber tags? And how to run different combinations of tags when multiple tags
are present
• Difference between hooks and tags?

Maven:

• Lifecycle of Maven
• Use of Maven surfire plugin. If yes, where and why?
• What is the use of pom.xml?
• CI / CDtools
• What is Jenkins?
• How will you handle dependencies in Maven at run time?
• Today we have executed some tests using maven, but tomorrow when you
see that someone deleted all dependencies from .pom file then in that case will
you be able to execute tests or not.
• Consider you have to write test/suite for different environments(qa,
preproduction, production) and pass differentsetofdataforeachenvironment.
Howwillyoudoit using maven file(Pom.xml)?
• Canyougivesomebasiccommandsusedinmavenproject?
• How will you configure Jenkins job?
• What are two components Jenkins is integrated with?
• How you will schedule the deployments?
• What is the purpose of version control tool?
• What are the git commands you have used?
• What is difference between group id and artefact id?
• How and when is Jenkins is used in your Automation?

Webservices:

• Difference between REST and SOAPUI.


• Method in REST.
• Difference between PUT and PATCH call
• How to integrate postman to project?
• How will you handle dynamic payloads in API?
10 |
• How do you capture specific responses value and pass to another request?
• What challenges you faced in API testing?
• What is difference between Authorization and Authentication?
• What are the API status codes, you have come across?
• What is difference between OAuth1.0 and OAuth2.O ,When and where do you use
and how. Can you write a sample code?
• How you get the response from one api and send to another api?
Functional Testing:

• What is TestPlan?
• Explain the bug life cycle?
• Difference between smoke and sanity tests?
• Difference between regression and retesting?
• Difference between functional and regression testing?
• Difference between severity and priority?
• Difference between Test Plan and Test Strategy?
• Difference between boundary value analysis and equivalence partitioning?
• Difference between white box and black box testing?
• If we are having 1000 test cases, what type of testing carried forautomationtesting?
Canwewriteamethodthatreturns two or more values? If then, how?
• Bug Life Cycle?
• Bug Triage?
• What is exploratorytesting?
• What is adhoctesting?
• What is build acceptance testing?
• What is difference between Validation and Verification?
• Explain severity and priority and High severity with low priority, low severity and high
priority?
• Given the test cases having priority of -1,0,1,2 tell me the sequence of
execution.
• Explain inner join and outer join in SQL?
• Difference between DELETE,DROP & TRUNCATE?
• What are test design techniques?
• What is deferredbug?
• How you will decide what tests to automate?
• When you decide to stop the testing?

11 |
• If your test suite takes 1 and half to run, what you will do to reduce the time?
• How many test cases in your regression test suite? How much time it will take to
execute?
• How to cover character keyboard operation from the context menu utilizing user-
defined keyword?
• What is most important things to define in a bug?
• Can tell about any achievements you have done in automation?
• Can you tell me the difference between bdd and tdd?
• Whatisatestplan and whatarethe stepstocreateatest plan?
• What are the inbound and outbound for testing?
• What is smoke, regression and sanity testing?
• Whatisthenextsteptobetaken,ifdeveloperrejectstheOpen defect?
• Explain the testmetrices?
• How would you priorities Tests?
• How do you perform Automation Code Review/ Walk Through in your project?
• There are 250 manual test cases , how will you segregate (on what basis) the
regression , sanity , smoke suite?
• WhenRegression,Sanity,smoketestscriptsareexecuted?
• How will you decide that this test case is feasible or good candidate for
automation?

Agile:

• What is an agile methodology?


• What is the scrum and who is your scrum master?
• Ceremonies followed in Agile methodology?
• Retrospective meeting?
• Describe Scrum ceremony?
• When do you automate in current sprint or next sprint?
• Explain velocity insprint.
• In tight sprint schedule, if a new requirement is added, how will you handle this
situation?
• What is backlog in Scrum methodology?
• You have 30 + sprints in your release how will you design your test scripts and run
them?

12 |
Managerial round:

• How you will be an asset to the team?


• Why you are looking for a change?

• How soon you can join?


• Suppose if we give manual testing for six months or one year what will youdo?
• How interested are you in learning new technologies?
• Failures in your work life.
• As Lead, how do you define quality of product before releases?
• Suppose you are the leam QA and 1 new member join your teamandatthesametime
youhaveadeadlineto meetinnext 2or3dayssohowwillyouinvolvethatnewmember
inteamso that you can utilise him/her to meet deadlines?
• As a QA, where do you see yourself after 3 years?
• What are your strengths and Weakness?
• What are some best practices you learnt and how much difference it made in
testing career? Explain before and after situations
• After you have run a full regression test, and find new regressionbugs,which
bugswouldyouprioritize.Bugsthat suggest that functionality has regressed, or bugs
that appear in new features?

13 |

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy