Summary| Tags| Feature: API/tests/DigiCover_quoteInvite.feature| Send SMS invitation I want to Send SMS invitation to user for subscription.
Scenario: [1:24] Send SMS invitation from Agency
ms: 960
>>
Background:
9
* def requestConfig = read('classpath:API/data/DigiCover_quoteInvite_config.json')
84
10
* def requestData = read('classpath:API/data/DigiCover_quoteInvite_requests.json')
4
11
* def responseData = read('classpath:API/data/DigiCover_quoteInvite_responses.json')
3
13
* def baseUrl = requestConfig.globalConfig.baseUrl
3
14
* def requestBody = requestData.completedRequestBody
1
15
* def responseBody = responseData.successResponse
2
17
* def token = requestConfig.globalConfig.token
1
19
Given url baseUrl
15
20
And path 'rest-api', 'quote', 'invite'
11
21
And header Authorization = 'Bearer' + token
16
25
And request requestBody
1
26
When method post
803
09:20:59.334 request: 1 > POST https://test.customer-journey.digicover.avidea.tn/rest-api/quote/invite 1 > Authorization: BearereyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhaG1lZC5hZG1pbi5zb3VzY3JpcHRpb25AeW9wbWFpbC5jb20iLCJpYXQiOjE3NDk3MjcwMDUsImV4cCI6MTc0OTcyODAyOSwidHlwZSI6ImFjY2VzcyJ9.0flGZqic7xpYImhwbInkFdNOlPkn21GGOXh-vewUVgQ 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 137 1 > Host: test.customer-journey.digicover.avidea.tn 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.14 (Java/14.0.2) 1 > Accept-Encoding: gzip,deflate {"registrationNumber":"1123TU123","phoneNumber":"55488201","source":"AGENCY","agencyCode":"220","agencyEmail":"ahmed.agence@yopmail.com"} 09:20:59.744 response time in milliseconds: 404 1 < 200 1 < Date: Tue, 12 Aug 2025 08:20:59 GMT 1 < Server: Avidea 1 < Access-Control-Allow-Origin: * 1 < Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS 1 < Access-Control-Allow-Headers: Origin, Authorization, Content-Type, Accept, X-Requested-With 1 < Access-Control-Max-Age: 3600 1 < Access-Control-Allow-Credentials: true 1 < Access-Control-Expose-Headers: Authorization, Content-Disposition 1 < X-Content-Type-Options: nosniff 1 < X-XSS-Protection: 0 1 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate 1 < Pragma: no-cache 1 < Expires: 0 1 < X-Frame-Options: DENY 1 < Content-Type: application/json 1 < Keep-Alive: timeout=5, max=100 1 < Connection: Keep-Alive 1 < Transfer-Encoding: chunked {"data":true,"apiVersion":"1.1","success":true}
27
Then status 200
0
28
And match response == responseBody
16