QTP in batch file (job ?) in Windows ?
Brian Stephens
bws001 at gmail.com
Thu Jun 7 13:00:06 CDT 2012
Windows does read data from the batch file. After it executes a command it expects it to go away and do its thing. Next line in the batch file is the next command it will execute.
Sent from my iPhone
On 2012-06-07, at 12:34, Michel Adam <michel.adam at gmail.com> wrote:
> 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
>
> --
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l at lists.sowder.com
> Subscribe: 'subscribe' in message body to powerh-l-request at lists.sowder.com
> Unsubscribe: 'unsubscribe <password>' in message body to powerh-l-request at lists.sowder.com
> http://lists.sowder.com/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a subscriber.
> Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sowder.com/pipermail/powerh-l/attachments/20120607/e74c0e99/attachment-0001.htm>
More information about the powerh-l
mailing list