You are on page 1of 15

Reusable Test Cases for Web based Application

Spinner Control
The following test cases can be used for Spinner control in a Web Application.

Positive/Negative
SL. No Test Case Description Step No
Test cases

Positive
Verifying the spinner has a minimum and maximum 1
1
value
Positive
2

Positive
1
2 Verifying that whether it increases in speed over time
Positive
2

Positive
1
3 Verifying the spinner allows a continuous increment.
Positive
2

Positive

Verifying the spinner ignores non-number parts of typed 1


4
text

Positive
2

5 Verifying the spinner has a configurable interval. Positive


1
Verifying the spinner has configurable minimum and
Positive
maximum value. 1
6
Positive
2

Verifying the spinner enforces min and max on blur . Positive


1
7
Positive
2
Positive
1

Positive
2
8 Verifying the spinner can control via Keyboard.
Positive
3

Positive
4

Hyperlink Control
The following test cases can be used for Hyperlink control in a Web Application.

Positive/Negative
SL. No Test Case Description Step No
Test cases

Positive
1
1 Verifying whether URL getting in status bar.
Positive
2

2 Multiple Clicks on the Hyperlinks Positive


1

Positive
1

Positive
2

Positive
3

Positive
4
3 Right click on the hyperlink
Positive
5

Positive
6

Positive
7

Positive
8

Positive
1
4 Verifying the Hyperlink can control via Keyboard.
Positive
2
Attach Files
The following test cases can be used for Attach files in a Web Application.
Here user should able attach all/any format of files in the application.

Positive/Negative
SL. No Test Case Description Step No
Test cases

Positive
1

Positive
2
1 Verifying for Attach the file on Single Mouse Click.
Positive
3

Positive
4

Positive
1

2 Verifying for Attach the file on Double Mouse Click. Positive


2

Positive
3

Positive
Verifying for Cancel the attach operation before selecting 1
3
a file.
Positive
2

Positive
1

Positive
Verifying for Cancel the attach operation after selecting a 2
4
file using single mouse click.
Positive
3

Positive
4

Upload Files
The following test cases can be used for Upload files in a Web Application.
Here the user should able to upload particular, supported format to the application.
Positive/Negative
SL. No Test Case Description Step No
Test cases

Positive
1

Positive
2
1 Verifying for Upload the valid file on Single Mouse Click.
Positive
3

Positive
4

Negative
1

Negative
Verifying for Upload the invalid file on Single Mouse 2
2
Click.
Negative
3

Negative
4

Positive
1
Verifying for Upload the valid file on Double Mouse
3 Positive
Click. 2

Positive
3

Negative
1
Verifying for Upload the invalid file on Double Mouse
4 Negative
Click. 2

Negative
3

Positive
Verifying for Cancel the upload operation before 1
5
selecting a file.
Positive
2

Positive
1

Positive
Verifying for Cancel the upload operation after selecting 2
6
a file using single mouse click.
Positive
3

Positive
4
Delete Confirmation Dialog
The following test cases can be used for Delete Confirmation Dialog in a Web
Application.

The Delete confirmation window is common for all delete operation in web application.

Positive/Negative
SL. No Test Case Description Step No
Test cases

Verifying whether delete operation pop up a confirmation


1 Positive
window. 1

Positive
1
2 Verifying whether delete operation can be done.
Positive
2

Positive
1
2 Verifying whether delete operation can be cancelled.
Positive
2
Step Description Input Data Expected Result

User should reach a maximum value in


Click "up' arrow in the spinner. certain point of time.
User should reach a minimum value in
Click 'Down' arrow in the spinner. certain point of time.
User should able to see the value get
Click 'Up' arrow and hold it for over time. changed very fast.
User should able to see the value get
Click 'Down' arrow and hold it for over time. changed very fast.
User should able to increment the values in
Click 'Up' arrow for many times a continuous manner.
User should able to decrement the values
Click 'Down' arrow for many times in a continuous manner.

User should not able to enter text in a


decimal or integer spinner. It should reach
Enter "text' values in a Decimal or Integer the minimum values when we wrongly
spinner entered.

User should not able to enter "Decimal or


integer' values in a Text/array spinner. It
Enter "Decimal or integer' values in a Text/array should show the existing value in the
spinner array/text spinner.
User should have a configurable intervals
Configure the intervals based on the needs. only. It differ from spinner to spinner.
User should have a configurable Max value
Configure the Maximum based on the needs. only. It differ from spinner to spinner.
User should have a configurable Min Value
Configure the Minimum based on the needs. only. It differ from spinner to spinner.

