Class AdapterManager

java.lang.Object
ru.testit.services.AdapterManager

public class AdapterManager extends Object
This class manages data from a test framework.
  • Constructor Details

  • Method Details

    • startTests

      public void startTests()
    • stopTests

      public void stopTests()
    • startMainContainer

      public void startMainContainer(MainContainer container)
      Starts main container.
      Parameters:
      container - the main container.
    • stopMainContainer

      public void stopMainContainer(String uuid)
      Stops main container by given uuid.
      Parameters:
      uuid - the uuid of container.
    • startClassContainer

      public void startClassContainer(String parentUuid, ClassContainer container)
      Starts class container.
      Parameters:
      parentUuid - the uuid of parent container.
      container - the class container.
    • stopClassContainer

      public void stopClassContainer(String uuid)
      Stops class container by given uuid.
      Parameters:
      uuid - the uuid of container.
    • updateClassContainer

      public void updateClassContainer(String uuid, Consumer<ClassContainer> update)
      Updates class container.
      Parameters:
      uuid - the uuid of container.
      update - the update function.
    • startTestCase

      public void startTestCase(String uuid)
      Starts test case with given uuid.
      Parameters:
      uuid - the uuid of test case to start.
    • scheduleTestCase

      public void scheduleTestCase(TestResult result)
      Schedule given test case.
      Parameters:
      result - the test case to schedule.
    • updateTestCase

      public void updateTestCase(Consumer<TestResult> update)
      Updates current test case
      Parameters:
      update - the update function.
    • updateTestCase

      public void updateTestCase(String uuid, Consumer<TestResult> update)
      Updates test case by given uuid.
      Parameters:
      uuid - the uuid of test case to update.
      update - the update function.
    • stopTestCase

      public void stopTestCase(String uuid)
      Stops test case by given uuid.
      Parameters:
      uuid - the uuid of test case to stop.
    • startPrepareFixtureAll

      public void startPrepareFixtureAll(String parentUuid, String uuid, FixtureResult result)
      Start a new prepare fixture with given parent.
      Parameters:
      parentUuid - the uuid of parent container.
      uuid - the fixture uuid.
      result - the fixture.
    • startTearDownFixtureAll

      public void startTearDownFixtureAll(String parentUuid, String uuid, FixtureResult result)
      Start a new tear down fixture with given parent.
      Parameters:
      parentUuid - the uuid of parent container.
      uuid - the fixture uuid.
      result - the fixture.
    • startPrepareFixture

      public void startPrepareFixture(String parentUuid, String uuid, FixtureResult result)
      Start a new prepare fixture with given parent.
      Parameters:
      parentUuid - the uuid of parent container.
      uuid - the fixture uuid.
      result - the fixture.
    • startTearDownFixture

      public void startTearDownFixture(String parentUuid, String uuid, FixtureResult result)
      Start a new tear down fixture with given parent.
      Parameters:
      parentUuid - the uuid of parent container.
      uuid - the fixture uuid.
      result - the fixture.
    • startPrepareFixtureEachTest

      public void startPrepareFixtureEachTest(String parentUuid, String uuid, FixtureResult result)
      Start a new prepare fixture with given parent.
      Parameters:
      parentUuid - the uuid of parent container.
      uuid - the fixture uuid.
      result - the fixture.
    • startTearDownFixtureEachTest

      public void startTearDownFixtureEachTest(String parentUuid, String uuid, FixtureResult result)
      Start a new tear down fixture with given parent.
      Parameters:
      parentUuid - the uuid of parent container.
      uuid - the fixture uuid.
      result - the fixture.
    • updateFixture

      public void updateFixture(String uuid, Consumer<FixtureResult> update)
      Updates fixture by given uuid.
      Parameters:
      uuid - the uuid of fixture.
      update - the update function.
    • stopFixture

      public void stopFixture(String uuid)
      Stops fixture by given uuid.
      Parameters:
      uuid - the uuid of fixture.
    • startStep

      public void startStep(String uuid, StepResult result)
      Start a new step as child step of current running test case or step.
      Parameters:
      uuid - the uuid of step.
      result - the step.
    • startStep

      public void startStep(String parentUuid, String uuid, StepResult result)
      Start a new step as child of specified parent.
      Parameters:
      parentUuid - the uuid of parent test case or step.
      uuid - the uuid of step.
      result - the step.
    • updateStep

      public void updateStep(Consumer<StepResult> update)
      Updates current step.
      Parameters:
      update - the update function.
    • updateStep

      public void updateStep(String uuid, Consumer<StepResult> update)
      Updates step by specified uuid.
      Parameters:
      uuid - the uuid of step.
      update - the update function.
    • stopStep

      public void stopStep()
      Stops current running step.
    • stopStep

      public void stopStep(String uuid)
      Stops step by given uuid.
      Parameters:
      uuid - the uuid of step to stop.
    • addAttachments

      public void addAttachments(List<String> attachments)
    • isFilteredMode

      public boolean isFilteredMode()
    • getTestFromTestRun

      public List<String> getTestFromTestRun()
    • getCurrentTestCaseOrStep

      public Optional<String> getCurrentTestCaseOrStep()