Mountain View

Test Case Design

20 Jun 2017

Welcome to another blog by Nullfinders on Test case design of the fintrack application. We have been working on the test case design of the application. Here on this blog we will be discussing about the test cases developed and used for testing our code.

Overview


Testing

Software testing is the process of evaluating a system or its component(s) with the intent to find whether it satisfies the specified requirements or not. Testing is executing a system in order to identify any gaps, errors, or missing requirements in contrary to the actual requirements. It can also be stated as the process of validating and verifying that a software program or application or product: Meets the business and technical requirements that guided it’s design and development. Being one of the major phase in a software development cycle we have taken atmost care in testing all the funcitons of the application. Here below we are presenting the test case results and other testings done for our application.

Black Box Testing

The technique of testing without having any knowledge of the interior workings of the application is called black-box testing. The tester is oblivious to the system architecture and does not have access to the source code. Typically, while performing a black-box test, a tester will interact with the system’s user interface by providing inputs and examining outputs without knowing how and where the inputs are worked upon. Black box testing being well suited for application with large code and also testers with less programming knowledge can be employed.

 Black Box

Black box testing steps

Test cases carried out

We have tested the below functionalities of the fintrack application


User Authentication

Below is the test cases for user authentication.

 Authen

Add Transaction

Below is the test cases for Add transaction which covers add income and add expense modules.

 Black Box

We have tested with six scenarios for adding transaction, data values amount, date, category and payment method and all are mandatory fields except data note field. Transaction is successful when this criteria is fulfilled else it fails.

Report

Below is the test case for the report module.

 Black Box

We have five scenarios displaying possible combinations with which report can be seen, we have three filter


White-Box Testing

White-box testing is the detailed investigation of internal logic and structure of the code. White-box testing is also called glass testing or open-box testing. In order to perform white-box testing on an application, a tester needs to know the internal workings of the code. The tester needs to have a look inside the source code and find out which unit/chunk of the code is behaving inappropriately. As the tester has knowledge of the source code, it becomes very easy to find out which type of data can help in testing the application effectively.

 Black Box

User Authentication

Below is the white box texting for user authentication along with the path diagrams.

 Black Box

 Black Box

The above diagram shows the statement coverage of the login activity. The best example of login component. All variables are initialised first, Oncreate function is called during beginning of the login activity and later entered values in the edit text fields are captured and finally stored in DB.

Add Transaction

Below is the code coverage testing donne for the transaction module.

 Black Box

 Black Box

Report

Below is the code coverage testing donne for the report module.

 Black Box

 Black Box

above shows the path coverage, sequence of statements are repeatedly executed finite number of times. Here the statements between 1-5 are executed to initialise the values for income and expense n number of times. 10-16 statements are used to set new expense and income values for the transaction. Statements between 18-25 are used to update the transaction.

Summary of Changes


Testing guidelines

Thanks For Visiting our Blog