<?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: Using eCATT for Negative Test in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ecatt-for-negative-test/m-p/7743185#M1581941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When there is a negative test being carried out , there should be corresponding message displayed in the application mentioning the wrong doing. &lt;/P&gt;&lt;P&gt;Then this message can be handled using the message ... endmessage block.&lt;/P&gt;&lt;P&gt;Either you can expect the message in that case your Log would be red provided the message is an error message then you will have to allow the error message and exit the recording in the message handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no message then its an application issue as every invalid operation has to be handled with appropriate message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2011 18:50:25 GMT</pubDate>
    <dc:creator>AjayHS</dc:creator>
    <dc:date>2011-04-04T18:50:25Z</dc:date>
    <item>
      <title>Using eCATT for Negative Test</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ecatt-for-negative-test/m-p/7743183#M1581939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;  Would like to check the feasibility of using eCATT for negative test. &lt;/P&gt;&lt;P&gt;  e.g. Would like to do a negative test for invoice posting via FB01. &lt;/P&gt;&lt;P&gt;        - Test scenario would be G/L account provided is locked for posting. &lt;/P&gt;&lt;P&gt;        - Would eCATT be able to show this as a 'successful' result so that no investigation is required?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;- Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 02:18:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ecatt-for-negative-test/m-p/7743183#M1581939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-04T02:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using eCATT for Negative Test</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ecatt-for-negative-test/m-p/7743184#M1581940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that if you execute FB01 to post against a locked account the system will issue an error message.&lt;/P&gt;&lt;P&gt;If so then you can capture this specific error message using the MESSAGE interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE.
  TCD ( FB01, FB01_1 ).
ENDMESSAGE ( MSG_1 ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before executing the transaction I would first check whether the account is indeed locked. Perhaps there is another transaction available for locking the account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TCD ( xxxx, xxxx_1 ).  " Recording to lock G/L account

MESSAGE.
  TCD ( FB01, FB01_1 ).
ENDMESSAGE ( MSG_1 ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, if you have a specific negative output that is repeatable than you can use eCATT for testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 05:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ecatt-for-negative-test/m-p/7743184#M1581940</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2011-04-04T05:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using eCATT for Negative Test</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ecatt-for-negative-test/m-p/7743185#M1581941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When there is a negative test being carried out , there should be corresponding message displayed in the application mentioning the wrong doing. &lt;/P&gt;&lt;P&gt;Then this message can be handled using the message ... endmessage block.&lt;/P&gt;&lt;P&gt;Either you can expect the message in that case your Log would be red provided the message is an error message then you will have to allow the error message and exit the recording in the message handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no message then its an application issue as every invalid operation has to be handled with appropriate message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 18:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ecatt-for-negative-test/m-p/7743185#M1581941</guid>
      <dc:creator>AjayHS</dc:creator>
      <dc:date>2011-04-04T18:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using eCATT for Negative Test</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ecatt-for-negative-test/m-p/7743186#M1581942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the msg id and msg number for the error message - 'G/L account blocked for posting'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon having the above information, do your recording and ensure that you place the recording between MESSAGE and ENDMESSAGE block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on MESSAGE and create an expected message record with the above msg id and msg number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This ensures that the error message is always expected by the recording and thus can perform negative testing but note that the execution with give you GREEN &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 06:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ecatt-for-negative-test/m-p/7743186#M1581942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-06T06:59:24Z</dc:date>
    </item>
  </channel>
</rss>

