I am performing Black-box testing on a DLL. First API I have is connect
.
connect
accepts certain parameters, performs certain operations (Which include COM port and/or LAN access) and if it is first call then launches an application.
I have to call disconnect
after every test to clear up what connect
has done to have a clean environment.
Probem is disconnect
is also a function given by same DLL and I will be testing it after this. But I don't want to depend on any other API of DLL-Under-Test during it's test.
Is there any way by which I can clear Memory allocated, Applications triggered, Port bindings by a DLL externally?