Package ru.testit.services
Class AdapterManager
java.lang.Object
ru.testit.services.AdapterManager
This class manages data from a test framework.
-
Constructor Summary
ConstructorsConstructorDescriptionAdapterManager(ClientConfiguration clientConfiguration, AdapterConfig adapterConfig) AdapterManager(ClientConfiguration clientConfiguration, AdapterConfig adapterConfig, ListenerManager listenerManager) AdapterManager(ClientConfiguration clientConfiguration, AdapterConfig adapterConfig, ThreadContext threadContext, ResultStorage storage, Writer writer, ApiClient client, ListenerManager listenerManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachments(List<String> attachments) booleanvoidscheduleTestCase(TestResult result) Schedule given test case.voidstartClassContainer(String parentUuid, ClassContainer container) Starts class container.voidstartMainContainer(MainContainer container) Starts main container.voidstartPrepareFixture(String parentUuid, String uuid, FixtureResult result) Start a new prepare fixture with given parent.voidstartPrepareFixtureAll(String parentUuid, String uuid, FixtureResult result) Start a new prepare fixture with given parent.voidstartPrepareFixtureEachTest(String parentUuid, String uuid, FixtureResult result) Start a new prepare fixture with given parent.voidstartStep(String parentUuid, String uuid, StepResult result) Start a new step as child of specified parent.voidstartStep(String uuid, StepResult result) Start a new step as child step of current running test case or step.voidstartTearDownFixture(String parentUuid, String uuid, FixtureResult result) Start a new tear down fixture with given parent.voidstartTearDownFixtureAll(String parentUuid, String uuid, FixtureResult result) Start a new tear down fixture with given parent.voidstartTearDownFixtureEachTest(String parentUuid, String uuid, FixtureResult result) Start a new tear down fixture with given parent.voidstartTestCase(String uuid) Starts test case with given uuid.voidvoidstopClassContainer(String uuid) Stops class container by given uuid.voidstopFixture(String uuid) Stops fixture by given uuid.voidstopMainContainer(String uuid) Stops main container by given uuid.voidstopStep()Stops current running step.voidStops step by given uuid.voidstopTestCase(String uuid) Stops test case by given uuid.voidvoidupdateClassContainer(String uuid, Consumer<ClassContainer> update) Updates class container.voidupdateFixture(String uuid, Consumer<FixtureResult> update) Updates fixture by given uuid.voidupdateStep(String uuid, Consumer<StepResult> update) Updates step by specified uuid.voidupdateStep(Consumer<StepResult> update) Updates current step.voidupdateTestCase(String uuid, Consumer<TestResult> update) Updates test case by given uuid.voidupdateTestCase(Consumer<TestResult> update) Updates current test case
-
Constructor Details
-
AdapterManager
-
AdapterManager
public AdapterManager(ClientConfiguration clientConfiguration, AdapterConfig adapterConfig, ListenerManager listenerManager) -
AdapterManager
public AdapterManager(ClientConfiguration clientConfiguration, AdapterConfig adapterConfig, ThreadContext threadContext, ResultStorage storage, Writer writer, ApiClient client, ListenerManager listenerManager)
-
-
Method Details
-
startTests
public void startTests() -
stopTests
public void stopTests() -
startMainContainer
Starts main container.- Parameters:
container- the main container.
-
stopMainContainer
Stops main container by given uuid.- Parameters:
uuid- the uuid of container.
-
startClassContainer
Starts class container.- Parameters:
parentUuid- the uuid of parent container.container- the class container.
-
stopClassContainer
Stops class container by given uuid.- Parameters:
uuid- the uuid of container.
-
updateClassContainer
Updates class container.- Parameters:
uuid- the uuid of container.update- the update function.
-
startTestCase
Starts test case with given uuid.- Parameters:
uuid- the uuid of test case to start.
-
scheduleTestCase
Schedule given test case.- Parameters:
result- the test case to schedule.
-
updateTestCase
Updates current test case- Parameters:
update- the update function.
-
updateTestCase
Updates test case by given uuid.- Parameters:
uuid- the uuid of test case to update.update- the update function.
-
stopTestCase
Stops test case by given uuid.- Parameters:
uuid- the uuid of test case to stop.
-
startPrepareFixtureAll
Start a new prepare fixture with given parent.- Parameters:
parentUuid- the uuid of parent container.uuid- the fixture uuid.result- the fixture.
-
startTearDownFixtureAll
Start a new tear down fixture with given parent.- Parameters:
parentUuid- the uuid of parent container.uuid- the fixture uuid.result- the fixture.
-
startPrepareFixture
Start a new prepare fixture with given parent.- Parameters:
parentUuid- the uuid of parent container.uuid- the fixture uuid.result- the fixture.
-
startTearDownFixture
Start a new tear down fixture with given parent.- Parameters:
parentUuid- the uuid of parent container.uuid- the fixture uuid.result- the fixture.
-
startPrepareFixtureEachTest
Start a new prepare fixture with given parent.- Parameters:
parentUuid- the uuid of parent container.uuid- the fixture uuid.result- the fixture.
-
startTearDownFixtureEachTest
Start a new tear down fixture with given parent.- Parameters:
parentUuid- the uuid of parent container.uuid- the fixture uuid.result- the fixture.
-
updateFixture
Updates fixture by given uuid.- Parameters:
uuid- the uuid of fixture.update- the update function.
-
stopFixture
Stops fixture by given uuid.- Parameters:
uuid- the uuid of fixture.
-
startStep
Start a new step as child step of current running test case or step.- Parameters:
uuid- the uuid of step.result- the step.
-
startStep
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
Updates current step.- Parameters:
update- the update function.
-
updateStep
Updates step by specified uuid.- Parameters:
uuid- the uuid of step.update- the update function.
-
stopStep
public void stopStep()Stops current running step. -
stopStep
Stops step by given uuid.- Parameters:
uuid- the uuid of step to stop.
-
addAttachments
-
isFilteredMode
public boolean isFilteredMode() -
getTestFromTestRun
-
getCurrentTestCaseOrStep
-