Package com.hamburgsud.log4testing.core.data

Examples of com.hamburgsud.log4testing.core.data.TestCase


public class Example extends junit.framework.TestCase {

  @Test
  public void test() {
    TestSuite testSuite = TestLogger.getTestSuite("My TestSuite");
    TestCase testCase = TestLogger.getTestCase("example.TestCase");
    testSuite.addTestCase(testCase);
    testCase.newTestStepGroup("Create");
    TestStep okTestStep = getOkTestStep();
    TestStep errorTestStep = getErrorTestStep();
    testCase.addTestStep(errorTestStep);
    testCase.addTestStep(okTestStep);
    TestLogger.tearDown();
  }
View Full Code Here


  /**
   * Before every test is executed this method is executed
   */
  @Before
  public void setUp() {
    testCase = new TestCase(TestCaseTest.class.getName());
    testCase.newTestStepGroup("My TestStepGroup");
  }
View Full Code Here

    setUpTestCase();
    setUpAttachmentFile();
  }

  private void setUpTestCase() {
    testCase = new TestCase(testName);
    testCase.newTestStepGroup(testName);
    final Attachment attachment = new StringAttachment(testName, CONTENT
        + NO_SCRIPT, EXTENSION);
    testCase.addTestStep(new TestStep().addAttachment(attachment).finish());
  }
View Full Code Here

    this.testCase = testCase;
  }

  public Log4SeleniumCommandProcessor(final String name,
      final CommandProcessor commandProcessor) {
    this(new TestCase(name), commandProcessor);
  }
View Full Code Here

    this(new TestCase(name), commandProcessor);
  }

  public Log4SeleniumCommandProcessor(final Object o,
      final CommandProcessor commandProcessor) {
    this(new TestCase(o.getClass().getName()), commandProcessor);
  }
View Full Code Here

TOP

Related Classes of com.hamburgsud.log4testing.core.data.TestCase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.