Chapter 3 Software
Chapter 3 Software
1.What is test plan? List test planning activities. (Test Plan-1Mark, Listing Activities-3Marks)
Ans: Like any project, the testing also should be driven by a plan. The test plan acts as the anchor for the
execution, tracking and reporting of the entire testing project. Activities of test plan: 1.Scope Management:
Deciding what features to be tested and not to be tested.
2.Deciding Test approach /strategy: Which type of testing shall be done like configuration, integration,
localization etc.
3.Setting up criteria for testing: There must be clear entry and exit criteria for different phases of testing. The
test strategies for the various features and combinations determined how these features and combinations
would be tested.
4.Identifying responsibilities, staffing and training needs
5.Identifying resource requirements
6.Identifying test deliverables
7.Testing tasks: size and effort estimation.
2.Write steps to prepare test plan. Also write features to be tested.
(Steps to prepare test plan, features to be tested - 4Marks)
Ans:
Steps to prepare test plan:
Like any project, the testing also should be driven by a plan. The test plan acts as the anchor
for the execution, tracking and reporting of the entire testing project. Activities of test plan:
1. Scope Management: Deciding what features to be tested and not to be tested.
2. Deciding Test approach /strategy: Which type of testing shall be done like configuration,
integration, localization etc.
3. Setting up criteria for testing: There must be clear entry and exit criteria for different phases
of testing. The test strategies for the various features and combinations determined how these
features and combinations would be tested.
4. Identifying responsibilities, staffing and training needs.
5. Identifying resource requirements
6. Identifying test deliverables.
7. Testing tasks: size and effort estimation.
Features to be tested are:
1. Lists/tables: Files, features and functions, inputs and outputs, error messages
2. Outlines :E.g., function list, top-level/user-visible functions, sub-functions (options or
submenus), entry and exit conditions on fully parameterized methods
3. Matrices: List function/operation vs. test conditions, e.g., the save operation with the
following conditions: disk full, almost full, write-protected
4. Notes : How to run test, expected results, special instructions, one-shot or regression test,
what test is looking for, assumptions in the test
1. Machine configuration (RAM, processor, disk, and so on) needed to run the product under test.
2. Overheads required by the test automation tool, if any
3. Supporting tools such as compilers , test data generators configuration management tools, and so on
4. The different configurations of the supporting software (for example, OS) that must be present
5. Special requirements for running machine- intensive tests such as load tests and performance tests
6. Appropriate number of license of all the software
OR
Factors to be considered while selecting the resource requirements are :
People:
How many people are required?
How much experience they should posses?
What kind of experience is needed?
What should they be expertise in? Should they be full-time, part-time, contract, students?
Equipment:
How many Computers are required?
What configuration computers will be required?
What kind of test hardware is needed?
Any other devices like printers, tools etc.
Office and lab space:
Where will they be located?
How big will they be?
How will they be arranged?
Software: Word processors, databases, custom tools. What will be purchased, what needs to be written?
Outsource companies:
Will they be used?
What criteria will be used for choosing them?
How much will they cost?
Miscellaneous supplies: Disks, phones, reference books, training material. What else might be necessary over the
course of the project? The specific resource requirements are very project-, team-, and company-dependent, so
the test plan effort will need to carefully evaluate what will be needed to test the software.
What are test deliverables and milestones? Give any four types of test deliverables.
Ans:
Test Deliverables are the artifacts which are given to the stakeholders of software
project during the software development lifecycle. There are different test deliverables at
every phase of the software development lifecycle. Some test deliverables are provided
before testing phase, some are provided during the testing phase and some after the
testing cycles is over.
The different types of Test deliverables are:
1.Test cases Documents
2.Test Plan
3.Testing Strategy
4.Test Scripts
5.Test Data
6.Test Traceability Matrix
7.Test Results/reports
8.Test summary report
9.Install/config guides
10.Defect Reports Release notes
1. The test plan describes the overall method to be used to verify that the software meets
the product specification and the customer's needs. It includes the quality objectives,
resource needs, schedules, assignments, methods, and so forth.
2. Test cases list the specific items that will be tested and describe the detailed steps that
will be followed to verify the software.
3. Bug reports describe the problems found as the test cases are followed. These couldbe done on paper but are
often tracked in a database.
4. Test tools and automation are listed and described which are used to test the
software. If the team is using automated methods to test software, the tools used, either
purchased or written in-house, must be documented.
5. Metrics, statistics, and summaries convey the progress being made as the test work
progresses. They take the form of graphs, charts, and written reports.
Milestones: Milestones are the dates of completion given for various tasks to be
performed in testing. These are thoroughly tracked by the test manager and are kept in
the documents such as Gantt charts, etc.
What are the things that test case specification shall identify?
Ans:
1. Test cases specify the inputs, predicted results and execution conditions. Each test case should aim to evaluate
the operation of a key element or function of the system.
2. Failure of a test case, depending upon the severity of the failure, would be catalogued as part of the overall
evaluation of the suitability of the system for its intended use.
3. Test cases can start with a specific ‗form‘ that allows operator entry of data into the system. This needs to be
mapped, if the architecture is based upon an n-tier solution, through the business logic and rules into the server
systems with transactions being evaluated both in a ‗nominal‘ mode where the transaction is a success and for
those occasions when the transaction or ‗thread‘ fails.
4. Test design may also require one or more test cases and one or more test cases may be executed by a test
procedure.
Describe test case specification of test process.?
Ans:
Testing is a process rather than a single activity.
i. This process starts from test planning then designing test cases, preparing for execution and evaluating status
till the test closure.
ii. Divide the activities within the fundamental test process into the following basic steps:
1. Planning and Control
Test planning has following major tasks:
i. To determine the scope and risks and identify the objectives of testing.
ii. To determine the test approach.
iii. To implement the test policy and/or the test strategy. (Test strategy is an outline that describes the testing
portion of the software development cycle. It is created to inform PM, testers and developers about some key
issues of the testing process. This includes the testing objectives, method of testing, total time and resources
required for the project and the testing environments.).
iv. To determine the required test resources like people, test environments, PCs, etc.
v. To schedule test analysis and design tasks, test implementation, execution and evaluation.
vi. To determine the Exit criteria we need to set criteria such as Coverage criteria. (Coverage criteria are the
percentage of statements in the software that must be executed during testing. This will help us track whether
we are completing test activities correctly. They will show us which tasks and checks we must complete for a
particular level of testing before we can say that testing is finished.)
Test control has the following major tasks:
i. To measure and analyze the results of reviews and testing.
ii. To monitor and document progress, test coverage and exit criteria.
iii. To provide information on testing.
iv. To initiate corrective actions.
v. To make decisions.
2. Analysis and Design
Test analysis and Test Design has the following major tasks:
i. To review the test basis. (The test basis is the information we need in order to start the test analysis and create
our own test cases. Basically it’s a documentation on which test cases are based, such as requirements, design
specifications, product risk analysis, architecture and interfaces. We can use the test basis documents to
understand what the system should do once built.)
ii. To identify test conditions.
iii. To design the tests.
iv. To evaluate testability of the requirements and system.
v. To design the test environment set-up and identify and required infrastructure and tools.
3. Implementation and Execution
i. During test implementation and execution, take the test conditions into test cases and procedures and other
test ware such as scripts for automation, the test environment and any other test infrastructure.
ii. (Test cases is a set of conditions under which a tester will determine whether an application is working
correctly or not.)
iii. (Test ware is a term for all utilities that serve in combination for testing a software like scripts, the test
environment and any other test infrastructure for later reuse.)
Test implementation has the following major task:
i. To develop and prioritize our test cases by using techniques and create test data for those tests.
ii. (In order to test a software application you need to enter some data for testing most of the features.
iii. Any such specifically identified data which is used in tests is known as test data.)
iv. We also write some instructions for carrying out the tests which is known as test procedures.
v. We may also need to automate some tests using test harness and automated tests scripts.
vi. (A test harness is a collection of software and test data for testing a program unit by running it under
different conditions and monitoring its behavior and outputs.)
vii. To create test suites from the test cases for efficient test execution.
viii. (Test suite is a collection of test cases that are used to test a software program to show that it has some
specified set of behaviors.
ix. A test suite often contains detailed instructions and information for each collection of test cases on the
system configuration to be used during testing.
x. Test suites are used to group similar test cases together.)
xi. To implement and verify the environment.
Write important six test cases for the “Login Form” of the Facebook website.
Ans:
Test case no Test step Test data Expected output Actual output Status
1 Username filed is - It will display It displays Pass
left blank ‘Enter Username ‘Enter
Username’
2 Enter invalid user abc It will prompt It prompt Pass
name ‘couldn’t find your couldn’t find
account’ your account.
message
3 Enter valid user Username- abc123 It will display It displays Pass
name and invalid Password – 123 ‘Wrong password’ ‘wrong
password message. password’
message.
4 Enter Valid Username- abc123 It will display It displays Pass
username and no Password – ‘Enter password’. ‘Enter
password password’.
5 Enter Valid Username- abc123 It will display It displays Pass
username and Password – users’ account’s users account’s
Password co5i22518 facebook page. facebook page.
6 Click on ‘Forgotten - It will go to Find It goes to Find Pass
password?’ your account your account
page. page.
Design test cases for ATM card operations.
Ans:
Test Test case Input data Expected result Actual Status
case ID objective result
TC1 Pin number valid 4 digits It should It accepted Pass
pin accept the valid the pin
pin
TC2 Withdrawal Valid numeric It should It accepted Pass
amount accept the valid the amount
amount
TC3 TC3 Click on the It should ask It displayed the Pass
Withdrawal withdrawal for the message
button amount as enter the
amount
TC4 Mini Click on It should It issued Pass
statement mini issue the the receipt
statement receipt of last 3 of last 3
transactions transactions
CAPITAL LETTERS”
ABCDEFGHIJKLMNOPQRSTUVWXYZ
SMALL LETTERS”
abcdefghIjklmnopqrstuvwxyz