White-Box Testing Techniques in Detail, Exercises of Software Engineering

Testing in Software Engineering. Mainly White Box

Typology: Exercises

2019/2020

Uploaded on 03/08/2020

mukesh-regmi
mukesh-regmi 🇳🇵

1 document

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Test Case
A TEST CASE is a set of actions executed to verify a particular feature
or functionality of your software application.
A Test Case contains test steps, test data, precondition, postcondition
developed for specific test scenario to verify any requirement.
The test case includes specific variables or conditions, using which a
testing engineer can compare expected and actual results to determine
whether a software product is functioning as per the requirements of the
customer.
Test Scenario vs Test Case
Test Scenarios are rather vague and cover wide range of possibilities. Testing
is all about being very specific. There may be many test cases under one
scenario.
Test Scenario: Test the Login Functionality
To test login functionality, there may be following test cases:
Test Case-1:See result of entering valid user name and password
Test Case -2: See Result of entering invalid username and password
Test Case -3: See Result of leaving blank username and password and click
Login Button
<< See the Excel File>>
Test Scenario: Test Signup Functionality
Test Cases:
1. Verify all the required mandatory field are typed by user before
submitting data to server.
2. Perform e-mail and Phone number validation before confirming user
registration.
3. Verify the desired username with existing username name for
duplication checking.
4. Verify the length of characters for username and password and verify
password strength
pf3
pf4
pf5

Partial preview of the text

Download White-Box Testing Techniques in Detail and more Exercises Software Engineering in PDF only on Docsity!

Test Case  A TEST CASE is a set of actions executed to verify a particular feature or functionality of your software application.  A Test Case contains test steps, test data, precondition, postcondition developed for specific test scenario to verify any requirement.  The test case includes specific variables or conditions, using which a testing engineer can compare expected and actual results to determine whether a software product is functioning as per the requirements of the customer. Test Scenario vs Test Case Test Scenarios are rather vague and cover wide range of possibilities. Testing is all about being very specific. There may be many test cases under one scenario. Test Scenario: Test the Login Functionality To test login functionality, there may be following test cases: Test Case-1:See result of entering valid user name and password Test Case -2: See Result of entering invalid username and password Test Case -3: See Result of leaving blank username and password and click Login Button << See the Excel File>> Test Scenario: Test Signup Functionality Test Cases:

1. Verify all the required mandatory field are typed by user before submitting data to server. 2. Perform e-mail and Phone number validation before confirming user registration. 3. Verify the desired username with existing username name for duplication checking. 4. Verify the length of characters for username and password and verify password strength

5. Verify whether username field contains some special characters. 6. Check captcha characters before submitting registration data. 7. Check Age group 8. Verify registration confirmation message after registration process is completed. Test Scenario: Google Search Test Cases

  1. Check characters typed on search text box for spelling mistakes and suggest correct words.
  2. Verify whether null characters are allowed on search text box
  3. Verify whether SERP contains correct information after search is completed.
  4. Verify whether links on SERP are valid and reachable.
  5. Verify whether SERP displays information on the basis of priority.
  6. Verify whether user can enter search keywords in different languages. Develop Test Case for Google Search
  7. Test whether SERP is displayed on typing text on search text box and on clicking search button.
  8. Test Search Text Box has auto-complete/auto-fill functionality.
  9. Test Search Text Box auto-complete sorted according to popularity.
  10. Test Search functionality on inputting image.
  11. Test search box can input and search engine supports keywords in different languages.
  12. Test whether search text box suggest mis-spelled words.
  13. Check whether null value is supported by search text box.

 Verify the battery requirement of the mobile  Verify the total time taken to charge the mobile completely  Verify the total time for mobile to get completely discharged when left idle  Verify the total talk for mobile to get completely discharged when continuously used in conversation  Verify the length of charger wire  Verify that mobile can be switched off and ON  Verify that user can store contact details on the phone book directory  Verify that user can delete and update contact details in the phonebook directory  Verify that Call logs are maintained in the Call Logs  Verify that received and Sent SMSs are saved in mobile  Verify that user can silent the phone during an incoming call  Verify the auto-reject option can be applied and removed on particular numbers Test Cases: Notepad  Verify that on launching the notepad application, the notepad editor should open with its default size.  Verify that user can write/type alphabets from a standard keyboard.  Verify that user can type numerics from a standard keybaord  Verify that user can type special characters and symbols on notepad editor window.  Verify that by default the font size is normal or as per the specifications.  Verify that user can set the font size and family.  Verify that user can save the text in a file.  Verify that user can open any exiting file in notepad.  Verify that file formats not permitted by notepad are not loaded and doesn’t corrupt the application.  Verify that user can append text to any file and again save the file.  Verify that user can select, copy and paste text.  Verify that user can select, cut and paste text.  Verify that user can select and delete a text.

 Verify that user can delete a text using backspace and delete buttons.  Verify that user can navigate through the text in file using the arrow keys.  Verify that user can navigate through the text in file using mouse pointer.  Verify that user can edit and delete data in between the text file.  Verify that user can undo any latest change done in file.  Verify that user can redo any change undone by undo option.  Verify that user can search for single or multiple characters and words through the file.  Verify that user can search and replace single or multiple characters and words through the file.  Verify that user can resize the notepad window.  Verify that user can minimize the notepad editor window.  Verify that user can maximize the notepad editor window.  Verify that user can close the editor window by clicking the cross icon. Develop Test Cases for Following Application:

  1. Google Search
  2. E-Commerce Web Site
  3. Hospital Management System
  4. WhatsApp
  5. You Tube
  6. Flight Reservation System Reference:
  7. https://artoftesting.com/test-case
  8. https://artoftesting.com/test-scenario-examples