SlideShare a Scribd company logo
JAVA
……………………………………………………………………………..
31. What isdifference betweenarraylistandhashmap
7. Withoutcreatingobjecthowwill youaccessthe superclass'smethod?
23. This& superkeywordusage?
8. Difference betweenarraylistandarray?
30. What are differenttype of collection
9. Tell me scenarioswhere youusedwhichcollection?
14. What isSingleton?Howtomake the class as singleton?
15. What isencapsulation?Howsetterandbettermethodsare usedinit?
18. How to iterate alist?
19. Tell the for eachsyntax to iterate the array list?
20. Tell the iteratorsyntax toiterate the array list?
21. howwill addan elementinaarraylist?
22. Differentwaystocreate anobject.
24. Explaininterface.
25. Can we create objectforinterface
? I saidNo. Thenhe askedisthere any alternative?
26. Letssay a class isimplementinganinterface andIdon’twant to implementall the methodspresent
inthe interface,thenhowcanI handle thisinjava?
28.What isdiff betweenabstractclassand interface
32. I don’twantto allowcreationof objectfora class,thenwhatshouldIdo?
……………………………………………………………………………………………….
manual
severitypriority
defectlife cycle
stlc,sdlc
agile
bug leakage
bug triage meeting
retrospective meeting
sprintboard
nextsprintduration
What metricsdoyou collectat the endof each sprint?
Explainscrumceremonies.
If youhave to work alone ina teamof functional testerscanyoudo it?How comfortable are youin
modifyingyourframework?
Team size anddo youhave directclientinteraction?
What testmanagementtoolshave youused?
What are the challengesyoufaced inproject?
--re-executethe scenariosbecause of buildissuesandanyteamison leave meansItooktheir
Responsibilitytocomplete wrklikeexecutions andissue retestingintime.We hvcrossfunctional
trainingsessions. Sothatwe coverall the modulesknwlge.
api status codes
.....................................................................................................
Selenium
Difference betweenexplicitwaitandfluentwait?Letssayanelementisidentifiedby5thsecond,your
explicitwaittime is30seconds.Will itresume at6th second?I saidyes.Thenhe askedfluentwaitalso
doesthe same thenwhat isthe difference betweenthem, whatisthe usage of polling?
What isthe exceptionthrownbyExplicitwait?
What isthe exceptionthrownbyimplicitwait?
If an exceptionoccursinimplicitwait,will the executionwill be stopped?
What isWebDriver?
Absolute vsRelativexpath.Whendo youuse eachof them?
15. Can yourun parallel testsin2 differentbrowsers?If yes,how?
How to handle windowspopup
What are diff typesof waits
Diff betweengetwindowhandleandgetwindowhandles
Diff typesof exceptionshandledinyourproject
ElementClickInterceptedException – Element Click Intercepted – Not Clickable At Point –
Other Element Would Receive The Click
What are the pre-requisitestoautomate anapplication?
9. How do youhandle multiplewindows?
10. Differencebetweenassertand verify
Mentionsome exceptionsyoufacednhow do youovercome them?
Returntype of findElement?
Returntype of findElements?
getAllWindowHandleswill returnwhat? Where youwill store it?
 getWindowHandle( ): Whenawebsite opens,we needtohandle the mainwindowi.e the parent
windowusingdriver.getWindowHandle( );method.Withthismethod,we getaunique IDof the
currentwindowwhichwill identifyitwithinthisdriverinstance.Thismethodwillreturnthe
value of the Stringtype.
 getWindowHandles( ): Tohandle all openedwindowswhichare the childwindows byweb
driver,we use driver.getWindowHandles();method.The windowsstore ina Setof Stringtype
and here we can see the transitionfromone window toanotherwindow inawebapplication.
Its returntype is Set<String>.
. What are the strategiesyouare usinginxpath?
Diff betweenabsolute &relativexpath
15. How will youwrite xpathif the taghas onlytext?
16. If elementsare dynamic,howtodesignxpath?
17. What isxpathaccess?
18. Differencebetweenfollowinganddescendent?
Following:
 The following axis selects all elements (nodes) in the document after closing tag of the