Click "up' arrow in the spinner. User should see the Max value in Blur.

Click 'Down' arrow in the spinner. User should see the Min value in Blur.
Reach the spinner control's 'Up' arrow by press User should able to reach the spinner
the TAB key. control 'up' arrow

Press SPACEBAR key to increment the value User should able to increase the value
Reach the spinner control's 'Down' arrow by User should able to reach the spinner
press the TAB key. control 'Down' arrow

Press SPACEBAR key to decrement the value User should able to decrease the value

Step Description Input Data Expected Result

User should able to mouse over on


Mouse over the hyperlink Text/Image Hyperlinks.
User should get the URL for the particular
Observe the status bar. hyperlink Text/Image in status bar.
User should not get any improper behavior
Click Multiple click on hyperlink Text/Images. user should navigate to the URL.
User should get a window having many
Right click on the hyperlink options
user should able to navigate to the URL in
Click Open same window
User should able to navigate to the URL in
Click Open in New Tab same window but different Tab
User should able to navigate to the URL in
click Open in New Window a New window
User able to save the web page in local
Click on Save target as system
User should able to go for a Print option for
Click on Print target as the particular page.
User should able view property of the
Click Properties page.
User should able store the URL in
Click Add to Favorites Favorites page.
Reach the Hyperlink control by press the TAB User should able to reach the hyperlink
key. control.
User should able to navigate to the
Press Enter key hyperlink's URL.
Step Description Input Data Expected Result

User should able to get a attach file


Click on the 'Attach' file icon window.
User should able to select a file by
Select any file which you want to attach. navigate to the attach file window.
User also should get the attach button
Single mouse Click on the file enables
User should able to attach the particular file
Click on Attach button in the application.
User should able to get a attach file
Click on the 'Attach' file icon window.
User should able to select a file by
Select any file which you want to attach. navigate to the attach file window.
User should able to attach the particular file
Double mouse click on the file. in the application.
User should able to get a attach file
Click on the 'Attach' file icon window.
User should cancel the attach operation
Click on 'Cancel' button in the window. without adding a file.
User should able to get a attach file
Click on the 'Attach' file icon window.
User should able to select a file by
Select any file which you want to attach. navigate to the attach file window.
User also should get the attach button
Single mouse Click on the file enables
User should cancel the attach operation
Click on 'Cancel' button in the window. without adding a file.
Step Description Input Data Expected Result

User should able to get a Upload file


Click on the 'Upload' file icon window.
User should able to select a file by
Select a file which you want to Upload. navigate to the Upload file window.
User also should get the open/upload
Single mouse Click on the file button enables
User should able to upload the particular
Click on open button file in the application.
User should able to get a Upload file
Click on the 'Upload' file icon window.
User should able to select a file by
Select a file which you want to Upload. navigate to the Upload file window.
User also should get the open/upload
Single mouse Click on the file button enables

Click on open button User should get a error as invalid file type.
User should able to get a Upload file
Click on the 'Upload' file icon window.
User should able to select a file by
Select a file which you want to Upload. navigate to the Upload file window.
User should able to upload the particular
Double mouse click on the file. file to the application.
User should able to get a Upload file
Click on the 'Upload' file icon window.
User should able to select a file by
Select a file which you want to Upload. navigate to the Upload file window.

Double mouse click on the file. User should get a error as invalid file type.
User should able to get a Upload file
Click on the 'Upload' file icon window.
User should cancel the upload operation
Click on 'Cancel' button in the window. without uploading any file.
User should able to get a Upload file
Click on the 'Upload' file icon window.
User should able to select a file by
Select any file which you want to attach. navigate to the upload file window.
User also should get the open/upload
Single mouse Click on the file button enables
User should cancel the upload operation
Click on 'Cancel' button in the window. without uploading any file.
Step Description Input Data Expected Result

User should able to get a delete


Click 'Delete' the application confirmation window.
User should able to get a delete
Click 'Delete' the application confirmation window.
A delete operation has been successfully
Click 'Ok' in the confirmation window. done.
User should able to get a delete
Click 'Delete' the application confirmation window.
The delete confirmation window get close
Click 'cancel' in the confirmation window. without performing any delete operation.
Actual Result STATUS
Actual Result STATUS
Actual Result STATUS
Actual Result STATUS
Actual Result STATUS

You might also like