ISEE 2018 -- G-APPMAKERS: Test case design

04 Jul 2018

Welcome to the 5th blog of our wonderful journey, we hope you had enjoyed reading our blogs. While in this blog we are going to discuss test case design with Black box and White box testing in detail. We had done a rigorous study of the software testing and as per the lecture we tried to follow the instructions and protocol for successful application development.

Overview


We will be elaborating on following points in our blog:

What is Software Testing?


Software testing is an activity to check whether the actual results match the expected results and to ensure that the software system is Defect-free. It involves execution of a software component or system component to evaluate one or more properties of interest. Software testing also helps to identify errors, gaps or missing requirements in contrary to the actual requirements. It can be either done manually or using automated tools. Some prefer saying Software testing as a white box and Black Box Testing. Testing is important because software bugs could be expensive or even dangerous. Software bugs can potentially cause monetary and human loss, history is full of such examples. There are more than 150 types of testing types and still being added.

Deadline image

Black Box Testing


Black box test refers to a method of software testing. Here, tests are developed based on the specification / requirement. This means that tests are developed without knowledge of the inner functioning/implementation of the system under test. The program is treated as a black box. Only externally visible behavior flows into the test. In contrast, white-box tests are developed with regard to the implemented algorithm. Black box testing prevents programmers from developing tests “around their own mistakes,” overlooking gaps in implementation.
Deadline image

Requirement-1:


As a user, I want to create a new trip.

Testcase-1:


Title: New Trip: Create a new trip
Description: A registered user (i.e. after successful login) should be able to create new trip from the main home screen.
Precondition: User must already have registered himself.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. Select your destination.
  5. Select the Estimated time of arrival.
  6. Choose your follower.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “Create New Trip” button.
  3. The user should be able to enter his/her location, destination, ETA, and select his loving ones from contacts.
Requirement-2:


As a user, I want to select my GPS location as per my choice.

Testcase-2:


Title: GPS Location- Locating myself on maps.
Description: A registered user should be able to select his/her current location as per choice. And the information shouldn’t be shared with anyone.
Precondition: User must have allowed access to his location.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “Create New Trip” button.
  3. The user should be able to enter his/her location and should be able to place himself in maps as per choice.
Requirement-3:


As a user, I want to select my GPS location of destination as per my choice.

Testcase-3:


Title: GPS Location- Locating my destination on maps.
Description: A registered user should be able to select his/her destination location as per choice. And the information shouldn’t be shared with anyone.
Precondition: User must have allowed access to his location.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. Select your desired location.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “Create New Trip” button.
  3. The user should be able to enter his/her destination location and should be able to select in maps as per choice.
Requirement-4:


As a user, I want to select my estimated time of arrival as per my choice.

Testcase-4:


Title: Estimated time of arrival – Selecting ETA as per my choice.
Description: A registered user should be able to select his/her estimated time of arrival as per choice.
Precondition: User must have selected his current and destination location.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. Select your desired location.
  5. Select your estimated time of arrival.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “Create New Trip” button.
  3. The user should be able to enter his/her estimated time of arrival.
Requirement-5:


As a user, I want to select my follower as per my choice.

Testcase-5:


Title: Choosing follower- Selecting my favorite follower.
Description: A registered user should be able to select his/her favorite follower as per choice.
Precondition: User must have allowed access to his contacts.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. Select your desired location.
  5. Select your estimated time of arrival.
  6. Select your favorite follower.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “Create New Trip” button.
  3. The user should be able to enter his/her location, destination, ETA, and select his loving ones from contacts.
Requirement-6:


As a user, I want to use SOS function incase of Emergency.

Testcase-6:


Title: SOS- In case of emergency.
Description: A user should be able to use SOS button incase of any emergency.
Precondition: User must have selected contacts for an emergency.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “SOS” button.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “SOS” button.
  3. The user should be able to contact his family and friends about his/her situation.
White Box Testing


Deadline image
It is a software testing method in which the internal structure/design/implementation of the item being tested is known to the tester. The tester chooses inputs to exercise paths through the code and determines the appropriate outputs. Programming know-how and the implementation of knowledge is essential. White box testing is testing beyond the user interface and into the nitty-gritty of a system.
A tester, usually a developer as well, studies the implementation code of a certain field on a webpage, determines all legal (valid and invalid) AND illegal inputs and verifies the outputs against the expected outcomes, which is also determined by studying the implementation code. White Box Testing is like the work of a mechanic who examines the engine to see why the car is not moving.
Deadline image

