<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ECATT not stable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-not-stable/m-p/10516635#M1853666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction behavior and session state might be reasons for SAPGUI automation to stop or to fail to control the UI. The screen flow and other behaviour of a transaction like ME51N depends on many preconditions. Running other steps in same UI session is only one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a good idea to isolate independend automation tasks and to process different tests each in it's own environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do so, you have a number of options in eCATT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- use command RESCON to close the currently used RFC session in SUT (system under test) and to close the SAP GUI Scripting session at same time -&amp;gt; Restarts the controled SAP GUI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- in the first SAPGUI command of the new sequence use the field ResetGUI = 'X', which will stop the previously running transaction in the current SAPGUI session and restart the transaction code given in the same SAPGUI command (similar to&amp;nbsp;&amp;nbsp;&amp;nbsp; /N&amp;lt;TCODE&amp;gt;&amp;nbsp; in OK Code field)&amp;nbsp; -&amp;gt; Restarts the transaction but controled SAP GUI window will stay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- use start option "Close RFC Connection" when starting your tests, which would close RFC and SAP GUI sessions between each test configuration and test configuration variant of a test package run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside a new and clean SAP GUI session or transaction context you can also check the influence of SPA/GPA parameters on ME51N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this can help to make your automation more stable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2014 09:09:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-09-02T09:09:29Z</dc:date>
    <item>
      <title>ECATT not stable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-not-stable/m-p/10516634#M1853665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created ECATT script for transaction ME51N - Create purchase requisition using SAPGUI REC interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In transaction ME51N I jumped to necesary fields using mouse positioning. The script was sucessfully saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing the script it sometimes works and sometimes does not work. When it is not working, it stops usually at one of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; the first script lines with one of the messages:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Transaction ME51N not found&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;GUI element "Shell" not found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the impression this happens when the session of the former ECATT run is not completely closed. But I can not verify this.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;What can I do to verify if there is really a not completely closed session on system under test?&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;How can I improve the script to make it stable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dieter Biela&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 06:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-not-stable/m-p/10516634#M1853665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T06:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: ECATT not stable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-not-stable/m-p/10516635#M1853666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction behavior and session state might be reasons for SAPGUI automation to stop or to fail to control the UI. The screen flow and other behaviour of a transaction like ME51N depends on many preconditions. Running other steps in same UI session is only one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a good idea to isolate independend automation tasks and to process different tests each in it's own environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do so, you have a number of options in eCATT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- use command RESCON to close the currently used RFC session in SUT (system under test) and to close the SAP GUI Scripting session at same time -&amp;gt; Restarts the controled SAP GUI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- in the first SAPGUI command of the new sequence use the field ResetGUI = 'X', which will stop the previously running transaction in the current SAPGUI session and restart the transaction code given in the same SAPGUI command (similar to&amp;nbsp;&amp;nbsp;&amp;nbsp; /N&amp;lt;TCODE&amp;gt;&amp;nbsp; in OK Code field)&amp;nbsp; -&amp;gt; Restarts the transaction but controled SAP GUI window will stay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- use start option "Close RFC Connection" when starting your tests, which would close RFC and SAP GUI sessions between each test configuration and test configuration variant of a test package run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside a new and clean SAP GUI session or transaction context you can also check the influence of SPA/GPA parameters on ME51N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this can help to make your automation more stable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 09:09:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecatt-not-stable/m-p/10516635#M1853666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-02T09:09:29Z</dc:date>
    </item>
  </channel>
</rss>

