Software Testing Project

Software Testing Project

Application: GCRShop Online Shopping Web Portal
i) Admin Interface
www.gcrit.com/build3/admin/
ii) User Interface 
www.gcrit.com/build3/

Admin Interface: For Software Application maintenance...
User Interface: For Conducting specific Business Operations
----------------------------------------------- 
Test Level: System Testing
Test Type: Functional Testing
   Functionality Testing, Database Testing....
Note: Database Testing is a subset of Functional Testing, but It is also part of the performance Testing....
Functional & System Testing....   
----------------------------------------------- 
1) Project Information
2) Project Description
3) Stake Holders of the Project
4) Interfaces of the Project/AUT
5) Features to be Tested in Admin Interface
6) Features to be Tested in User Interface
7) Test Requirements, Test Scenarios, and Test Cases...
8) Derive Smoke Test Cases for Admin Interface
9) Derive Smoke Test Cases for User Interface
10) Derive Comprehensive (All Possible) Test Cases for Admin Interface...
11) Derive Comprehensive (All Possible) Test Cases for User Interface...
----------------------------------------------- 
1) Project Information

Domain: ECommerce

Note: Domain means an Area, Software Development/Testing point of view domain means, Project 
Business Area...

Important Domains in the Information Technology Industry...
BFSI.....
ERP
Banking...
Insurance....
Telecom
Healthcare
Ecommerce
Retail Market
Others (Anti Virus, Games, Etc...)
----------------------------------
Sub-Domain: Business to Customer (B2C)
(Ecommerce - B2B, B2C, C2B, C2C)

Application: Online Shopping Web Portal

Application Environment: LAMP (Linux, Apache, MySQL, PHP)

Type of the Application: Public Web Application (Internet Application)
----------------------------------------------- 
2) Project Description

In this Software Application we have 2 Interfaces, 
1) Admin Interface / Server side Interface - Application Maintenance (by Admin users of the Organization...)
2) User Interface / Client side Interface - Conduct Specific Business Operations...
--------------------------
Online Shopping Application....
Type 1: Vendors only develop their own Online Shopping portal to Sell their products
Type-2: Some Third party people develop Online Shopping portal to Sell & Buy products

Our Application also 2nd Type...

Admin Interface: 
In Admin Admin Interface. First Manufacturer Register, Add Category, Add Product, Add Currency...
Edit Manufacturer,  Delete Manufacturer, Edit Category, Delete Category, Edit Product,  Delete Product, 
Edit Currency, Set Default Currency, Delete Currency, Generate Product wise Reports, and Generate 
Customer wise Reports...

Admin User Add Financial Service Provider, Edit Financial Service Provider, Delete Financial Service Provider...
Admin User Add Courier Service Provider, Edit Courier Service Provider, Delete Courier Service Provider....
Admin User Add Distributor, Edit Distributor, Delete Distributor...
Admin User Add Report, Edit Report, Delete Report....
-------------------------
User Interface:
In User Interface, Portal Developer provides Interface between Manufacturers and Customers,
Manufacturers place /show their Product Information ans Sell...,
Customers view Products, Search Products, Register, Login to Application, Buy Products, and Track Orders etc...
----------------------------------------------- 
3) Stake holders of the Project (Production Environment...)

i) Web Portal Developer/s
ii) Manufacturers / s
iii) Financial Service Providers
iv) Distributes of the Manufacturers / s
v) Courier service Providers
vi) Customers (General, and Registered Customers)
----------------------------------------------- 
4) Interfaces of the Project / AUT

This Application has 2 Interfaces,

i) GCRShop Admin Interface - Maintenance of the Application

Master Data: Required Data for Running the Application
(Ex: In Internet Banking Application, Add Bank info, Branches, ATMs, Products, Bank History etc...)

GCRShop Adimin Interface Login Details,

URL: http://gcrit.com/build3/admin
-----------------------
http: Hyper Text Transfer Protocol
www - World Wide Web
gcrit.com - Web Domain / Web Address
build3 - Folder
admin - Sub-Folder
-------------------
http://english.tupaki.com/
tupaki.com - Web Domain
english - Sub Domain

http://telugu.greatandhra.com/
telugu - Sub Domain
------------------------
http://www.gcrit.com/build3/admin/login.php
login.php - Web Page

http://www.gcreddy.com/2016/11/java-interview-questions-and-answers.html
java-interview-questions-and-answers.html - Web Page

Web Domain/Web Page...
Web Domain/Folder/Web Page...
Web Domain/Folder/Sub Folder/Web Page...
Sub Domain/Web Domain/Web Page...

Username: admin
Password: admin@123
----------------------------
ii) GCRShop User Interface - To conduct specific (Online shopping) business operations

> View Product/s, Search Product/s, Advanced Search product/s, Customer/User Registration, Login, 
Choose Product/s, Add to Cart, Buy product/s, Track Order/s Status, Return product/s....

URL: http://www.gcrit.com/build3/
Note: No restrictions, anybody can use this interface, but if you want to buy the product/s
then you need to register (Free) and Login....
----------------------------------------------- 
5) Features to be Tested in Admin Interface