current node. Current node is input element by using following axis we get all input
elements in the document
 Example: Let’s consider “First name” input box as current node in the Facebook
webpage.
<input type="text" class="inputtext _58mg _5dba _2ph-" data-type="text"
name="firstname" value="" aria-required="true" placeholder="First name" aria-
label="First name" id="u_3_b_Q8" tabindex="0">
Then xpath is //input[@name='firstname']
 Nowwe will findall elementslikeSurname,Mobile number,etcbyusingthe followingaxisof
the current node.The belowsyntax will selectthe immediatenode followingthe currentnode.
XPath: //input[@name = 'firstname']//following::input (1 of22)
 The above expressionhasidentified22nodesmatchingbyusing“following”axis-surname,
mobile number,new password,etc.
 If you wantto focus onany particularelementthenyoucanchange the XPathaccordingto the
requirementbyputting[1],[2]…………andsoonlike this.
 XPath(Surname): //input[@name = 'firstname']//following::input[1] (1of 1 matched)
 By putting“1” as input,the above expressionfindsthe particularnode thatis‘Surname’input
box element.
 Similarly,onputting“2”as input,
 XPath(Mobile number): //input[@name = 'firstname']//following::input[2] (1of 1 matched).
Descendent:
The descendant axis selects all descendant elements (children, grandchildren, etc) of the
current node. Let’s take an example to understand the concepts of the descendant axis.
Open webpage https://pixabay.com/accounts/register/?source=signup_button_header, right-
click on Username element, and go to inspect option. Asshowninthe below screenshot,let’s
suppose “signup_form new” as a current node. You can bring the cursor to this node to see current node.
The XPath of current node will be as follow:
XPath(Current node): //div[@class = 'signup_formnew']
Now using the descendant axis with above XPath, we can find easily all children, grandchildren elements, etc of
current node.
XPath: //div[@class = 'signup_formnew']//descendant::input (1 of3)
The above XPath expression identified three elements like username, password, and email address. So, we can write
XPath by putting 1, 2, and 3 in the above expression.
XPath(Username): //div[@class='signup_formnew']//descendant::input[1](1 of 1 matched)
XPath(Email address): //div[@class = 'signup_formnew']//descendant::input[2]
XPath(Password): //div[@class = 'signup_formnew']//descendant::input[3
19. Do a google search.Howto get the textof all the linksinall the pages?
Write code for runningsingle testcase multiple times
How to run single testcase onmultiple times
21. Have you usedanydesignpatternin youprojectapart fromPOM?
22. What iskeyworddrivenframework?
23. What are the featuresyouusedintestNG?
24. What will be inthe pagesclass.Explainit.(Page objectmodel)
25. Do youhave any constructorin the page class?
26. What isthe library youusedtoconnect excel sheet?
27. Returntype of dataprovidermethod?
28. Have you usedlistener?Explainit.
29. How to instantiate driverforseleniumgrid?
31. What ishooks?
35. What isFactory pattern?
5. Explaincomplete functioningof page objectmodel.
6. How do youstore objectsinan objectrepository?
11. Where didyoustore data? How do youuse that excel?
What are testNGannotation
What are before classandafterTesttesNGannotations
How yougenerate reports
Explainthe code forreports
testNGannotationshierarchy?Iexplainedusingourframework
How to create driverobjectif youwantto run on a node machine (Grid)?
Explainpage objectmodel.
Have you usedListener,explainit?
If an exceptionoccurswhile fetchingthe datafromthe excel,willthe executionstops?Onlythe current
testcase or all the testcases?
Usage of findbyinpage factory
How will the elementstoredinpage factory?
Why youare storingelementlocatorsinexcel?Whycan’twe store itin a propertyfile?
Returntype of dataprovidermethod?

More Related Content

