ISEE 2018 -- Testcase Design

03 Jul 2018

Black Box Testing


Welcome to our fifth blog, hope you enjoyed our previous four blogs. Over the past few weeks we have been working on our Next Phase Whichis Testcase Design. Based on the System Design which we have shown in our previous blog, we have come up with the following test case designs which would help you all understand our project in a better way.

Functional requirements considered for Black box Testing :


black

Black Box Testing


Requirement 1 :

As a user I want to enter the details of the bird in my application.

Testcase 1:

I want to add a bird details data by selecting name ,location, date, time and some extra description (if nessesary)

Test Process :

Open the application

Click on Add bird details button

Enter the details of the birds

Results:

Toast message “Added Successfully” will displayed on adding data to database.

It can be verified by looking at the history

Requirement 2 :

As a user I want to view the details of the birds entered previously

Test Case 2:

I want to view the previous data entered by filtering name / location / duration

Test Process :

Open the application

Click on view data button

Choose the filtering options w.r.t name/location/duration

Result :

Display of the search result from the database.

Requirement 3 :

As a user I want to get the location automatically on pressing button – Get Location

Test Case 3 :

I want to open the application and enter the location automatically

Test Process :

Open the application

Tap on the Add bird details

In Add bird details page tap on the “Get Location” button

Result :

Current location of the user will be displayed automatically.

Requirement 4 :

As a user I want to get the location automatically on pressing button – Get Location

Test Case 4 :

I want to open the application and enter the location automatically

Test Process :

Open the application

Tap on the ”Add bird details”

In Add bird details page tap on the “Get Location” button

Expected Result :

Current location of the user will be displayed automatically.

Requirement 5:

As a user I want to allow the application to use GPS

Test case 5 :

I want to change the settings of Gps

Test process :

Open the application

Tap on the settings button

In settings click on the toggle button to switch the gps on/off

Expected Result :

Gps will be turned on/off

White Box Testing


(Clear Box Testing/Open Box Testing/Glass Box Testing/Transparent Box Testing/ Code-Based Testing or Structural Testing )

Test Case 1: TimePicker Dialog :

We initiate the view and then perform click event on the time and uses the calender class instance to get the current hours and minutes,then executes the timepicker dialog to select the time.

tpicker

Test Case 2 : DatePicker Dialog :

We initiate the date picker and then performs click event on the date and uses the calender class instance to get the current date, month and year. Then it execute the date picker dalog to select the date.

dpicker

Test case 3 :

We initiate the button to pick the image ,which will shows a dialog with “Camera” , “Gallery”, “Cancel”. An if statement is used to add the image by choosing the above options. If camera is selected it requests camera to open and after clicking it displays in the image view , same else if is used to upload from the gallery or else cancel.

slctimage

Test case 4 :

We initialize the button to add the data into the database. Then it try to add the data into sqliteHelper by using insertdata method. If data is added to the database it shows a toast message “Added successfully” then it reset the fields to blank.

Addata

Test case 5 :

In this home page class we used three on button click events. We initialize the onButtonclick to open the Bird_details activity .on clicking the button if the button id matches the onclick event it opens the requested page. The same executes for the onSettingsclick and onViewDataclick .

home

Summary of Changes:

We have added a Button in view data Activity to view the total history irrespective of filtering options provided previously.

Author:

Narendra Kumar Anupoju