Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,21 @@ You can specify custom templates, which should be placed in src/main/resources/t

```

## Http client

Interceptors for Apache HTTP client, that generates attachment for allure.

```xml
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-httpclient</artifactId>
<version>$LATEST_VERSION</version>
</dependency>
```

Usage example:
```
.addInterceptorFirst(new AllureHttpClientRequest())
.addInterceptorLast(new AllureHttpClientResponse());
```

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ subprojects { project ->
dependency 'com.github.tomakehurst:wiremock:2.6.0'
dependency 'com.google.guava:guava:19.0'
dependency 'com.google.inject:guice:4.1.0'
dependency 'com.squareup.retrofit2:retrofit:2.2.0'
dependency 'com.squareup.retrofit2:retrofit:2.4.0'
dependency 'commons-io:commons-io:2.5'
dependency 'io.qameta.allure:allure2-model-api:1.0-BETA6'
dependency 'io.rest-assured:rest-assured:3.0.2'
dependency 'io.rest-assured:rest-assured:3.1.0'
dependency 'javax.servlet:javax.servlet-api:3.1.0'
dependency 'junit:junit:4.12'
dependency 'org.apache.commons:commons-lang3:3.5'
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def examples = [
'junit5',
'junit5-extended-listener',
'http-client-attachment',
'rest-assured',
'okhttp3',
'spock'
]

Expand Down