QTP in batch file (job ?) in Windows ?
Michel Adam
michel.adam at gmail.com
Thu Jun 7 12:34:31 CDT 2012
Sorry, that should have been page 137 to 139, especially the example on
page 139.
Michel
On Thu, Jun 7, 2012 at 11:28 AM, Michel Adam <michel.adam at gmail.com> wrote:
> Hi listers,
>
> trying to run a batch file and have QTP prompt for a few parameters (after
> RTFM the QTP manual, page 137).
>
> QTP will just stop cold and prompt without reading the parameters. What am
> I missing?
>
>
> The bat file is:
>
>
> c:
> cd \foambin
> rem QTP auto=C:\FOAMbin\XFSPR20D < %PHTEMP%\FFSPARAM.dat
> QTP
> execute C:\FOAMbin\XFSPR20D
> 02
> @
> @
> @
>
> execute C:\FOAMbin\XFSPR20Z
> exit
> QUIZ auto=C:\FOAMbin\XFSZR20Z
>
>
>
> The 'rem' statement is from a prior attempt, which works, of having QTP
> execute the run and get the values for the prompts from a file
> (FFSPARAM.dat).
>
>
> when testing, the results are:
>
> --------------
>
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation. All rights reserved.
>
> G:\>c:
>
> C:\>cd foambin
>
> C:\FOAMbin>dir jfsrp20a.bat
> Volume in drive C has no label.
> Volume Serial Number is 8C96-214D
>
> Directory of C:\FOAMbin
>
> 2012-06-07 11:15 264 JFSRP20A.bat
> 1 File(s) 264 bytes
> 0 Dir(s) 1,863,245,824 bytes free
>
> C:\FOAMbin>jfsrp20a
>
> C:\FOAMbin>c:
>
> C:\FOAMbin>cd \foambin
>
> C:\FOAMbin>rem QTP auto=C:\FOAMbin\XFSPR20D <
> C:\Users\madam\AppData\Local\PHTemp
> \FFSPARAM.dat
>
> C:\FOAMbin>QTP
> IBM(R) Cognos(R) PowerHouse(R) 4GL 8.41G - QTP
> (C) Copyright IBM Corp. 1982, 2010
>
> >
>
> ------------
>
> and that is it. QTP just stops there and waits for input.
>
> Is page 137 of the QPT reference manual accurate?
>
> Michel Adam
> michel.adam at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sowder.com/pipermail/powerh-l/attachments/20120607/46b27ecf/attachment.htm>
More information about the powerh-l
mailing list