Software Testing Life Cycle – Test Design – Continuation – Manual Testing

 

Software Testing Life Cycle – Test Design – Continuation – Manual Testing .  Case Study.

 

Case Study:

Online banking is a website developed for a bank. From bank people expectations and requirements, the site is developing in Agile scrum model to develop site as sprint by sprint. Current sprint is sprint1.  This sprint is having four modules Login, Money transfer, Mini statement and Logout. Testers need to prepare test scenarios and cases for (Topics) Functional testing, Usability testing, compatibility testing, hardware configuration testing and performance testing to conduct on those four modules in sprint1.

User Story 1: Login Module

Feature As a I would like to So that Acceptance Criteria
Login Registered A/C holder in bank ->  Launch online banking site

 

-> Enter customer ID, which is 8 digits number.

 

-> Enter password, which is alpha numeric in lower case from 4 – 10 positions long.

 

-> Click sign in button.

Next page will come for valid data and error message will come for invalid data. This login operation must be user friendly. It run in Opera, Mozilla Firefox, Google Chrome, IE and Safari browser in windows XP, Vista, 7, 8, 10, Windows 2003 server, 2008 server and Linux Redhat server.  It run in various type of networks, like Hub, Bus and Ring topology. It will be accessible by thousand users at a time.

 

Prepare test scenarios and cases for Login Module functional testing:

Test Cases Document ID Test Scenario Test Suite ID Priority Test Setup                        Test Procedure

Step no. Step Description Test Cases Expected Output
TCD_OLB_

FT_1

Validate

Customer ID field in home page

TS_Login_1 High Home page is ready to launch  

1
2
 

Launch OLB Site
Fill Customer ID Field
 

None

 

8 digits
7 digits
9 digits
Numerics
Alphabhets
Special characters
Blank field
 

Home page will be opened
Accepted
Rejected
Rejected
Accepted
Rejected
Rejected
Rejected
TCD_OLB_

FT_2

Validate Password field in home page TS_Login_2 High Home page is ready to launch  

1
2
 

Launch OLB Site
Fill Password  Field
 

None

 

 

 

 

 

 

 

4 positions
3 positions
5 positions
10 positions
9 positions
11 positions
9 positions
11 positions
Alpha numeric in lower case
Upper case Alphabhet
Special characters
Blank field
 

Home page will be opened

 

Accepted
Rejected
Accepted
Accepted
Accepted
Rejected
Accepted
Rejected
Accepted
Rejected
Rejected
Rejected
TCD_OLB_

FT_3

Validate sign in button by clicking TS_Login_3 High Home page is ready to launch and have valid customer ID and Password values in hand.  

1
2
3
 

Launch OLB Site
Fill Customer ID and Password

 

 

Click Sign in button
 

None

 

None
All are valid
Anyone is invalid
Anyone is blank
 

Home page will be opened

 

 

Sign in button is enabled
Next page will be opened
Error message will be appeared
Error message will be appeared.

 

 

e) Regular Expressions Usage in Test cases writing:

Regular Expression is a Mathematical notation. Testers can use regular expressions in test cases writing to save time.

[ ] -> one digit / character/ Position

[ 0 – 9] -> one alphabet in lower case

[A -Z] -> one alphabet in upper case

[a – z  A-Z] -> one alphabet

[ a-z  A-Z 0-9] -> one alphanumeric

[A-Z] [a-z] two alphabets with first as upper and second as lower case.

[A-Z] [0-9][a-z] -> three positions with first as upper, second as digit and third as lower.

[A-Z][a-z]{2} -> three positions with first as upper and next two are lower alphabet  [A-z][a-z][a-z].

[A-Z][a-z]{8}[0-9] -> ten positions with first as upper, last as digit and middle all are lower.

[A-Z][a-z][A-Z][a-z] -> ten positions with uppercase in odd positions and lower case in even positions.

[A-Z]{5}[a-z]{5} -> ten positions with first five are upper and next five are lower.

[A-Z][0-9]{5}[a-z][0-9]{3} -> ten positions with first are upper , seventh position as lower and remaining all digits.

Pan card India:

[A-Z]{5}[0-9]{4}[A-Z] -> ten positions with first five positions are upper alphabet, next four are digits, last is upper.

Indian mobile number:

[6-9][0-9]{9} -> ten digits mobile number with first digit as 6/7/8/9 and remaining are any.

[a-z 0-9]{4,10}  -> four to ten positions alphanumeric in lower case.

[A-Z][a-z][0-9]{3,9}  -> four to ten positions alphanumeric but first is upper remaining alphanumeric in lower case.

[A-Z][a-z 0-9]{2,8}[0-9]  -> four to ten positions with first as upper, last as digit and remaining middle are alphanumeric in lower case.

[A-Z][a-z 0-9]{0,6}[0-9]{3} -> four to ten positions with first as upper, last three are digits and remaining are alphanumeric in lower.

[A-Z]{4}[a-z]{0,6}  -> four to ten positions with first four are upper, remaining are lower.

[a-z]{0,6}[A-Z]{4}  -> four to ten positions with last four are upper and remaining are lower.

[0-9]{1,}   and also [0-9]+   -> one digit to infinite number of digits.

[0-9]{0,} and also  [0-9]*  ->No digit to infinite number of digits.

[0-9]{0,1} and also [0-9]?  ->  No digit to one digit.

[A-Z a-z]+  and also [\w]  -> one or more alphabet or one word.

[0-9] and also [\d]  -> one digit

[1-9] and also [^0]  -> one digit, such as 1 to 9.

[A-Z a-z] and also [A-Z]/[a-z]  -> one alphabet either upper or lower.

[\s]  -> one blank space.

 

Note :

While writing regular expressions we can use below symbols to get intended meaning.

[] -> one position

() -> group

{} -> size

0-9 -> digit

a-z -> lower

A-Z -> upper

. -> alphanumeric or _

\. -> .

\w -> word

\d -> digit

\s -> blank space

+ -> one or more

* -> no or more

? -> no or one

| -> or

^ -> not

 

 

In this article we have seen Software Testing Life Cycle – Test Design – Continuation – Manual Testing .  Case Study. for Login Module functional testing. In the next article will see Money Transfer module.

 

 

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *