0% found this document useful (0 votes)
4 views8 pages

Software Testing Concepts and Techniques

The document covers various aspects of software testing, including automated testing, bug fixing, and different testing methodologies such as white box, black box, and static testing. It also discusses the Agile model, testing strategies, and the importance of effective test cases. Additionally, it highlights the differences between testing techniques like monkey testing and gorilla testing, as well as the roles of stubs and drivers in integration testing.

Uploaded by

pspc139
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views8 pages

Software Testing Concepts and Techniques

The document covers various aspects of software testing, including automated testing, bug fixing, and different testing methodologies such as white box, black box, and static testing. It also discusses the Agile model, testing strategies, and the importance of effective test cases. Additionally, it highlights the differences between testing techniques like monkey testing and gorilla testing, as well as the roles of stubs and drivers in integration testing.

Uploaded by

pspc139
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Question 1: fill the blanks

1. automated testing Uses an automatic test program.


2. many bugs occur due to lack of communication when a developer tries to modify
software developed by another developer
3. the cost of fixing a bug differ depending on the development stage at which is
detected
4. in test driven development. The code is not written until the test does not clear
the test case requirement test
5. during function testing the tester checks only the functionality / performance of
the software and not check the actual code
6. static testing is performed to check the bugs in the software using the source
code and design architecture respective software
[Link] box testing testing is also called as glass box testing
8. developing efficient test cases are very essential during testing
9. acceptance testing is used for high level black box testing
10. The three phases of static white box formal review, code review checklist and
coding standers and guidelines
11. Walk through is the second step of formal review
12. The inspection is provided the task of reviewing the code from the user and
tester perspective
13. are instruction to be followed which are not really mandatory
14. on a server can be determined through the number of hits per
unit time
15. The testing can be performed in inter-operability condition is testing

Q2 select the correct


1. Identify the task that is not performed by a software developer during the
software testing
a. fix defects b. prepares test data c. plan testing d. automate test cases
2. during which stage of V model is acceptance test plan developed
a. functional specifications b. requirement specification c. system design
d. integration
3. what testing is carried out after integrating the units to ensure that
specifications are met?
a. agile testing b. unit testing c. system testing d. acceptance testing
4. identify testing technique that is used to test how the actual code work
a. black box testing b. Functional testing c. Static testing d. structural
testing
5. which of the following testing will help to expose any ambiguities or
inconsistencies in the specification and are carried out from a user's perspective
a. white box testing b. automation testing c. Manual testing d. black box
testing
6. which dynamic testing technique main focus is to push the software is to limit
and check the bugs that occur when the software is operated under extreme
conditions?
a. test to pass b. data testing c. Test to fail d. state testing
7. which testing is also called adhoc testing
a. equivalence partitioning b. random testing c. Data testing d. test to
pass
8. which of the following stage do inspection come under
a. formal review b. peer review c. code coverage d. data coverage
9. from the following select choose which is appropriate to standers and guidelines
a. reliability b. scalability c. usability d. compatibility
10. which of the following refer to data declaration error
a. improper declaration of variable and constant b. improper declaration and
initialization c. improper calculation d. improper behaviour of loops and
control structure
11. In which of the following testing types, the size of collection is tested
a. code coverage testing b. data coverage testing c. Error forcing testing d.
inspection
12. Which of the following is a strategy of integration testing
a. static white box testing b. Bing bong testing c. Bottom-up testing d.
black box testing
13. Name the testing strategy that is used to test that a web site function properly
across different hardware and software environment
a. White box testing b. Black box testing c. Gray box testing
d. compatibility testing
14. Which among the following testing processes is used to determine the speed or
effectiveness of software
a. exception testing b. Load testing c. stress testing d. performance testing
15. Which tool allow the tester to view details the software's operation that
otherwise could not have been possible to see normally
a. Stups b. drivers c. Viewer and monitor d. interference injector

Q3 A- if a program has two integers' inputs and each can be 32-bit integer, how
many possible inputs does this program have? And if the one test can be run every
millisecond, how long will it take to execute to all possible?
The number of possible for the first input is 2^32

The number of possible for the second input is 2^32

The total number of possible inputs is 2^32* 2^32= 2^64

One test execution time is 1 millisecond

