You are on page 1of 10

FC5463 – Software Testing

Practical No. 3

Aim: Design test cases for E-commerce (Flipkart, Amazon) login form.
Theory:
• Practical Significance
E-Commerce applications are no less than any boon to a person who is in fond
of shopping, E-Commerce application is narrow down gap between the seller
and buyer. This facilitate buyer to buy required commodity as per their
requirements and also as per their time. Some applications also provide facility
of flash sales to attract users, Considering the threat of various online activities
it is pretty much essential to validate such E-Commerce application. In this
practical a trainee will understand operations of login procedure for E-
Commerce and design Test Case to validate its functionality.

• Background
In modem era most of the people are familiar of various E-Commerce. This
technology has given exclusive rise in trade which benefited all people
associated with Commerce or trade. E-Commerce deals with almost all
commodities that a user requires in its life spat. Having said that it is very much
essential to get acquainted with such application(s) and validate its operation.
The first and foremost step to use such application(s) is to get registered and get
logged-in on these applications. As a test engineer one needs to be very clinical
with testing to avoid unauthorized access to an application developed for the
cause. Common way to achieve this is to validate user's authentication at entry
point only i.e, uat login instance. The login module will segregate between users
and allow only authorized user to proceed for further activity.

• Procedure:

1) Select appropriate tool to generate test case (Like any text editor/web
based tool)

Practical No. 3
FC5463 – Software Testing

2) Identify required E-Commerce system which is to be tested.


3) Identify required parameters such as test data, expected data etc.
4) Prepare and generate test case.
5) Verify test cases as per the specification by executing test data on any E -
Commerce application(s).

• Amazon Login Scenario

When you already login to the Amazon and revisit the website. It will show you
special box that shows you are already identified. And it requires you to enter
password to next page. And for that flow, it only shows sign in box as shown
below.

If the user has not logged in before then it shows you username and the
password through the flow. It takes username at first and then password is
added on the next part.

Practical No. 3
FC5463 – Software Testing

• Flipkart Login Scenario

When you already login to the Amazon and revisit the website. It will show you
special box that shows you are already identified. And it requires you to enter
password to next page. And for that flow, it only shows sign in box as shown
below.

Practical No. 3
FC5463 – Software Testing

If the user has not logged in before then it shows you username and the
password through the flow. It takes username at first and then password is
added on the next part.

• Relevant Program Outcomes (POS)

Practical No. 3
FC5463 – Software Testing

1) Basic knowledge: Apply knowledge of basic mathematics, sciences and


basic engineering to solve the broad-based computer engineering
problem.

2) Discipline knowledge: Apply computer engineering discipline - specific


knowledge to solve core computer engineering related problems.

3) Experiments and practice: Plan to perform experiments and practices to


use the results to solve broad-based computer engineering problems.

4) Engineering tools: Apply relevant computer technologies and tools with


an understanding of the limitations

5) Ethics: Apply ethical principles for commitment to professional ethics,


responsibilities and norms of the practice also in the field of Computer
engineering.

6) Communication: Communicate effectively in oral and written form.

7) Life-long learning: Engage in independent and life-long learning


activities in the context of technological changes in the computer
engineering field and allied industry.

• Resources Required

Sr. Name of
Specifications Quantity
No. Resource
Computer (i3 – i5 preferable),
Hardware : RAM minimum 2 GB and
1 1
Computer System onwards, HDD free space IGB or
more.
Windows 7 or latest / LINUX
2 Operating System Any one
version 5.0 or else.

Practical No. 3
FC5463 – Software Testing

3 Software Flipkart, Amazon 1

• Amazon Login Screen Page Positive Test Cases

Expected Actual
Test case objectives Steps Status
output output
1) Go to the official
website of amazon.
Enter Valid email User will be User is
https://www.amazon.in/
and valid password redirected to redirected to Pass
2) Enter correct email
then click next. the website. the website.
and correct password
then click login button.
Click on the “Forgot
If in case you don’t A page will A page
Password” link and
remember your password appear to appears to
find out the forgot Pass
just click on forget reset your reset your
password page is
password button. password. password.
opening or not.
Click on Create a If you are new to
A page will A page
new account button Amazon click on create
appear to appears to
and verify if it takes new account button Pass
create a new create a new
to the new account present on the sign-in
account. account.
page or not. page.
1) After filling the details
on the sign-in page, it
will ask “Keep me signed
Select “Keep me The page
in”. The page
signed in” option to will
2) Tick this option. remembers Pass
retain the login remember
3) After ticking this your details.
session. your details.
button it will remember
your details next time
you login.

• Amazon Login Screen Page Negative Test Cases

Test case objectives Steps Expected Actual Status

Practical No. 3
FC5463 – Software Testing

output output
1) Go to the official
website of amazon.
Your Your
Enter an invalid https://www.amazon.in/
username or username or
username and valid 2) Enter incorrect Pass
password is password is
password. username and correct
invalid. invalid.
password then click login
button.
Enter correct username Your Your
Enter a valid
and incorrect password username or username or
username and Pass
and then click login password is password is
invalid password.
button. invalid. invalid.
Enter an invalid We could We cannot
Enter incorrect username
username and not find an find an Pass
and incorrect password.
password. account. account.
Keep one field
Enter your
blank, either Keep the email field
Please enter email or
username or blank, enter the password Pass
your email. mobile
password, and check and click on login.
number.
login.
• Flipkart Login Screen Page Positive Test Cases

Expected Actual
Test case objectives Steps Status
output output
1) Go to the official
website of flipkart.
Enter Valid email User will be User is
https://www.flipkart.com/
and valid password redirected to redirected to Pass
2) Enter correct email
then click next. the website. the website.
and correct password
then click login button.
Click on the “Forgot
If in case you don’t A page will A page
Password” link and
remember your password appear to appears to
find out the forgot Pass
just click on forget reset your reset your
password page is
password button. password. password.
opening or not.

Practical No. 3
FC5463 – Software Testing

Click on Create a If you are new to


A page will A page
new account button Flipkart click on create
appear to appears to
and verify if it takes new account button Pass
create a new create a new
to the new account present on the sign-in
account. account.
page or not. page.
1) After filling the details
on the sign-in page, it
will ask whether to
Select “Keep me remember the password The page
The page
signed in” option to or not . will
remembers Pass
retain the login 2) Click on save button. remember
your details.
session. 3) After clicking this your details.
button it will remember
your details next time
you login.

• Flipkart Login Screen Page Negative Test Cases

Expected Actual
Test case objectives Steps Status
output output
1) Go to the official
website of flipkart. You are not You are not
Enter an invalid https://www.flipkart.com/ registered registered
username and valid 2) Enter incorrect with us. with us. Pass
password. username and correct Please sign Please sign
password then click login up. up.
button.
Enter correct username Your Your
Enter a valid
and incorrect password username or username or
username and Pass
and then click login password is password is
invalid password.
button. invalid. invalid.
You are not You are not
Enter an invalid registered registered
Enter incorrect username
username and with us. with us. Pass
and incorrect password.
password. Please sign Please sign
up. up.

Practical No. 3
FC5463 – Software Testing

Keep one field


Please enter Please enter
blank, either Keep the username field
valid email valid email
username or blank, enter the password Pass
or phone or phone
password, and check and click on login.
number. number.
login.

Exercises:
1. What are the security threats for E-Commerce System?
The most predominant cybersecurity threats include phishing attacks, credit
card fraud, DDoS Attacks, unprotected online services, etc. The user data such
as login credentials, credit card numbers, etc. are some sensitive information
that is protected by a customer.

2. List different authentication protocols that can be used in providing


security for E Commerce System
a) PAP - Password Authentication Protocol.
b) CHAP - Challenge-handshake authentication protocol.
c) EAP - Extensible Authentication Protocol.
d) AAA – Architecture Protocol(Authentication, Authorization, Acconting)

3. Describe various encryption techniques that can be used to provide


storing login credentials.
• Triple DES
Triple DES was designed to replace the original Data Encryption Standard
(DES) algorithm, which hackers eventually learned to defeat with relative
ease. At one time, Triple DES was the recommended standard and the most
widely used symmetric algorithm in the industry.

• RSA
RSA is a public-key encryption algorithm and the standard for encrypting
data sent over the internet. It also happens to be one of the methods used in
our PGP and GPG programs.

Practical No. 3
FC5463 – Software Testing

• Blowfish
Blowfish is yet another algorithm designed to replace DES. This symmetric
cipher splits messages into blocks of 64 bits and encrypts them individually.
• Twofish
Computer security expert Bruce Schneier is the mastermind behind Blowfish
and its successor Twofish. Keys used in this algorithm may be up to 256 bits
in length and as a symmetric technique, only one key is needed.

• AES
The Advanced Encryption Standard (AES) is the algorithm trusted as the
standard by the U.S. Government and numerous organizations.

Conclusion: Thus, we design test cases for E-commerce (Flipkart, Amazon)


login form.

Practical No. 3

You might also like