| || |
I need to script in vugen. I need to get the name of the machine running the script but vugen doesn't allow this because no dll's are possible. How can I do it? Also: their documents said that I coudl find if the script was WinRunner or from the controller execution. How do I do that?
1. Vugen uses ANSI C therefore loading DLL is possible
2. Vugen offers couple of specific functions that will do the trick for you
3. Call Mercury support, they will be more than happy to help
Hope this helps
Taking everything in order:
1.) Do something like:
lr_output_message ("Controller Host: %s.", controller_host);
lr_output_message ("Master Host: %s.", master_host);
2.) You can call DLL's from VUGen. Simply do something like this:
3.) The Mercury documents are misleading. You cannot find if it is WinRunner but you can find if it is running via the controller or whether it is running via VUGen, Astra QuickTest, or WinRunner. Just do this:
The online help and the Web site makes it sound like you can tell if it is WinRunner while running and do some form of conditional logic, but this is not true because it always returns a -1 for the load controller regardless of what was used to generate the test script.
[This message has been edited by admin (edited 01-19-2000).]
Did you look at the function lr_get_host_name()
Cool! Thanks! The above was a big help.