Scenario: [1.1:15]
Retrieve players by nationality England
ms: 1340
>>
Background:
4
* url baseUrl
1
06:19:42.807 karate.env selected environment was: null
8
Given path '/api/v1/players/nationality/England'
0
9
When method GET
1320
06:19:43.066 request:
1 > GET https://spring-boot-asynchronous-api.fly.dev/api/v1/players/nationality/England
1 > Host: spring-boot-asynchronous-api.fly.dev
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.14 (Java/21.0.2)
1 > Accept-Encoding: gzip,deflate
06:19:44.163 response time in milliseconds: 1096
1 < 200
1 < content-type: application/json
1 < transfer-encoding: chunked
1 < date: Tue, 26 Mar 2024 06:19:44 GMT
1 < server: Fly/0052f39f (2024-03-18)
1 < via: 1.1 fly.io
1 < fly-request-id: 01HSWPM9BG5J5NSJ9T7MNK6TW7-iad
[{"id":4,"name":"Ivan Toney","age":25,"club":"Brentford","nationality":"England"},{"id":5,"name":"Harry Kane","age":32,"club":"Tottenham Hotspur","nationality":"England"},{"id":6,"name":"Mason Mount","age":22,"club":"Chelsea","nationality":"England"}]
10
Then status 200
3
11
And match $ == [{"id":4,"name":"Ivan Toney","age":25,"club":"Brentford","nationality":"England"},{"id":5,"name":"Harry Kane","age":32,"club":"Tottenham Hotspur","nationality":"England"},{"id":6,"name":"Mason Mount","age":22,"club":"Chelsea","nationality":"England"}]
15
Scenario: [1.2:16]
Retrieve players by nationality Finland
ms: 1340
>>
Background:
4
* url baseUrl
2
06:19:42.807 karate.env selected environment was: null
8
Given path '/api/v1/players/nationality/Finland'
0
9
When method GET
1322
06:19:43.065 request:
1 > GET https://spring-boot-asynchronous-api.fly.dev/api/v1/players/nationality/Finland
1 > Host: spring-boot-asynchronous-api.fly.dev
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.14 (Java/21.0.2)
1 > Accept-Encoding: gzip,deflate
06:19:44.162 response time in milliseconds: 1095
1 < 200
1 < content-type: application/json
1 < transfer-encoding: chunked
1 < date: Tue, 26 Mar 2024 06:19:44 GMT
1 < server: Fly/0052f39f (2024-03-18)
1 < via: 1.1 fly.io
1 < fly-request-id: 01HSWPM9BK0K43JBAV12V0C193-iad
[{"id":3,"name":"Teemu Pukki","age":31,"club":"Norwich City","nationality":"Finland"}]
10
Then status 200
0
11
And match $ == [{"id":3,"name":"Teemu Pukki","age":31,"club":"Norwich City","nationality":"Finland"}]
16
Scenario: [1.3:17]
Retrieve players by nationality Egypt
ms: 1345
>>
Background:
4
* url baseUrl
1
06:19:42.807 karate.env selected environment was: null
8
Given path '/api/v1/players/nationality/Egypt'
1
9
When method GET
1322
06:19:43.065 request:
1 > GET https://spring-boot-asynchronous-api.fly.dev/api/v1/players/nationality/Egypt
1 > Host: spring-boot-asynchronous-api.fly.dev
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.14 (Java/21.0.2)
1 > Accept-Encoding: gzip,deflate
06:19:44.165 response time in milliseconds: 1100
1 < 200
1 < content-type: application/json
1 < transfer-encoding: chunked
1 < date: Tue, 26 Mar 2024 06:19:44 GMT
1 < server: Fly/0052f39f (2024-03-18)
1 < via: 1.1 fly.io
1 < fly-request-id: 01HSWPM9BPYRM0SZVA5Z1083NK-iad
[{"id":2,"name":"Mohamed Salah","age":29,"club":"Liverpool","nationality":"Egypt"}]
10
Then status 200
2
11
And match $ == [{"id":2,"name":"Mohamed Salah","age":29,"club":"Liverpool","nationality":"Egypt"}]
19
Scenario: [1.4:18]
Retrieve players by nationality South-Korea
ms: 127
>>
Background:
4
* url baseUrl
0
06:19:44.195 karate.env selected environment was: null
8
Given path '/api/v1/players/nationality/South-Korea'
0
9
When method GET
126
06:19:44.199 request:
1 > GET https://spring-boot-asynchronous-api.fly.dev/api/v1/players/nationality/South-Korea
1 > Host: spring-boot-asynchronous-api.fly.dev
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.14 (Java/21.0.2)
1 > Accept-Encoding: gzip,deflate
06:19:44.323 response time in milliseconds: 123
1 < 200
1 < content-type: application/json
1 < transfer-encoding: chunked
1 < date: Tue, 26 Mar 2024 06:19:44 GMT
1 < server: Fly/0052f39f (2024-03-18)
1 < via: 1.1 fly.io
1 < fly-request-id: 01HSWPMA6M3XQY921Q530X0CTY-iad
[{"id":1,"name":"Son Heung-Min","age":29,"club":"Tottenham Hotspur","nationality":"South-Korea"}]
10
Then status 200
0
11
And match $ == [{"id":1,"name":"Son Heung-Min","age":29,"club":"Tottenham Hotspur","nationality":"South-Korea"}]
1