Does anyone have any advice on creating custom dialog boxes to get information that is required for test scripts at runtime. I find Winrunner's create_custom_dialog function far too limiting.
I need to get several configuration parameters from the user at the start of the test but create_custom_dialog won't work.
Re: Custom Dialogs
What doesn't work for you? I've created some login tests that require inputs such as user name, password, hostname, etc. I use create_input_dialog for the user name stuff and create_list_dialog for the hostname, and they work fine for that. I embed each in a while loop so I can do some simple verifications of the input (like, was anything input?) and only exit the loop when a valid input is received.
If the problem is that you have a lot of info you need to enter, perhaps it would be better to put it into a flat file or Excel spreadsheet and read in the data via appropriate functions? Or perhaps you could create a VB or web screen that would get the info you need from the user and store it into a file - you could have the script launch that app, then read the stored data from the file once it's done.
In any case, in the long run it's probably best to use some sort of data file rather than getting user inputs, as the user inputs make it rather inconvenient when you want to run the test in batch mode overnight.
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)