0% found this document useful (0 votes)
39 views

Assignment Project2

This document provides test cases for automating testing of an ecommerce application. It includes 7 test cases to validate admin login functionality, verify page elements and redirects, and test data-driven login scenarios. Test data will be read from an Excel file and results will update the file. Tests will run in parallel using Chrome and Firefox browsers.

Uploaded by

dao dinh quang
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Assignment Project2

This document provides test cases for automating testing of an ecommerce application. It includes 7 test cases to validate admin login functionality, verify page elements and redirects, and test data-driven login scenarios. Test data will be read from an Excel file and results will update the file. Tests will run in parallel using Chrome and Firefox browsers.

Uploaded by

dao dinh quang
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Automation Testing for Web

T ra in in g As s ig n men ts

Document Code 25e-BM/HR/HDCV/FSOFT

Version 1.1

Effective Date 20/11/2012

Hanoi, 06/2019
Training Assignments Automation Testing for Web Issue/Revision: x/y

RECORD OF CHANGES

No Effective Date Change Description Reason Reviewer Approver

1. 18/01/2019 docs: create template file LamNS3

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 2/6


Training Assignments Automation Testing for Web Issue/Revision: x/y

Contents
Day 11 - Unit 11: Implement Project Assignment.............................................................................4
Exercise 01: .................................................................................................................................4

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 3/6


Training Assignments Automation Testing for Web Issue/Revision: x/y

CODE: AT.S.A0901
TYPE: SHORT
LOC:
DURATION: 70 MINUTES

Day 11 - Unit 11: Implement Project Assignment


Exercise 01:
Create Data Driven Framework in Selenium WebDriver Using Apache POI to verify some general Test
Cases for Ecommerce Application

1. Project Information
Domain: Ecommerce

Sub Domain: B2C (Business to Customer)

Application: Online Shopping

Application Type: Public Web Application (Internet Application)

Development Technologies: LAMP (Linux, Apache, MySQL, PHP)

No Requirement

1 Create test script and Code run without error (50%)

2 Data read from excel file (10%)

3 Design Data Driven Framework (10%)

4 Update test result for-each test case to the Excel file (10%)

5 Must be run parallel with 2 browsers Chrome and Firefox. (20%)

2. Verify the Launch “Admin Interface” of the Application.

Test Steps Test Data: Expected Verification


Point
i. Launch Browser : NA Page Title is: Compare the
https://gcreddy.com/project/admin/login.php “osCommerce captured Page
Online Merchant Title with the
ii. Capture/Return the Page Title
Administration Tool” Expected value.

3. Verify Mandatory Elements availability in Admin interface home page

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 4/6


Training Assignments Automation Testing for Web Issue/Revision: x/y

Test Steps Test Data: Expected Verification Point

i. Launch Browser NA Compare the captured


ii. Capture/Return the Page Title with the
existence status of Expected value.
“create an account”,
“login”, and “Shopping
Cart” links

4. Page Redirect Functionality (From Admin to User Interface) before Login

Test Steps Test Data: Expected Verification


Point

i. Launch Browser NA Expect url:


ii. Navigate to
http://gcreddy.com/project/admin/login.php http://gcreddy.com/project/
iii. Click “Online CataLog” Link
iv. Capture the current URL
v. Close Browser window

5. Verify Admin Login with valid data


Test Steps Test Expected Verification Point
Data:

i. Launch Browser NA Verification point: Expected:


ii. Navigate to Compare the http://gcreddy.com/project/adm
http://gcreddy.com/project/admin/login.p captured URL in/index.php/
hp… with expected
iii. Enter Valid “Username” URL
Availability of “Logoff” Link
iv. Enter Valid “Password”
v. Click “Login” Button
v. Capture the current URL/ return the Actual Result: *After Test
Verify the
displayed status of “Logoff” link existence of
Case Execution
vi. Close the Browser window “Logoff” Link
Test Result: Pass/Fail (*After
Test Case Execution)
Input/Test Data:
Username:
gcreddy
Password: Comments: Optional
Temp@2020

6. Verify admin login with invalid data


Test Steps Test Data: Expected Verification
Point

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 5/6


Training Assignments Automation Testing for Web Issue/Revision: x/y

i. Launch Browser NA Verification point: Input/Test Data:


ii. Navigate to Compare the Username:
http://gcreddy.com/project/admin/login.php… captured “Error abcdef
iii. Enter Invalid “Username” Message” with the Password:
iv. Enter Invalid “Password” expected value. Temp@0000
v. Click “Login” Button
v. Capture the “Error Message” displays on
the screen.
Expected Message:
vi. Close the Browser window
“Error: Invalid
administrator login
attempt.”

7. Verify Admin Login Locking Functionality


Test Steps Test Data: Expected Verification
Point

Business Rule: Admin Login will be locked Ref: input.txt 1st Iteration: Input/Test Data:
for 5 minutes after 3 invalid login attempts. Error: Invalid Username:
administrator abcdef
login attempt Password:
Test Steps: Username – Edit
2nd Iteration: Temp@0000
i. Lunch Browser box- name –
ii. Navigate to Admin Interface home/Login Error: Invalid
username
page administrator
Password – Edit box-
(http://gcreddy.com/project/admin/login.php) login attempt
name – password
iii. Enter Username 3rd Iteration:
iv. Enter Password Login – Button – id –
Error: Invalid
v. Click “Login Button tdb1
administrator
Error Message –
login attempt
Text – className –
Verification Point: 4th Iteration:
messageStackError
Capture the Error message and compare Error: The
with expected for 4 times maximum
number of login
attempts has
been reached.
Username Password Please try again
abcdefg, in 5 minutes.
Temp@2020
gcreddy,
Temp@0000
abcdxyz,
Temp@1111
gcreddy,
Temp@2020

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 6/6

You might also like