I've been using WinRunner for a while now, it's a great tool apart from the giant bulk of dll's that it comes with. Here is the outline of my problem and of course the question.
I've created all of my regression with winrunner and made it very structured in compiled mods. I've also written a VB app that a user can run each test case from. The VB app allows the user to select a test case that's read in from an XML format file. The App then asks for winrunner to open ... waits ... creates a new test based on what was selected in the VB app and sends the message for winrunner to run the test. This process runs works but is not great. I have been trying to find out if there is an undocumented way to call the winrunner run engine externally .. I'm sure that there must be a function in one of the hundreds of DLL's that are install with WR. If anyone has any ideas I would like to hear them. I'm loging the results to a file so don't need the UI bulk for just running the tests.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by amit-online: The commandline open's the Winrunner UI but I'm looking for a way of running the tests without having to open the Winrunner UI. <HR></BLOCKQUOTE>
You could always run it minimized.
I don't know of any way to invoke the WR engine without the UI.
TestDirector invokes WinRunner in the way I think you are trying to use it, so their MIGHT be a way to emulate TestDirector. I would ask a Mercury support EXPERT [but I suspect Mercury wants one to buy and use TestDirector for this type of functionality].
If you have TD and some Window's debugging tools you might be able to deconstruct the TD-WR interaction as well [as you seem pretty programmer savvy].
-Hope this helps, Terry Horwath
P.S. And if you have not already done so you should probably post this question to the WinRunner board.
[This message has been edited by Terry Horwath (edited 09-26-2001).]