Archive

Archive for the ‘Test Case Examples’ Category

Test cases for editable and noneditable dropdown and list box

If there are no functional specifications, for listboxes there can be found a some general specifications which you can use for testing these kind of elements. (windows standards for example)

(these are not the testcases, only a small checklist)
In General:
Is all data good visible, no half words in the lists.
Can all items be selected – and are they really used in the software as selected items?
Can you type in all characters in a listbox? (try on editable and non editable)
Pressing a character that is not in the list, brings you to the closest item that starts with that character
If there is a ‘View’ or ‘Open’ button beside the list box then double clicking on a line in the List Box, should act in the same way as selecting and item in the list box.
Can you Drag and drop items from and to the listbox? (is this a spec?)
Can you delete items from the listboxes (should not be possible)?
Items should be in alphabetical order with the exception of blank/none which is at the top or the bottom of the list box.
Shouldn’t have a blank line at the bottom of a list
Can you navigate through the listboxes with the arrow keys.
Is the selected Item selected when you go on with the TAB key?
Can the tab key be used to enter and leave the system element?

For Drop Down List Boxes
Pressing the Arrow should give list of options.
This List may be scrollable.
Pressing ‘Ctrl – F4’ should open/drop down the list box.
Spacing should be compatible with the existing windows spacing (word etc.).
Drop down with the item selected should display the list with the selected item on the top.

Combo Boxes
Should allow text to be entered.
Clicking Arrow should allow user to choose from list

List Boxes
Should allow a single selection to be chosen, by clicking with the mouse
If there is a ‘View’ or ‘Open’ button beside the list box then double clicking on a line in the List Box should act in the same way as selecting and item in the list box and after that clicking the view or open button.
Force the scroll bar to appear, make sure all the data can be seen in the box.
———————————————————————————–

Just some ideas to get the brain juices flowing:

Functionality:
Basic
Menu drops down when clicked
Items are selectable
Clicking items loads appropriate content

Mouse:
Left-click activates menu item
Right-click options function as expected

Keyboard:
Arrow keys move selection up and down the list of menu items
ESC key closes menu
Pressing a letter moves to the corresponding alphabetic list section

Usability:
Internationalization
Menus appear in the user’s native language
Content appears in the user’s native language
Labels appear in the user’s native language

Security:
Can the menu be hacked?
Can the content be hacked?

Content:
Spelling
Labels are spelled correctly
Menu items are spelled correctly
Content pages are spelled correctly
Grammar
Labels use accepted rules of grammar
Menu items use accepted rules of grammar
Content pages use accepted rules of grammar

Cosmetic:
Labels are easily legible
Background color does not too closely math text color
Colors are used that respect people with “color-blindness”
Highlighted text is easily legible


 

Test Scenario for Export to Excel Functionality!

Generally Reports are exported to excel.

broad scenarios of this are as follows

1. when some data is exported to excel, an excel sheet should open in next tab. A windows  dialogue with two options –  Save or open should appear.

i) Save- document should be  saved to browsed location in correct format.

ii)Open- document should open in next tab/window

2. Verify name of the document – opened or saved

3. Check if all data is transferred successfully- Compare data in excel with the data on webpage. No garbage values or encoded values should appear on excel

4. Verify if complete data is transferred. Check this in accordance with the maximum rows allowed in an excel  sheet (this will vary according to different versions of MS EXCEL)

5. verify if datatypes formats are correct in excel.

6. If graphs or pie charts are being exported verify size /color of the same.

7. Verify functionality with different versions of MS EXCEL

consider for example you have exported the report .

8. whether the report data and the data in the export data sheet are same and also in same format.

9. the column order should also be same

10. the values that is if any round upto 2,3 decimals should also be same as in case of reports( some times it happens that in report u get the rounded data wheras in export you get the direct darta.

11. You can also perform data validatuion testing on export if you have not done that on report i.e

fire a sql on the data base and get the result for that report, n export the report and compare the sql data with the exported data( use formulas in excel for comparison)

Test cases for testing the Triangle

Test Case for a Triangle:

  1. Check if the triangle is equilateral or isosceles or scalene
  2.  Check It must be a closed figure.
  3.  Check the figure must contain only 3 sides which are straight and only 3 angles.
  4.  Check 2 sides must be passing through each vertex.
  5.  Check the sum of all 3 angles must be 180 degrees.
  6.  Check all sides should be same in length for equilateral
  7. Check only 2 sides should be same for isosceles triangle.
  8. Check if 1 angle is 90′ then it is right angled.
  9. One/Two/Three sides of a triangle is 0.
  10. Check if the sides are coinciding or not
  11.  Check if the triangle is right-angled isosceles, there
    is a right angle or not.
  12. if the triangle is acute or obtuse or right-angle.
  13.  Check if the triangle is isosceles, the opposite angles
    are equal or not.
  14.  Check if the triangle is equilateral, all the angles are
    equal or not [i.e., 60degrees].
  15. Check if the user is able to draw the 3 circles
    [interior, exterior, circumcircle ]

Functional test cases for bluetooth device..

Test cases for Bluetooth..
1) Functional testing is used to test a Bluetooth chip for a specific use, such as audio
Capabilities or data transfer.
2) User can able to search all available devices on the range; a master Bluetooth device can communicate with a maximum of seven devices.
3) Both data and voice transmissions can be sent and received through the use of short range networks.
4) Bonding is the creation of a link key between two devices. The relationship is created when the link key is exchanged between two devices.
5) User can able to disconnect any time.
6) While closing Bluetooth ask to disconnect the present connections. 
7) Bluetooth maximum range is 10 meters.
8) Communications protocol primarily designed for low power consumption, with a short range as long change the distance power consumption is higher.
9) The effective range varies due to propagation conditions, material coverage, production sample variations, antenna configurations and battery conditions.
10) Bluetooth allows multiple devices to communicate with a computer over a single adapter.
11) Through the use of a mobile phone you can send pictures, videos, exchange business cards and also transfer files to your PC.
12) (Device paired) this is a message used to confirm that a user has successfully paired two Bluetooth devices.
13) Authentication - The process of verifying the identity of the other end of a communications link. In Bluetooth technology this is achieved by the authentication process based on passkeys and pairing.
14) Devices not found, this is an error message which may appear if a search for other devices in range does not find anything.
15) Idle Mode, a device is in idle mode when it has no established links with other devices. In this mode a device may discover other devices.
16) Inquiry Procedure, the inquiry procedure allows a device to discover other devices within range.
17) Known Device, a device which is already known about by another device. Either the devices have been paired in the past or some information of the known devices is stored.
18) Non-discoverable mode, a device that will not respond to discovery requests.
19) Non-pairable mode, a device that will not accept pairing is said to be in non-pairable mode.
20) Passkey, a passkey is a user-defined password needed to connect to a device from any other device. It is strongly advised to use passkeys wherever possible to avoid unauthorized access to your Bluetooth devices.
21) Unknown Device, a device that is not currently paired with the local device, and has not been paired with it before or no information about the device is stored.

 

Test cases for messages.

Rakesh Hansalia

Rakesh Hansalia

Test cases for messages.

1) Check user can able to write a message on message field till limit.
2) User can able to delete the existing message or not.
3) User can able to forward the existing message to other in a group as well as individual.
4) Check weather user can able to send a message without mobile number or not as well as
 correct error message is displayed.
5) Try to send the message to invalid number(Less than 10 digits and the number doesn’t
 exist like 1111122222)
6) Try to send a message to our mobile and see the result.
7) Check whether u r able to send to any mobile which is temporary disconnected.
8) Check whether you can send to landline no, toll-free no.
9) Check how much options are there, there should be at least inbox, create, draft and sent.
10) Click on send button, does it send the message.
11) Check all the notifications like receiving messages, sending messages, deleting messages etc..

Functional test cases for address book

Test cases for address book.

1) User can successfully add new contact to address book

2) Duplication of contact is identified.

3) User can successfully delete the required Contact.

4) User can view the contacts from the Alphabetic order

5) User can manually search by entering the search criteria. From the search menu option.

6) The search should be as appropriate as possible with accurate results

7) Add more than 100 records and see if the variables used accept more than 100 users,

sometimes using default data types gives this error.

8) User can able to update the existing user info and ask conformation to the user.

9) Check the validations and mandatory fields.

10) User can able to read new as well as existing users in contacts.

Test case for online purchasing…

Test Case/Scenario for online purchasing.

1)click the URL link for the online purchasing site.

2)Register if not registered before, Enter user name,login id and password, Click ‘OK’ button to submit.

3)Enter your login id and password,if you are a.

4)Validate the login id and password, if correct menu page will be opened.

5) If not correct,display the error message “invalid login id or password”Re-enter your login id and password.

6)Click the item field and select the item.

7)If available, display the cost and brand, else display ” item is unavailable”.

8)click ‘YES’ to do online purchasing for the item else click ‘NO’.

9)If ‘YES’ go to the payment type, else display the ‘EXIT’ page.

9a) Enter shipping address where all the fields are mandatory

9b)Enter billing address

9c) Enter message to be given to the consignee

9d) update shopping cart and proceed to payment

10)click the payment type options and select the mode of payment.

11)Fill the fields- account holder’s name, bank name, credit/debit card option, card detail, price to be paid, email id etc.

12) If invalid information is given, show error message ” please re-enter “

13)If black field is present, display message “all the fields are mandatory”.

14)Click “SUBMIT” button.

15)Display the successful submission message “successfully completed”.

16)Press ‘EXIT’ button.

17)Show the message ” successfully logged off”.