ilog.rules.dvs.rbtesting

Class IlrRBTScenarioReport

  • java.lang.Object
    • ilog.rules.dvs.rbtesting.IlrRBTScenarioReport


  • public class IlrRBTScenarioReport
    extends java.lang.Object
    Represents the out parameter for the ruleset being tested. Use this class to write failure instructions inside the rules being tested.
    Since:
    7.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrRBTScenarioReport(java.lang.String executionId, java.lang.String scenarioName)
      Creates a new IlrRBTScenarioReport instance.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void failOrSkip(java.lang.String testName, java.lang.String messageKey, java.lang.Object[] messageParameters, java.lang.String messageLocale, boolean fail)
      Adds a test failure or a test skipped report.
      java.lang.String getExecutionId()
      Returns the execution ID.
      java.lang.String getScenarioName()
      Returns the name of the scenario.
      java.util.List<IlrTestResult> getTestResults()
      Returns the results for the tests run in this scenario.
      void succeed(java.lang.String testName, java.lang.String messageKey, java.lang.Object[] messageParameters, java.lang.String messageLocale)
      Adds a test success report.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrRBTScenarioReport

        public IlrRBTScenarioReport(java.lang.String executionId,
                            java.lang.String scenarioName)
        Creates a new IlrRBTScenarioReport instance.
        Parameters:
        executionId - The execution ID.
        scenarioName - The name of the scenario.
    • Method Detail

      • getExecutionId

        public java.lang.String getExecutionId()
        Returns the execution ID.
        Returns:
        The execution ID.
      • getScenarioName

        public java.lang.String getScenarioName()
        Returns the name of the scenario.
        Returns:
        The scenario name.
      • failOrSkip

        public void failOrSkip(java.lang.String testName,
                      java.lang.String messageKey,
                      java.lang.Object[] messageParameters,
                      java.lang.String messageLocale,
                      boolean fail)
        Adds a test failure or a test skipped report.
        Parameters:
        testName - The name of the test.
        messageKey - The message key in the messages bundle.
        messageParameters - The message parameters.
        messageLocale - The locale for the message in the following format: [language][_COUNTRY[_variant]]. Tokens between the brackets [] are optional.
        fail - Set to true if this is a failure report. Set to false for a skip report.
      • succeed

        public void succeed(java.lang.String testName,
                   java.lang.String messageKey,
                   java.lang.Object[] messageParameters,
                   java.lang.String messageLocale)
        Adds a test success report.
        Parameters:
        testName - The name of the test.
        messageKey - The message key in the messages bundle.
        messageParameters - The message parameters.
        messageLocale - The locale for the message in the following format: [language][_COUNTRY[_variant]]. Tokens between the brackets [] are optional.
      • getTestResults

        public java.util.List<IlrTestResult> getTestResults()
        Returns the results for the tests run in this scenario.
        Returns:
        The results for the tests run in this scenario.

© Copyright IBM Corp. 1987, 2017