choreo 0.12.0

DSL for BDD type testing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This example demonstrates how to set and verify custom HTTP headers in web requests.
feature "Web Headers"
actors: Web
scenario "Setting and verifying custom headers" {
    test HeaderEcho "Verify custom header is sent" {
        given:
            Test can_start
        when:
            Web set_header "X-Custom-Header" "test-value"
            Web http_get "https://httpbin.io/headers"
        then:
            Web response_body_contains "X-Custom-Header"
            Web response_body_contains "test-value"
    }
}