Skip to content

Conversation

@PhilippSalvisberg
Copy link
Member

I've run also the test case provided in the issue #936 . I'm using here the development version of to ut_realtime_reporter. This call:

set serveroutput on
exec ut3.ut.run('check_realtime_reporting4', ut3.ut_realtime_reporter());

produces this result (look for new warnings tags):

<?xml version="1.0"?>
<event type="pre-run">
  <items>
    <suite id="realtime_reporting">
      <name>realtime_reporting</name>
      <items>
        <suite id="realtime_reporting.check_realtime_reporting4">
          <name>check_realtime_reporting4</name>
          <items>
            <test id="realtime_reporting.check_realtime_reporting4.test_8_with_warning">
              <executableType>test</executableType>
              <ownerName>UT3$USER#</ownerName>
              <objectName>check_realtime_reporting4</objectName>
              <procedureName>test_8_with_warning</procedureName>
              <disabled>false</disabled>
              <name>test_8_with_warning</name>
              <testNumber>1</testNumber>
            </test>
          </items>
        </suite>
      </items>
    </suite>
  </items>
  <totalNumberOfTests>1</totalNumberOfTests>
</event>

<?xml version="1.0"?>
<event type="pre-suite">
  <suite id="realtime_reporting">
  </suite>
</event>

<?xml version="1.0"?>
<event type="pre-suite">
  <suite id="realtime_reporting.check_realtime_reporting4">
  </suite>
</event>

<?xml version="1.0"?>
<event type="pre-test">
  <test id="realtime_reporting.check_realtime_reporting4.test_8_with_warning">
    <testNumber>1</testNumber>
    <totalNumberOfTests>1</totalNumberOfTests>
  </test>
</event>

<?xml version="1.0"?>
<event type="post-test">
  <test id="realtime_reporting.check_realtime_reporting4.test_8_with_warning">
    <testNumber>1</testNumber>
    <totalNumberOfTests>1</totalNumberOfTests>
    <startTime>2019-06-12T16:13:13.652171</startTime>
    <endTime>2019-06-12T16:13:13.658354</endTime>
    <executionTime>.006183</executionTime>
    <counter>
      <disabled>0</disabled>
      <success>1</success>
      <failure>0</failure>
      <error>0</error>
      <warning>1</warning>
    </counter>
    <warnings><![CDATA[Unable to perform automatic rollback after test. An implicit or explicit commit/rollback occurred in procedures:
  ut3$user#.check_realtime_reporting4.test_8_with_warning
Use the "--%rollback(manual)" annotation or remove commit/rollback/ddl statements that are causing the issue.]]></warnings>
  </test>
</event>

<?xml version="1.0"?>
<event type="post-suite">
  <suite id="realtime_reporting.check_realtime_reporting4">
    <startTime>2019-06-12T16:13:13.648098</startTime>
    <endTime>2019-06-12T16:13:13.663282</endTime>
    <executionTime>.015184</executionTime>
    <counter>
      <disabled>0</disabled>
      <success>1</success>
      <failure>0</failure>
      <error>0</error>
      <warning>3</warning>
    </counter>
    <warnings><![CDATA["--%tags" annotation requires a tag value populated. Annotation ignored.
at "UT3$USER#.CHECK_REALTIME_REPORTING4", line 5
Unable to perform automatic rollback after test suite. An implicit or explicit commit/rollback occurred in procedures:
  ut3$user#.check_realtime_reporting4.test_8_with_warning
Use the "--%rollback(manual)" annotation or remove commit/rollback/ddl statements that are causing the issue.]]></warnings>
  </suite>
</event>

<?xml version="1.0"?>
<event type="post-suite">
  <suite id="realtime_reporting">
    <startTime>2019-06-12T16:13:13.646379</startTime>
    <endTime>2019-06-12T16:13:13.666403</endTime>
    <executionTime>.020024</executionTime>
    <counter>
      <disabled>0</disabled>
      <success>1</success>
      <failure>0</failure>
      <error>0</error>
      <warning>3</warning>
    </counter>
  </suite>
</event>

<?xml version="1.0"?>
<event type="post-run">
  <run>
    <startTime>2019-06-12T16:13:13.644619</startTime>
    <endTime>2019-06-12T16:13:13.670886</endTime>
    <executionTime>.026267</executionTime>
    <counter>
      <disabled>0</disabled>
      <success>1</success>
      <failure>0</failure>
      <error>0</error>
      <warning>3</warning>
    </counter>
  </run>
</event>

@jgebal jgebal merged commit 5ccec8f into develop Jun 13, 2019
@PhilippSalvisberg PhilippSalvisberg deleted the feature/add_warnings_to_realtime_reporter branch June 16, 2019 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants