Explain the concept of black box testing and white box testing.

1 Answer

Answer :

Black Box Testing:

* It is a way of software testing in which the internal structure or the program or the code is hidden and nothing is known about it.

* It also known as data-driven, box testing, data-, and functional testing.

* This type of testing is ideal for higher levels of testing like System Testing, Acceptance testing.

* It is mostly done by software testers.

* No knowledge of implementation is needed.

* It is functional test of the software.

* Testing can start after preparing requirement specification document.

* Techniques used:

o Equivalence partitioning: Equivalence partitioning divides input values into valid and invalid partitions and selecting corresponding values from each partition of the test data.

o Boundary value analysis:

checks boundaries for input values.

* Advantages of Black Box Testing

* Efficient when used on large systems.

* Since the tester and developer are independent of each other, testing is balanced and unprejudiced.

* Tester can be non-technical.

* There is no need for the tester to have detailed functional knowledge of system.

* Tests will be done from an end user's point of view, because the end user should accept the system. (This testing technique is sometimes also called Acceptance testing.)

* Testing helps to identify vagueness and contradictions in functional specifications.

* Test cases can be designed as soon as the functional specifications are complete.

* Disadvantages of Black Box Testing

* Test cases are challenging to design without having clear functional specifications.

* It is difficult to identify tricky inputs if the test cases are not developed based on specifications.

* It is difficult to identify all possible inputs in limited testing time. As a result, writing test cases may be slow and difficult.

* There are chances of having unidentified paths during the testing process.

* There is a high probability of repeating tests already performed by the programmer.

White Box Testing:

* It is a way of testing the software in which the tester has knowledge about the internal structure r the code or the program of the software.

* It is also called structural testing, clear box testing, code-based testing, or glass box testing.

* Testing is best suited for a lower level of testing like Unit

Testing, Integration testing.

* It is mostly done by software developers.

* Knowledge of implementation is required.

* It is structural test of the software.

* Testing can start after preparing for Detail design document.

* Techniques Used:

o Statement Coverage, Branch coverage, and Path coverage are White Box testing technique.

o Statement Coverage validates whether every line of the code is executed at least once.

o Branch coverage validates whether each branch is executed at least once.

o Path coverage method tests all the paths of the program.

* Advantages of White Box Testing

* Code optimization by finding hidden errors.

* White box tests cases can be easily automated.

* Testing is more thorough as all code paths are usually covered.

* Testing can start early in SDLC even if GUI is not available.

* Disadvantages of White Box Testing

White box testing can be quite complex and expensive.

* Developers who usually execute white box test cases detest it. The white box testing by developers is not detailed can lead to production errors.

* White box testing requires professional resources, with a detailed understanding of programming and implementation.

* White-box testing is time-consuming, bigger programming applications take the time to test fully.

Related questions

Description : What Is Black Box Testing And White Box Testing?

Last Answer : Black box testing is an external perspective of the object that is to be tested to obtain test cases. These tests may be functional or non functional. The valid and invalid inputs are tested ... chosen by the tester to exercise paths through the code to determine the outputs that are appropriate.

Description : Which of the following is true about White and Black Box Testing Technique:- a) Equivalance partitioning, Decision Table and Control flow are White box Testing Techniques. b) Equivalence partitioning ... , State Transition , Use Case Testing and Decision Table are White Box Testing Techniques.

Last Answer : c) Equivalence partitioning , State Transition , Use Case Testing are black box Testing Techniques.

Description : Which testing methods are used by end-users who actually test software before they use it? A. Alpha & Beta Testing B. White Box Testing C. Black Box Testing D. Trial & Error Testing

Last Answer : A. Alpha & Beta Testing

Description : __________ testing assumes that the path of logic in a unit or program is known. A. Black Box testing B. Performance Testing C. White Box testing D. Functional testing

Last Answer : C. White Box testing

Description : A testing which checks the internal logic of the program is A. Black box testing B. White box testing C. Both (A) and (B) D. None of the above

Last Answer : B. White box testing

Description : The testing that focuses on the variables is called (A) black box testing (B) white box testing (C) data variable testing (D) data flow testing

Last Answer : (A) black box testing

Description : SRS is also known as specification of (A) White box testing (B) Stress testing (C) Integrated testing (D) Black box testing

Last Answer : (D) Black box testing

Description : A fault simulation testing technique is (A) Mutation testing (B) Stress testing (C) Black box testing (D) White box testing

Last Answer : (A) Mutation testing

Description : . A security audit performed on the internal network of an organization by the network administration is also known as ___________. A. Grey-box testing B. Black-box testing C. White-box testing D. Active testing

Last Answer : C. White-box testing

