Software Testing Exp 1,2
Software Testing Exp 1,2
in)
Program:-
printTestPlan();
// Test Objectives
String[] testObjectives = {
};
// Test Scope
String testScope = "This test plan covers functional testing of the www.amazon.in e-commerce
application.";
// Test Cases
String[] testCases = {
"TC003: Verify user can search for products and view details",
"TC004: Verify user can add items to the cart and remove them",
};
System.out.println("-------------------");
System.out.println("Test Objectives:");
System.out.println("Test Cases:");
OUTPUT:-
-------------------Test Objectives:
- Verify user registration functionality
Test Scope: This test plan covers functional testing of the www.amazon.in e-commerce application.
Test Cases:
- TC003: Verify user can search for products and view details
- TC004: Verify user can add items to the cart and remove them
Program:-
import java.util.Scanner;
scanner.close();
System.out.println("Test Case: User Registration - Failed (One or more fields are empty)");
} else {
if (registrationResult) {
return true;
OUTPUT:-