Different Company Questions & Answers
LG soft
GENPACT
Technical Round 1 (Manual + SQL):
1.Can you tell me about your project?
2.What testing methodology do you follow in your project?
A:Agile
3.What is the difference between regression testing and functional testing?
A:Regression Testing is testing the unchanged features to ensure that its not broken
due to changes. Eg addition of module or deletion of the module.
Functional Testing testing the functionlity of each and every web element.
4. Can you please explain me the defect life cycle?
A: New Open Assign Fixed closed.
2.difference between end-2 -end testing & system testiing?
5. What is Ad-hoc testing?
A: Testing the application randomly also know monkey testing.
6. Difference between static and dynamic testing?
A: Verification & Validation.
7. What are the types of joins?
A: Inner join, Outer join,Left join, right join.
8. Can you write the syntax for Inner-Join?
A: select * from Table1 inner join Table2
where table1.pK=table2.pK
9. How do you update a table with new set of data on both row and columns?
A: update tablename set value column1=value
10. Can you explain me on MAX () function in SQL with example?
A: MAX() is used to get the max integer value from a column.
11. Can you elaborate DDL, DML with few commands for each type?
A: DDL --> Create,Alter,Drop.
DML--> Insert,update,delete
12. What is the difference between primary key and unique key?
A: Primary key will not take null value
Unique key will allow mutiple null value.
Primary key is used as foreign key in another table.
Unique key can't be used like that.
13.Can primary key accept null values?
A: No
14. Can a table have multiple primary keys?
A:No
Technical Round 2 (Manual +Java/Selenium+ SQL)
Manual
15.Explain me your project architecture?
A: Hybrid Framework
16. Explain me Agile-Scrum methodology?
A: refer google.
17. Have you come across deferred defects and what those defects indicate?
A: The bug that is raised foe the requirement that is not freezed or miss communication
is marked as differed , which mean that the bug will be considred in the next sprint.
18. What is compatibility testing? Give me example?
A: Testing with multiple browser.
19. What is severity and priority?
A: Severity is how critical is the bug.
Priority is how fast bug should be fixed.
20. Give example for high severity and high priority?
A: Broken link & Database eg: click on login not loggin.
21. Difference between regression and retesting?
A: Regression Testing is testing the unchanged features to ensure that its not broken
due to changes.
Retesing Testing the fixed features.
22.How do you map test case to requirements in QC?
A: Traceability Matrix.
23.How did you perform integration testing in your project?
A: Customer & Sales --> Customer created in the customer module checked in sales module.
24. When can I use stubs or drivers? Have you used top-down approach or bottom up approach type of integration testing?
A: Stubs : Its is dummy module which receives data as input and generate required data.
which behavie like actual module.
Driver : is one which set the test environment and takes care of the communication.
25. Have you involved in SDLC process? Explain me High Level process of STLC?
A: Yes, Requirement gathering, HLD,LLD,Coding,Test planning, Test Case Designing,Test execution.
26. What do you do in test closure?
A: Retrospection --> Lessons learnt
Defect density
realted to management
Related to SRS
Requirements were not freezed at the time of development.
27: What is difference between two-tier and n-tier architecture?
A:two-tier -->Client Server Applcation Eg gtalk,yahoo messanger.
n-tier -->Web Applications.
Java
28.What is abstract class?
A: A classes with a keyword abstract is absract class.
abstract class can have both abstract as well as concrete methods
abstract methods in the sense no implementation only declaration.
29. Difference between abstract class and interface?
A: Abstract class will have abstract keyword.
abstract class can have both abstract as well as concrete methods
abstract methods in the sense no implementation only declaration.
Interface will have Interface keyword.
Interface will have only abstract methods.
we need to provide implementation to all methods in the interface else inherited class
should be declared as abstract.
30.How do you know when to use abstract class and Interface?
A:Abstact -->In future if we want to have few more concrete methods to be added for a feature
the we go for abstract class.
Interface --> we cant add new abstract methods after implementing in some modules.
31. What is overloading and overriding? Justify me with your examples by implementing your code?
A: Over loading:Same method name with different arguments in same class. Eg. sendKeys,findBy
Over riding:changing the implementation of the inhertited methods in the sub class.
32. What is the significance of final & finally?
A: final is a keyword if given
for a variable value cannot be changed
for a method cannot be overloaded
for a class cannot be inherited
Finally is a method comes under Exception
it is executed irrespective of try or catch.
33. What is the use of this and super keywords?
A: this refers to the perticular class.
super is used to invoke the parent constructor
34. Explain about exceptions in java?
A:There are two types of exception checked and unchecked exception
checked-->compile time
unchecked --> run time
35. Why string is immutable?
A:Sting is final class so its immutable.
36. Difference between Array list and Vector?
A: Array list is non syncronized Vector is syncronized.
37.What is boxing and un-boxing?
A:Boxing: Converting primitive type to Object.
Unboxing:Converting object type to primitive type.
Selenium
37.Architecture of Selenium?
38. What is your framework and explain me about your framework?
A: Hybrid
39.What is object repository and explain page factory technique?
A:POM PageFactory.initElement(this,driver);
40. Write a code how you will access web elements x-paths from page factory classes?
A: POM class sample.
41. How to invoke an application in web driver?
A: get() or navigate()
42. How do you handle dynamic web elements?
A: xpath
43. What are the different exceptions you got when working with Web Driver?
A: noSuchElement,saleElement,noAlertPresent,noSuchWindow.
44. Difference between implicit wait and explicit wait?
A:Implicit wait will wait for given timeunit, if it find the element before the time mentioned
it will continue the execution and it is used by findByElement method.
Explicit wait also known as intelligent wait will wait for perticular condition wait
eg WebDriverWait wait = new WebDriverWait(driver, 10);
wait.until(ExpectedConditions.titleContains("bambooinvoice"));
45. What are web elements and what are the different ways to identify them?
A:Anything that can be inspected in the webpage is web element.
By using locators.
46. Explain me about JDBC connections with web driver?
A:we have to use getConnection method
odbc:jdbc:Student
driver.getConnection("Connection String")
47. What types of testing does selenium automation supports?
A: Unit Testing
Regression Testing
Functional Testing
48. How to launch different browsers in Web Driver? Write code for it.
A: Firefox--> WebDriver driver = new FireFoxDriver();
Chrome-->System.setProperty("webdriver.chrome.driver", "C:\\Users\\Bhat\\AppData\\Local\\Google\ \Chrome\ \Application\\chrome.exe");
WebDriver driver = new ChromeDriver();
49.What is Apache POI?
A: POI stands for Poor Obfuscation Implementation.
It is used to perform opertations on excel files
like read, write etc.
50. Write a code to get the data from excel using POI library?
A: FileInputStream fis = new FileInputStream("excelPath")
WorkBook wb = new WorkBookFactory.create(fis);
Sheet s= wb.getSheet("SheetName");
Row r = s.getRow(index);
String value = r.getCell(index).getStringCellValue();
51.Why TestNG and why not JUnit?
A:Junit
In Junit, one test case failure can cause a bunch of test cases to fail in the test suite.
In Junit for a long time it was not possible to run a specific subset of the test cases.
In junit test data is not parameterized using a DataProvider hook.
TestNG
If one test case failure causes the failure of a group of test cases it skips that group and executes the rest of the test suite.
In TestNG groups can be defined. Groups are specific subsets
I can execute a single test case for multiple test data sets through the parameterization of DataProvider object. This makes the implementation of data driven testing more flexible in TestNG
52.Explain me @Before Method and @After Class annotations in TestNG?
A: @Before Method --> this is executed before execution of every @test method.
@After Class--> this is executed after the exection of test class i,e class which encloses @test methods
53.What are listeners?
A:Listeners are basically interfaces which will have abstract methds and are called atomatically when the user does something to the user .
54. When you will use data provider?
A:When you need to pass complex parameters or parameters that need to be created from Java (complex objects, objects read from a property file or a database, etc…), in such cases parameters can be passed using Dataproviders. A Data Provider is a method annotated with @DataProvider. A Data Provider returns an array of objects.
55.What is Selenium Grid?
A:Selenium-Grid allows you run your tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems.
56. How do you know which test cases to automate and which not to automate?
A:Test cases which do not have manual interventions are automated
Also regression test cases are automated.
57. What is log4j and how did you use in web driver?
A: Log4j is used for logging the execution of the scripts irrespective of pass or fail.
We add the log4j jar file
Add a property file which will state log4j what kind of info should be logged
like Tacer,Debug,INFO,war,error,FATAl
Logger log = Logger.getLogger(this.getClass());
log.info("On Test Failure");
58. Explain how ANT and Jenkins work? Advantages of Jenkins?
A ANT is a build tool
will have build.xml file
In which we give targets i,e ANT job
In our project we have done deleting the folders, creating the folders, compile,run,XSLT,zip folder etc
Jenkin is an contineous Integration tool
by using this we schedule when the test scripts should be executed.
Email the reports after the execution of the scripts.
SQL
59.I want to find out 3rd largest salary in table, asked to write query for the table?
A: SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP 6 salary
FROM employee
ORDER BY salary DESC) a
ORDER BY salary
60.How do I display employee name starting with ‘N’?
A:select employee_name
from employees
where employee_name LIKE 'N%'
61. What is group by and having clauses? Explain having clause with example?
A:SELECT dept, SUM (salary)
FROM employee
GROUP BY dept
HAVING SUM (salary) > 25000
62. Tell me different types of constraints in SQL?
A:NOT NULL - Indicates that a column cannot store NULL value
UNIQUE - Ensures that each row for a column must have a unique value
PRIMARY KEY - A combination of a NOT NULL and UNIQUE. Ensures that a column (or combination of two or more columns) have an unique identity which helps to find a particular record in a table more easily and quickly
FOREIGN KEY - Ensure the referential integrity of the data in one table to match values in another table
CHECK - Ensures that the value in a column meets a specific condition
DEFAULT - Specifies a default value when specified none for this column
63. Explain Foreign Key constraint and Not Null constraint?
A:Ensure the referential integrity of the data in one table to match values in another table
64.Difference between DELETE, TRUNCATE & DROP?
A:Delete is used to delete a particular or bunch of rows.
Truncate is used to clear all the rows of a table.
Drop is used to remove the table from DB.
Manager Round
65. What is a trigger?
A: A trigger is a special kind of stored procedure that automatically executes when an event occurs in the database server. DML triggers execute when a user tries to modify data through a data manipulation language (DML) event. DML events are INSERT, UPDATE, or DELETE statements on a table or view.
66.What is Index? Index is performed on column or table?
A:An index can be created in a table to find data more quickly and efficiently.
CREATE INDEX index_name
ON table_name (column_name)
67.If I ask you to select Automation or Manual what is your choice? Want only one answer?
A: Automation.
Optimization of Speed, Efficiency, Quality and the Decrease of Costs
The main goal in software development processes is a timely release. Automated tests run fast and frequently, due to reused modules within different tests. Automated regression tests which ensure the continuous system stability and functionality after changes to the software were made lead to shorter development cycles combined with better quality software and thus the benefits of automated testing quickly outgain the initial costs.
HappyestMind & Ness
Selenium
68.Write the syntax of drop down
A:<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
69.What is the current Version of Selinum webdriver
A: 2.42
70.How to get the text value from text box
A: driver.findElement(By.id("username")).getAttribute("value")
71.String x="ABC";
String x="ab"; does it create two objects?
A:Yes.
72.write a program to compare the strings
A: if(s1.equals(s2))
73.Class a
{
}
class b extends a
{
}
A a= new A();
B b=new B();
A a= new B();
B a=new A();
Which is valid and invalid?
A:B a=new A();
74.How to handle differnt type of pop up.(Window,Alerts,Invisible popup)
A:Window popups can be handled using AutoIT.
Alert popups handled using Alerts class.
Invisible popup are usually hidden division popups and can be handled using findByElement only.
75.How to handle DropDown menu
A: Using Actions class.
Actions action = new Actions(driver);
WebElement mMenu = driver.findElement(By.xpath("//a[contains(text(),'SHOP FOR')]")) action.moveToElement(mMenu).perform();
76.How to handle SSL certificate
A:FirefoxProfile profile = allProfiles.getProfile(browserProfile);
profile.setAcceptUntrustedCertificates (true);
77.How to handle Google search text.
A:driver.get("http://www.google.com");
driver.findElement(By.xpath("//input[@id='gbqfq']")).sendKeys("God is Great");
List<WebElement> list = driver.findElements(By.xpath("//span[contains(text(),'god')]"));
for(int i=0;i<list.size();i++)
{
System.out.println(list.get(i).getText());
}
78.How to handle Ajax Objects
A: Using cssSelector.
79.Explain webdriver architecture
A: SearchContext(Interface)->WebDriver(Interface)->RemoteWebDriver(class)->Browser specific Class
80.Explain File downloading
A:Using FirefoxProfile profile= new FirefocProfile;
profile.setPreferences(key,value);
81.Write the syntax for finding the row count in dynamic web table
A:List<WebElement> table = driver.findElements(By.xpath("xpath"));
System.out.println(table.size());
82.Differnece between class and Interface
A:Class
Class will cotain concrete methods
Class is extended
A Class can inherit only one Class and can implement many interfaces
Each Object created will have its own state
Interface
Interface will conatain only abstract methods
Interface needs to be implemented
while Interface can extends many interfaces.
Each objected created after implementing will have the same state.
83. What type of class is the string class
A:String is a final class.
84. Explain Abstract
A:Abstraction refers to the ability to make a class abstract in OOP.
An abstract class is one that cannot be instantiated. All other functionality of the class still exists, and its fields, methods, and constructors are all accessed in the same manner. You just cannot create an instance of the abstract class.
85. JVM is dependent or independent platform
A: JVM is dependent.
86.what are the types of assertion
A: Asset & SoftAssert
Assert will stop the execution immideatly after fail.
SoftAssert
SoftAssert will not stop execution after fail till it finds asserAll()
Eg: SoftAssert sa = new SoftAssert()
sa.assertEquals("abc","xyz")
sa.assertAll();
12.What is dom concept
13.What is the challenges u have faced during Automation
14What is genrics
15.What is synchronization
Java
1.JVM is dependent or independent platform
2.diffn bw hashmap and hash set, set and linkedlist, arraylist and
vector list , linkedhash set and hashset
3.abstract and interface
4.throw and throws
5.how to split
6.checked and unchecked exception
7.how to work with azax aplication
Ajax used style sheet format,so we use CSS selector which uses classname. If there are multiple style sheet with same classname,then we need to go
for Dependent and Independent using XPath.
8.why sring is immutable
9.wat is the retru ntype of getwindowhandles();
10.what are the types of assertion and what are assertion in java
11.differnce between interface and Abstract classes
12.What is static varaible
13.what is volitile
14. what is trainsient
15.what is the differnece between Final,Finalize and finally
16.what is the differnce between Public,private and protected
FICO
Java
1.what is the default package in java ?
ANS:A default package is a package with no name. You can create a Java class without putting package name on top of the code. This class is included in the "default package". Be careful not to be confused with java.lang, which is a package that contains Java's fundamental classes and get's imported by default.
2.:why we use interface why not abstract class ...what if i implements same method in interface and abstract ....thn ?? any diffrnc??
3. what are inner classes ..name them ?
4.in public static void main(String arr[])... what if i replace public with private ........... remove static ........replace void with string
5.in hash map we have (key and value ) pair , can we store inside a value =(key, value ) again ??
5. what are variable scope in java (in class , in method , in static block)
6. what are the oops concept ? explain them each with real world examples
7.write a program so that when ever u create a object ... u get to know how many object u have created
8. what is singleton classes ?
9.what is difference between .equals() , (==) and compare-to();
Ans:Compares values and returns an int which tells if the values compare less than, equal, or greater than.
10. what is the difference between hash code and equals
Both equals() and hashCode() are defined in java.lang.Object class and there default implementation is based upon Object information e.g. default equals() method return true, if two objects are exactly same i.e. they are pointing to same memory address, while default implementation of hashcode method return int and implemented as native method. Similar default implementation of toString() method, returns type of class, followed by memory address in hex String.
11.write a program to get substring of string ex: javais good ... so result : avais
12.write a program to reverse the string
13. wap for binary search
14.what is the use of package
15.why we use interface and abstract
http://www.programmerinterview.com/index.php/java-questions/interface-vs-abstract-class/
16.we have 2 interface both have print method , in my class i have implemented the print method ,
how u wil get to know that i have implemented the first interface and how u will use it .. if u want to use it
17.what is the difference between vector list and arraylist
http://beginnersbook.com/2013/12/difference-between-arraylist-and-vector-in-java/
18. difference between hashmap and hash table, what is synchronization , how it is achieved
http://blog.manishchhabra.com/2012/08/the-5-main-differences-betwen-hashmap-and-hashtable/
19. what is the use of collection, when we use it
Collection means group of objects
Framework means An architechure to manipulate data
i.e. Collection Framework provide a mechenish to manipulate the group of objects such as sorting, searching , managing etc.
20. what is priority queue in collection,what is the use , how u have use in your project
21.where to use hashmap and hashtable
22. where u have use the concept of interface and abstract in your framework
http://www.programmerinterview.com/index.php/java-questions/interface-vs-abstract-class/
1.what is the default package in java ?
The java.lang package is always imported by default.
2.why we use interface why not abstract class ...what if i implements same method in interface and abstract ....thn ?? any diffrnc??
a)For one thing, a class can extend only one abstract class but it can implement any number of interfaces.
b)If we use abstract class ,it is "Is a" relation
c)If we use Interface class ,it is "Can be" relation
d)An abstract class can have implementations.
e)An interface doesn't have implementations,it simply defines a kind of contract.
f)Interface can replace an Abstract Class if Abstract Class has all abstract methods. Otherwise changing Abstract class to interface means
that you will be loosing out of Code Re usability which Inheritence provides.
G) Keep it as a Abstract Class if its a "Is a" Relationsship and should do subset/all of the functionality. Keep it as Interface if its a "Should Do" relationship.
3. what are inner classes ..name them ?
Inner classes are class within Class.Inner class instance has special relationship with Outer class.This special relationship gives inner class access to member of outer class as if they are the part of outer class.
Inner class instance has access to all member of the outer class(Public, Private & Protected)
4.in public static void main(String arr[])... what if i replace public with private ........... remove static ........replace void with string
5.In hash map we have (key and value ) pair , can we store inside a value =(key, value ) again ??
6. what are variable scope in java (in class , in method , in static block)
a)Local variables are declared in a method, constructor, or block.
b)Instance variables are declared in a class, but outside a method. They are also called member or field variables.
c)Class/static variables are declared with the static keyword in a class, but outside a method.There is only one copy per class, regardless of how many objects are created from it. They are stored in static memory. It is rare to use static variables other than declared final and used as either public or private constants.
6. what are the oops concept ? explain them each with real world examples
Inheritance,Polymorphism,Encapsulation,Abstraction
7.
8.what is singleton classes ?
A singleton is a class that allows only a single instance of itself to be created and gives access to that created instance. It contains static variables that can accommodate unique and private instances of itself. It is used in scenarios when a user wants to restrict instantiation of a class to only one object. This is helpful usually when a single object is required to coordinate actions across a system.
9.what is difference between .equals() , (==) and compare-to();
Both equals() and hashCode() are defined in java.lang.Object class and there default implementation is based upon Object information e.g. default equals() method return true, if two objects are exactly same i.e. they are pointing to same memory address, while default implementation of hashcode method return int and implemented as native method. Similar default implementation of toString() method, returns type of class, followed by memory address in hex String.
10. what is the difference between hash code and equals.
Both equals() and hashCode() are defined in java.lang.Object class and there default implementation is based upon Object information e.g. default equals() method return true, if two objects are exactly same i.e. they are pointing to same memory address, while default implementation of hashcode method return int and implemented as native method. Similar default implementation of toString() method, returns type of class, followed by memory address in hex String.
11.write a program to get substring of string ex: javais good ... so result : avais
12.write a program to reverse the string
13. wap for binary search
14.what is the use of package
package is used to organise class,each class is the part of Package.
15. why we use interface and abstract
16.we have 2 interface both have print method , in my class i have implemented the print method , how u wil get to know that i have implemented the first interface and how u will use it .. if u want to use it
It doesn't matter from which interface if you are using multiple inheritance
17.what is the difference between vector list and arraylist
Vector is Thread safe and where as arraylist is non threadsafe.
ArrayList grow by half of its size when resized while Vector doubles the size of itself by default when grows.
2.The iterator and listIterator returned by these classes (Vector and ArrayList) are fail-fast.
18. Difference between hashmap and hash table,what is synchronization , how it is achieved ?
Hashmap is not synchronised where as Hashtable is synchronised.
In Hashmap you can store the null in key where as Hashtable can't store the null in key.
In Hashmap elements are retrieved in random order where are in Table it is not.
19. what is the use of collection, when we use it.
Collection means group of objects
Framework means An architechure to manipulate data
i.e. Collection Framework provide a mechenish to manipulate the group of objects such as sorting, searching , managing etc.
20. what is priority queue in collection,what is the use , how u have use in your project
1. Priority queue is unbounded queue.
2. It is ordered collection. It iterates the element in the same order as in the order it is added.
3. Comparator provides the user defined order to PriorityQueue.
4. The size of PriorityQueue automatically grows when element is added.
21.where to use hashmap and hashtable
22.where u have use the concept of interface and abstract in your framework
SPAN Info tech
Selenium question:
How to work with dynamic webtable ?
What is asserstion & types of asserstion ?
what to work with file attachment & file download in webdriver ?
How to file attachment with out Autoit scripts ?
how to work with weblist @ radio button in webdriver ?
what is the difference between the implicit wait & webdriver wait ?
Which repository you have used to store the test scripts ?
What is Check-in & check-out , revert ?
how to work with Radio buttun ?
how to work with weblist ?
what is the use of Actions class in webdriver?
how to work with keybord and mouse opration in java ?
how to get the text from the UI in runtime ?
expain the Architructure of Webdriver?
How to run the test scripts with mulitiple browser ?
Java Qustion
IN parent and child class i have disp() methode , using child class reference how to call parent disp() methode ?
what is the use of this keyword
how many types execption avilable in java?
difference between final finaly , finalize?
difference between Overriding and overload ?
differebce between MAP & set ?
Mind tree interview Question
Selenium
1. how to handle dynamic object
2. how to work with button which is in div tag and and u have to click without using xpath
3. JVM is dependent or independent platform
4.how many Test script you write in day
5. describe your framework
6. how to parameterized your junit
7.how to handle ssl security
8. how to handle window pops
9. diffnct between implicit and explicit
10.what are the types of assertion and what are assertion in junit
Java
1.JVM is dependent or independent platform
2.diffn bw hashmap and hash set, set and linkedlist, arraylist and vector list , linkedhash set and hashset
3.abstract and interface
4.throw and throws
5.how to split
6.checked and unchecked exception
7.how to work with azax aplication
8.why sring is immutable
9.wat is the retru ntype of getwindowhandles();
10.what are the types of assertion and what are assertion in java
Interview Questions AltiMetrik
JAVA
1 what is inheritence?Explain the use of inheritence?
2 what is abstract class?
3 what is interface?
4 when to use inheritence and when to use abstract class?
5 what happence if i not provide abstract method in abstract class
and interface?
6 what is method overriding java what is the use of method
overriding?
7 what is constructor ?use of constructor and can i ovverride the
costructor?
8 how to call the super class method in subclass?
9 what is the base class for all java class?tell me the methods?
10 what is hashcode method explain programtically(asked
implementaion of hashcode method)?
11 what is toString method ?what happens when i use in the program
explain?
12 what is String builder?
13 what is String tokenizer?
14 what is the difference between string and String Buffer?
15 what is the capacity of String Buffer?
16 what is collection ?
17 what is list?
18 what is Arraylist Expain?
19 Write logic for Array to Arraylist?
20 write logic for Arraylist to Array?
21 why vector class is defined Synchronized ?
22 what is exception ?
22 difference between Throw And Throws?
23 what is custom Exception explain?
24 What is finally block?Use of Finally block?explain
25 what happens if exception not found in try catch block?
Then finally block will be Excuted or not
Questions from Infinite
if u have multiple alerts, how do you handle it.
if you have two password/reneter password
assert equals/assert same
navigate() and switch to
one webdriver driver is opened, what to do to make addons to work
how to join two sets/answer: by using addon method....
what are all the collections you used
india/all states, need to select the last value of the dropdown list
Software AG
----------
how to work with ajax application, flash, frame, log files,
log file will generated, for each action u do...ex: for gmail, compose mail;> there would be some log generated....so how to capture that log...
if you have a .bat file, how do you call that...
what exactly you call for this..
how you will make sure that page has been loaded...
StarMark Interview Questions
1. Diff between static and non static
2. What is multiple inheritance
3. Write program for prime no.
4.How to run build.xml through command prompt
5. Diff b/w overloading and overriding
6. how many wait methods you are using in webdriver
7. Difference between assertion and verification
8. What are the roles and responsibilities.
9. Why TestNG is better than JUNIT
HCL interview Questions:
1. difference between string and string buffer?
2. difference between linked list and arraylist?
3. thread concepts?
4. why string class is immutable?
5. Singleton class?
Adobe Interview Questions:
1. Retrieve the test data from excel sheet, put in in google search bar, click on search button and click on the first link opened in google search.
2. Write a program to check whether the string can be a palindrome. for example if the string aab(it is not a palindrom string). replace the characters in a string like aba, baa etc. and check that can be a palindrome string.
3. How will you Identify the webelement that has same property values?
4. write a pgm to return the no.of rows and columns in a webtable?
5. Write a prm to return the row and colum value like(3,4) for a given data in web table?
interview question from companies(happest minds,emids and adobe)
1) how to create a folder in build.xml
2) describe about your framework.
3) difference between selenium rc and selenium webdriver
4) explain the architecture of your project
5) draw ur framework
6) write a code for fetching the data from excel sheet
7) write a code for palindrome
explain about jenkins
9) explain about ur control version tool
10) how to handle with drop down
11) how to handle window id
12) how to handle with google search text box
13) how to handle alert and window pop up
14) how u will get the frame id
15) how to handle dynamic webtable
16) why we are using follwing siblings
17) create a pagefactory for login page
18) how u will group,how u will add classes from different packages
EBAY InterView Questions
TESTNG QUESTIONS ASKED IN EBAY
1. What is the use of TestNG/Junit ?
2. What is parameterized testing?
3. How can u achieve parameterized testing using TestNG?
With the help of 2 annotations @Parameters and @Dataprovider.
4. Can you map test method names in XML file along with class names?
Yes, we can do it please see below ex:
<classes>
<class name="test.IndividualMethodsTest">
<methods>
<include name="testMethod" />
</methods>
</class>
</classes>
5. Sequence of execution of below annotations:
@Test
@BeforeGroups
@AfterGroups
@BeforeSuite
@AfterSuite
@BeforeMethod
@AfterMethod
@BeforeClass
@AfterClass
6. What is Yaml file?
TestNG supports YAML as an alternate way of specifying your suite file.You might find the YAML file format easier to read and to maintain. YAML files are also recognized by the TestNG Eclipse plug-in.
7. How will you execute only selected test methods in particular Test class?
8. How do you fail test cases in TestNg?
9. Can we execute test cases parallely in TestNg?
10. How can we control the order of test method invocation?
We need to create Dependency.
TestNG allows you to specify dependencies either with annotations or in XML.:
You can use the attributes dependsOnMethods or dependsOnGroups, found on the @Test annotation.
Alternatively, you can specify your group dependencies in the testng.xml file. You use the <dependencies> tag to achieve this:
11. How can you make sure test methods which are run in a certain order doesn't really depend on the success of others ?
By adding "alwaysRun=true" in your @Test annotation.
ACCOLITE INTERVIEW QUESTIONS:
1.What is the use of static keyword in Main()?
2.can a class without main() gets compilation successful?
3.difference between abstract and interface.
4.Example of function overloading in Selenium Webdriver
5.Can we private access specifier inside interface?
6.Is there any way to deallocate memory in JAVA?
7.What is the use of finalize method? whether implementation is already available.
8.How do you handle drop down list box.
9.Write a pgm for removing white spaces in a String?
10.Write five critical testcases for the above written pgm.
11.What is missing in Selenium Webdriver compared to Selenium RC?
12.you have a parametrized constructor, whether it will call default constructor first? or directly it will call parametrized contructor?
13.What is the difference between Webdriver Wait(Explicit Wait) and Implicit wait?
14.Write a xpath using following-sibling?
15.How will you analyze the failures after giving a run in the TestNG framework?
16.Explain the Selenium Webdriver Architecture?
17.Explain The framework you were using ?
18.What is Object class?
19.Jenkins Tool - Scheduled Batch Run - any idea
20.What is the current version of Selenium Webdriver ? What are the other languages do Selenium Support?
21.How are you writing log files in your framework?Using Log4J Jars or any other methods.
22.How to handle SSL certificate?
23.What is the latest version of selenium webdriver?
HeadStronginterview qustions
1.explain framework
2.page factory model code?diffrence between pagefactory and page object model?
3.what is object reposiratory?
4.How to overwrite a data in excel sheet?
5.explain different frame works.
6.what are property files?
7.howgroupin is done in testng xml.
8.how to run tests in different browser.
9.how to handle alerts.
10.jdbc connections?
11.how to report ?
12.common method for reverse a string?
13.challenges faced?
14.String s=”AABBBCFFDD” Count the presence of each letter.
15 pascle triangle program.
16.class and interface difference?
17 interface and inheritance difference?
18.what is polymorphism?
19.diffrence between string and string builder?
20.what is static variable,
21.what is null pointer exception .
22.what are the exception you found?
23.bug lifecycle?
24.web driver waits and implicit wait?
25.can we write multiple CATCH in webdriver code?
26.if we close the driver in try block then,FINALLY will execute or not?
27.what are the different types of framework ?
28.why we go for hybrid frame work?
29.diffrence between data driven and modular f/w?
Exlliant Interview qustions
1.what is testng?why we go for testng?
2.can we run a test without testng?
3.what is the difference between verification and valiation?
4.what are the different locators in selenium?
5.what is xpath?
6.diffrence between absolute and relative path?
7.what is difference between abstract class and interface?
8.what in diff between method overloading and constructor overloading?with example?
9.diffrence between string and string buffer?
10.what is overriding ?
11.how to handle dynamic elements?
12.how to get the no of emp getting same salary?
CalSoft labs interview qustions
1.explain your framework?
2.how to do grouping?with code?
3.how to handle different pop ups?
4.diffrence between string and string buffer?
5.what is difference between abstract class and interface?
6.diffrence between final,finaly,finalize?
7.diffrence between normal class and final class?
8.how to handle frames without having any attributes?
9.diffence between smoke and sanity testing?
10.QA process you follows?
11.adapter design in java?
Bosch interview Qustions
1.Reverse a string without using inbuilt functions?
2.Sorting of numbers?
3.Generic method for select dropdown?
4.generic code for fetching data from xl sheet?
5.What is testNg?
6.What is selenium grid?write the code?
7.how to do parallel execution?
8.how to handle ssl certification in ie?
9.how to handle popup’s?
10.how to fetch all the options in auto suggest?
11.how to upload a file ?write the code?
12.how to generate daily execution report?
13.explain frame work?
14.difference between junit and testng?
Techmetric interview
1.what is webdriver?
2.where all of abstract methods of webdriver are implemented?
3.how to handle dynamics webelement?
5.how to fetch data from excel sheet?
6.how to write xpath,css?
7.how to connect to the database?
Explain ur responsibility in ur project?
2. Explain ur project(team size,domain etc)
3. Automation process?
4. All basic questions on Manual Testing?
5. Diff between RC,IDE,GRID and Web Driver?
6. How to handle SSL issue,POP-Up alert?...
HappiestMind interview questions
1.what is collection in java.
2.play with any of the collections.
3.scarch a letter in string?
4.reverse a number?
5. sorting ana array?
6 .What is page object model?
7between css and xpath which one is faster?
8.what is exception.tell some exception.
9.tell some exception you get while writing code.
10.how to handle exception ?
11.is it agood approche to throw an exception?
14.how to generate a report?
15.how many testcase you have automated.
16.how many test case you run in a batch execution?
17.what is the minimum time to run a batch execution?
18.tell me complex secnarion of your application?
19.challenges you faced in automation.
20.how to upload file other than Autoit?
21.negative testcase for a pen?
22.how to run a test 3times if the test fail ?
Happiest Minds Technologies
1. what is the diff between STRING and STRING BUFFER.
2. WAP For String Reverse.
3. Find how many duplicate values in Array List.
4. string [] str={"abc","efg","fgh"};
conver array to string.
5. about file downloading and uploading.
6. what is PageFactory explain.
7. explain method overloading and overriding .. how practically
implemented in ur project.
8. what are the challenges of SELENIUM.
9. explain the features of JAVA.
10. how do u say JAVA is platform independent.
11. is JVM platform independent.
12. write code for data fetch of excelSheet.
13. explain how do u access DB in selenium.
14. explain ANT and what are the pros and cons.
15. how do u achieve parallel execution in TestNG.
16. what is the dictionary meaning of SELENIUM.
17. accronomy of ANT and POI.
Explain ur responsibility in ur project?
2. Explain ur project(team size,domain etc)
3. Automation process?
4. All basic questions on Manual Testing?
5. Diff between RC,IDE,GRID and Web Driver?
6. How to handle SSL issue,POP-Up alert?...
1st
round apti
2nd
technical
3rd
HR
Aptitude
Questions:
1. Find the least number of students in an exam so that the percentage of successful students should be 76.8%:
(a) 500
(b) 250
(c) 125
(d) 1000
2. Aman sends a certain quantity of rice for 30 girls in a hostel. One day some girls were absent. Therefore, the quantity of rice was spent in the ratio of 6: 5. How many girls were present on that day?
(a) 24
(b) 20
(c) 15
(d) 25
3. What is the ratio of buy price and sell price if there is deep loss of 12 1/(2 )%
(a) 7 : 8
(b) 8: 7
(c) 2: 25
(d) 25: 2
4. Find H.C.F. of 3/5, .36, .24
(a) .04
(b) 2
(c) .4
(d) None of the above
5. Simplify:
(1.3*1.3*1.3-1)/(1.3*1.3+1.3+1)
(a) .3
(b) 31/3
(c) ..3
(d) 1
6. Statements:
All fruits are vegetables. All pencils are vegetables. All vegetables are rats.
Conclusions:
1. All fruits are rats.
2. All pencils are rats.
3. Some rats are vegetables.
A. None follows
B. Only I and II follow
C. Only II and III follow
D. Only I and III follow
E. All follow
7. The jacket is impervious to water.
A) Dirty
B) Pure
C) Impenetrable
D) Favorable
8. The officer received _____ official letter from _____ Ministry of IT in _____ Central Government.
A) A, the, an
C) An, the, the
B) A, an, the
D) An, an, the
9. Raman is sitting to the immediate left of Harry but not next to Kamal. Mahesh is sitting to the right of Kamal. If the four friends are sitting in a circle who is sitting to the immediate right of Harry?
(1) Mahesh
(2) Kamal
(3) Raman
(4) Harry
(5) Cannot be determined
10. If 1 is subtracted from the last digit of each of the above numbers the sum of the digits of how many of them are prime numbers?
(1) None
(2) Two
(3) One
(4) Three
(5) All five
11. If the digits in each of the above numbers are written in reverse order which will be the second highest number?
(1) 251
(2) 359
(3) 487
(4) 526
(5) 972
12. Find the output of the following program
int *p,*q;
p=(int *)1000;
q=(int *)2000;
printf("%d",(q-p));
Ans: 500
13. A power station generates 500MW of power and exhausts 800MW as waste heat into the environment. What is the efficiency of the power station?
a) 61.5%
b) 38.5%
c) 62.5%
d) 23%
14. Among M, N, T, P and R each having different weight, who is the heaviest ?
I. T is heavier than P and M but lighter than N who is not the heaviest.
II. M is lighter than P.
15. How is D related to T ?
I. Ds brother is father of Ts sister.
II. Ts brother is son of Ds brother.
Technical Questions:
1.
main()
{
{
unsigned int bit=256;
printf(%d, bit);
}
{
unsigned int bit=512;
printf(%d, bit);
}
}
a. 256, 256
b. 512, 512
c. 256, 512
d. Compile error
2.
main()
{
int i;
for(i=0;i<5;i++)
{
printf("%d\n", 1L << i);
}
}
a. 5, 4, 3, 2, 1
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 4, 8
d. 1, 2, 4, 8, 16
3.
main()
{
signed int bit=512, i=5;
for(;i;i--)
{
printf("%d\n", bit = (bit >> (i - (i -1))));
}
}
a. 512, 256, 128, 64, 32
b. 256, 128, 64, 32, 16
c. 128, 64, 32, 16, 8
d. 64, 32, 16, 8, 4
4.
main()
{
signed int bit=512, i=5;
for(;i;i--)
{
printf("%d\n", bit >> (i - (i -1)));
}
}
a. 512, 256, 0, 0, 0
b. 256, 256, 0, 0, 0
c. 512, 512, 512, 512, 512
d. 256, 256, 256, 256, 256
5.
main()
{
if (!(1&&0))
{
printf("OK I am done.");
}
else
{
printf(OK I am gone.);
}
}
a. OK I am done
b. OK I am gone
c. compile error
d. none of the above
6.
main()
{
if ((1||0) && (0||1))
{
printf("OK I am done.");
}
else
{
printf(OK I am gone.);
}
}
a. OK I am done
b. OK I am gone
c. compile error
d. none of the above
7.
main()
{
signed int bit=512, mBit;
{
mBit = ~bit;
bit = bit & ~bit ;
printf("%d %d", bit, mBit);
}
}
a. 0, 0
b. 0, 513
c. 512, 0
d. 0, -513
8.
main()
{
int i;
printf("%d", &i)+1;
scanf("%d", i)-1;
}
a. Runtime error.
b. Runtime error. Access violation.
c. Compile error. Illegal syntax
d. None of the above
9.
main(int argc, char *argv[])
{
(main && argc) ? main(argc-1, NULL) : return 0;
}
a. Runtime error.
b. Compile error. Illegal syntax
c. Gets into Infinite loop
d. None of the above
10.
main()
{
int i;
float *pf;
pf = (float *)&i;
*pf = 100.00;
printf("%d", i);
}
a. Runtime error.
b. 100
c. Some Integer not 100
d. None of the above
11.
main()
{
int i = 0xff;
printf("%d", i<<2);
}
a. 4
b. 512
c. 1020
d. 1024
12.
#define SQR(x) x * x
main()
{
printf("%d", 225/SQR(15));
}
a. 1
b. 225
c. 15
d. none of the above
13.
union u
{
struct st
{
int i : 4;
int j : 4;
int k : 4;
int l;
}st;
int i;
}u;
main()
{
u.i = 100;
printf("%d, %d, %d",u.i, u.st.i, u.st.l);
}
a. 4, 4, 0
b. 0, 0, 0
c. 100, 4, 0
d. 40, 4, 0
14.
union u
{
union u
{
int i;
int j;
}a[10];
int b[10];
}u;
main()
{
printf("%d", sizeof(u));
printf("%d", sizeof(u.a));
printf("%d", sizeof(u.a[0].i));
}
a. 4, 4, 4
b. 40, 4, 4
c. 1, 100, 1
d. 40 400 4
15.
main()
{
int (*functable[2])(char *format, ...) ={printf, scanf};
int i = 100;
(*functable[0])("%d", i);
(*functable[1])("%d", i);
(*functable[1])("%d", i);
(*functable[0])("%d", &i);
}
a. 100, Runtime error.
b. 100, Random number, Random number, Random number.
c. Compile error
d. 100, Random number
1. Find the least number of students in an exam so that the percentage of successful students should be 76.8%:
(a) 500
(b) 250
(c) 125
(d) 1000
2. Aman sends a certain quantity of rice for 30 girls in a hostel. One day some girls were absent. Therefore, the quantity of rice was spent in the ratio of 6: 5. How many girls were present on that day?
(a) 24
(b) 20
(c) 15
(d) 25
3. What is the ratio of buy price and sell price if there is deep loss of 12 1/(2 )%
(a) 7 : 8
(b) 8: 7
(c) 2: 25
(d) 25: 2
4. Find H.C.F. of 3/5, .36, .24
(a) .04
(b) 2
(c) .4
(d) None of the above
5. Simplify:
(1.3*1.3*1.3-1)/(1.3*1.3+1.3+1)
(a) .3
(b) 31/3
(c) ..3
(d) 1
6. Statements:
All fruits are vegetables. All pencils are vegetables. All vegetables are rats.
Conclusions:
1. All fruits are rats.
2. All pencils are rats.
3. Some rats are vegetables.
A. None follows
B. Only I and II follow
C. Only II and III follow
D. Only I and III follow
E. All follow
7. The jacket is impervious to water.
A) Dirty
B) Pure
C) Impenetrable
D) Favorable
8. The officer received _____ official letter from _____ Ministry of IT in _____ Central Government.
A) A, the, an
C) An, the, the
B) A, an, the
D) An, an, the
9. Raman is sitting to the immediate left of Harry but not next to Kamal. Mahesh is sitting to the right of Kamal. If the four friends are sitting in a circle who is sitting to the immediate right of Harry?
(1) Mahesh
(2) Kamal
(3) Raman
(4) Harry
(5) Cannot be determined
10. If 1 is subtracted from the last digit of each of the above numbers the sum of the digits of how many of them are prime numbers?
(1) None
(2) Two
(3) One
(4) Three
(5) All five
11. If the digits in each of the above numbers are written in reverse order which will be the second highest number?
(1) 251
(2) 359
(3) 487
(4) 526
(5) 972
12. Find the output of the following program
int *p,*q;
p=(int *)1000;
q=(int *)2000;
printf("%d",(q-p));
Ans: 500
13. A power station generates 500MW of power and exhausts 800MW as waste heat into the environment. What is the efficiency of the power station?
a) 61.5%
b) 38.5%
c) 62.5%
d) 23%
14. Among M, N, T, P and R each having different weight, who is the heaviest ?
I. T is heavier than P and M but lighter than N who is not the heaviest.
II. M is lighter than P.
15. How is D related to T ?
I. Ds brother is father of Ts sister.
II. Ts brother is son of Ds brother.
Technical Questions:
1.
main()
{
{
unsigned int bit=256;
printf(%d, bit);
}
{
unsigned int bit=512;
printf(%d, bit);
}
}
a. 256, 256
b. 512, 512
c. 256, 512
d. Compile error
2.
main()
{
int i;
for(i=0;i<5;i++)
{
printf("%d\n", 1L << i);
}
}
a. 5, 4, 3, 2, 1
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 4, 8
d. 1, 2, 4, 8, 16
3.
main()
{
signed int bit=512, i=5;
for(;i;i--)
{
printf("%d\n", bit = (bit >> (i - (i -1))));
}
}
a. 512, 256, 128, 64, 32
b. 256, 128, 64, 32, 16
c. 128, 64, 32, 16, 8
d. 64, 32, 16, 8, 4
4.
main()
{
signed int bit=512, i=5;
for(;i;i--)
{
printf("%d\n", bit >> (i - (i -1)));
}
}
a. 512, 256, 0, 0, 0
b. 256, 256, 0, 0, 0
c. 512, 512, 512, 512, 512
d. 256, 256, 256, 256, 256
5.
main()
{
if (!(1&&0))
{
printf("OK I am done.");
}
else
{
printf(OK I am gone.);
}
}
a. OK I am done
b. OK I am gone
c. compile error
d. none of the above
6.
main()
{
if ((1||0) && (0||1))
{
printf("OK I am done.");
}
else
{
printf(OK I am gone.);
}
}
a. OK I am done
b. OK I am gone
c. compile error
d. none of the above
7.
main()
{
signed int bit=512, mBit;
{
mBit = ~bit;
bit = bit & ~bit ;
printf("%d %d", bit, mBit);
}
}
a. 0, 0
b. 0, 513
c. 512, 0
d. 0, -513
8.
main()
{
int i;
printf("%d", &i)+1;
scanf("%d", i)-1;
}
a. Runtime error.
b. Runtime error. Access violation.
c. Compile error. Illegal syntax
d. None of the above
9.
main(int argc, char *argv[])
{
(main && argc) ? main(argc-1, NULL) : return 0;
}
a. Runtime error.
b. Compile error. Illegal syntax
c. Gets into Infinite loop
d. None of the above
10.
main()
{
int i;
float *pf;
pf = (float *)&i;
*pf = 100.00;
printf("%d", i);
}
a. Runtime error.
b. 100
c. Some Integer not 100
d. None of the above
11.
main()
{
int i = 0xff;
printf("%d", i<<2);
}
a. 4
b. 512
c. 1020
d. 1024
12.
#define SQR(x) x * x
main()
{
printf("%d", 225/SQR(15));
}
a. 1
b. 225
c. 15
d. none of the above
13.
union u
{
struct st
{
int i : 4;
int j : 4;
int k : 4;
int l;
}st;
int i;
}u;
main()
{
u.i = 100;
printf("%d, %d, %d",u.i, u.st.i, u.st.l);
}
a. 4, 4, 0
b. 0, 0, 0
c. 100, 4, 0
d. 40, 4, 0
14.
union u
{
union u
{
int i;
int j;
}a[10];
int b[10];
}u;
main()
{
printf("%d", sizeof(u));
printf("%d", sizeof(u.a));
printf("%d", sizeof(u.a[0].i));
}
a. 4, 4, 4
b. 40, 4, 4
c. 1, 100, 1
d. 40 400 4
15.
main()
{
int (*functable[2])(char *format, ...) ={printf, scanf};
int i = 100;
(*functable[0])("%d", i);
(*functable[1])("%d", i);
(*functable[1])("%d", i);
(*functable[0])("%d", &i);
}
a. 100, Runtime error.
b. 100, Random number, Random number, Random number.
c. Compile error
d. 100, Random number
GENPACT
Technical Round 1 (Manual + SQL):
1.Can you tell me about your project?
2.What testing methodology do you follow in your project?
A:Agile
3.What is the difference between regression testing and functional testing?
A:Regression Testing is testing the unchanged features to ensure that its not broken
due to changes. Eg addition of module or deletion of the module.
Functional Testing testing the functionlity of each and every web element.
4. Can you please explain me the defect life cycle?
A: New Open Assign Fixed closed.
2.difference between end-2 -end testing & system testiing?
End to End Testing
|
System Testing
|
Validates the software system as well as interconnected sub-systems
|
Validates just the software system as per the requirements specifications.
|
It checks the complete end-to-end process flow.
|
It checks system functionalities and features.
|
All interfaces, backend systems will be considered for testing
|
Functional and Non-Functional Testing will be considered for testing
|
It's executed once system testing is completed.
|
It's executed after integration testing.
|
End to End testing involves checking external interfaces which can be complex to automate. Hence Manual Testing is preferred.
|
Both Manual and Automation can be performed for system testing
|
5. What is Ad-hoc testing?
A: Testing the application randomly also know monkey testing.
6. Difference between static and dynamic testing?
A: Verification & Validation.
7. What are the types of joins?
A: Inner join, Outer join,Left join, right join.
8. Can you write the syntax for Inner-Join?
A: select * from Table1 inner join Table2
where table1.pK=table2.pK
9. How do you update a table with new set of data on both row and columns?
A: update tablename set value column1=value
10. Can you explain me on MAX () function in SQL with example?
A: MAX() is used to get the max integer value from a column.
11. Can you elaborate DDL, DML with few commands for each type?
A: DDL --> Create,Alter,Drop.
DML--> Insert,update,delete
12. What is the difference between primary key and unique key?
A: Primary key will not take null value
Unique key will allow mutiple null value.
Primary key is used as foreign key in another table.
Unique key can't be used like that.
13.Can primary key accept null values?
A: No
14. Can a table have multiple primary keys?
A:No
Technical Round 2 (Manual +Java/Selenium+ SQL)
Manual
15.Explain me your project architecture?
A: Hybrid Framework
16. Explain me Agile-Scrum methodology?
A: refer google.
17. Have you come across deferred defects and what those defects indicate?
A: The bug that is raised foe the requirement that is not freezed or miss communication
is marked as differed , which mean that the bug will be considred in the next sprint.
18. What is compatibility testing? Give me example?
A: Testing with multiple browser.
19. What is severity and priority?
A: Severity is how critical is the bug.
Priority is how fast bug should be fixed.
20. Give example for high severity and high priority?
A: Broken link & Database eg: click on login not loggin.
21. Difference between regression and retesting?
A: Regression Testing is testing the unchanged features to ensure that its not broken
due to changes.
Retesing Testing the fixed features.
22.How do you map test case to requirements in QC?
A: Traceability Matrix.
23.How did you perform integration testing in your project?
A: Customer & Sales --> Customer created in the customer module checked in sales module.
24. When can I use stubs or drivers? Have you used top-down approach or bottom up approach type of integration testing?
A: Stubs : Its is dummy module which receives data as input and generate required data.
which behavie like actual module.
Driver : is one which set the test environment and takes care of the communication.
25. Have you involved in SDLC process? Explain me High Level process of STLC?
A: Yes, Requirement gathering, HLD,LLD,Coding,Test planning, Test Case Designing,Test execution.
26. What do you do in test closure?
A: Retrospection --> Lessons learnt
Defect density
realted to management
Related to SRS
Requirements were not freezed at the time of development.
27: What is difference between two-tier and n-tier architecture?
A:two-tier -->Client Server Applcation Eg gtalk,yahoo messanger.
n-tier -->Web Applications.
Java
28.What is abstract class?
A: A classes with a keyword abstract is absract class.
abstract class can have both abstract as well as concrete methods
abstract methods in the sense no implementation only declaration.
29. Difference between abstract class and interface?
A: Abstract class will have abstract keyword.
abstract class can have both abstract as well as concrete methods
abstract methods in the sense no implementation only declaration.
Interface will have Interface keyword.
Interface will have only abstract methods.
we need to provide implementation to all methods in the interface else inherited class
should be declared as abstract.
30.How do you know when to use abstract class and Interface?
A:Abstact -->In future if we want to have few more concrete methods to be added for a feature
the we go for abstract class.
Interface --> we cant add new abstract methods after implementing in some modules.
31. What is overloading and overriding? Justify me with your examples by implementing your code?
A: Over loading:Same method name with different arguments in same class. Eg. sendKeys,findBy
Over riding:changing the implementation of the inhertited methods in the sub class.
32. What is the significance of final & finally?
A: final is a keyword if given
for a variable value cannot be changed
for a method cannot be overloaded
for a class cannot be inherited
Finally is a method comes under Exception
it is executed irrespective of try or catch.
33. What is the use of this and super keywords?
A: this refers to the perticular class.
super is used to invoke the parent constructor
34. Explain about exceptions in java?
A:There are two types of exception checked and unchecked exception
checked-->compile time
unchecked --> run time
35. Why string is immutable?
A:Sting is final class so its immutable.
36. Difference between Array list and Vector?
A: Array list is non syncronized Vector is syncronized.
37.What is boxing and un-boxing?
A:Boxing: Converting primitive type to Object.
Unboxing:Converting object type to primitive type.
Selenium
37.Architecture of Selenium?
38. What is your framework and explain me about your framework?
A: Hybrid
39.What is object repository and explain page factory technique?
A:POM PageFactory.initElement(this,driver);
40. Write a code how you will access web elements x-paths from page factory classes?
A: POM class sample.
41. How to invoke an application in web driver?
A: get() or navigate()
42. How do you handle dynamic web elements?
A: xpath
43. What are the different exceptions you got when working with Web Driver?
A: noSuchElement,saleElement,noAlertPresent,noSuchWindow.
44. Difference between implicit wait and explicit wait?
A:Implicit wait will wait for given timeunit, if it find the element before the time mentioned
it will continue the execution and it is used by findByElement method.
Explicit wait also known as intelligent wait will wait for perticular condition wait
eg WebDriverWait wait = new WebDriverWait(driver, 10);
wait.until(ExpectedConditions.titleContains("bambooinvoice"));
45. What are web elements and what are the different ways to identify them?
A:Anything that can be inspected in the webpage is web element.
By using locators.
46. Explain me about JDBC connections with web driver?
A:we have to use getConnection method
odbc:jdbc:Student
driver.getConnection("Connection String")
47. What types of testing does selenium automation supports?
A: Unit Testing
Regression Testing
Functional Testing
48. How to launch different browsers in Web Driver? Write code for it.
A: Firefox--> WebDriver driver = new FireFoxDriver();
Chrome-->System.setProperty("webdriver.chrome.driver", "C:\\Users\\Bhat\\AppData\\Local\\Google\ \Chrome\ \Application\\chrome.exe");
WebDriver driver = new ChromeDriver();
49.What is Apache POI?
A: POI stands for Poor Obfuscation Implementation.
It is used to perform opertations on excel files
like read, write etc.
50. Write a code to get the data from excel using POI library?
A: FileInputStream fis = new FileInputStream("excelPath")
WorkBook wb = new WorkBookFactory.create(fis);
Sheet s= wb.getSheet("SheetName");
Row r = s.getRow(index);
String value = r.getCell(index).getStringCellValue();
51.Why TestNG and why not JUnit?
A:Junit
In Junit, one test case failure can cause a bunch of test cases to fail in the test suite.
In Junit for a long time it was not possible to run a specific subset of the test cases.
In junit test data is not parameterized using a DataProvider hook.
TestNG
If one test case failure causes the failure of a group of test cases it skips that group and executes the rest of the test suite.
In TestNG groups can be defined. Groups are specific subsets
I can execute a single test case for multiple test data sets through the parameterization of DataProvider object. This makes the implementation of data driven testing more flexible in TestNG
52.Explain me @Before Method and @After Class annotations in TestNG?
A: @Before Method --> this is executed before execution of every @test method.
@After Class--> this is executed after the exection of test class i,e class which encloses @test methods
53.What are listeners?
A:Listeners are basically interfaces which will have abstract methds and are called atomatically when the user does something to the user .
54. When you will use data provider?
A:When you need to pass complex parameters or parameters that need to be created from Java (complex objects, objects read from a property file or a database, etc…), in such cases parameters can be passed using Dataproviders. A Data Provider is a method annotated with @DataProvider. A Data Provider returns an array of objects.
55.What is Selenium Grid?
A:Selenium-Grid allows you run your tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems.
56. How do you know which test cases to automate and which not to automate?
A:Test cases which do not have manual interventions are automated
Also regression test cases are automated.
57. What is log4j and how did you use in web driver?
A: Log4j is used for logging the execution of the scripts irrespective of pass or fail.
We add the log4j jar file
Add a property file which will state log4j what kind of info should be logged
like Tacer,Debug,INFO,war,error,FATAl
Logger log = Logger.getLogger(this.getClass());
log.info("On Test Failure");
58. Explain how ANT and Jenkins work? Advantages of Jenkins?
A ANT is a build tool
will have build.xml file
In which we give targets i,e ANT job
In our project we have done deleting the folders, creating the folders, compile,run,XSLT,zip folder etc
Jenkin is an contineous Integration tool
by using this we schedule when the test scripts should be executed.
Email the reports after the execution of the scripts.
SQL
59.I want to find out 3rd largest salary in table, asked to write query for the table?
A: SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP 6 salary
FROM employee
ORDER BY salary DESC) a
ORDER BY salary
60.How do I display employee name starting with ‘N’?
A:select employee_name
from employees
where employee_name LIKE 'N%'
61. What is group by and having clauses? Explain having clause with example?
A:SELECT dept, SUM (salary)
FROM employee
GROUP BY dept
HAVING SUM (salary) > 25000
62. Tell me different types of constraints in SQL?
A:NOT NULL - Indicates that a column cannot store NULL value
UNIQUE - Ensures that each row for a column must have a unique value
PRIMARY KEY - A combination of a NOT NULL and UNIQUE. Ensures that a column (or combination of two or more columns) have an unique identity which helps to find a particular record in a table more easily and quickly
FOREIGN KEY - Ensure the referential integrity of the data in one table to match values in another table
CHECK - Ensures that the value in a column meets a specific condition
DEFAULT - Specifies a default value when specified none for this column
63. Explain Foreign Key constraint and Not Null constraint?
A:Ensure the referential integrity of the data in one table to match values in another table
64.Difference between DELETE, TRUNCATE & DROP?
A:Delete is used to delete a particular or bunch of rows.
Truncate is used to clear all the rows of a table.
Drop is used to remove the table from DB.
Manager Round
65. What is a trigger?
A: A trigger is a special kind of stored procedure that automatically executes when an event occurs in the database server. DML triggers execute when a user tries to modify data through a data manipulation language (DML) event. DML events are INSERT, UPDATE, or DELETE statements on a table or view.
66.What is Index? Index is performed on column or table?
A:An index can be created in a table to find data more quickly and efficiently.
CREATE INDEX index_name
ON table_name (column_name)
67.If I ask you to select Automation or Manual what is your choice? Want only one answer?
A: Automation.
Optimization of Speed, Efficiency, Quality and the Decrease of Costs
The main goal in software development processes is a timely release. Automated tests run fast and frequently, due to reused modules within different tests. Automated regression tests which ensure the continuous system stability and functionality after changes to the software were made lead to shorter development cycles combined with better quality software and thus the benefits of automated testing quickly outgain the initial costs.
HappyestMind & Ness
Selenium
68.Write the syntax of drop down
A:<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
69.What is the current Version of Selinum webdriver
A: 2.42
70.How to get the text value from text box
A: driver.findElement(By.id("username")).getAttribute("value")
71.String x="ABC";
String x="ab"; does it create two objects?
A:Yes.
72.write a program to compare the strings
A: if(s1.equals(s2))
73.Class a
{
}
class b extends a
{
}
A a= new A();
B b=new B();
A a= new B();
B a=new A();
Which is valid and invalid?
A:B a=new A();
74.How to handle differnt type of pop up.(Window,Alerts,Invisible popup)
A:Window popups can be handled using AutoIT.
Alert popups handled using Alerts class.
Invisible popup are usually hidden division popups and can be handled using findByElement only.
75.How to handle DropDown menu
A: Using Actions class.
Actions action = new Actions(driver);
WebElement mMenu = driver.findElement(By.xpath("//a[contains(text(),'SHOP FOR')]")) action.moveToElement(mMenu).perform();
76.How to handle SSL certificate
A:FirefoxProfile profile = allProfiles.getProfile(browserProfile);
profile.setAcceptUntrustedCertificates (true);
77.How to handle Google search text.
A:driver.get("http://www.google.com");
driver.findElement(By.xpath("//input[@id='gbqfq']")).sendKeys("God is Great");
List<WebElement> list = driver.findElements(By.xpath("//span[contains(text(),'god')]"));
for(int i=0;i<list.size();i++)
{
System.out.println(list.get(i).getText());
}
78.How to handle Ajax Objects
A: Using cssSelector.
79.Explain webdriver architecture
A: SearchContext(Interface)->WebDriver(Interface)->RemoteWebDriver(class)->Browser specific Class
80.Explain File downloading
A:Using FirefoxProfile profile= new FirefocProfile;
profile.setPreferences(key,value);
81.Write the syntax for finding the row count in dynamic web table
A:List<WebElement> table = driver.findElements(By.xpath("xpath"));
System.out.println(table.size());
82.Differnece between class and Interface
A:Class
Class will cotain concrete methods
Class is extended
A Class can inherit only one Class and can implement many interfaces
Each Object created will have its own state
Interface
Interface will conatain only abstract methods
Interface needs to be implemented
while Interface can extends many interfaces.
Each objected created after implementing will have the same state.
83. What type of class is the string class
A:String is a final class.
84. Explain Abstract
A:Abstraction refers to the ability to make a class abstract in OOP.
An abstract class is one that cannot be instantiated. All other functionality of the class still exists, and its fields, methods, and constructors are all accessed in the same manner. You just cannot create an instance of the abstract class.
85. JVM is dependent or independent platform
A: JVM is dependent.
86.what are the types of assertion
A: Asset & SoftAssert
Assert will stop the execution immideatly after fail.
SoftAssert
SoftAssert will not stop execution after fail till it finds asserAll()
Eg: SoftAssert sa = new SoftAssert()
sa.assertEquals("abc","xyz")
sa.assertAll();
12.What is dom concept
13.What is the challenges u have faced during Automation
14What is genrics
15.What is synchronization
Java
1.JVM is dependent or independent platform
2.diffn bw hashmap and hash set, set and linkedlist, arraylist and
vector list , linkedhash set and hashset
3.abstract and interface
4.throw and throws
5.how to split
6.checked and unchecked exception
7.how to work with azax aplication
Ajax used style sheet format,so we use CSS selector which uses classname. If there are multiple style sheet with same classname,then we need to go
for Dependent and Independent using XPath.
8.why sring is immutable
9.wat is the retru ntype of getwindowhandles();
10.what are the types of assertion and what are assertion in java
11.differnce between interface and Abstract classes
12.What is static varaible
13.what is volitile
14. what is trainsient
15.what is the differnece between Final,Finalize and finally
16.what is the differnce between Public,private and protected
FICO
Java
1.what is the default package in java ?
ANS:A default package is a package with no name. You can create a Java class without putting package name on top of the code. This class is included in the "default package". Be careful not to be confused with java.lang, which is a package that contains Java's fundamental classes and get's imported by default.
2.:why we use interface why not abstract class ...what if i implements same method in interface and abstract ....thn ?? any diffrnc??
3. what are inner classes ..name them ?
4.in public static void main(String arr[])... what if i replace public with private ........... remove static ........replace void with string
5.in hash map we have (key and value ) pair , can we store inside a value =(key, value ) again ??
5. what are variable scope in java (in class , in method , in static block)
6. what are the oops concept ? explain them each with real world examples
7.write a program so that when ever u create a object ... u get to know how many object u have created
8. what is singleton classes ?
9.what is difference between .equals() , (==) and compare-to();
Ans:Compares values and returns an int which tells if the values compare less than, equal, or greater than.
10. what is the difference between hash code and equals
Both equals() and hashCode() are defined in java.lang.Object class and there default implementation is based upon Object information e.g. default equals() method return true, if two objects are exactly same i.e. they are pointing to same memory address, while default implementation of hashcode method return int and implemented as native method. Similar default implementation of toString() method, returns type of class, followed by memory address in hex String.
11.write a program to get substring of string ex: javais good ... so result : avais
12.write a program to reverse the string
13. wap for binary search
14.what is the use of package
15.why we use interface and abstract
http://www.programmerinterview.com/index.php/java-questions/interface-vs-abstract-class/
16.we have 2 interface both have print method , in my class i have implemented the print method ,
how u wil get to know that i have implemented the first interface and how u will use it .. if u want to use it
17.what is the difference between vector list and arraylist
http://beginnersbook.com/2013/12/difference-between-arraylist-and-vector-in-java/
18. difference between hashmap and hash table, what is synchronization , how it is achieved
http://blog.manishchhabra.com/2012/08/the-5-main-differences-betwen-hashmap-and-hashtable/
19. what is the use of collection, when we use it
Collection means group of objects
Framework means An architechure to manipulate data
i.e. Collection Framework provide a mechenish to manipulate the group of objects such as sorting, searching , managing etc.
20. what is priority queue in collection,what is the use , how u have use in your project
21.where to use hashmap and hashtable
22. where u have use the concept of interface and abstract in your framework
http://www.programmerinterview.com/index.php/java-questions/interface-vs-abstract-class/
1.what is the default package in java ?
The java.lang package is always imported by default.
2.why we use interface why not abstract class ...what if i implements same method in interface and abstract ....thn ?? any diffrnc??
a)For one thing, a class can extend only one abstract class but it can implement any number of interfaces.
b)If we use abstract class ,it is "Is a" relation
c)If we use Interface class ,it is "Can be" relation
d)An abstract class can have implementations.
e)An interface doesn't have implementations,it simply defines a kind of contract.
f)Interface can replace an Abstract Class if Abstract Class has all abstract methods. Otherwise changing Abstract class to interface means
that you will be loosing out of Code Re usability which Inheritence provides.
G) Keep it as a Abstract Class if its a "Is a" Relationsship and should do subset/all of the functionality. Keep it as Interface if its a "Should Do" relationship.
3. what are inner classes ..name them ?
Inner classes are class within Class.Inner class instance has special relationship with Outer class.This special relationship gives inner class access to member of outer class as if they are the part of outer class.
Inner class instance has access to all member of the outer class(Public, Private & Protected)
4.in public static void main(String arr[])... what if i replace public with private ........... remove static ........replace void with string
5.In hash map we have (key and value ) pair , can we store inside a value =(key, value ) again ??
6. what are variable scope in java (in class , in method , in static block)
a)Local variables are declared in a method, constructor, or block.
b)Instance variables are declared in a class, but outside a method. They are also called member or field variables.
c)Class/static variables are declared with the static keyword in a class, but outside a method.There is only one copy per class, regardless of how many objects are created from it. They are stored in static memory. It is rare to use static variables other than declared final and used as either public or private constants.
6. what are the oops concept ? explain them each with real world examples
Inheritance,Polymorphism,Encapsulation,Abstraction
7.
8.what is singleton classes ?
A singleton is a class that allows only a single instance of itself to be created and gives access to that created instance. It contains static variables that can accommodate unique and private instances of itself. It is used in scenarios when a user wants to restrict instantiation of a class to only one object. This is helpful usually when a single object is required to coordinate actions across a system.
9.what is difference between .equals() , (==) and compare-to();
Both equals() and hashCode() are defined in java.lang.Object class and there default implementation is based upon Object information e.g. default equals() method return true, if two objects are exactly same i.e. they are pointing to same memory address, while default implementation of hashcode method return int and implemented as native method. Similar default implementation of toString() method, returns type of class, followed by memory address in hex String.
10. what is the difference between hash code and equals.
Both equals() and hashCode() are defined in java.lang.Object class and there default implementation is based upon Object information e.g. default equals() method return true, if two objects are exactly same i.e. they are pointing to same memory address, while default implementation of hashcode method return int and implemented as native method. Similar default implementation of toString() method, returns type of class, followed by memory address in hex String.
11.write a program to get substring of string ex: javais good ... so result : avais
12.write a program to reverse the string
13. wap for binary search
14.what is the use of package
package is used to organise class,each class is the part of Package.
15. why we use interface and abstract
16.we have 2 interface both have print method , in my class i have implemented the print method , how u wil get to know that i have implemented the first interface and how u will use it .. if u want to use it
It doesn't matter from which interface if you are using multiple inheritance
17.what is the difference between vector list and arraylist
Vector is Thread safe and where as arraylist is non threadsafe.
ArrayList grow by half of its size when resized while Vector doubles the size of itself by default when grows.
2.The iterator and listIterator returned by these classes (Vector and ArrayList) are fail-fast.
18. Difference between hashmap and hash table,what is synchronization , how it is achieved ?
Hashmap is not synchronised where as Hashtable is synchronised.
In Hashmap you can store the null in key where as Hashtable can't store the null in key.
In Hashmap elements are retrieved in random order where are in Table it is not.
19. what is the use of collection, when we use it.
Collection means group of objects
Framework means An architechure to manipulate data
i.e. Collection Framework provide a mechenish to manipulate the group of objects such as sorting, searching , managing etc.
20. what is priority queue in collection,what is the use , how u have use in your project
1. Priority queue is unbounded queue.
2. It is ordered collection. It iterates the element in the same order as in the order it is added.
3. Comparator provides the user defined order to PriorityQueue.
4. The size of PriorityQueue automatically grows when element is added.
21.where to use hashmap and hashtable
22.where u have use the concept of interface and abstract in your framework
SPAN Info tech
Selenium question:
How to work with dynamic webtable ?
What is asserstion & types of asserstion ?
what to work with file attachment & file download in webdriver ?
How to file attachment with out Autoit scripts ?
how to work with weblist @ radio button in webdriver ?
what is the difference between the implicit wait & webdriver wait ?
Which repository you have used to store the test scripts ?
What is Check-in & check-out , revert ?
how to work with Radio buttun ?
how to work with weblist ?
what is the use of Actions class in webdriver?
how to work with keybord and mouse opration in java ?
how to get the text from the UI in runtime ?
expain the Architructure of Webdriver?
How to run the test scripts with mulitiple browser ?
Java Qustion
IN parent and child class i have disp() methode , using child class reference how to call parent disp() methode ?
what is the use of this keyword
how many types execption avilable in java?
difference between final finaly , finalize?
difference between Overriding and overload ?
differebce between MAP & set ?
Mind tree interview Question
Selenium
1. how to handle dynamic object
2. how to work with button which is in div tag and and u have to click without using xpath
3. JVM is dependent or independent platform
4.how many Test script you write in day
5. describe your framework
6. how to parameterized your junit
7.how to handle ssl security
8. how to handle window pops
9. diffnct between implicit and explicit
10.what are the types of assertion and what are assertion in junit
Java
1.JVM is dependent or independent platform
2.diffn bw hashmap and hash set, set and linkedlist, arraylist and vector list , linkedhash set and hashset
3.abstract and interface
4.throw and throws
5.how to split
6.checked and unchecked exception
7.how to work with azax aplication
8.why sring is immutable
9.wat is the retru ntype of getwindowhandles();
10.what are the types of assertion and what are assertion in java
Interview Questions AltiMetrik
JAVA
1 what is inheritence?Explain the use of inheritence?
2 what is abstract class?
3 what is interface?
4 when to use inheritence and when to use abstract class?
5 what happence if i not provide abstract method in abstract class
and interface?
6 what is method overriding java what is the use of method
overriding?
7 what is constructor ?use of constructor and can i ovverride the
costructor?
8 how to call the super class method in subclass?
9 what is the base class for all java class?tell me the methods?
10 what is hashcode method explain programtically(asked
implementaion of hashcode method)?
11 what is toString method ?what happens when i use in the program
explain?
12 what is String builder?
13 what is String tokenizer?
14 what is the difference between string and String Buffer?
15 what is the capacity of String Buffer?
16 what is collection ?
17 what is list?
18 what is Arraylist Expain?
19 Write logic for Array to Arraylist?
20 write logic for Arraylist to Array?
21 why vector class is defined Synchronized ?
22 what is exception ?
22 difference between Throw And Throws?
23 what is custom Exception explain?
24 What is finally block?Use of Finally block?explain
25 what happens if exception not found in try catch block?
Then finally block will be Excuted or not
Questions from Infinite
if u have multiple alerts, how do you handle it.
if you have two password/reneter password
assert equals/assert same
navigate() and switch to
one webdriver driver is opened, what to do to make addons to work
how to join two sets/answer: by using addon method....
what are all the collections you used
india/all states, need to select the last value of the dropdown list
Software AG
----------
how to work with ajax application, flash, frame, log files,
log file will generated, for each action u do...ex: for gmail, compose mail;> there would be some log generated....so how to capture that log...
if you have a .bat file, how do you call that...
what exactly you call for this..
how you will make sure that page has been loaded...
StarMark Interview Questions
1. Diff between static and non static
2. What is multiple inheritance
3. Write program for prime no.
4.How to run build.xml through command prompt
5. Diff b/w overloading and overriding
6. how many wait methods you are using in webdriver
7. Difference between assertion and verification
8. What are the roles and responsibilities.
9. Why TestNG is better than JUNIT
HCL interview Questions:
1. difference between string and string buffer?
2. difference between linked list and arraylist?
3. thread concepts?
4. why string class is immutable?
5. Singleton class?
Adobe Interview Questions:
1. Retrieve the test data from excel sheet, put in in google search bar, click on search button and click on the first link opened in google search.
2. Write a program to check whether the string can be a palindrome. for example if the string aab(it is not a palindrom string). replace the characters in a string like aba, baa etc. and check that can be a palindrome string.
3. How will you Identify the webelement that has same property values?
4. write a pgm to return the no.of rows and columns in a webtable?
5. Write a prm to return the row and colum value like(3,4) for a given data in web table?
interview question from companies(happest minds,emids and adobe)
1) how to create a folder in build.xml
2) describe about your framework.
3) difference between selenium rc and selenium webdriver
4) explain the architecture of your project
5) draw ur framework
6) write a code for fetching the data from excel sheet
7) write a code for palindrome
explain about jenkins
9) explain about ur control version tool
10) how to handle with drop down
11) how to handle window id
12) how to handle with google search text box
13) how to handle alert and window pop up
14) how u will get the frame id
15) how to handle dynamic webtable
16) why we are using follwing siblings
17) create a pagefactory for login page
18) how u will group,how u will add classes from different packages
EBAY InterView Questions
TESTNG QUESTIONS ASKED IN EBAY
1. What is the use of TestNG/Junit ?
2. What is parameterized testing?
3. How can u achieve parameterized testing using TestNG?
With the help of 2 annotations @Parameters and @Dataprovider.
4. Can you map test method names in XML file along with class names?
Yes, we can do it please see below ex:
<classes>
<class name="test.IndividualMethodsTest">
<methods>
<include name="testMethod" />
</methods>
</class>
</classes>
5. Sequence of execution of below annotations:
@Test
@BeforeGroups
@AfterGroups
@BeforeSuite
@AfterSuite
@BeforeMethod
@AfterMethod
@BeforeClass
@AfterClass
6. What is Yaml file?
TestNG supports YAML as an alternate way of specifying your suite file.You might find the YAML file format easier to read and to maintain. YAML files are also recognized by the TestNG Eclipse plug-in.
7. How will you execute only selected test methods in particular Test class?
8. How do you fail test cases in TestNg?
9. Can we execute test cases parallely in TestNg?
10. How can we control the order of test method invocation?
We need to create Dependency.
TestNG allows you to specify dependencies either with annotations or in XML.:
You can use the attributes dependsOnMethods or dependsOnGroups, found on the @Test annotation.
Alternatively, you can specify your group dependencies in the testng.xml file. You use the <dependencies> tag to achieve this:
11. How can you make sure test methods which are run in a certain order doesn't really depend on the success of others ?
By adding "alwaysRun=true" in your @Test annotation.
ACCOLITE INTERVIEW QUESTIONS:
1.What is the use of static keyword in Main()?
2.can a class without main() gets compilation successful?
3.difference between abstract and interface.
4.Example of function overloading in Selenium Webdriver
5.Can we private access specifier inside interface?
6.Is there any way to deallocate memory in JAVA?
7.What is the use of finalize method? whether implementation is already available.
8.How do you handle drop down list box.
9.Write a pgm for removing white spaces in a String?
10.Write five critical testcases for the above written pgm.
11.What is missing in Selenium Webdriver compared to Selenium RC?
12.you have a parametrized constructor, whether it will call default constructor first? or directly it will call parametrized contructor?
13.What is the difference between Webdriver Wait(Explicit Wait) and Implicit wait?
14.Write a xpath using following-sibling?
15.How will you analyze the failures after giving a run in the TestNG framework?
16.Explain the Selenium Webdriver Architecture?
17.Explain The framework you were using ?
18.What is Object class?
19.Jenkins Tool - Scheduled Batch Run - any idea
20.What is the current version of Selenium Webdriver ? What are the other languages do Selenium Support?
21.How are you writing log files in your framework?Using Log4J Jars or any other methods.
22.How to handle SSL certificate?
23.What is the latest version of selenium webdriver?
HeadStronginterview qustions
1.explain framework
2.page factory model code?diffrence between pagefactory and page object model?
3.what is object reposiratory?
4.How to overwrite a data in excel sheet?
5.explain different frame works.
6.what are property files?
7.howgroupin is done in testng xml.
8.how to run tests in different browser.
9.how to handle alerts.
10.jdbc connections?
11.how to report ?
12.common method for reverse a string?
13.challenges faced?
14.String s=”AABBBCFFDD” Count the presence of each letter.
15 pascle triangle program.
16.class and interface difference?
17 interface and inheritance difference?
18.what is polymorphism?
19.diffrence between string and string builder?
20.what is static variable,
21.what is null pointer exception .
22.what are the exception you found?
23.bug lifecycle?
24.web driver waits and implicit wait?
25.can we write multiple CATCH in webdriver code?
26.if we close the driver in try block then,FINALLY will execute or not?
27.what are the different types of framework ?
28.why we go for hybrid frame work?
29.diffrence between data driven and modular f/w?
Exlliant Interview qustions
1.what is testng?why we go for testng?
2.can we run a test without testng?
3.what is the difference between verification and valiation?
4.what are the different locators in selenium?
5.what is xpath?
6.diffrence between absolute and relative path?
7.what is difference between abstract class and interface?
8.what in diff between method overloading and constructor overloading?with example?
9.diffrence between string and string buffer?
10.what is overriding ?
11.how to handle dynamic elements?
12.how to get the no of emp getting same salary?
CalSoft labs interview qustions
1.explain your framework?
2.how to do grouping?with code?
3.how to handle different pop ups?
4.diffrence between string and string buffer?
5.what is difference between abstract class and interface?
6.diffrence between final,finaly,finalize?
7.diffrence between normal class and final class?
8.how to handle frames without having any attributes?
9.diffence between smoke and sanity testing?
10.QA process you follows?
11.adapter design in java?
Bosch interview Qustions
1.Reverse a string without using inbuilt functions?
2.Sorting of numbers?
3.Generic method for select dropdown?
4.generic code for fetching data from xl sheet?
5.What is testNg?
6.What is selenium grid?write the code?
7.how to do parallel execution?
8.how to handle ssl certification in ie?
9.how to handle popup’s?
10.how to fetch all the options in auto suggest?
11.how to upload a file ?write the code?
12.how to generate daily execution report?
13.explain frame work?
14.difference between junit and testng?
Techmetric interview
1.what is webdriver?
2.where all of abstract methods of webdriver are implemented?
3.how to handle dynamics webelement?
5.how to fetch data from excel sheet?
6.how to write xpath,css?
7.how to connect to the database?
Explain ur responsibility in ur project?
2. Explain ur project(team size,domain etc)
3. Automation process?
4. All basic questions on Manual Testing?
5. Diff between RC,IDE,GRID and Web Driver?
6. How to handle SSL issue,POP-Up alert?...
HappiestMind interview questions
1.what is collection in java.
2.play with any of the collections.
3.scarch a letter in string?
4.reverse a number?
5. sorting ana array?
6 .What is page object model?
7between css and xpath which one is faster?
8.what is exception.tell some exception.
9.tell some exception you get while writing code.
10.how to handle exception ?
11.is it agood approche to throw an exception?
14.how to generate a report?
15.how many testcase you have automated.
16.how many test case you run in a batch execution?
17.what is the minimum time to run a batch execution?
18.tell me complex secnarion of your application?
19.challenges you faced in automation.
20.how to upload file other than Autoit?
21.negative testcase for a pen?
22.how to run a test 3times if the test fail ?
Happiest Minds Technologies
1. what is the diff between STRING and STRING BUFFER.
2. WAP For String Reverse.
3. Find how many duplicate values in Array List.
4. string [] str={"abc","efg","fgh"};
conver array to string.
5. about file downloading and uploading.
6. what is PageFactory explain.
7. explain method overloading and overriding .. how practically
implemented in ur project.
8. what are the challenges of SELENIUM.
9. explain the features of JAVA.
10. how do u say JAVA is platform independent.
11. is JVM platform independent.
12. write code for data fetch of excelSheet.
13. explain how do u access DB in selenium.
14. explain ANT and what are the pros and cons.
15. how do u achieve parallel execution in TestNG.
16. what is the dictionary meaning of SELENIUM.
17. accronomy of ANT and POI.
Explain ur responsibility in ur project?
2. Explain ur project(team size,domain etc)
3. Automation process?
4. All basic questions on Manual Testing?
5. Diff between RC,IDE,GRID and Web Driver?
6. How to handle SSL issue,POP-Up alert?...