i) Launch the Application
ii) Admin Login to Application
iii) Redirect Operation from Admin to User Interface
iv) Add / Edit / Delete Manufacturer
v) Add / Edit / Delete Category
vi) Add / Edit / Delete Product
vii) Add / Edit / Delete/Set as Default Currency
viii) User & product Reports...
----------------------------------------------- 
6) Features to be Tested in User Interface

i) Launch the Application
ii) View product/s
iii) Search Product/s
iv) Advanced Search Product/s
v) Customer / User Registration
vi) Customer / User Login
vii) Buy product/s (Login , Choose Product/s , Update Quantity, Delete Product/s, Change the Details,
Select Payment Option, Checkout...)
viii) Track Order Status....
----------------------------------------------- 
7) Test Requirements, Test Scenarios, and Test Cases....

Business Requirements (BRS...)
 Software Requirements(SRS...)
  Test Requirements...
   Test Scenarios (Positive and Negative...)
    Test Cases (Positive and Negative Test Cases...)
    Test Data (* Test Data required for some Test Cases only)
---------------------------
Software Requirements / Test Requirements...
 Functional Requirements
 Non Functional Requirements
  Performance Requirements
  Usability Requirements
  Reliability Requirements etc...
-------------------------
Functional Requirement: Admin User Login to GCRShop (http://gcrit.com/build3/admin) Admin Interface

Test Scenarios:
i) Admin Login with valid Username and valid Password (Positive test Scenario)
ii) Admin Login with valid Username and invalid Password (Negative Test Scenario)
iii) Admin Login with invalid Username and valid Password (Negative Test Scenario)
iv) Admin Login with invalid Username and invalid Password (Negative Test Scenario)
v) Admin Login with blank Username and blank Password (Negative Test Scenario)
Etc...
--------------------------------------
Test Case:
1) Test Case ID:TC_Ad_001
2) Test Case Name/Description: Verify Admin Login to the Application (with valid input)
3) Test Suite Id: TS_Ad_01
4) Priority: P0
5) Pre Condition: None
6) Steps to be Executed: 
 i) Launch the Browser
 ii) enter Username
 iii) Enter Password
 iv) Click "Login" Button
7) Test Data : Ref: TestData.xlsx...
8) Post-Condition: Get Index Page of the Application
9) Software & Hardware: Hardware configuration, Windows 7 OS etc...
10) Expected Result: Index Page / "http://www.gcrit.com/build3/admin/index.php"
11) Actual Result: 
12) Test Result: Pass/Fail
13) Comments...
-----------------------
Test Data
Username: admin
Password: admin@123
-----------------------
Note: No Test Data for Some Test cases...
-----------------------------------------
Software Requirement
 Functional Requirement
  Test scenario/s
   Test Case/s & Test Data...
----------------------------------------------- 
Performance Requirement: Admin Login to the Application with 1000 Concurrent Users in 8 Seconds
Usability Requirement: Fields Alignment and Font Sizes in Admin Login Page (Before Login)
Reliability Requirement: Redirect From Admin Interface to User Interface 20 Times...
----------------------------------------------- 
8) Derive Smoke Test Cases for Admin Interface

i) Verify Launch Application (Admin Interface, Includes Launch Browser)
ii) Verify Required Elements availability of Login Page
iii) Verify Admin Login with valid input for Admin Interface of the Application
iv) Verify Required elements availability of Admin index page (after login)
v) Verify Add Manufacturer
vi) Verify Add Category
vii) Verify Add Product
viii) Verify Add Currency
ix) Set default Currency Etc...
----------------------------------------------- 
9) Derive Smoke Test Cases for User Interface

i) Verify Launch the User Interface of the Application with valid URL
ii) Verify Required Elements availability (Constant / Fixed Elements) of User Interface Home Page
iii) Verify Customer Registration to the Application with valid Data.
iv) Verify Customer Login with valid Email Address and password to User Interface
vi) Verify Add Product/s 
vii) Verify Selection of Payment Mode
viii) Verify Checkout Process...
ix) Verify Customer "Track (Order) Status etc...
----------------------------------------------- 
10) Derive Comprehensive (All Possible Test Cases) for Admin Interface

i) Verify Launch Application (Admin Interface, Includes Launch Browser)
ii) Verify Required Elements availability of Login Page
iii) Verify Redirect Functionality before Login tot the Application (From Admin to User Interface) 
iv) Verify Admin Login with valid input for Admin Interface of the Application
v) Verify Redirect Functionality after Login tot the Application (From Admin to User Interface) 
vi) Verify Admin Login with Invalid input for Admin Interface of the Application
vii) Verify Admin Login with 3 sets of Invalid data (Lock the Login Functionality for 5 minutes)
viii) Verify Admin Login to Admin Interface after 5 minutes
ix) Verify Required Elements availability in Admin Index Page
x) Verify Add Manufacturer
xi) Verify Edit Manufacturer
xii) Verify Delete Manufacturer
xiii) Verify Add Category
xiv) Verify Edit Category
xv) Verify Delete Category
xvi) Verify Add Product
xvi) Verify Edit Product
xvii) Verify Delete Product
xviii) Verify Add Currency
xix) Verify Edit Currency
xx) Verify Delete Currency
xxi) Verify Set Default Currency
xxii) Verify Customer Report/s
xxiii) Verify Product Report/s
xxiv) Verify Log Off 
----------------------------------------------- 
11) Derive Comprehensive (All Possible) Test Cases for User Interface

