Assuming you are going to launch wrun.exe via dos call from QTP, you have a few options:
1. share a text file between QTP and WR
2. use the WR ddt_* functions to access QTP tables
3. Create a database that both can use. In WR you would use the "db_*" functions to access. In QTP you would use VBScript and ODBC.
I was looking into the ddt_get_parameters() command
and I don't know how to pass the parameter from QTP?
my QTP script is saved in QC and the above WR command doesn't deal with a file saved in QC , plus the QTP dataTable is difficult to access, could you please elaborate more?
Please describe the steps in the process - exact sequence of what you are trying to do. Example: Start the QTP test. The test launches WR, passes parms?? to the WR script, etc. Sequence and what you are trying to achieve is important to arriving at a solution or two. I know this can be done. [img]/images/graemlins/smile.gif[/img]
what I am trying to do is
1- open WR
2- have some old WR script to run
3- call QTP script from WR
4- after the execution of the QTP test , pass the parameters from QTP to WR to be used in my WR
5- continue with the old WR script.
we have old WR scripts to deal with powerbuilder application, down the road I have to execute some steps in a web-based application and read the resulting values , then return these results to WR to use them in the powerbuilder app.
I know how to share data between WR and QTP using a file , but I don't wanna go that rout if there is a better way to do it without dealing with files.
Then you would want to have WR make a dos_system(); call to launch QTP via the command line interface (CLI). (Note! You would use "dos_system()" versus "system()" to launch QTP since you need to resume the WR script when the QTP script is complete. "dos_system()" is synchronous.
I'm out of touch with how to launch QTP via CLI and pass it the script name and all other necessary args.