Wednesday, February 16, 2011

Common Interview Questions for QA Testing

==============================================


NOTE: 1 Testing process may vary from one company to another; documentation may vary from one company to another, but we must have awareness at least one type of process then we can follow any type of process


NOTE: 2 generally in any area concepts are two types one is global concepts another is local concepts


General:

1)         Why are you looking for a change?
2)         Why you chose Software testing as a Career?
3)         What type of coordination do you expect from your collogues?
4)         Are you interested to take new responsibilities if required?
5)         Do you know about our Company?
6)         Why are you staying with one company for a long time?
7)         Are you willing to relocate?
8)         Are you willing to work on shifts?
9)         Which roles do you like, Leader or follower, why?
10)       What are you expecting from our company?
11)       Why do you like this job?
12)       What are your strengths?
13)       What is your weakness?

Environmental, Development Technologies:


1)                  In Microsoft Windows, how many types of Operating systems are there, what are they, and give examples?
2)                  What is the difference between UNIX and LINUX?
3)                  What is the difference between Web Server and Application Server?
4)                  Differentiate Intranet, Internet and Extranet Applications?
5)                  Give brief description about the .Net Technology?
6)                  Can we operate a windows based application on UNIX Environment, Explain it?
7)                  Give brief description about the Java Technology?
8)                  What is the Main Purpose of XML in the Web?
9)                  What are the difference between General Programming Languages (C, C++, Java, and VC++ etc.) and Scripting Languages (VB script, Java script and Perl Script etc.)?




10)              Give definitions for the Master Data, Metadata and Runtime Data?
11)              Explain about the IP Address and the MAC Address?
12)              What are the major advantages in Web Applications than Client/Server Applications?
13)              Give brief description about J2EE?
14)              What is IIS, give explanation?
15)              What is the Configuration Management?
16)              Do you know about embedded systems, give brief explanation?
17)              Can we have 3 tier applications with out having web Technology?
18)              What does the Build Deployment mean?
19)              Software Engineering, Quality Standards:




     Testing Process:

1)                  What are the different phases in SDLC?
2)                  Give brief description about the Agile Development Model?
3)                  What are the differences between Waterfall Model and V model?
4)                  How can we choose a Life Cycle Model for a Project?
5)                  What is the major Difference between ISO, IEEE standards and CMMI Levels?
6)                  What is the relation between CMM and Life Cycle Model?
7)                  What is the difference between Verification and Validation?
8)                  What is Software Quality?
9)                  Differentiate QA and QC what types of documents would you need for QA, QC and Testing?
10)              What is the Difference between QA and Testing?



Manual Testing Concepts:


1)                  What is the difference between Inspection and Informal Review?
2)                  What is peer review, give an example?
3)                  What is Exhaustive Testing?
4)                  How metrics improve the quality of a Product?
5)                  Where do you get your expected results?
6)                  What is the difference between Static and Dynamic Testing?
7)                  What is exploratory Testing?
8)                  Define Test Strategy and Test Plan?


9)                  What is an equivalence class? Why it is important while writing Test Cases?
10)              What is boundary value analysis give an example for it?
11)              What is the difference between function and Procedure?
12)              What is a bug? What types of bugs do you know? What should be done after a bug found?
13)              How can it be known when to stop testing?
14)              What is the difference between build version and Software Version?
15)              What if the application has functionality that wasn't in the Requirements?
16)              What is different between Black Box and White Box Testing?
17)              What are Test Scenario, Test Case and Use Case?
18)              What is the Initial stage of testing?
19)              When is good time for system testing?
20)              What is the purpose of the testing?
21)              What is logic?
22)              What is a variable?
23)              What is your base for your test cases?
24)              What is the difference between priority and severity in a defect Report?
25)              Describe the phases of Testing?
26)              What is the difference between Test Driver and Test Stub?
27)              Did you work with Use Cases?
28)              Did you use any tools to write Test Cases?
29)              What document did you refer to write the Test Cases?


Test Automation Concepts (QTP): 
 
1)                  What is Automation?
2)                  What is parameterization?
3)                  What is Synchronization?
4)                  In QuickTest Pro can we insert Checkpoints programmatically? How?
5)                  How to connect to application database?
6)                  In how many ways can we prepare automated tests (Scripts) in QTP?
7)                  What are the major differences between Functions and Actions in QTP? What advantages there in Functions than Actions?
8)                  How can we create and use functions?
9)                  What is descriptive programming? What is it advantage?
10)              Differentiate Conditional Statements and Loop statements in the VB Script?
11)              Differentiate methods and Classes in the VB Script?
12)              What is Recovery Scenario? In QTP how many types of recovery scenarios are there, what are they?
13)              What is Automation Object Model?
14)              What Windows Script Host?
15)              What is your company's automation framework explain it?
16)              What automation framework did you follow for your last project?





