Showing posts with label Sample Test Cases. Show all posts
Showing posts with label Sample Test Cases. Show all posts

Sample Test Cases

Example 3

Prepare test cases for testing the font dialogue form of Microsoft Word.
First of All, I will prepare a simple table that consist of TestCaseID, Input, Expected Output, Types of Testing, Pri Environment
columns for tracking my test cases.

Then, considering that this application or dialogue box is for human, not animals or aliens, I will perform the testings.
I would like to test if it is ok to go with test cases just like the testers perform smoke test or BVT test.
There are two choices or menus, Font and character Spacing, So if we click these two, will it open separate windows having same or different features.
This can be considered as the BVT test. Also if we choose Font from menu and/or shortcut key ctrl+D, will it open the form?

Functionality Test:

If we give a normal string input and just select one feature in Font, Then will it work when we click the ok and cancel button.
Also, There is the preview section, will the preview section display changes on the screen.

If we follow the individual test for other features in font, then Will it work fine?
If we click the default button, then will it work? Will it reset to default values?
What will happen, if I try to select two choices like two Font names or both bold and italic feature in Font Styles, will it work?
What will happen, if i select image instead of text and change the font features? will it work?

After performing the individual testing, I will perform integration testing.
If I apply changes in both font name and font style? Will it work?
If I apply changes in both font name and font size? will it work?
If I apply changes in both font style and font size? will it work?
The underline color option is visible only after selecting the underline style. Is this working?
What if i give a pre-underlined text? will the underline style be visible or working?
What will happen, if i go on increasing the changes? Will it also work if i also choose font color, effects?

After performing the integration testing, I will perform the system testing for font menu?
will it work if i choose only some features or all features?

Usability Test:
Is the application suitable and comfortable to use?
How friendly and attractive outlooks it have?
Do user have to wait for accessing the features or to see the preview of the applied changes?
Are all the features in the application placed in the right order so that it is easy to use? Can we use without mouse? just using keyboard? Is the tab positions accurate?
Forexample, placing the keys in keyboard in right order is very important and meet the international standard.

Boundary value condition and equivalence partitioning:
Type the size of text in the text box and see if it work? Type wrong font name and font style, will it work? What if i try to exceed the maximum limitation?
We can perform automation testing for testing? For eg: there may be 1000 font names, 10000 of colors. To perform the integration testing it is impossible
as it will take very long time. In addition we can also use strategies like Boundary Value condition or equivalence partitioning during testing.
what will happen if i try to resize the form, will it be allowed?

Requirements Testing:
Does the application include all requirements or features mentioned in the specification?
Is there any unnecessary features present?

Performance Testing:
How fast the response is generated after applying changes?
How fast the preview screen displays the sample changes on the screen after applying changes?
Is there any memory leaks or bottle necks present that degrades the performance?
Is there any un-necessary codes that can be optimize for increasing the performance?

Stress Test:
What will happen and what will be the performance when we use it continuously. Will it work as previous?
If we reduce the resources like processor speed, memory, will it work?

Load Test:
If we select texts of size terabytes, will it work?
If we select nothing or just a single character or symbol, will it work?
If we select images, videos or different formats than text format, will it work? What if I try to give infected text will it work?
If I give picture text will it work?

Security Test:
Does it contains any Information leakage like error message with sesitive information?
If error data is supplied and the system fails, will it recover or handle error input data?
If authentication and authorization is required, then does it provide such features?
What about the verification and validation? What about audition and logging? Does the application handle these things?
If encryption is required, then does it provide such security features?

Localization and Globalization Test:
Is this application or the features of application easily understood by people from different country, religion, culture?
Does the application provide necessary clues or hints or instruction for carrying out its operations? or Does it have help menu?

Compatibility Test:
Will it work in different hardware, Software or OS environment?
Does it need special changes in configuration for working in different environments?

Sample Test Cases

Example 2
Singly Linked List (deleting the Nth node from the last)

1. What will happen if I pass a linked list with no nodes? empty list? and any Nth value.
2. What will happen if I pass a linked list with only one node or two nodes? and any Nth value.
3. What will happen if I pass a linked list such that the Nth node value is larger than the total number of nodes in list?
4. What will happen if I pass a linked list with a normal condition? and normal Nth value.
5. What will happen if I pass a linked list with huge number of Nodes but Nth node as the last Node?
6. What will happen if I pass a linked list with huge number of Nodes but Nth node as the first Node?

7. What will happen if I pass a just a partial linked list? and and any Nth node value?
8. What will happen if I pass a cyclic linked list? and any Nth node value?
9. What will happen if I pass a linked list but Nth node as doubly linked list node?
10. What will happen if I pass a linked list but Nth node as different data sturcture or different data types? Like string instead of node?
11. What will happen if I pass a improper linked list? linked list with missing data in some nodes?
12. What will happen if I pass a linked list having all nodes populated with same data or value?
13. Can we reuse the code or application easily? Does it support extension? What about modification?
14. Is the application or code easily understood? Proper Documentation? Is it user/layman friendly?
15. Is the performance poor? Are there any bottle necks or memory leaks or code redundancy?
16. Do user have to wait long time to see the output?
17. What will happen if I run the application continuously for long time?
18. Is there any information leakage like displaying sensitive information during error handling?
19. Does the application stores information about auditing or logging or others? Who performed what and when?
20. What will happen if I run the application in different environments, with increment or decrement in resources?

Sample Test Cases

I prepared these test cases in one attempt and so it may not be precise and accurate. Further, its my idea and so is definitely limited. However I think these samples are worthy enough to go through at least once.

Example 1
List 15 test cases for fileread.exe that takes in the full path to a file and displays contents of the file on the console?
First of all, I would like to test if it is ok to go with test cases just like the testers perform smoke test or BVT test. After that I would choose the pri-environment for which the program is made and continue with following test cases.
• Functionality
- If I provide a normal path and a normal file, will it work?
- Will it work again, if I give wrong path.

• Boundary Test
- What will happen, if I give very huge file, containing tera-byes of data.
- What will happen, if I give just an empty file or file containing just a blank space.
- What will happen, if I give very long file path.

• Requirement Test
- If I give the file containing ascii-characters and other instead of normal file will it work?
- If I give the file with different extension(*.html, *.dll) rather than *.txt, will it still work?
- What will happen, if I give video or audio file? Will the console able to handle that?

• Security Test
- What will happen, if I give a file that is infected with virus and worm. Will the system crash? If does, then will it be able to recover to previous safe and consistent state.

• Performance Test
- How fast can the console display the contents of file?
- Is the response time fast enough?

• Stress Test
- What will happen, if I continuously supply file paths say around 2 days, will it work normally?
- Is there any memory leaks present or still the performance rate is same.
- What will happen, if I reduce the resources like RAM, CPU processor under different environments like
XP, linux, unix, windows vista? Will it work again with same performance speed.

• Localization & globalization test
- Is there proper documentation provided for carrying out the process or task?
- Can a layman be able to run it properly?

• Usability Test
- How user friendly is the overall process or task?