QTP return codes.

Terry Curran terrycurran@onetel.net.uk
Sat, 4 Jan 2003 11:07:13 -0000


The usual method as recomended by Cognos is to execute the qtp and then
check the exit status
which in the Korn shell is the variable ?0 (question zero)

So your code becomes something like:

qtp auto=first_qtp
if !?0
then
   echo "Failure"
fi
qtp auto=second_qtp
if !?0
then
  echo "Failure"
fi

...

You don't actually need to check the numeric codes but they are as follows

1. Parser error
2. Exception error
3. Calculation error
4. Execution error
5. File output error
6. Terminate condition error

If the qtp program succeeds then it returns 0 (zero).

-----Original Message-----
From: powerh-l-admin@cube.swau.edu
[mailto:powerh-l-admin@cube.swau.edu]On Behalf Of
ashley.dawkins@wincanton.co.uk
Sent: 03 January 2003 20:59
To: powerh-l@lists.swau.edu
Subject: QTP return codes.


Hi all, can anyone tell me if there is a list of return codes that QTP uses;
i.e. if QTP detects a data conversion error does it return the same as a
deadlock for example. To enlighten you to the overall scenario, I have a
number
of QTP that I wish to execute from a Korn shell script and I am trying to
trap
any errors before I execute the next QTP. Alternatively is there a better,
cleaner way to achieve the same ?

I am using Powerhouse 7.33.D3 on AIX running on rs6000's.

Thanks in advance

    Ashley Dawkins.
            ______________________________________________________
    Support Programmer
    Wincanton Ltd, Shires House, Bythesea Road, Trowbridge, Wiltshire, BA14
8HS.



****************************************************************
Wincanton plc - delivering supply chain solutions

Wincanton plc designs, implements and operates creative solutions for
complex supply chains.  Our business is based on long-term partnerships
with a broad range of customers and an in depth knowledge of their markets
and business processes.  We add value to our customers operations through
our leading-edge systems expertise, a relentless focus on the highest
standards
of operational performance and the skills and commitment of all our people.

www.wincanton.co.uk
****************************************************************
This e-mail and any files transmitted with it are confidential
and intended solely for the use of the individual(s) to whom it
is addressed.  If you have received this e-mail in error please
contact Network Security on (44) 01454 338254 or e-mail
web.access@wincanton.co.uk

Any views or opinions expressed are solely those of the author
and do not necessarily represent those of Wincanton plc
or any of its subsidiary companies.  Unauthorised publication,
use, dissemination, forwarding, printing or copying of this
e-mail and its associated attachment(s) is strictly prohibited.
Wincanton plc, Cale House, Station Road,
Wincanton, Somerset BA9 9AD.
****************************************************************

= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.