Tester Role and Responsibilities:

1)                  Tell me about your Current Project? / Explain about your Current Project?
2)                  What are your responsibilities in your current Project?
3)                  How many Test Cases did you write for this project?
4)                  How many Defects did you detect in your project?
5)                  Write 2 or 3 Test Cases from your Project?
6)                  To whom do you report in your Company?
7)                  What is your company Testing process?
8)                  What is the latest defect that you raised in your project?
9)                  What will you do that your defect is rejected?
10)              What risks did you face in your project? How you solved them?
11)              Differentiate Priority and Severity in your Defect Report?
12)              What is the Bug Life Cycle Process in your Company's Defect Management System?
13)              How will you report daily/weekly status in your Organization?
14)              What are metrics? In your projects what metrics did you collect?
15)              What is your Company automation framework, explain it?
16)              What are your capabilities in test automation?
17)              Generally, when will you plan for test automation for a project in your company?
When should testing start in a project?

VBScript Advanced Questions

1)      Write a program to read data from a text file
2)      Write a program to write data into a text file
3)      Write a program to print all lines that contains a word either “testing” or “qtp”
4)      Write a program to display all files containing “demo” in their name
5)      Write a program to print all lines in a file that ends with “world”
6)      Write a program to check whether string starts with “Error”
7)      Write a program to Replace all words that contains “demo” in a file with the word “QTP”
8)      Write a program to check whether a string contains only alpha numeric’s
9)      Write a program to check whether given string is in date format
10)  Write a program to print all the lines ending with '$'
11)  Check whether middle three characters in a word contains alphanumeric
12)  Write a program to print the current folder name
13)  Write a program to print files in a given folder
14)  Write a program to print subfolders in a given folder
15)  Write a program to display files of a specific type
16)  Write a program to Retrieve all the rows in a table
17)  Write a program to find the name of columns in a table
18)  Write a program to find number of rows in each column
19)  Write a program to connect and print data from SQL Server database
20)  Write a program to retrieve specific field from the database table
21)  Write a program to open the two record sets
22)  Write a program to update the specific field in the database table
23)  Write a program to find number of rows in a table
24)  Write a program to send an email using outlook
     25)Write a program to print data present in all sheets of an excel files

QTP Advanced Questions

1)      Write a program to find the x and y coordinates of a button
2)      Write a program to Read items in a list box
3)      Write a program to Read items on a desktop
4)      Write a program to Capture Desktop Screen shot
5)      Write a program to check whether edit box is enabled or writable
6)      Write a program to Check whether country contains all the states
7)      Write a program to Check whether edit box is focused
8)      Write a program to Check default selection in a list box
9)      Write a program to capture webbutton image
10)  Write a program to List all links in the web page
11)  Write a program to Check whether given link exists or not
12)  Write a program to find image width and Height
13)  Write a program to Print URL displayed in the address bar
14)  Write a program to check whether webpage downloaded completely
15)  Write a program to refresh a web page
16)  Write a program to Verify page title is displayed correctly
17)  Write a program to Verify whether page contains frames
18)  Write a program to find page load time
19)  Write a program to Check given text is displayed on the web page
20)  Write a program to find whether image contains tool tip
21)  Write a program to invoke the Browser with specified URL
22)  Write a program to Import an excel file to a Data table
23)  Write a program to Read data from first parameter of Global sheet
24)  Write a program to Read data from all sheets and all parameters of the excel file
25)  Write a program to place data in a specific Cell in the excel file
26)  Write a program to Import data to data table from a database
27)  Write a program to Read and display data from CSV file
28)  Write a program to Find number of rows and columns in a web table
29)  Write a program to Display entire data in the web table
30)  Write a program to Display all images in the webpage
31)  Write a program to Find the background colour of a webobject
32)  Write a program to Print results in a HTML format
33)  Write a program to Select different radio buttons for different script iterations
34)  Write function to compare two bitmaps
35)  Write a program to Add and Remove Repositories to the action
36)  Write a program to Load Library files
37)  Write a program to enable and Disable Recovery scenarios programmatically
38)  Write a program to Report Results status to Results file
39)  Write a program to List out the windows that are open
40)  Write a program to call reusable actions from different script
41)  Write your own standard checkpoint
42)  Write your own synchronization function
43)  Write a program to Read menu names
44)  Write a program to Read menu items
45)  Write a program to Check whether a check button is selected or not
46)  Write a program to Check whether we can select multiple items in the listbox
47)  Write a program to Check whether edit box allows exactly 15 characters
48)  Write a program to Find which add-ins are loaded.
49)  Write a program to find available add-ins in the tool
50)  Write a program to find whether specified window is there on the desktop
51)  Write a program to check whether a window is in minimized or maximized
52)  Write a program to Read all elements in the XML file
53)  Write a program to Read attributes of a particular element in the XML file
54)  Write a program to Display complete contents of an XML file
55)  Write a program to find font type.
56)  Write a program to Find Font size
57)  Write a program to Check whether text is bold and underlined
58)  Write a program to Modify Mandatory and Assistive properties programmatically
59)  Write a program to Configure Run options programmatically
60)  Write a program to Define test results location through program
61)  Write a program to Read and Update data from user defined environmental variable
62)  Write a program to read and delete cookies
63)  Write a program to Check whether links pointing to correct URL
64)  Write a program to invoke the application
65) Write a program to find the maximum text length that can be entered in a edit box
66)  Write a program to verify min and max length constraints of text in an edit box
67)  Write a program to add objects to object repository file
68)  Write a program to print all button object names in a page

