0% found this document useful (0 votes)
10 views12 pages

E-Commerce & Banking Test Plans

The document outlines test plans for both an e-commerce and a banking web/mobile application, detailing the scope, objectives, methodologies, and deliverables for testing. Each test plan specifies in-scope features, roles and responsibilities, and the testing environment, with a focus on ensuring major functions operate correctly. Additionally, it includes algorithms and code examples for testing client-server applications and performance testing using Selenium and TestNG.
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)
10 views12 pages

E-Commerce & Banking Test Plans

The document outlines test plans for both an e-commerce and a banking web/mobile application, detailing the scope, objectives, methodologies, and deliverables for testing. Each test plan specifies in-scope features, roles and responsibilities, and the testing environment, with a focus on ensuring major functions operate correctly. Additionally, it includes algorithms and code examples for testing client-server applications and performance testing using Selenium and TestNG.
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

🛒 Exp. No.

1: TEST PLAN FOR E-COMMERCE WEB / MOBILE APPLICATION

Date: ___________

AIM:

To develop a test plan for testing an e-commerce web and mobile application.

1. INTRODUCTION:

This test plan covers the scope, objectives, and methods for testing the
[Link] website.
It defines what features to test, who performs testing, and what tools are
required.

Scope

In Scope:
Modules and features to be tested:

Module Role Description


Login User, Admin User login and logout
Product Search User Search items by name or category
Add to Cart User Add and update cart items
Payment User Pay using online gateway
Order Tracking User Check order status

Out of Scope:

 Third-party systems
 Performance testing
 Security testing

Quality Objective:

To check that all major functions like login, search, cart, and payment work
properly.
Roles and Responsibilities

Role Task
Test Manager Plan and supervise testing
Tester Execute and log test results
Developer in Test Create automation scripts
Test Admin Maintain test setup
SQA Team Ensure standards are met

2. TEST METHODOLOGY

Test Levels:

 Integration Testing
 System Testing
 API Testing

Test Completion:

 100% test case execution


 80% pass rate minimum

Estimation:

Task Hours
Test Specification 170
Execution 80
Report 10
Delivery 20
Total 280 hrs

3. TEST DELIVERABLES

 Test plan and test cases


 Test data and logs
 Defect reports
 Final test report
4. RESOURCES & ENVIRONMENT

Resource Description
Server Apache/MySQL
Tool Selenium / Manual
Network 5 Mbps LAN
Computer Windows 10+, 4GB RAM

RESULT:

Test plan for the e-commerce web and mobile application was created
successfully.

🧩 Exp. No. 2: TEST PLAN FOR BANKING WEB / MOBILE APPLICATION

Date: ___________

AIM:

To develop a test plan for testing a banking web and mobile application.

1. INTRODUCTION:

This test plan defines the scope, approach, and schedule for testing the Jeppiaar
Bank application.
It includes what to test, how to test, who will test, and required resources.

Scope

In Scope:
Modules and features to be tested:

Module Role Description


Balance Enquiry Manager, Customer View account balance
Fund Transfer Manager, Customer Transfer funds between
Module Role Description
accounts
Mini Statement Manager, Customer View last 5 transactions
Deposit cash to any
Deposit Manager
account
Withdraw cash from any
Withdrawal Manager
account

Out of Scope:

 UI design
 Hardware and database interfaces
 Website security and performance

Quality Objective:

To verify that all banking functions like login, deposit, withdrawal, and fund
transfer work correctly.

Roles and Responsibilities

Role Task
Test Manager Manage and plan testing
Tester Run test cases and report bugs
Developer in Test Prepare test scripts
Test Admin Maintain test environment
SQA Team Ensure quality standards

2. TEST METHODOLOGY

Test Levels:

 Integration Testing
 System Testing
 API Testing

Test Completion:
 All test cases must run (100%)
 At least 80% must pass

Estimation:

Task Hours
Test Specification 170
Execution 80
Report 10
Delivery 20
Total 280 hrs

3. TEST DELIVERABLES

 Test plan and test cases


 Test data and logs
 Defect reports
 Final test report

4. RESOURCES & ENVIRONMENT

Resource Description
Server Apache/MySQL
Tool Selenium / Manual
Network 5 Mbps LAN
Computer Windows 10+, 2GB RAM

RESULT:

Test plan for the banking web and mobile application was created successfully.

3. Test the e-commerce application and report the defects in it.

AIM
To Design Front-end for any web application and derive the test cases as
applicable. Validate the UI elements using JavaScript.
PROGRAM

1. HTML
<html>
<head>
<title>Javascript Login Form Validation</title>
<link rel="stylesheet" href="[Link]"/>
<script src="[Link]"></script>
</head>
<body>
<div class="container">
<div class="main">
<h2>Javascript Login Form Validation</h2>
<form id="form_id" method="post" name="myform">
<label>User Name :</label>
<input type="text" name="username" id="username"/>
<label>Password :</label>
<input type="password" name="password" id="password"/>
<input type="button" value="Login" id="submit" onclick="validate()"/>
</form>
<span><b class="note">Note : </b>
<br/><b class="valid">User Name : Form<br/>Password : 123</b></span></div>
</div>
</body>
</html