PPTX
Keywords of java
PPTX
Lecture 2, c++(complete reference,herbet sheidt)chapter-12
PDF
DOCX
Advanced data structures using c++ 3
ODP
Python Day1
PPT
Python session 7 by Shan
PDF
Advanced CPP Lecture 1- Summer School 2014 - ACA CSE IITK
DOCX
Ktifkan dulu microsoft visual basic
Keywords of java
Lecture 2, c++(complete reference,herbet sheidt)chapter-12
Advanced data structures using c++ 3
Python Day1
Python session 7 by Shan
Advanced CPP Lecture 1- Summer School 2014 - ACA CSE IITK
Ktifkan dulu microsoft visual basic

What's hot (20)

PPTX
Classes and objects1
PPTX
Class object method constructors in java
PDF
Advanced CPP Lecture 2- Summer School 2014 - ACA CSE IITK
PDF
Java Basic day-2
PDF
Java script obfuscation
DOCX
Documento de altas
PDF
Swift 함수 커링 사용하기
PDF
Lodash js
PDF
JavaScript objects and functions
PDF
SISTEMA DE FACTURACION (Ejemplo desarrollado)
PDF
Codeware
PPTX
Js types
PDF
JavaScript Fundamentals with Angular and Lodash
PDF
06 ruby variables
PPTX
C++Constructors
PDF
Chaining and function composition with lodash / underscore
PDF
Modul Praktek Java OOP
PDF
Object Oriented Programming - 5. Class & Object
PPTX
Functional Programming with C#
KEY
Making Templatetags Suck Less
Classes and objects1
Class object method constructors in java
Advanced CPP Lecture 2- Summer School 2014 - ACA CSE IITK
Java Basic day-2
Java script obfuscation
Documento de altas
Swift 함수 커링 사용하기
Lodash js
JavaScript objects and functions
SISTEMA DE FACTURACION (Ejemplo desarrollado)
Codeware
Js types
JavaScript Fundamentals with Angular and Lodash
06 ruby variables
C++Constructors
Chaining and function composition with lodash / underscore
Modul Praktek Java OOP
Object Oriented Programming - 5. Class & Object
Functional Programming with C#
Making Templatetags Suck Less
Ad

Similar to Java (20)

PDF
Using XPath in Selenium - All you need to know.pdf
ODP
FluentSelenium Presentation Code Camp09
PDF
Selenium interview questions and answers
PPTX
Extracting data from xml
PDF
Using XPath in Selenium_ All you need to know.pdf
PPTX
Xml query language and navigation
PPT
PPT
Selenium training in chennai
DOCX
Realtime selenium interview questions
PPTX
Automated_Testing_Selenium
PDF
Selenium syllabus
PPT
4.1 Selenium_Course_Content.ppt
PPT
Selenium_Course_Contenttttttttttttttttt.ppt
PPT
Selenium-Course-Content.ppt
PPTX
Automatedtestingwithselenium shubham jain
PPT
XPath Injection
PDF
Xpath tutorial
PDF
PDF
Top 25 Selenium Interview Questions and Answers 2018
Using XPath in Selenium - All you need to know.pdf
FluentSelenium Presentation Code Camp09
Selenium interview questions and answers
Extracting data from xml
Using XPath in Selenium_ All you need to know.pdf
Xml query language and navigation
Selenium training in chennai
Realtime selenium interview questions
Automated_Testing_Selenium
Selenium syllabus
4.1 Selenium_Course_Content.ppt
Selenium_Course_Contenttttttttttttttttt.ppt
Selenium-Course-Content.ppt
Automatedtestingwithselenium shubham jain
XPath Injection
Xpath tutorial
Top 25 Selenium Interview Questions and Answers 2018
Ad

Recently uploaded (20)

PDF
Yogi Goddess Pres Conference Studio Updates
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Lesson notes of climatology university.
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
master seminar digital applications in india
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Cell Structure & Organelles in detailed.
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Pharma ospi slides which help in ospi learning
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
01-Introduction-to-Information-Management.pdf
Yogi Goddess Pres Conference Studio Updates
Supply Chain Operations Speaking Notes -ICLT Program
Cell Types and Its function , kingdom of life
Weekly quiz Compilation Jan -July 25.pdf
Orientation - ARALprogram of Deped to the Parents.pptx
VCE English Exam - Section C Student Revision Booklet
Lesson notes of climatology university.
202450812 BayCHI UCSC-SV 20250812 v17.pptx
master seminar digital applications in india
Computing-Curriculum for Schools in Ghana
Pharmacology of Heart Failure /Pharmacotherapy of CHF
A systematic review of self-coping strategies used by university students to ...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
O7-L3 Supply Chain Operations - ICLT Program
Cell Structure & Organelles in detailed.
Chinmaya Tiranga quiz Grand Finale.pdf
Microbial diseases, their pathogenesis and prophylaxis
Pharma ospi slides which help in ospi learning
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
01-Introduction-to-Information-Management.pdf

