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?

Java

  • 1.
    JAVA …………………………………………………………………………….. 31. What isdifferencebetweenarraylistandhashmap 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 bugtriage 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.Whendoyouuse 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 elementsaredynamic,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?
  • 7.