Requirement-1:


As a user, I want to create a new trip.

Testcase-1:


Title: New Trip: Create a new trip
Description: The Below Flowchart shows the possible path and test scenario.

Deadline image
Precondition: User must already have registered himself.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. Select your destination.
  5. Select the Estimated time of arrival.
  6. Choose your follower.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “Create New Trip” button.
  3. The user should be able to enter his/her location, destination, ETA, and select his loving ones from contacts.
Requirement-2:


As a user, I want to select my GPS location as per my choice.

Testcase-2.1:


Title: GPS Location- Locating myself on maps.
Description: The Below Flowchart shows the possible path and test scenario.

Deadline image
Precondition: User must have allowed access to his location.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “Create New Trip” button.
  3. The user should be able to enter his/her location and should be able to place himself in maps as per choice.
Testcase-2.2:


Title: GPS Location- Locating myself on maps.
Description: The above Flowchart shows the possible path and test scenario with no selection.
Precondition: User must have allowed access to his location.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. The user didn’t select his/her location.
  5. Return back to previous selection.

Expected Result:
Return back to home page.

Requirement-3:


As a user, I want to select my GPS location of destination as per my choice.

Testcase-3.1:


Title: GPS Location- Locating my destination on maps.
Description: The Below Flowchart shows the possible path and test scenario.

Deadline image
Precondition: User must have allowed access to his location.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. Select your desired location.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “Create New Trip” button.
  3. The user should be able to enter his/her destination location and should be able to select in maps as per choice.
Testcase-3.2:


Title: GPS Location- Locating my destination on maps
Description: The above Flowchart shows the possible path and test scenario with no selection.
Precondition: User must have allowed access to his location.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. The user didn’t select destination location.

Expected Result:
Return back to current location previous selection.

Requirement-4:


As a user, I want to select my estimated time of arrival as per my choice.

Testcase-4.1:


Title: Estimated time of arrival – Selecting ETA as per my choice.
Description: The Below Flowchart shows the possible path and test scenario.

Deadline image

Precondition: User must have selected his current and destination location.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. Select your desired location.
  5. Select your estimated time of arrival.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “Create New Trip” button.
  3. The user should be able to enter his/her estimated time of arrival.
Testcase-4.2:


Title: Estimated time of arrival – Selecting ETA as per my choice.
Description: The above Flowchart shows the possible path and test scenario with no selection.
Precondition: User must have selected his current and destination location.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. Select your desired location.
  5. User didn’t enter an Estimated time of arrival
    Expected Result:
    Return back to desired location previous selection.
Requirement-5:


As a user, I want to select my follower as per my choice.

Testcase-5.1:


Title: Choosing follower- Selecting my favorite follower.
Description: The Below Flowchart shows the possible path and test scenario.

Deadline image
Precondition: User must have allowed access to his contacts.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. Select your desired location.
  5. Select your estimated time of arrival.
  6. Select your favorite follower.

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “Create New Trip” button.
  3. The user should be able to enter his/her location, destination, ETA, and select his loving ones from contacts.
Testcase-5.2:


Title: Choosing follower- Selecting my favorite follower.
Description: The above Flowchart shows the possible path and test scenario with no selection.
Precondition: User must have allowed access to his contacts.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “Create New Trip” button on home screen.
  3. Select your current location.
  4. Select your desired location.
  5. Select your estimated time of arrival.
  6. User didn’t select a favorite follower

Expected Result:
Return back to estimate time of arrival previous selection.

Requirement-6:


As a user, I want to use SOS function incase of Emergency.

Testcase-6.1:


Title: SOS- In case of emergency.
Description: The Below Flowchart shows the possible path and test scenario.

Deadline image
Precondition: User must have selected contacts for an emergency.
Testing Steps:

  1. Open the Mindpeace Application.
  2. Click “SOS” button

Expected Result:

  1. The user should be able to log in successfully, and application should take him directly to home page.
  2. The user should be able to select “SOS” button.
  3. The user should be able to contact his family and friends about his/her situation.
Summary of Changes


We are working hard in coding, we are in constant touch with the customer and trying to make the application as much simple as possible. We have made some changes in roles and responsibility to reach goal on time.


We thank you so much for your read and support.
Please stay tuned for our final blog next week.
-Team G-APPMAKERS
Deadline image