Beruflich Dokumente
Kultur Dokumente
Assignment
A simple login screen of software or a web application will be tested for seamless user
login. The login screen has two fields, username and password as an input and the
output will be to enable access to the system.
A black box testing will not consider the specifications of the code, and it will test the
valid username and password to login to the right account.
This form of testing technique will check the input and output.
• A user logged in when inputs a present username and correct password
• A user receives an error message when enters username and incorrect
password
The black box testing is also known as an opaque, closed box, function-centric testing.
It emphasizes on the behaviour of the software. Black box testing checks scenarios
where the system can break.
Here are the generic steps followed to carry out any type of Black Box Testing.
• Initially requirements and specifications of the system are examined.
• Tester chooses valid inputs (positive test scenario) to check whether SUT processes
them correctly. Also some invalid inputs (negative test scenario) are chosen to verify
that the SUT is able to detect them.
• Tester determines expected outputs for all those inputs.
• Software tester constructs test cases with the selected inputs.
• The test cases are executed.
• Software tester compares the actual outputs with the expected outputs.
• Defects if any are fixed and re-tested.
In order to uncover the errors present in different phases we have done white box
testing.
White-box testing is a method of software testing that tests internal structures or
workings of an application, as opposed to its functionality. White box testing includes
unit testing and integration testing. And in our project we have used this concept of
level testing.
The steps involved in Testing are:
1.Unit Testing
Unit testing focuses verification efforts on the smallest unit of the software design, the
module. This is also known as “Module Testing”. The modules are tested separately.
This testing was carried out during the programming stage itself. In this testing each
module is found to be working satisfactorily as regards to the expected output from
the module.
2.Integration Testing
Data can be grossed across an interface; one module can have adverse efforts on
another. Integration testing is systematic testing for construction of the program
structure while at the same time conducting tests to uncover errors associated with the
interface. The objective is to take unit tested modules and build a program structure.
All the modules are combined and tested as a whole. Here correction is difficult
because the isolation of cause is complicated by the vast expense of the entire
program. Thus in the integration testing stop, all the errors uncovered are corrected for
the text testing steps.
Dynamic White Box Testing vs. Debugging:- Dynamic white box testing and debugging
are two techniques which appear similar, since they deal with the code and the bugs in
software. They do overlap when bugs are found. However, they are different in their
goals. 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. As a
software tester, you are required to emphasize on the test cases that demonstrate a bug.
In white box testing, you narrow down to the information pertaining to the number of
lines of code which look erroneous. The programmers debug the erroneous lines of code
which are reported to them. They find the reason for the cause of bug and fix it.