-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathAllureLifecycleInterface.php
More file actions
65 lines (38 loc) · 2.12 KB
/
AllureLifecycleInterface.php
File metadata and controls
65 lines (38 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
declare(strict_types=1);
namespace Qameta\Allure;
use Qameta\Allure\Io\DataSourceInterface;
use Qameta\Allure\Model\AttachmentResult;
use Qameta\Allure\Model\ContainerResult;
use Qameta\Allure\Model\GlobalAttachment;
use Qameta\Allure\Model\Globals;
use Qameta\Allure\Model\FixtureResult;
use Qameta\Allure\Model\StepResult;
use Qameta\Allure\Model\TestResult;
interface AllureLifecycleInterface
{
public function switchThread(?string $thread): void;
public function getCurrentTest(): ?string;
public function getCurrentStep(): ?string;
public function getCurrentTestOrStep(): ?string;
public function startContainer(ContainerResult $container): void;
public function updateContainer(callable $update, ?string $uuid = null): ?string;
public function stopContainer(?string $uuid = null): ?string;
public function writeContainer(string $uuid): void;
public function startBeforeFixture(FixtureResult $fixture, ?string $containerUuid = null): void;
public function startAfterFixture(FixtureResult $fixture, ?string $containerUuid = null): void;
public function updateFixture(callable $update, ?string $uuid = null): ?string;
public function stopFixture(?string $uuid = null): ?string;
public function scheduleTest(TestResult $test, ?string $containerUuid = null): void;
public function startTest(string $uuid): void;
public function updateTest(callable $update, ?string $uuid = null): ?string;
public function stopTest(?string $uuid = null): ?string;
public function writeTest(string $uuid): void;
public function startStep(StepResult $step, ?string $parentUuid = null): void;
public function updateStep(callable $update, ?string $uuid = null): ?string;
public function updateExecutionContext(callable $update, ?string $uuid = null): ?string;
public function stopStep(?string $uuid = null): ?string;
public function addAttachment(AttachmentResult $attachment, DataSourceInterface $data): void;
public function addGlobalAttachment(GlobalAttachment $attachment, DataSourceInterface $data): void;
public function addGlobals(Globals $globals): void;
}