0% found this document useful (0 votes)
3 views3 pages

BlackBox WhiteBox Testing 20marks

The document discusses two software testing methods: Black Box Testing, which evaluates functionality without knowledge of internal code, and White Box Testing, which examines the internal logic and code. It provides examples of both testing methods in the context of a banking application, outlining their advantages and disadvantages. The conclusion emphasizes the importance of both testing methods for developing reliable banking applications.

Uploaded by

Rafeela Sireen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

BlackBox WhiteBox Testing 20marks

The document discusses two software testing methods: Black Box Testing, which evaluates functionality without knowledge of internal code, and White Box Testing, which examines the internal logic and code. It provides examples of both testing methods in the context of a banking application, outlining their advantages and disadvantages. The conclusion emphasizes the importance of both testing methods for developing reliable banking applications.

Uploaded by

Rafeela Sireen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Black Box Testing and White Box Testing with Banking Application – 20

Marks

Introduction

Software testing is the process of checking whether software works correctly and meets
user requirements.
Testing helps to find errors, improve quality, and ensure the software is reliable.

Testing is mainly divided into:


1. Black Box Testing
2. White Box Testing

1. Black Box Testing

Definition:
Black Box Testing is a testing method in which the tester checks the functionality of the
software without knowing the internal code or program logic.

Features:
• Tests software functionality
• No programming knowledge required
• Focuses on user requirements
• Checks input and output behavior
• Performed mainly by testers

Banking Application Example:


1. Login Testing
- Enter correct username and password
- User should successfully log in

2. Invalid Password
- Enter wrong password
- “Invalid Password” message should appear

3. Money Transfer
- Transfer amount greater than account balance
- Transaction should fail with insufficient balance message

4. ATM Withdrawal
- Withdraw ₹2000 from account
- Amount should be deducted correctly

Advantages:
• Easy to perform
• No coding knowledge needed
• Tests software from user perspective
• Finds missing functions and interface errors

Disadvantages:
• Internal code is not checked
• Difficult to identify exact source of error
• Some hidden paths may remain untested

2. White Box Testing

Definition:
White Box Testing is a testing method in which the tester checks the internal code, logic,
conditions, loops, and program paths of the software.

Features:
• Tests internal program logic
• Requires programming knowledge
• Performed mainly by developers
• Checks conditions, loops, and paths
• Improves code quality and security

Example Code:

if(balance >= withdraw_amount)


allow transaction
else
show insufficient balance

Banking Application Example:


1. Balance Checking
- Verify withdrawal only when balance is sufficient

2. Login Authentication
- Check password validation logic
- Check security conditions

3. Transaction Module
- Test loops used in transaction history
- Test exception handling paths

Advantages:
• Finds logical errors
• Improves security
• Optimizes code performance
• Tests every program path

Disadvantages:
• Requires coding knowledge
• Time consuming
• Difficult for large applications

Difference Between Black Box Testing and White Box Testing

Black Box Testing:


• Tests functionality
• Internal code hidden
• Done by testers

White Box Testing:


• Tests internal code
• Internal code visible
• Done by developers

Conclusion

Black Box Testing checks software functionality from the user side, while White Box Testing
checks the internal code and logic.

Both testing methods are important for developing reliable banking applications.

You might also like