Gurav has given a valid point on how to check the status bar message.
On Sat, Jun 5, 2010 at 10:28 AM, Gaurav Madan <[email protected]> wrote:
> you can use checkpoint for that
>
>
> 1. First, you can take an Output Checkpoint for the same i.e. Put QTP in
> the record mode,Go to Insert-> Output Value->Standard Output value.
> You will get a hand cursor.Now take the hand cursor on the status bar text
> say "Purchase Order Number 4519002456 has been created" and click on it.You
> would get a window where you can select a property depending on what you
> want to capture i.e. the complete text or the PO Number alone.
>
> The good thing about this is, next time when you run your script it would
> not clash with the present value and would dynamically update the record.
>
> 2. Second method is programatically you can do the same as below:
>
> strPurchase_Order_Number = SAPGuiSession("Session").SAPGuiWindow("Create
> Purchase"). .SAPGuiStatusBar("StatusBar").GetROProperty("item1")
>
> where item1 is the property.This would change depending on what you want to
> capture.You can get all these properties by doing an Object Spy on the
> Status Bar.
>
>
> On Fri, Jun 4, 2010 at 11:50 PM, NEERJA nawani <[email protected]>wrote:
>
>> Hi All,
>> In SAP application if user put invalid values, error message appears at
>> status bar, I want to check that error message with recovery scenario,
>> Please help
>>
>> --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<mercuryqtp%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<mercuryqtp%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en