Description : A security audit performed on the internal network of an organization by the network administration is also known as ___________. a. Grey-box testing b. Black-box testing c. White-box testing d. Active testing E. Passive testing

Last Answer : c. White-box testing

Description : A security audit performed on the internal network of an organization by the network administration is also known as ___________. A. Grey-box testing B. Black-box testing C. White-box testing D. Active testing E. Passive testing

Last Answer : C. White-box testing

Description : A security audit performed on the internal network of an organization by the network administration is also known as ___________. ∙ A. Grey-box testing ∙ B. Black-box testing ∙ C. White-box testing ∙ D. Active testing ∙ E. Passive testing

Last Answer : C. White-box testing

Description : V- model uses -------- test models a) Component testing, integration testing, system testing and acceptance testing b) alpha testing, beta testing , acceptance testing and user testing c) black box testing, white box testing and gray box testing

Last Answer : a

Description : Behavioral testing is a) White box testing b) Black box testing c) Grey box testing d) None of the mentioned

Last Answer : Ans : b

Description : The testing in which code is checked a) Black box testing b) White box testing c) Red box testing d) Green box testing

Last Answer :  Ans :b

Description : Boundary value analysis belong to? a) White Box Testing b) Black Box Testing c) White Box & Black Box Testing d) None of the mentioned

Last Answer : Ans: b

Description : Equivalence partitioning is a .................. method that divides the input domain of a program into classes of data from which test cases can be derived. (A) White-box testing (B) Black-box testing (C) Orthogonal array testing (D) Stress testing

Last Answer : (B) Black-box testing

Description : White box testing, a software testing technique is sometimes called ? Basic path Graph Testing Dataflow Glass box testing

Last Answer : Glass box testing

Description : White box testing, a software testing technique is sometimes called ? Basic path Graph Testing Dataflow Glass box testing

Last Answer : Glass box testing

Description : What Is White Box Testing?

Last Answer : White box testing is done to test the accuracy of logic and code of the program. It is done by programmers who know the logical flow of the system. It can be done by testing the classes or components in isolation. One of the ways of doing it is Unit Testing.

Description : Alpha testing is differentiated from Beta testing by A. The location where the tests are conducted. B. The types of test conducted C. The people doing the testing D. The degree to which white box techniques are used

Last Answer : A. The location where the tests are conducted.

Description : _____ is a white-box testing technique first proposed by Tom McCabe. a) Equivalence Partitioning b) Basis Path Testing c.) Boundary Value Analysis d) None of the above.

Last Answer : Ans : b. 

Description : Acceptance testing is also known as a) Grey box testing b) White box testing c) Alpha Testing d) Beta testing

Last Answer : Ans : d

Description : White Box techniques are also classified as a) Design based testing b) Structural testing c) Error guessing technique d) None of the mentioned

Last Answer : Ans : b

Description : Which of the following is/are White box technique? a) Statement Testing b) Decision Testing c) Condition Coverage d) All of the mentioned

Last Answer : Ans: d

Description : Which one of the following statements is incorrect ? (A) Pareto analysis is a statistical method used for analyzing causes, and is one of the primary tools for quality management. (B) Reliability of ... (D) In white-box testing, the test cases are decided from the specifications or the requirements.

Last Answer : (D) In white-box testing, the test cases are decided from the specifications or the requirements.

Description : Which of the following statement(s) is/are TRUE with regard to software testing? I. Regression testing technique ensures that the software product runs correctly after the changes during maintenance. II. Equivalence partitioning is a ... (1) only I (2) only II (3) both I and II (4) neither I nor II

Last Answer : (1) only I 

Description : ..... is a black box testing method ? Boundary value analysis Basic path testing Code path analysis None of above

Last Answer : Boundary value analysis

Description : Black box testing sometimes called ? Data Flow testing Loop Testing Behavioral Testing Graph Based Testing

Last Answer : Behavioral Testing

Description : Black box testing sometimes called ? Data Flow testing Loop Testing Behavioral Testing Graph Based Testing

Last Answer : Behavioral Testing

Description : What Is Black Box Testing?

Last Answer : Black box testing or functional testing means testing the software for the outputs when specified inputs are provided. It is usually performed to see if the software meets the user's requirements. There's ... . An example of this could be manual testing of the system by a tester, assembly testing.

Description : Which of the following techniques is NOT a black box technique? a) State transition testing b) LCSAJ (Linear Code Sequence and Jump) c) syntax testing d) boundary value analysis

Last Answer : b) LCSAJ (Linear Code Sequence and Jump)

Description : One technique of Black Box testing is Equivalence Partitioning. In a programstatement that accepts only one choice from among 10 possible choices,numbered 1 through 10, the middle partition would be from _____ to _____ a) 4 to 6 b) 0 to 10 c) 1 to 10 d) None of the above