QTP Interview Test Paper -1

 
Section I: Questions 1–10
Multiple-choice: 10 marks (10*1=10)

1) What can you use to handle unpredictable testing exceptions?

A.    A Do Loop

B.    Recovery Scenario

C. IF THEN statement

D. Select Case statement
2) Where do you set the action iterations for a specified action?

A. Action Settings

B. Action Properties
C. Action Run Settings
D. Action Call Properties
3) How do you close the database session after examining the results of an SQL query?

A.    Call the ADO.Close function

B.    Use the close method for the RecordSet object

C.    Set the RecordSet and Connection objects equal to Nothing

D.      Use the close method for the RecordSet and Connection objects
4) To bypass the Object Repository you can:

A.    Turn the Object Repository off

B.    Use a programmatic description

C.    Delete all objects in all repositories

D.      Add the object to the Object Repository Manager
5) What does the ChildObjects method return?

A.    A Collection object

B.    A string true/false

C.    A Boolean TRUE/FALSE

D.    The number of objects matching the ChildObject description

6) How can you retrieve the number of items in the list for a WebList object?

A.    GetList

B.    GetItem

C.    GetItemsCount

D.      GetROProperty
7) What does a breakpoint do?

A.    Stops test execution at the specified step, after executing that step

B.    Stops test execution at the specified step, before executing that step

C.    Pauses test execution at the specified step, after executing that step

D.      Pauses test execution at the specified step, before executing that step
8) What is the function of the Object Repository Manager?

A.    Assign variable names to test objects

B.    View/make/modify a Local Object Repository

C.    View/make/modify a Shared Object Repository

D.    Define new test objects using programmatic descriptions
9) How do you disable error handling in VBScript?

A.    Err.Disable

B.    Err.Clear

C.    On Error goto  0

D.    On Error Resume Next

10) What is not an extension of library file?

A.    .QFL

B.    .VBS

C.    .MTS

D.    .TXT

Section II: Questions 11–15
Objective Type: 10 marks (5*2=10)

11) What are the limitations of QuickTest?
12) How test engineer identifies when programmatic descriptions are useful?
13) What is a Regular Expression, where we use this feature in QTP?
14) How do you synchronize QTP with AUT?
15) What is the Difference between “Recovery Scenario” and "On Error Resume Next"?


Section III: Questions 16–25
Script Exercises: 20 marks (10*2=20)

16) Write a program to find number of words in a given string.
17) Write a program to convert an expression to a date and time.
18) Write a program to Perform specified Arithmetic Operation on two given numbers.
19) Write a program to reverse a given string without using “strreverse” function.
20) Write a program to count numeric characters present in a string.
21) Write a program to compare two excel sheets data.
22) Write a program to get data from SQL Server database.
23) Write a script to select all the WebCheckBox available in Frame.
24) Write a script to select an item of WebList available in WebTable.
25) Write a code to associate “recovery scenario” for current test at runtime.