Skip to Content
author's profile photo Former Member
Former Member

Check in eCATT if a screen exists

Hello,

I have a question about checking an optional screen element. There is a CHEGUI and I check a field in there. But it is possible that the screen, that is checked by the CHEGUI, doesn't occure. Is there a possibility to check if the screen is there (and do the CHEGUI) or if it is not there to skip the CHEGUI?

In other test automation frameworks like QTP are mehtods (EXISTS() )for such an operation but in eCATT I didn't find something until now.

regards,

Wolfgang

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 13, 2014 at 07:51 AM

    Hello,

    thank you Sheetal and Aj. That was the solution. I didn't find that option first because it is not displayed in the standard view like in SAPGUI control.

    So you have to switch from custom view to detail view, that the Information\Application node appears. See screenshot attaches where you can see custom view button (hand symbol) and detail view button (paper symbol).

    regards,

    Wolfgang


    detail_view.png (11.9 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 11, 2014 at 08:45 AM

    hi Wolfgang,

    One way is to use SAPGUI recording. There's a field called "Available" in the interface.

    Parameterize it. If the screen occurs, the parameter will have a value "X" .

    This can be used as a check before executing the CHEGUI.

    "Available" can be found under the "ProcessedScreen" node.

    A better way is to parameterize the "Active" field as 'O' in the CHEGUI interface.

    The step gets executed only if the screen exists and not otherwise.

    "Active" can be found under the "Application" node under the "Information" node.

    hope this helps.

    BR,

    Sheetal

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 13, 2014 at 07:26 AM

    Hello Wolfgang,

    At first you need to split the SAPGUI command at Methods/Properties level after the split for that particular SAPGUI which is optional , go to the command interface and set the Active to 'O' under the processed screen.

    This indicates this particular SAPGUI command is set as optional which gets executed if it appears else continues with next SAPGUI command.

    Hope it helps.

    Thanks,

    Aj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.