Last Answer : c) 1 to 10

Description : Which of the following is black box testing a) Basic path testing b) Boundary value analysis c) Code path analysis d) None of the mentioned

Last Answer :  Ans : b

Description : Which of the following is non-functional testing? a) Black box testing b) Performance testing c) Unit testing d) None of the mentioned

Last Answer : Ans : b 

Description : Describe the use of decision table in black box testing with the help of suitable example.

Last Answer : I.Decision table testing is black box test design technique to determine the test scenarios for complex business logic. ii. Decision tables provide a systematic way of stating complex business rules, which is useful for ... when conditions are missed, it is easy to see.  Example : 

Description : Explain six function of requirement engineering process.

Last Answer : Requirement Engineering: The broad spectrum of tasks and techniques that lead to an understanding of requirements is called requirements engineering. It starts during the communication activity and ... and track requirements and changes to requirements at any time as the project proceeds.

Description : Explain GANTT chart and its application for project tracking with an example. 

Last Answer : When creating software project schedule, we begin with a set of tasks. If automated tools are used, the work breakdown is input as a task network or task outline. Effort, duration and start date are then ... can also use Gantt charts to get an overview of how things are rolling on the work front. 

Description : Explain waterfall process model. State its advantages and disadvantages.

Last Answer : The waterfall model is a traditional method, sometimes called the classic life cycle. This is one of the initial models. As the figure implies stages are cascaded and shall be developed one ... 6. Not suitable for the projects where requirements are at a moderate to high risk of changing.

Description : With an example, explain Line of Code (LOC) based estimation.

Last Answer : LOC-Based Estimation: As an example of LOC and FP problem-based estimation techniques, let us consider a software package to be developed for a computer-aided design application for mechanical components. A ... guide, a preliminary statement of software scope can be developed: Example:

Description : Draw and explain Level 1 DFD for railway reservation system.

Last Answer : The passenger can initiate either Reservation process or Enquiry process; If a user opts for Reservation process then the system shall proceed with ticket generation process and same needs to ... enquiry module then appropriate request shall be entertain and result to be displayed to the user.

Description : Explain Process framework with a suitable diagram.

Last Answer : A process framework establishes the foundation for a complete software process by identifying a small number of framework activities that are applicable to all software projects; In addition, the ... the customer who evaluates the delivered product and provides feedback based on the evaluation.

Description : Explain four basic principles of software project scheduling.

Last Answer : Basic principles software project scheduling:  Compartmentalization: The project must be compartmentalized into a number of manageable activities and tasks. To accomplish compartmentalization, both the product and ... or part of a work product - Work products are often combined in deliverables 

Description : Explain the notations used for preparing a Data Flow diagram.

Last Answer : Circle: A circle (bubble) shows a process that transforms data inputs into data outputs. Data Flow: A curved line shows the flow of data into or out of a process or data store. Data Store: A ... Sink is an external entity and acts as a source of system inputs or sink of system outputs.

Description : State and explain with examples four categories of software.

Last Answer : Types / Categories of Software  1. System Software  1. System software is a collection of programs written to service other programs. 2. Few examples of system software are compilers, editors, ... database access are only a few of hundreds of applications.  Example: Microsoft word, Excel.

Description : Explain incremental process model using suitable diagram.

Last Answer : 1. Incremental model is also called as iterative enhancement model. 2. In this model the software is built in an incremental fashion. 3. Fig shows the project is divided into ... and it should be noted that the process flow for any increment can incorporate the prototyping paradigm. 

Description : Explain different tasks of regions of spiral model with diagram.

Last Answer : Traditional method or model of software development Also encompasses all the essential development phases: * Requirements analysis * Design * Code * Test * Maintenance  ... appear controllable to the customer, particularly if the customer is more accustomed to the waterfall model.

Description : Compare CMMI and ISO for software w.r.to i)scope ii)Approach Iii) Implementation.

Last Answer : Difference between CMMI and ISO based on SCOPE: CMMI is rigid and extends only to businesses developing software intensive systems. ISO is flexible and applicable to all manufacturing industries. CMMI ... in-house teams, or rely on external auditors to see through the implementation process. 

Description : Describe the Analytical method of project cost estimation with example.

Last Answer : Analytical estimation techniques derive the required results starting with basic assumptions regarding the project. Thus, unlike empirical and heuristic techniques, analytical techniques do have scientific basis. Halstead's ... the program, * N2 be the total number of operands used in the program.

Description : Describe RMMM Strategy.

Last Answer : Risk mitigation, monitoring, and management (RMMM) plan. A risk management strategy can be included in the software project plan or the risk management steps can be organized into a ... associated with implementing them. In essence, the project planner performs a classic cost/benefit analysis.