Passing functions from data tables to driver scripts
Like some of the previous posts, I'd like to pass in function names (e.g. verifyLabel, clickButton etc.) to my driver scripts from data tables.
Using a language such as C I'd have done this by passing the function to the driver script using a pointer. I'm presuming QARuns scripting language doesn't support this though. Please correct me if I'm wrong!
Otherwise, does anyone know of a straightforward means of passing function names from data tables to driver scripts (without resorting to the "Run" command).
I'd have thought this was a key requirement in achieving a true data-driven test framework. Is it just something that cannot be done with QARun??
Many thanks in advance.
Re: Passing functions from data tables to driver scripts
You can't pass actual function names but if you want to use this method, the easiest way is to have a code in the data that the script identifies to a specific function.
This is more scripting than you would otherwise need, but it will mean that you can create your own function codes in your test data that do things not limited to QARun functionality.
Hope this helps...