The company I work for has been developing QARun scripts for many years, but since QARun does not support Vista, and QARun support is going away in the next year or 2, we are now beginning a migration effort to Test Partner.
All of our scripts have been written using an approach of application specific drivers which call task specific functions from a massive QA Run library we have built over the years. These functions are NOT capture playback, these are behind the scenes actions like complex decision making, data generators and report generators. Also these functions are not independent scripts, where I would be able to just have <QARun Asset>.Run <ScriptName>. These are 100's of different functions that reside in 50+ QARun library scripts. Also, there are parameters that are passed to functions and return values from them.
Since this may be a several year effort to get everything migrated over to Test Partner. I am hoping to build TP drivers for our applications and be able to call functions from my QA Run library. This way I can migrate the functions that interact with the application ( the ones that will not work in Vista ) first, then work on complex decision making and reporting functions secondary. I would still probably take the same amount of effort to migrate everything over to Test Partner, but at least I would be able to get some of our automation up and running, and interacting with the applications using TP, relatively quickly without having to re-write all of its back end code just to get started.
In Test Partner you can execute QARun scripts, but not directly call functions within these scripts.
So I was thinking about creating a small QARun driver script that has all the library scripts included. The Main function of this script would simply read the function I wish to execute and parametes from an ini file or environment setting. Then this would create a string that would resemble the line of code you would have in awl for calling the function. Then I would be able to setup and run this driver script from TestPartner everytime I wish to execute a function from my existing QARun library.
However I do not see anyway in QARun to call a function defined in a string.
Or, maybe some better approach to attempt to execute functions from my QARun library within TestPartner?
( Of course I realise second question does not makes to much sense in the QARun forum - but I have a feeling there are others migrating)
This sounds like it is a big enough effort where you might be able to get an engineer or two from Compuware to come out and help you scope a solution. You might pitch this to your local Compuware rep and see what they say. The worst they can say is no, right?
I don't have the specific answers that you seek, but some of the developers at Compuware might, and talking with the rep may open the door to those resources.
You might also give a call to the tech support hotline and pose this same question to them. You might be pleasantly surprised with the answers. I know I have been pretty impressed that they are right on top of most issues I have called in with.