OkHttp 3 and 4 interceptor integration for Allure Java.
io.qameta.allure:allure-okhttp3
dependencies {
testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
testImplementation("io.qameta.allure:allure-okhttp3")
}Register io.qameta.allure.okhttp3.AllureOkHttp3 as an OkHttp interceptor.
OkHttpClient client = new OkHttpClient.Builder()
.addInterceptor(new AllureOkHttp3())
.build();- Request method, URL, headers, and body when available.
- Response status, message, headers, body, and timing.
- IOException details for failed exchanges.
- A single structured HTTP exchange attachment.