Requires Java 8+ version or Kotlin JVM.
| Module | Maven central | Javadoc |
|---|---|---|
xteps2 | ||
xteps2-allure | ||
xteps2-extentreports | ||
xteps2-qase | ||
xteps2-reportportal | ||
xteps2-selenide | ||
xteps2-testit |
Maven:
<dependency> <groupId>com.plugatar.xteps2</groupId> <artifactId>{module name}</artifactId> <version>1.1</version> <scope>test</scope> </dependency>Gradle:
dependencies { testImplementation 'com.plugatar.xteps2:{module name}:1.1' }Kotlin DSL:
dependencies { testImplementation("com.plugatar.xteps2:{module name}:1.1") }You can find code examples in the xteps2-examples repository.
There are two ways to use parameters. Be aware that higher source override lower one - properties from file can be overridden by system properties.
| Priority | Source |
|---|---|
| 1 | System properties |
| 2 | Properties file (xteps.properties) |
| Name | Type | Required | Default value | Description |
|---|---|---|---|---|
| xteps.reporter.enabled | Boolean | No | true | Enable/disable steps logging. |
| xteps.listener.autodetection | Boolean | No | true | Enable/disable Service Provider Interface mechanism to detect and instantiate com.plugatar.xteps2.core.StepListener implementations. Implementations should have zero-argument public constructor. |
| xteps.listener.list | String | No | List of com.plugatar.xteps2.core.StepListener implementations names in Class#getTypeName() format. Names should be separated by ,. Implementations should have zero-argument public constructor. | |
| xteps.exceptionHandler.cleanStackTrace.enabled | Boolean | No | true | Removes all stack trace lines about Xteps from any exception except XtepsException. |
| xteps.textFormatter.enabled | Boolean | No | true | Enable/disable text artifacts (name and description) formatting. |
| xteps.textFormatter.replacementPattern | String | No | {([^}]*)} | Replacement pattern for text formatter. |
| xteps.textFormatter.field.forceAccess.enabled | Boolean | No | true | Allow forced retrieval of field values via reflection. |
| xteps.textFormatter.method.forceAccess.enabled | Boolean | No | true | Allow forced retrieval of method result values via reflection. |
| xteps.keyword.feature | String | No | Feature | Feature keyword value. |
| xteps.keyword.background | String | No | Background | Background keyword value. |
| xteps.keyword.scenario | String | No | Scenario | Scenario keyword value. |
| xteps.keyword.scenarioOutline | String | No | Scenario Outline | Scenario Outline keyword value. |
| xteps.keyword.given | String | No | Given | Given keyword value. |
| xteps.keyword.when | String | No | When | When keyword value. |
| xteps.keyword.then | String | No | Then | Then keyword value. |
| xteps.keyword.and | String | No | And | And keyword value. |
| xteps.keyword.but | String | No | But | But keyword value. |
| xteps.keyword.asterisk | String | No | * | * keyword value. |