Java

  • 1. JAVA …………………………………………………………………………….. 31. What isdifference betweenarraylistandhashmap 7. Withoutcreatingobjecthowwill youaccessthe superclass'smethod? 23. This& superkeywordusage? 8. Difference betweenarraylistandarray? 30. What are differenttype of collection 9. Tell me scenarioswhere youusedwhichcollection? 14. What isSingleton?Howtomake the class as singleton? 15. What isencapsulation?Howsetterandbettermethodsare usedinit? 18. How to iterate alist? 19. Tell the for eachsyntax to iterate the array list? 20. Tell the iteratorsyntax toiterate the array list? 21. howwill addan elementinaarraylist? 22. Differentwaystocreate anobject. 24. Explaininterface. 25. Can we create objectforinterface ? I saidNo. Thenhe askedisthere any alternative? 26. Letssay a class isimplementinganinterface andIdon’twant to implementall the methodspresent inthe interface,thenhowcanI handle thisinjava? 28.What isdiff betweenabstractclassand interface 32. I don’twantto allowcreationof objectfora class,thenwhatshouldIdo? ………………………………………………………………………………………………. manual severitypriority
  • 2. defectlife cycle stlc,sdlc agile bug leakage bug triage meeting retrospective meeting sprintboard nextsprintduration What metricsdoyou collectat the endof each sprint? Explainscrumceremonies. If youhave to work alone ina teamof functional testerscanyoudo it?How comfortable are youin modifyingyourframework? Team size anddo youhave directclientinteraction? What testmanagementtoolshave youused? What are the challengesyoufaced inproject? --re-executethe scenariosbecause of buildissuesandanyteamison leave meansItooktheir Responsibilitytocomplete wrklikeexecutions andissue retestingintime.We hvcrossfunctional trainingsessions. Sothatwe coverall the modulesknwlge. api status codes ..................................................................................................... Selenium Difference betweenexplicitwaitandfluentwait?Letssayanelementisidentifiedby5thsecond,your explicitwaittime is30seconds.Will itresume at6th second?I saidyes.Thenhe askedfluentwaitalso doesthe same thenwhat isthe difference betweenthem, whatisthe usage of polling? What isthe exceptionthrownbyExplicitwait? What isthe exceptionthrownbyimplicitwait? If an exceptionoccursinimplicitwait,will the executionwill be stopped?
  • 3. What isWebDriver? Absolute vsRelativexpath.Whendo youuse eachof them? 15. Can yourun parallel testsin2 differentbrowsers?If yes,how? How to handle windowspopup What are diff typesof waits Diff betweengetwindowhandleandgetwindowhandles Diff typesof exceptionshandledinyourproject ElementClickInterceptedException – Element Click Intercepted – Not Clickable At Point – Other Element Would Receive The Click What are the pre-requisitestoautomate anapplication? 9. How do youhandle multiplewindows? 10. Differencebetweenassertand verify Mentionsome exceptionsyoufacednhow do youovercome them? Returntype of findElement? Returntype of findElements? getAllWindowHandleswill returnwhat? Where youwill store it?  getWindowHandle( ): Whenawebsite opens,we needtohandle the mainwindowi.e the parent windowusingdriver.getWindowHandle( );method.Withthismethod,we getaunique IDof the currentwindowwhichwill identifyitwithinthisdriverinstance.Thismethodwillreturnthe value of the Stringtype.  getWindowHandles( ): Tohandle all openedwindowswhichare the childwindows byweb driver,we use driver.getWindowHandles();method.The windowsstore ina Setof Stringtype and here we can see the transitionfromone window toanotherwindow inawebapplication. Its returntype is Set<String>. . What are the strategiesyouare usinginxpath? Diff betweenabsolute &relativexpath 15. How will youwrite xpathif the taghas onlytext?
  • 4. 16. If elementsare dynamic,howtodesignxpath? 17. What isxpathaccess? 18. Differencebetweenfollowinganddescendent? Following:  The following axis selects all elements (nodes) in the document after closing tag of the current node. Current node is input element by using following axis we get all input elements in the document  Example: Let’s consider “First name” input box as current node in the Facebook webpage. <input type="text" class="inputtext _58mg _5dba _2ph-" data-type="text" name="firstname" value="" aria-required="true" placeholder="First name" aria- label="First name" id="u_3_b_Q8" tabindex="0"> Then xpath is //input[@name='firstname']  Nowwe will findall elementslikeSurname,Mobile number,etcbyusingthe followingaxisof the current node.The belowsyntax will selectthe immediatenode followingthe currentnode. XPath: //input[@name = 'firstname']//following::input (1 of22)  The above expressionhasidentified22nodesmatchingbyusing“following”axis-surname, mobile number,new password,etc.  If you wantto focus onany particularelementthenyoucanchange the XPathaccordingto the requirementbyputting[1],[2]…………andsoonlike this.  XPath(Surname): //input[@name = 'firstname']//following::input[1] (1of 1 matched)  By putting“1” as input,the above expressionfindsthe particularnode thatis‘Surname’input box element.  Similarly,onputting“2”as input,  XPath(Mobile number): //input[@name = 'firstname']//following::input[2] (1of 1 matched). Descendent: The descendant axis selects all descendant elements (children, grandchildren, etc) of the current node. Let’s take an example to understand the concepts of the descendant axis. Open webpage https://pixabay.com/accounts/register/?source=signup_button_header, right- click on Username element, and go to inspect option. Asshowninthe below screenshot,let’s
  • 5. suppose “signup_form new” as a current node. You can bring the cursor to this node to see current node. The XPath of current node will be as follow: XPath(Current node): //div[@class = 'signup_formnew'] Now using the descendant axis with above XPath, we can find easily all children, grandchildren elements, etc of current node. XPath: //div[@class = 'signup_formnew']//descendant::input (1 of3) The above XPath expression identified three elements like username, password, and email address. So, we can write XPath by putting 1, 2, and 3 in the above expression. XPath(Username): //div[@class='signup_formnew']//descendant::input[1](1 of 1 matched) XPath(Email address): //div[@class = 'signup_formnew']//descendant::input[2] XPath(Password): //div[@class = 'signup_formnew']//descendant::input[3 19. Do a google search.Howto get the textof all the linksinall the pages? Write code for runningsingle testcase multiple times How to run single testcase onmultiple times 21. Have you usedanydesignpatternin youprojectapart fromPOM?
  • 6. 22. What iskeyworddrivenframework? 23. What are the featuresyouusedintestNG? 24. What will be inthe pagesclass.Explainit.(Page objectmodel) 25. Do youhave any constructorin the page class? 26. What isthe library youusedtoconnect excel sheet? 27. Returntype of dataprovidermethod? 28. Have you usedlistener?Explainit. 29. How to instantiate driverforseleniumgrid? 31. What ishooks? 35. What isFactory pattern? 5. Explaincomplete functioningof page objectmodel. 6. How do youstore objectsinan objectrepository? 11. Where didyoustore data? How do youuse that excel? What are testNGannotation What are before classandafterTesttesNGannotations How yougenerate reports Explainthe code forreports testNGannotationshierarchy?Iexplainedusingourframework How to create driverobjectif youwantto run on a node machine (Grid)? Explainpage objectmodel. Have you usedListener,explainit? If an exceptionoccurswhile fetchingthe datafromthe excel,willthe executionstops?Onlythe current testcase or all the testcases? Usage of findbyinpage factory How will the elementstoredinpage factory? Why youare storingelementlocatorsinexcel?Whycan’twe store itin a propertyfile?