Time to execute all possible inputs is 2^64*1 millisecond= 2^64 *0.001*(1/3600) =5.1240956*10^12
hours

B- Discuss with drawing the agile model?


1- Create the test code: the developer creates test code using the automated test framework
even before the actual code is written and these test codes are submitted to the test team.
The functionality of the software is developed based on the test code
2- Write or modify the function code: the functional code is written for the test codes that
have cleared the test case. The actual functional code is written for the test codes that have
cleared the test case. Once the functional code is written it is again checked using the test
case. The functional code module is completed only after it clear the test cases.
3- Create additional tests: the tester tests the module for various types of input. The tester
develops various test conditions depending on the complexity of the module.
4- Test functional code: the functional code is tested based on test case developed in step3
and step1 and step2 to4 repeated until the code clears all the test cases
5- Refactoring the code: some changes to the code are made to make the code easy to
maintain and extensible

C- A program calculates the area of triangle complete the table


POINT1 POINT1 POINT1 AREA
1,1 1,5 5,1
1,1 1,5 1,10
10,10 0,10 10,0
0,0 0,10 10,10

D- find the minimal set of test case that would achieve statement and branch
coverage of triangle problem pseudocode in the next code

READ A
READ B
READ C
IF A+B > C AND A+C > B AND B+C > A THEN
IF A = B AND B = C THEN
PRINT "Equilateral"
ELSE IF A = B OR B = C OR A = C THEN
PRINT "Isosceles"
ELSE
PRINT "Scalene"
END IF
ELSE
PRINT "Not a triangle"
END IF
e- write the functional (black) test of triangle problem in the above code?

Q4
A- What basic elements of a web page can easily be tested with a black box
approach?
The elements that are similar to what's in multimedia CD-ROM software text, graphics, and
hyperlinks

CD ROM SOFTWARE text: -test the terminology used, the depth content, the subject matter, the
accuracy of the info

Hyper links :

-ensures that the hyper link are obvious

-test if the link is working correctly

-if the link open an email message, test it by send an email and verify that you got a response

Graphics: -check if all graphics are loaded and displayed properly

forms: are the form fields positioned properly?

-do the accept correct data?


-Do the reject bad data?

B- Why is Gray box testing possible with website testing?

Because many websites are principally created with easily viewable HTML, a mark-up language, not
an executable program. You can quickly and easily take a peek to see how the pages are built and
design your tests accordingly. Because it mixes between white and black

C- What basic elements of a web page can easily be tested with a white box
approach?
the elements of a web page can easily be tested with a white box approach are

1-dynamic content

Graphics and text that varies depending on some conditions

-time of day

-weather

2-database: driven web pages: the web pages that display catalos or inventories are data

3-programmatically: created web pages: a web page designer may type entries in a database and
drag and drop elements in a layout program, press a button, and generate the HTML that displays a
webpage

4-server performance and loading popular websites might receive millions of hits per day you need
to simulate millions of hits

5-security

D- Name a few areas that you need to consider when performing configuration
and compatibility testing of a website?
The hardware platform, the operating system, the web browser, browser plug-ins, browser options
and settings, video resolution and color depth, text size, and modem speeds.

E- COMPERE
- Test stub and test drivers
Drivers serve the same purpose as stubs, but drivers are used in Bottom-up
integration testing and are also more complex than stubs. Drivers are also used
when some modules are missing and unavailable at time of testing of a specific
module because of some unavoidable reasons, to act in absence of required module

Stubs Drivers
Stubs are used in Top-Down Drivers are used in Bottom-Up
Integration Testing. Integration Testing.

Stubs are basically known as a While, drivers are the “calling program”
“called programs” and are used in and are used in bottom-up integration
the Top-down integration testing. testing.

Stubs are similar to the modules of


While drivers are used to invoking the
the software, that are under
component that needs to be tested.
development process.

- Gorilla and monkey testing


Monkey testing and Gorilla testing are terms that we come across in the testing cycle in
software development. Both are similar yet distinct techniques to test applications and have
their own advantages and use cases. The main objective of both these techniques is to
identify the critical bugs in the system and report them. The way each method achieves this
is explained in this article.

- White box testing and debugging


Dynamic White box testing finds the bugs in the software While debugging deals with the process of
fixing the bugs that have been found during the testing phase.

You might also like