i) Verify Launch the User Interface of the Application with valid URL
ii) Verify Required Elements availability (Constant / Fixed Elements) of User Interface Home Page
iii) Verify products "Search"...
iv)  Verify products "Advanced Search"...
v) Verify "create an account" / Customer Registration with valid input data
vi) Verify "create an account" / Customer Registration with invalid input data
vii) verify "login"/Customer Login valid input data
viii) verify "login"/Customer Login invalid input data
ix) Verify "Shopping Cart" before Select any product
x) Verify "Shopping Cart" after Select any product/s
xi) Verify "Update" in Shopping Cart while add a product
xii) Verify "Update" in Shopping Cart after add a product
xiii) Verify "Remove" the Product from Shopping Cart
xiv) Verify "Checkout" before select any product and before Login
xv) Verify "Checkout" after select any product/s and before Login
xvi) Verify "Checkout" before select any product and after Login
xvii) Verify "Checkout" after select any product/s and after Login
xviii) Verify "Change Address" with another address
xix) Verify availability of all Payment Methods
xx) Verify Select "Payment Method"
xxi) Verify "CheckOut" Process
xxii) Verify "LogOff" Etc...
----------------------------------------------- 
Write Detailed Test Cases for Smoke Tests in Admin Interface

i) Verify Launch Application (Admin Interface, Includes Launch Browser)

1) Test Case ID: TC_Ad_001
2) Test Case Name: Verify Launch Application (Admin Interface, Includes Launch Browser)
3) Test Suite ID: Ad-01
4) Pre-Condition: None
5) Step to be Executed:
 i) Launch the Browser
 ii) Navigate to GCRShop Admin Interface (Home Page) ("http://www.gcrit.com/build3/admin/")
6) Test Data: None
7) Post Condition: GCRShop Admin Home Page
8) Verification Point:
    Capture the Page Title and Compare with Expected
9) Expected Result: GCRShop
10) Actual Result: (*After Execution)
11) Test Result: Pass/Fail (*After Execution)
12) Comments:
----------------------------------------------- 
ii) Verify Required Elements availability of Login Page

1) Test Case ID: TC_Ad_002
2) Test Case Name: Verify Required Elements availability of Login Page
3) Test Suite ID: Ad-01
4) Pre-Condition: Login Page
5) Step to be Executed:
 None...
6) Test Data: None
7) Post Condition: Login Page
8) Verification Point/s:
    Verify the existence of Username, Password Edit boxes and Login Button
9) Expected Result: Availability of Username, Password Edit boxes and Login Button
10) Actual Result: (*After Execution)
11) Test Result: Pass/Fail (*After Execution)
12) Comments:
----------------------------------------------- 
iii) Verify Admin Login with valid input for Admin Interface of the Application

1) Test Case ID: TC_Ad_003
2) Test Case Name: Verify Admin Login with valid input for Admin Interface of the Application
3) Test Suite ID: Ad-01
4) Pre-Condition: Login Page
5) Step to be Executed:
 i) Enter "Username"
 ii) Enter "Password"
 iii) Click "Login" Button
6) Test Data:
 i) Username: admin
 ii) Password: admin@123
7) Post Condition: Admin Index Page
8) Verification Point/s:
    Capture the "Current URL" after Login and Compare with Expected
9) Expected Result:"http://www.gcrit.com/build3/admin/index.php"
10) Actual Result: (*After Execution)
11) Test Result: Pass/Fail (*After Execution)
12) Comments:
----------------------------------------------- 
Manual Test Case: Verify Launch Application 

Test Steps:
1) Test Case ID: TC_Ad_001
2) Test Case Name: Verify Launch Application (Admin Interface, Includes Launch Browser)
3) Test Suite ID: Ad-01
4) Pre-Condition: None
5) Step to be Executed:
 i) Launch the Browser
 ii) Navigate to GCRShop Admin Interface (Home Page) ("http://www.gcrit.com/build3/admin/")
6) Test Data: None
7) Post Condition: GCRShop Admin Home Page
8) Verification Point:
    Capture the Page Title and Compare with Expected
9) Expected Result: GCR Shop
10) Actual Result: (*After Execution)
11) Test Result: Pass/Fail (*After Execution)
12) Comments:
----------------------------------------------- 
Selenium Test Case:

public class LaunchApplication {

public static void main(String[] args) {
//Instantiate the Browser Driver
System.setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.get("http://www.gcrit.com/build3/admin/");

String PageTitle = driver.getTitle();

if (PageTitle.equals("GCR Shop")){
System.out.println("GCR Shop Admin Home Page displayed - Passed"); 
}
else {
System.out.println("GCR Shop Admin Home Page Not displayed - Failed"); 
}
driver.close();
}
}
-------------------------------------------------------------------------

0 comments:

Post a Comment