GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feature/add warnings to realtime reporter by PhilippSalvisberg · Pull Request #937 · utPLSQL/utPLSQL

Conversation

@PhilippSalvisberg

@PhilippSalvisberg PhilippSalvisberg commented Jun 12, 2019

Copy link
Copy Markdown
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>

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
PhilippSalvisberg added 4 commits June 12, 2019 16:02
@PhilippSalvisberg
add test cases for warning texts in tests, suites
dc78df3
@PhilippSalvisberg
implement new test cases and adapt existing ones
6dd53a9
Structure of test cases is affected since new PL/SQL package is created which is also used in the whole run.
@PhilippSalvisberg
emit warning texts on test and suite level
8aee0b0
@PhilippSalvisberg
complete cleanup after run
0be72e4
lwasylow
lwasylow approved these changes Jun 13, 2019
View reviewed changes
@jgebal jgebal added the enhancement label Jun 13, 2019
@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

Reviewers

@lwasylow lwasylow lwasylow approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

enhancement

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@PhilippSalvisberg @lwasylow @jgebal
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.