diff --git a/README.md b/README.md index b1eb26fa4..32301cf52 100644 --- a/README.md +++ b/README.md @@ -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 + + io.qameta.allure + allure-httpclient + $LATEST_VERSION + +``` + +Usage example: +``` +.addInterceptorFirst(new AllureHttpClientRequest()) +.addInterceptorLast(new AllureHttpClientResponse()); +``` diff --git a/build.gradle b/build.gradle index 817ed2198..848459132 100644 --- a/build.gradle +++ b/build.gradle @@ -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' diff --git a/settings.gradle b/settings.gradle index c37552707..0ea1370d5 100644 --- a/settings.gradle +++ b/settings.gradle @@ -29,6 +29,8 @@ def examples = [ 'junit5', 'junit5-extended-listener', 'http-client-attachment', + 'rest-assured', + 'okhttp3', 'spock' ]