In: Computer Science
How might you test for possible interface misunderstanding in software? Here “interface misunderstanding" refers to calling functions on an interface with the correct function signatures but with incorrect intent.
pls state what u need. the question is pretty straight
forward.
Interface
testing:
The main role of interface testing is to find out the invalid
assumptions about the interfaces of a software program.
It also finds the faults occurred due to the errors present in the
interfaces.
Interface
errors:
There are many categories of interface errors.
1.Errors due to
change in function:
Suppose we changed the logic in one module and we didn't updated
that particular change in the other related modules leads to
interface errors.
2.Errors due to
misuse of interface:
This error occurs due to calling the component with parameters
which are given in the wrong order.
3.Errors due to
missing initialization values:
Sometimes the programmer might forget to initialize or reinitialize
the values like pointer variables which leads to interface
errors
4.Errors due to
misunderstanding of interface:
In this scenario, the errors occurs because the calling module
embeds wrong assumptions about the behavior of called module.
5.Errors due to
timing:
These errors are occurred due to lack of synchronization between
the processes that are communicating.The called module and the
calling module performs their functionality at different speeds
which leads to the interface errors.
How to perform
interface testing:
To perform interface testing,we need to follow the given
points.
1.For message passing systems,we should always perform stress
testing.
2.Always design the test cases in such a way that it causes the
software to fail.
3.Vary the order of the modules which are activated in the shared
memory systems.
4.Always design test cases in such a way that the range of the
parameters which are provided as input to the called component is
at the extreme ends.
5.The pointer arguments must be tested with the null pointer
values.