2. [Link]:

<script>
let tries = 3;
function validate() {
let u = [Link], p = [Link];

if (u === "Form" && p === "123") {


alert("Login success!");
location = "[Link]";
}
else {
tries--;
alert("Wrong login! " + tries + " tries left.");
if (tries === 0) {
[Link] = [Link] = [Link] = true;
alert("Login blocked!");
}
}
}

[Link]
<html>
<head>
<title>Javascript Login Form Validation</title>
</head><body>
<h2>Successful Login!</h2>
</body>
</html>

4. Execute the test cases against a client server or desktop application and
identify the defects.

AIM:
To execute the test cases against a client server or desktop application and
identify the defects.

ALGORITHM :

STEP 1: Start the Procedure.


STEP 2: First prepare the test cases for checking the client server program .
STEP 3: Configure the test environment with client and server settings.
STEP 4: Execute the test cases for the client and the server program .
STEP 5: Report the defects that occur during the testing process .
STEP 6: Retest affected areas after defect fixes. Ensure no new
defects are introduced.
STEP 7: Review the test results and the defects status .
STEP 8: Maintain the documentation of the test cases , test results and the
defects

PROGRAM :

SERVER SIDE :

import [Link].*;
import [Link].*;

public class Server {


public static void main(String[] args) throws IOException {
ServerSocket server = new ServerSocket(12345);
[Link]("Server waiting for client...");

Socket socket = [Link]();


[Link]("Client connected!");

BufferedReader in = new BufferedReader(new


InputStreamReader([Link]()));
PrintWriter out = new PrintWriter([Link](), true);

String msg = [Link]();


[Link]("Client says: " + msg);
[Link]("Received: " + msg);

[Link]();
[Link]();
}
}

CLIENT SIDE :
import [Link].*;
import [Link].*;

public class Client {


public static void main(String[] args) throws IOException {
Socket socket = new Socket("localhost", 12345);

BufferedReader in = new BufferedReader(new


InputStreamReader([Link]()));
PrintWriter out = new PrintWriter([Link](), true);

[Link]("Hello, Server!");
[Link]("Server: " + [Link]());

[Link]();
}
}

OUTPUT :

Server is running and waiting for a


connection... Connection established with a
client .
Received from client: Hello, Server!
Server response: Hello, Client!

DEFECTS :

• First defect that occur is the connection issues between the


client and the server .
• Some authentication and authorization issues occur .
• Data transferred between the client and server may become
corrupted during transmission
• When multiple clients access and modify the same data
simultaneously, conflicts can arise.
• Some security issues like SQL injection and Cross Site Scripting may occur .
• Differences in client and server versions can result in incompatibility issues.
• The application might not release resources properly, leading to
resource exhaustion.

RESULT :
Thus the execution of the test cases against a client server or desktop
application is successfully
executed.

5. Test the performance of the e-commerce application.


AIM:
To integrate the TestNG with the test automation

ALGORITHM:

STEP 1: Start .
STEP 2: Import Selenium web driver and TestNG libraries for test automation.
STEP 3: Create a class for the test. Declare a private variable to control
the web browser.
STEP 4: Implement the „@before test‟ method „setup()‟.
STEP 5: Create „@test‟ method to automate the address entry process.
STEP 6: Introduce a wait to pause the script for 5 seconds to allow the
address addition to complete.
STEP 7: Use the „driver‟ to navigate to verification.
STEP 8: Introduce another 5 second pause to ensure the page loads.
STEP 9: Print”Successfully performed the operation of adding address” to
the console.
STEP 10: Implement the „@aftertest‟ method „teardown()‟.
STEP 11: Save and execute the test script using a TestNG configuration file

.PROGRAM:

import [Link];
import [Link];
import [Link];

public class AmazonAddressTest {


public static void main(String[] args) {
WebDriver driver = new ChromeDriver();
[Link]("[Link]

[Link]([Link]("ap_email")).sendKeys("email@[Link]");
[Link]([Link]("continue")).click();
[Link]([Link]("ap_password")).sendKeys("password");
[Link]([Link]("signInSubmit")).click();

[Link]([Link]("address-ui-widgets-
enterAddressFullName")).sendKeys("Your Name");
[Link]([Link]("address-ui-widgets-
enterAddressPhoneNumber")).sendKeys("9876543210");
[Link]([Link]("address-ui-widgets-
enterAddressPostalCode")).sendKeys("625016");
[Link]([Link]("address-ui-widgets-
enterAddressCity")).sendKeys("Madurai");
[Link]([Link]("address-ui-widgets-
enterAddressLine1")).sendKeys("123 Street");
[Link]([Link]("address-ui-widgets-
enterAddressLine2")).sendKeys("Area Landmark");

[Link]([Link]("input.a-button-input")).click();
[Link]();
}
}
Result:

You might also like