Software Testing Practical
Software Testing Practical
B.TECH
IN
BY
SHUBHAM LAKHMANI
(ID. No : 20BTCSE020)
3 Take any system (e.g. ATM system) and study its system
specifications and report the various bugs.
(i). do..while (ii) while..do (iii) if…else (iv) switch (v) for
(i) do..while
include <stdio.h>
int main() {
int count = 1;
// do..while loop
do {
count++;
return 0;
(ii) while..do
include <stdio.h>
int main() {
int count = 1;
// while..do loop
return 0;
(iii) if…else
include <stdio.h>
int main() {
// if…else construct
if (number % 2 == 0) {
} else {
return 0;
(iv) switch
include <stdio.h>
int main() {
int day = 3;
switch (day) {
case 1:
printf("Monday\n");
break;
case 2:
printf("Tuesday\n");
break;
case 3:
printf("Wednesday\n");
break;
case 4:
printf("Thursday\n");
break;
case 5:
printf("Friday\n");
break;
case 6:
printf("Saturday\n");
break;
case 7:
printf("Sunday\n");
break;
default:
printf("Invalid day\n");
return 0;
}
(v) for
include <stdio.h>
int main() {
int i;
// for loop
return 0;
}
2. Write the test cases for FACEBOOK, TWITTER etc.
Testing social media platforms like Facebook and Twitter involves a comprehensive approach
covering various functionalities. Below are some general test cases that can be applied to
such platforms. These test cases are divided into categories for better organization:
- Description: Verify that a user can successfully register with valid details.
- Steps:
- Expected Result: User receives a verification email and can complete registration.
- Steps:
- Description: Verify that a user can successfully register with valid details.
- Steps:
1. Go to the Twitter registration page.
- Expected Result: User receives a verification email/SMS and can complete registration.
- Steps:
Profile Management
- Steps:
1. Log in to Facebook.
5. Save changes.
- Description: Verify that a user can upload and change their profile picture.
- Steps:
1. Log in to Facebook.
2. Navigate to the profile page.
- Steps:
1. Log in to Twitter.
5. Save changes.
- Description: Verify that a user can upload and change their profile picture.
- Steps:
1. Log in to Twitter.
1. Log in to Facebook.
2. Go to the homepage.
- Steps:
1. Log in to Facebook.
- Steps:
1. Log in to Facebook.
- Steps:
1. Log in to Twitter.
- Steps:
1. Log in to Twitter.
- Steps:
1. Log in to Twitter.
Notifications
- Description: Verify that a user receives a notification when someone likes their post.
- Steps:
1. Log in to Facebook.
2. Create a post.
- Description: Verify that a user receives a notification when someone likes their tweet.
- Steps:
1. Log in to Twitter.
2. Create a tweet.
Direct Messaging
- Description: Verify that a user can send a direct message to another user.
- Steps:
1. Log in to Facebook.
- Description: Verify that a user can send a direct message to another user.
- Steps:
1. Log in to Twitter.
like Facebook and Twitter. Each test case includes a unique ID, a description, steps to
execute the test, and the expected result. This structured approach ensures comprehensive
System Specifications:
1. User Authentication:
2. Balance Inquiry:
3. Cash Withdrawal:
4. Deposit:
5. Mini Statement:
6. Fund Transfer:
7. Account Services:
Bug Report:
- Steps to Reproduce:
1. Insert card.
- Expected Result: User should be logged in and directed to the main menu.
2. Withdraw cash.
3. Check balance.
- Steps to Reproduce:
2. Go to Account Services.
- Steps:
- Expected Result: User should receive a verification email and complete registration.
- Steps:
- Steps:
1. Log in to Gmail.
- Expected Result: Email should be sent and appear in the Sent folder.
1. Log in to Gmail.
- Steps:
1. Log in to Gmail.
1. Introduction
- 1.1 Purpose: To define the test strategy, objectives, schedule, and resources required to
- 1.2 Scope: Covers functionality, performance, security, and usability testing of LMS.
2. Test Objectives
3. Test Scope
- In Scope: User registration, book search, borrowing/returning books, fine calculation, user
4. Test Strategy
- 4.2 Testing Levels: Unit Testing, Integration Testing, System Testing, User Acceptance
Testing (UAT).
5. Test Environment
- 6.1 Milestones:
7. Resources
- 7.1 Personnel: Test Manager, Test Leads, Testers, Developers, Database Administrators.
- 7.2 Tools: Test management tool, automation tools, performance testing tools.
8. Risk Management
- 8.2 Mitigation: Regular progress reviews, backup test data, maintaining a stable test
environment.
9. Deliverables
- Test Plan, Test Cases, Test Scripts, Test Reports, Defect Reports, Test Summary Report.
10. Approval
WinRunner is an automated functional GUI testing tool that was developed by Mercury
Key Features:
- Record and Playback: Records user actions on the application and plays them back during
test execution.
- Test Script Language (TSL): A C-like scripting language to customize test scripts.
- Data-Driven Testing: Executes the same test with multiple sets of data.
- Integration: Works well with TestDirector (now Quality Center) for test management.
7. Study of Selenium Web Testing Tool
Selenium is an open-source tool for automating web browsers. Here’s a brief study:
Key Features:
- Language Support: Allows writing test scripts in various languages like Java, C, Python,
- Selenium IDE: A Chrome and Firefox plugin for recording and playback of tests.
- Selenium Grid: Allows running tests on different machines and browsers simultaneously.
8. Study of Bugzilla Bug Tracking Tool
Bugzilla is an open-source bug tracking system developed by Mozilla. Here’s a brief study:
Key Features:
- Reports and Charts: Generates detailed bug reports and visual charts.
- Access Control: Provides fine-grained control over who can view and modify bugs.
- Search and Filter: Powerful search and filtering capabilities for bugs.
9. Study of Test Director (now HP ALM/Quality Center)
Key Features:
- Dashboard: Provides real-time data and analytics through reports and graphs.
Key Features:
- Test Plans: Develops test plans and assigns test cases to testers.
- Integration: Integrates with various bug tracking tools like Bugzilla, JIRA, and others.