Is there any way we can test .dll files or call and test Win32 API using Rational Robot.
Also can test the .exe files using Rational Robot or any other product in the Rational Suite .
Of course, but it depends on what you want to test.
If you want to give somebody a fish, you'll do better if you teach him how to catch it.
Ya its ok but how do we do it suppose I want test a .dll file related to say a sound driver.
Or call an API or .exe which is created in some other tool.
You can use API function in Robot.
Declare Sub MySub Lib "MyDll"(ByVal x As Integer, y As String)
Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
If a custom procedure is in an SQABasic library file (SBL), then use syntax:
Declare Sub MySub BasicLib "MyLib" (arg1 As String, arg2 As Integer)
In order to run some EXE file use "StartApplication","Shel" or "SQAShellExecute". For more info about these functions look at help.
If you want to test functions in DLL then you can run AUT (app under test) under PureCoverage "StartAppUnderCoverage". It will show you whether function from DLL was used while testing or not.
Probably the best solution to test functions from DLL is using Unit Testing, which should be performed by programmers.
For Win32 API calls see the file Win32_API.zip, its available here: