0% found this document useful (0 votes)
37 views

Model Answer-SWT - 1 STE QP SET - B

Uploaded by

ganeshkhedekkar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Model Answer-SWT - 1 STE QP SET - B

Uploaded by

ganeshkhedekkar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

JSPM’s

JAYAWANTRAO SAWANT POLYTECHNIC,


Handewadi Road, Hadapsar, Pune-28

Department of Computer Engineering


Academic Year 2023-24
Sessional Work Test 1 (B)

Name of Course: Software Testing Course code: 22518


Class: TYCO Time: 1 Hour
Program code: CO 5I Marks: 20 Marks
Instructions:
(1) Illustrate your answers with neat sketches wherever necessary.
(2) Assume suitable data if necessary.
( 3)Figures to the right indicate full marks.
(4) Use of Non-Programmable Scientific Calculator is allowed.

Q. No Attempt any FOUR CO 8M


1

Describe meaning of Stub and driver.

A stub is a replica of a module that collects the data and develops many possible data
(a) Drivers are bottom-up integration testing individually and designed the enhance the CO 2M
testing process
Drivers establish the test environments and take care of the communication,
estimates results, and also sends the reports.

Define Software Testing. Write any two objectives of software testing.

Software testing is the process of evaluating and verifying that a software product or
(b) application does what it is supposed to do. CO 2M
Objectives :
Preventing bugs, reducing development costs and improving performance.

(c) When do we need to do regression testing? CO 2M


-A new feature or functionality is added to an existing project at that time we need
regression testing.

-When Exiting Bug fixed we can do Regression Testing

-When Performance issue Fixed

-When Security Issue Fixed

What is unit testing?

Unit Testing is a type of software testing where individual units or components of a


software are tested. The purpose is to validate that each unit of the software code
performs as expected. Unit Testing is done during the development (coding phase) of
an application .

For Unit Testing we use Stubs and Drivers

(d) CO 2M

(e) What is static and dynamic testing? CO-5 2M

1) Static Testing:

Static testing is testing, which checks the application without executing the code. It is
a verification process.

eg. Inspection,Walkthrough,Review

2) Dynamic testing:

Dynamic testing is testing, which is done when the code is executed at the runtime
environment. It is a validation process where functional testing [unit, integration, and
system testing] and non-functional testing [user acceptance testing] are performed.

eg.Black Box Testing , System Testing

What is test cases? Write the parameters of test cases.

A test case is a document, which has a set of test data, preconditions, expected results
and postconditions, developed for a particular test scenario in order to verify
compliance against a specific requirement.
(f) CO-5 2M
Parameters of test cases As follows:

● Test Case ID, Test Case Description, Test Steps, Prerequisite,Test


Data,Expected Result,Actual Result,Status /Comments

Q. No Attempt any THREE


CO 12M
2

(a) Define the terms error: Defect, Fault, and Bug, failure in relation with software CO-6 4M
testing.

Bug- A bug is the informal name of defects, which means that software or application
is not working as per the requirement. When we have some coding error, it leads a
program to its breakdown, which is known as a bug. The test engineers use the
terminology Bug.

Defect- When the application is not working as per the requirement is knows as
defects. It is specified as the aberration from the actual and expected result of the
application or software.In other words, we can say that the bug announced by the
programmer and inside the code is called a Defect.

Error-The Problem in code leads to errors, which means that a mistake can occur due
to the developer's coding error as the developer misunder the requirement or the
requirement was not defined correctly. The developers use the term error.

Fault-The fault may occur in software because it has not added the code for fault
tolerance, making an application act up.
A fault may happen in a program because of the following reasons:

● Lack of resources
● An invalid step

● Inappropriate data definition

Failure-Many defects lead to the software's failure, which means that a loss specifies a
fatal issue in software/ application or in its module, which makes the system
unresponsive or broken.

(b) Explain V - model. Write advantages and disadvantages. CO-4 4M

V Model

V means Verification and validation model. The V model is an extension of the


waterfall model wherein software development and testing is executed in a sequential
way.

In V-model there are two phase :

1) Verification

2) verification
Advantages

1. Easy to Understand.

2. Testing Methods like planning, test designing happens well before coding.

3. This saves a lot of time. Hence a higher chance of success over the waterfall
model.

4. Avoids the downward flow of the defects.

Disadvantages

1. Very rigid and least flexible.

2. Not good for a complex project.

3. Software is developed during the implementation stage, so no early


prototypes of the software are produced.

(c) What is performance testing? Explain load and stress testing. CO-5 4M

Performance testing, a non-functional testing technique performed to determine the


system parameters in terms of responsiveness and stability under various workload.
Performance testing measures the quality attributes of the system, such as scalability,
reliability and resource usage.

Performance Testing Techniques:

Load testing - It is the simplest form of testing conducted to understand the


behaviour of the system under a specific load. Load testing will result in measuring
important business critical transactions and load on the database, application server,
etc., are also monitored.

For example: In the below image, 1000 users is the desired load, which is given by the
customer, and 3/second is the goal which we want to achieve while performing load
testing.

Stress testing - It is performed to find the upper limit capacity of the system and also
to determine how the system performs if the current load goes well above the
expected maximum.
For example: If we took the above example and increased the desired load 1000 to
1100 users, and the goal is 4/second. While performing the stress testing in this
scenario, it will pass because the load is greater (100 up) than the actual desired load.

Different between alpha and beta testing?

Alpha testing Beta testing

It is done by internal testers of the It is done by real users.


organization.
(d) CO-4 4M
Identifies possible errors. Checks the quality of the product.

Long execution cycles. It only takes a few weeks.

It makes use of both black box testing


and white box testing. It uses Black Box testing.

It always requires a testing lab or It does not require a testing lab or


suitable environment. suitable environment.
Difference between verification and validation.

Verification Validation

It checks whether the software It checks whether the software meets


conforms to specifications or not. the requirements and expectations of a
customer or not.

It includes checking documents, design, It includes testing and validating the


codes and programs. actual product.
(e) Verification is the static testing. Validation is the dynamic testing. CO-4 4M

It comes before validation. It comes after verification.

It does not include the execution of the It includes the execution of the code.
code.

You might also like