Professional Documents
Culture Documents
TEST PLAN
Table of Contents
INTRODUCTION..........................................................................................................................3
1.1 OBJECTIVES......................................................................................................................3
1.2 TEAM MEMBERS..............................................................................................................3
2 SCOPE..................................................................................................................................3
3 ASSUMPTIONS / RISKS....................................................................................................4
3.1 ASSUMPTIONS..................................................................................................................4
3.2 RISKS...............................................................................................................................4
4 TEST APPROACH..............................................................................................................4
4.1 TEST AUTOMATION..........................................................................................................4
5 TEST ENVIRONMENT......................................................................................................5
6 MILESTONES / DELIVERABLES...................................................................................5
6.1 TEST SCHEDULE...............................................................................................................5
6.2 Deliverables...................................................................................................................5
1 Introduction
The Test Plan includes the objectives, scope, schedule, risks and approach. This document
will clearly identify what the test deliverables will be and what is deemed in and out of
scope.
1.1 Objectives
User Rest number in calculate application that uses HTTP requests to addition, subtract,
multiply, divide, square, square root and primer number.
The Employee Rest API application is for inserting and modifying basic data for an
employee.
Phase 1 of the project will deliver Test Case calculation with functionality to create and store
manual tests.
2 Scope
The initial phase will include all ‘must have’ requirements. These and any other
requirements that get included must all be tested. At the end of Phase 1, a tester must be
able to:
1. Addition numbers
2. Subtract numbers
3. Multiply numbers
4. Division numbers
5. Square for numbers
6. Square root for numbers
7. If the number is prime or not
Assumptions / Risks
2.1 Assumptions
This section lists assumptions that are made specific to this project.
1. The user Rest number in calculation application
2. Testing content-type will be JSON data.
2.2 Risks
The following risks have been identified and the appropriate action identified to mitigate
their impact on the project. The impact (or severity) of the risk is based on how the project
would be affected if the risk was triggered. The trigger is what milestone or event would
cause the risk to become an issue to be dealt with.
3 Test Approach
Automated testing using JUnit to validate and cover API calls:
Addition numbers
Subtract numbers
Multiply numbers
Division numbers
Square for numbers
Square root for numbers
If the number is prime or not
4 Test Tools
Eclipse IDE
Junit Library
5 Test Environment
Rest numbers
6 Test Cases
Project Name Employee REST API
Module Name calculate
Created By yusra shebli
Creation Date 15/3/2020
Reviewed By
Reviewed Date
{
double actual = new
check the addition
calcc().add(5, 10);
1 test addition 1 of 2 positive
double expected = 15;
number
assertTrue(actual==expected);
}
{
double actual = new
check the addition
calcc().add(-2, -4);
2 test addition 2 of 2 negative
double expected =- 6;
number
assertTrue(actual==expected);
}
{
check the addition double actual = new
of 1 negative calcc().add(-4, 2);
3 test addition 3
number & 1 double expected = -2;
possitive number assertTrue(actual==expected);
}
{
double actual = new
check the subtract
calcc().subtract(6, 3);
4 test subtract 1 of 2 positive
double expected = 3;
number
assertTrue(actual==expected);
}
{
double actual = new
check the subtract
calcc().subtract(-4, -5);
5 test subtract 2 of 2 negative
double expected =1;
number
assertTrue(actual==expected);
}
{
check the subtract double actual = new
of 1 negative calcc().subtract(-5, 9);
6 test subtract 3
number & 1 double expected = -14;
positive number assertTrue(actual==expected);
}
{
double actual = new
check the multiply
calcc().multiply(5, 5);
7 test multiply1 of 2 positive
double expected = 25;
number
assertTrue(actual==expected);}