Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

allure-okhttp3

OkHttp 3 and 4 interceptor integration for Allure Java.

Coordinates

io.qameta.allure:allure-okhttp3

dependencies {
    testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
    testImplementation("io.qameta.allure:allure-okhttp3")
}

Use

Register io.qameta.allure.okhttp3.AllureOkHttp3 as an OkHttp interceptor.

OkHttpClient client = new OkHttpClient.Builder()
        .addInterceptor(new AllureOkHttp3())
        .build();

Captured Data

  • 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.