Realtime Interview Questions
Realtime Interview Questions
1. Introduce yourself.
2. Explain your project.
3. Difference b/t smoke and sanity testing. Explain according to your project.
4. Defect Life Cycle explain. If you face any duplicate bug how will you handle it in your defect tracking
tool.
5. How many methodology you know? Which methodology you are using in your project?
6. Explain V & V model. What is hybrid model.
7. i18N and l10N testing explain . How you indentify other language in your web page?
8. How will you rate yourself in automation (out of 10).
9. How you will extract data from DB and put into text box. Write a code for that.
10. What is GDS?(Travelling Domain related).
11. What is test execution report what kind of fields are there?
12. What is test plan what are the features are present?
13. What is entry and exit criteria?
14. What is risk based testing?
---------------------Aptean interview questions--------------------------
1. what is code complete?
2. what is release candidate?
3. what is the difference between application and dll?
4. virus is a bug or not?
5. what is compatibility testing?
6. Difference between automation and performance testing?
7. what is smoke testing?
8. open interface used for?
What is registry??
post and get method,service pack
dff, b/t whit box testing and black bok testing
use of index,virtual root in web application,hotfix,
diff. b/t primary key and unique key..
main(){ int *p; *p=10; } what is error here?
what is the quit or black out phase in SDLC
open Database Connectivity..
Saurabh Garg Shibani MMTF wo word konsa tha jiski full form puchi thi?
mean time to failure
Robert Bosch
Testing Questions:
Selenium:
1. what is selenium-ide?
2. what is type of locators?
3. what are challenge you face?
4. what is the difference between selenium remote control and selenium webdriver?
5. what is the difference between Junit and testNG?
6. what is assert?
7. what are the type of automation framework?
8. what type of annotation?
Java:
1. what is abstraction?
2. what is encapsulation?
3. what is polymorphism?
4. they had given one matrix program and test only logic.
SQL:
Manager round:
IGate Interview
1st round
What is selenium
what is Jenkins why we need iy?
what are the differences between rc and web driver
Difference b/w Grid & WebDriver?
Daily role in offfice?
About current project?
What is TestNg?why we need it?
Write code for gmail Login in RC & Driver?
Have you ever impressed your client?
2nd Round
Tell me about yourself?
Current project full end to end scenario..?
Differences bw RC and Webdriver
what is abstract class how it use for us?
What is Datadriven framework & Keyword Driven?
what is the difference between / and // in xpath
SDLC & Stlc?
We have SDLC but why we need STLC?
How you improve your knowledge on project?
Bug life cycle?
Did you involve in Test plan preparation?
What is smoke testing & sanity?
What type of testing did you do in your work?
If I give 5 freashers you only responsible what will you do?
What are that challenges you faced?
what value would u add to our company?
3 Round HR
Why you are leaving?
How much salary you are expecting?
Next 4-5 year where you will be?
Salary slips,hike letters ,Notice period
MANHATTAN
1)What are the components of selenium?
2)What kind of AUTOMATION FRAMEWORK u are working upon?
3)If an object is changing after every build ,how can u handle it through coding?
EX-: "NAME" IS A TEXT FIELD,AND DEVELOPER KEEP ON CHANGING THE THE
NAME OF THIS TEXT FIELD
4)I Want to execute one FEATURE 50% and then want to execute other FEATURE fully, how
will u do it?
5)What are the issues u have faced in the AUTOMATION FRAMEWORK?
6)Want to execute particular module ,what will be your approach?
7)On what platform JENKINS is working?
8)How in JENKINS u will execute particular module?
9)How the testng class's execution happen?
10)What is the difference between ID and NAME?
11)What is the advantage of using locators like ID ,NAME over XPATH?
12)HOW u are executing the application on different platforms(OS)?
1.how do u handle dynamic elements without using xpath ( with example)
2.what are the different types of driver implementation?
4.program to display sysdate and time in text file (using file handling)
5.code for handling url in firefox browser?
6.How to get the text from the UI in runtime?
7.What is Check-in & check-out revert?
8.Which repository you have used to store the test scripts?
9.How to work with web list @ radio button in web driver?
10.How to work with dynamic web table?
GE
wat is fianlly block ?how execution goes ?is finally block executes isrespective of expection or
not
given a scenario that 5 test cases r there i need to excute first and last 3 means 2 one shld not be
excuted ?how u make a changes in testng xml file
explain how will automate drop down list ?how will get size ?and text present in it?
---------------------------------------------------------------------------------------------
8.what is xpath
2.What is SDLC
5.What is Selenium RC
7.Difference between RC and Webdriver
9.Write an sql query to list first 10 rows in two columns empname and salary
19.What is agile
20.What is sprint
29.Aptitude test booklet consisted of 15 pages and 29 questions and in them few questions had 5 sub
questions and time limit is 1 hour.
31. Selenium Framework that you are using in your current project?
34. How do you differentiate check box if more than one check box is existed in your
application?
1. sendKeys(Keys.ENTER)
driver.findElement().isSelected();
driver.findElement(By.linkText("")).getAttribute("href");
driver.findElement(By.xpath("")).getAttribute("src");
chkBox.click();
for(int i=0;i<=allChkBoxes.size();i++){
allChkBoxes.get(i).click();
driver.findElements(By.tagName("img"));
17. How do you work with page onload authentication popup / windows based popup?
26. Write the code for Reading and Writing to Excel through Selenium
28. What are the different exceptions you get when working with WebDriver?
Other questions
Framework questions
1.What is a Framework?
General questions
6. Which are the locators used for recognizing the objects in selenium webdriver?
11. Explain the technical problems that you had with Selenium tool?
16. How many programming languages can you use in Selenium Web driver?
22. How to verify that an element is not present on a page?// use . length
25. How do you verify that the given list of numbers on a web page is sorted in ascending order?
27. Which is the package which is to be imported while working with webdriver?
30. How to verify whether the background color of a paragraph is green or not?
33. How do you check that the pagination on google search page is working fine or not?
45. How to handle the dynamic alerts which don't always appear?
46. How to upload a file using selenium?
48. How to run the tests without a browser or with HTML unit driver in
selenium webdriver?
61. How to change the URL on a webpage using selenium web driver?
62. How to get the CSS attribute of a web element using web driver?
Sportskeeda
We have 65,000 URLs which we release 3 times a day. How will you test using
selenium ?
keep 6500 urls and destination page in 10 excel sheet(10X6500=65000)
use threads and run the web driver code to check URL present in each sheet.
happiest mind
1. how to right click,
2.how do u do mouse action.write a program.
3.design framework.
4.what is constructor
5.5.what is inh
1. How to work with page onload authentication pop up/windows based pop up
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.firefox.internal.ProfilesIni;
public class Demo {
public static void main(String[] args) {
ProfilesIni prof = new ProfilesIni();
FirefoxProfile p = prof.getProfile("default");
WebDriver driver = new FirefoxDriver(p);
driver.get("http://demo.actitime.com/login.do");
}
}
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Thread.sleep(3000);
FileUtils.copyFile(((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE),new
File("d:/abcd.png"));
-Dorg.uncommons.reportng.escape-output=false
How to enter date in date field using java script in web Driver?
How to take complete screen shot of the application and screen shot of required element?
if a tab is inside a page then it will be like clicking on Link, but web driver cant
handle tabbed browser
2. How to check whether the check-box or radio is checked or not?What is the method?
isSelected
3. In a drop-down we have many options out of which i want to write xpath for
particular option,How will u write?
//select[@name='somename]/options[1]
4. We have two similar hidden elements with same attribute how can u write xpath?
6. Using AND,OR operation how can u write xpath for dynamic elements?
//a[text()>6 or text()<9]
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" ) ;
rs.close() ;
stmt.close() ;
conn.close() ;
4 to 5
11. I have a server message(Report generated successfully) but i need only report,how
u write the script?
String sMsg=driver.findElement(By.id()).getText();
System.out.println(sMsg.split(" ")[0]);
FirefoxProfile p = prof.getProfile("default");
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" ) ;
rs.close() ;
stmt.close() ;
conn.close() ;
its a meeting
We use "TakesScreenshot"
xpath is powerfull
it depends on how the server message is displayed,need more info on server message
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
}
}
3. Want to take screenshot in a webpage?(Full or Part of it in a page)
WebDriver driver=new FirefoxDriver();
driver.get("http://news.google.co.in/nwshp?hl=en&tab=wn");
getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(f, new File("d:/abc.jpg"));
regression
its a load testing tooll, can be used to test JDBC database connections, FTP, LDAP, Webservices, JMS,
HTTP, generic TCP connections and OS Native processes
NO
QTP is proprietary software of HP, can automate any type of app, uses VBS
Selenium open source, only for web app, uses java/python/ruby/C#
Cant work on existing browser, handling window popups, cant handle tab browser....
//input[@style="visibility:hidden"] //visibility:visible
Star mark
Selenium WebDriver
------------------
8)What is WebDriver?
9)Can you inspect an WebElement with FireBug if the Browser is opened by WebDriver?
Core JAVA
---------
8)How to check whether two names or two Strings are equal or not?
9)What are Annotations?What is the use of Annotations?
1.How to retrieve the data from XML for login page?write a script..
String
un=doc.getElementsByTagName("un").item(0).getFirstChild().getNodeValue();
String
pwd=doc.getElementsByTagName("pwd").item(0).getFirstChild().getNodeValue();
2.I have 50 test cases out of which i need to run only 1 to 10 testcase how do u
handle?
Use testing.xml
Select only 10 testNG class, right click and select convert to TestNG which creates
testing.xml
3.Write the code for retrieving data from database for login Page,where login page
consists of Emailid textbox,Password textbox,Login & Reset Button.If password is
wrong should reset,else should get login..
Please see the attached JDBC code for getting data from data base and pass them as
arguments for the method which does the above steps
4.Write the script so that any textbox should not exceed more than 10 characters?
No possible
7.How to run the tests without a browser or with HTML unit driver in selenium
webdriver?
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.get("http://demo.actitime.com/login.do");
System.out.println(driver.getTitle());
selenium.open("/login.do");
selenium.type("name=username", "admin");
Same as above
10. What is webdriver backed selenium?
Same as above
already code is written in selenium RC and want to use the same code in webdriver
2.3
driver.get(url);
Nothing is supported
File->add testcase
Please see the attached JDBC code for getting data from data base
18. Explain about selenium architecture in your company
using RC or WebDriver
Questions:
1. He has given a scenario, like Say there is a coffee vending machine, it has 3 buttons, one for
coffee, one for tea and one for milk.
and there is LCD display, and a led light to show whether the power is on or not.
Tell me as many as scenarios to test the functionality of the coffee machine.(both Functional and
non functional).
2. Logic to find whether the number is prime or not.
3. String comparison of two strings. (==)
4. Defect life cycle.
5.Logical thinking question: two trains are approaching each other, one is at 60kms/hr and
another is 90kms/hr.
the distance b/n them is 1800kms. What is the distance b/n them 20mns before they collide each
other.
6. Selenium code to open some browser and typing something in the text field.
7. Handling the Dynamic Check boxes inside a table.
8.Selenium code to reboot the system?
and some other Testing basics.
1.tell me some of the tools name which is used to store the script in common place?
2.how do you integrate selenium webdriver and java?
3explain with example Verify and Assert cammands?wher and when it s used?
4selenium IDE internally which language it uses?
5.Selenium IDE will allow to convert test written in java.c# when u switch over to selenium
webdriver?
6.if you have 1000 test scripts u want to execute it in 2 hrs?how you handle this environment ?is
it possible you to handle in webdriver?
7.how to get a multiple data's from excel file?example list of 10 firstname and Lastname?where
and how you wil pass the values?explain with logic nd code?
Genpact
2.How to take screen Shot in selenium code for failed Test Case.
FileUtils.copyFile(((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE),new
File("d:/abcd.png"));
3.How do u configure only Required Testcases for running the TestNG suit in XML..
add only required testng classes or create a Group and specify it
Impetus Info-tech
Difference between selenium RC, Selenium Web Driver,Selenium Core?
How to get the data from the excel sheet?
What is non-functional testing?
What is Regression Testing?
They asked much about UNIX Shell Scripting, since they need Scripting language for
automation...
JavascriptExecutor js=(JavascriptExecutor)driver;
String state = (String) js.executeScript("return document.readyState");
System.out.println(state);
mobisy Technologies
why automation
different locators
program to login to any webpage
web element methods
BOB technologies
Bob tech
Tavant
define SDLC ?
1) Where we can store xpath or other locator value , (like object repository in qtp)
2) why we can not use CSS selector instead of xpath.
3) what is difference between @Before Method and @before Test
4) what is diffrence between @After Method and @After Test
TY
manual testing:
1) Explain about Defect life cycle.
Core java;
Selenium:
1)Explain about framework?
2)How do you handle File down popup,File upload popup.and alert and confirmation popup.
3)write a code to read data from excel sheet.
Questions on selenium:
1)How do you do mouse over action.
2)How do you read data from excel sheet and notepad
Ans:i have said reading data from excel sheet so he said ok
3)Automation framework
1) Where we can store xpath or other locator value , (like object repository in qtp)
2) why we can not use CSS selector instead of xpath.
3) what is difference between @Before Method and @before Test
4) what is diffrence between @After Method and @After Test
SAP Labs
written test:
1. manual testing :
match following with definition -- test plan, test case, test procedure, test objective,requirement
--testing multiple choice more than 1 answer
2. aptitude (10 ques): area between 2 parabola.
-- probability
-- speed and time
-- work and time
3. java
-- collection: which is sinchonized-- list, set, queue
--
4. reasoning
-------------------------------------------------------------------------------------------
1st round:
written test:
1. manual testing objective questions:
match following with definition -- test plan, test case, test procedure, test objective,requirement
--testing multiple choice more than 1 answer
2. aptitude (10 ques):
-- area between 2 parabola.
-- probability
-- speed and time
-- work and time
3. java
-- collection: which is sinchonized-- list, set, queue
--
4. reasoning
-------------------------------------------------------------------------------------------
2nd round:
Technical interview: core java, database
1. how many primitive data type
2. why string is not primitive
3. access specifier
4. difference between default and protected
5. what is formatters sop("%d %f",3545,546.45)
6. can we store object
7. how to avoid any variable to serialize
-------------------------------------------------------------------------------------------
3rd round:
manager interview(25 mins)
1. where is your comp.
2. what is your work
3. Why you want to join this or why you want to leave
4. how much comfortable in selenium
5. how much you rate yourself in java.
-------------------------------------------------------------------------------------------
4th round:
Director interview (90 min 2 person)
0.1) tell me about yourself
0.2) tell me % in 10th 12th btech
0.3) why they are consistently decreasing
1. where do you work
2. tell me about your project
3. Big client like HP having CRM on windows??(my mistake in resume)
4. i m client i gives you product what question you will ask so that at end you deliver me better
product.
5. what is setup of your automation project
Now problem starts---
6. how ur setup manage your test script fail-- which tool you use
7. how you store test script in server (check in , checkout ???) commit
More questions on real time environment on manual and automation testing