<?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: Problem: COMMIT on aborted test in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-commit-on-aborted-test/m-p/7735021#M1581307</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 would suggest to use for example ST05 to trace whole run. Then you'll be able to see where in code commit was executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Marcin Cholewczuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2011 19:43:26 GMT</pubDate>
    <dc:creator>marcin_cholewczuk</dc:creator>
    <dc:date>2011-03-16T19:43:26Z</dc:date>
    <item>
      <title>Problem: COMMIT on aborted test</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-commit-on-aborted-test/m-p/7735020#M1581306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have implemented the following mechanism for our automated tests.&lt;/P&gt;&lt;P&gt;The SETUP method of our unit test classes creates a few entries in our tables, these are used for the tests.&lt;/P&gt;&lt;P&gt;The TEARDOWN method does a ROLLBACK WORK to get rid of the entries. No COMMIT is performed by any of the tested routines or by the tests themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: When I run the tests from ECA and abort the transaction when the tests are running, the test entries are persisted in the tables. This can only be the case if a COMMIT is issued somewhere. The question is where?&lt;/P&gt;&lt;P&gt;When I let the tests run to completion then the entries are rolled back - no problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RFC colleagues tell me that no COMMIT is issued when a connection is aborted.&lt;/P&gt;&lt;P&gt;Appeciate any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to recreate the problem: run test catalog SEPM_EPM_UNIT_TESTS from ECA as is (the tests run against YI3). Abort the transaction when the tests are running. See table SNWD_PO - you will find exactly 3 test entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx + Regards&lt;/P&gt;&lt;P&gt;srini&lt;/P&gt;&lt;P&gt;epm/dev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 09:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-commit-on-aborted-test/m-p/7735020#M1581306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-10T09:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: COMMIT on aborted test</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-commit-on-aborted-test/m-p/7735021#M1581307</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 would suggest to use for example ST05 to trace whole run. Then you'll be able to see where in code commit was executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Marcin Cholewczuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 19:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-commit-on-aborted-test/m-p/7735021#M1581307</guid>
      <dc:creator>marcin_cholewczuk</dc:creator>
      <dc:date>2011-03-16T19:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem: COMMIT on aborted test</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-commit-on-aborted-test/m-p/7735022#M1581308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A quick update.&lt;/P&gt;&lt;P&gt;I can confirm that the problem has nothing to do with eCATT / ECA. I shall therefore mark the question as answered.&lt;/P&gt;&lt;P&gt;FWIW, here is a quick summary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the simple test routine below - this is the basic structure of our eCATT tests. We create some test data in the setup method of every test, then execute the test, finally trigger a rollback in the teardown method. &lt;/P&gt;&lt;P&gt;When the endless loop is running, select 'stop transaction' from SAPGui, check &amp;lt;table name&amp;gt; whether the test entry is persisted. We discovered that rollback does not work on some (WIN) app servers - on Linux app servers, the rollback is correct. The problem has been adressed and will be fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
do.
&amp;lt;fill wa here&amp;gt;
insert &amp;lt;database table name&amp;gt; from &amp;lt;wa&amp;gt;.
rollback work.
enddo.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 10:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-commit-on-aborted-test/m-p/7735022#M1581308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-23T10:29:10Z</dc:date>
    </item>
  </channel>
</rss>

