QA Automation Interview questions
- Differentiate final , finally, finalize (Short Ans: final method can’t be overridden, final variable can’t be changed, finally goes with try/catch, finalize is garbage collector)
- how to handle exceptions in java (Ans: try catch, throws, etc)
- how to use parameters in cucumber/testNG (Ans: scenario outline,tidy gherkin plugin, vs testng.xml-suite,test,class,method;)
- compare TestNG and Cucumber BDD (Ans: testng.xml, POM,vs feature file,Junit testrunner,stepDefention, POM)
- how to validate flatfiles , db using Java (Ans: input filestream, driver class connection, server name, instance , authentication, sql statement)
- how to skip method/test in TestNG, Cucumber BDD (Ans: testng.xml, annotation, cucumber tags on testrunner)
- differentiate encapsulation , abstraction
- what are interface and explain the methods – webdriver interface, driver object reference, FF/IEdriver class (Since interface can not be instantiated)
- write programs – sort array, print number in reverse, print string reverse, etc
- how does SSL works , public key-private key, session encryption etc
- method overridden vs method overloading (super class methods are overridden by child class when both has same methods, overload – one class has multiple methods with same method name but different parameters)
- Selenium automation challenges (ajax – webdriver wait methods, frames switch, alert.accept, multiple windows handlers, pdf in webpage, alert vs modal confuse, dynamic id,name-use xpath contains, etc)
- handle dropdown – select class
- feature file extension
- bufferbuilder usage
- what is background, scenarios outline, before/afterhooks vs tags,
- usage of autoit, robotclass, javascript executor,
- Jenkins schedule batch, report generation,
- grid setup, hub and node, run on dos prompt, or use JSON file to configure nodes and run JSON on commandline..then connect in Jenkins
- how to manage Git versions between two teams
- What is data structure and use of it test automation