Monday, 3 February 2014

Testing Methods Interview Questions and Answers


Here is one more post I have posted on Testing Methods. Apart from this several more question may be asked by the interviewer. I will keep in my mind to update as much as sample questions possible. And yes friends you can also contribute your questions on the comment box. i will try to reply the simplest possible answer and if it will be a valid question I will post queue it in this post. Also check out my previous post on basic manual testing Interview questions and answers. Click Here.
01.Q) What are different testing methods?
A) Software testing methods are traditionally divided into white and black box testing. Generally there are four types of testing methods are there being used.
             - Black Box testing
             - White Box testing
             - Gray Box testing
             - Visual testing

02.Q) What is Black Box testing?
A) Black Box testing is a method of software that tests the functionality of an application as opposed to its internal structures or workings.
 Specific knowledge of the applications code/internal structure and programming knowledge is not required.
 This method of test can be applied to all levels of software testing: unit, integration, system and acceptance.

03.Q) What is White Box testing?
A) White Box testing is a method of testing software that tests internal structures or working of an application, as opposed to its functionality.
  In White Box testing an internal prospective of the system, as well as programming skills, are used to design test cases.

04.Q) What is Gray Box testing?
A) Gray Box testing is a combination of White Box testing and back Box testing. The aim of this testing is to search for the defects if any due to improper structure or improper usage of applications.
     In Gray Box testing, test engineer is equipped with the knowledge of system and design test cases or test data based on system knowledge.

05.Q) What are the design techniques for Black Box testing?
A) Following are the design techniques for Black Box testing.
           - Equivalence class partitioning
           - Boundary value analysis
           - Decision tables
           - Orthogonal arrays

05.Q) Explain Equivalence Class partitioning?
A) Equivalence class Partitioning: This technique is based on mathematical set theory. When your input domain is too large then you breakdown this domain into finite number of sub domains.
Now when you test your software, every value in these set will be treated as same value. So you can pick one value from each set and test your software. This way you are able to test large set of data with few number of test only.

06.Q) Explain Boundary value Analysis.
A) Input values at the extreme ends of input domain cause more errors in system. More application errors occur at the boundaries of input domain. Boundary value analysis testing technique is used to identify errors at boundaries rather than finding those exist in center of input domain.

07.Q) Explain Decision Tables.
A) Decision tables can be used as a method to identify all possible inputs or combination of inputs and all possible output or combination of output for a test case.
  A Decision table is typically presented as tables with rules as columns and conditions as first set of rows followed by actions or results as second set of rows.

08.Q) Explain Orthogonal arrays?
A) Orthogonal array is a two dimensional array in which if two columns are selected then all the combination of numbers will appear in those columns. In software testing this is applied to eliminate duplicate test cases.

09.Q) What are the different white box test design techniques?
A) White Box test design techniques include:
           - Control Flow testing
           - Data Flow testing
           - Branch testing
           - Path testing

10.Q) What is Control Flow testing?
A) Control Flow testing is a form of White box testing. It is a testing technique which bases its tests on the structure of the code.
   It is generally applicable for comparatively smaller programs or even smaller segments of bigger programs.

11.Q) What is Data Flow testing?
A) Data flow testing looks at the life cycle of a particular piece of data in an application. By looking for patterns of data usage, risky areas of code can be found and more test cases can be applied.

12.Q) What is Branch testing?
A) All branches in the program source code are tested at least once.

13.Q) What is Path testing?
A) All paths in the program source code are tested at least once.

14.Q) What is Negative testing?
A) Testing method in which invalid inputs are entered and the system behavior is evaluated. System should handle the invalid inputs correctly and should not fail.

15.Q) What is Positive testing?
A) Testing method in which valid inputs are entered and the system behavior is tested. System should handle all the valid inputs correctly and perform action as per respective requirement specification.

You can read more question and answers on Basic manual testing here.

Also Check out my other posts on Interview Question and Answers Here.
Post a Comment