Given:
| Key Sentence | Type | Description | Example |
|---|---|---|---|
User has initialized the SSL and certificates at "crt_name" with password "crt_password" |
Business process | Business process of certificate initialization | Given User has initialized the SSL and certificates at "crt1.pfx" with password "123456" |
When:
| Key Sentence | Type | Description | Example |
|---|---|---|---|
User sets the following headers |key1|value1||key2|value2| |
Action | set headers | When User sets the following headers| X-Message-ID | {{$guid}} || X-Transaction-ID | {{$guid}} || X-Trace-ID | {{$guid}} || X-Channel-ID | 1250 | |
User sets the bearer token "token" |
Action | set bearer token | When User sets the bearer token "12him334hih" |
User generates JWT by the url "url/to/jwt" |
Action | get jwt token | When User generates JWT by the url "https://hb1.bankleumi.co.il/staticcontent/gate-keeper/auto/?user=&password=" |
User sets the jwt as bearer token |
Action | sets the jwt as bearer token | When User sets the jwt as bearer token |
User sends a POST request to "url/to/request" with the following parameters |key1|value1||key2|value2| |
Action | send post request | When User sends a POST request to "https://partnerdlv.bankleumi.co.il/OpenAPI/ERP/api/v1/register/authorize" with the following parameters | grant_type | client_credentials | | companyId | "511133696" | |
User sends a GET request to "url/to/request" |
Action | send get request | When User sends a GET request to "http://linx102083tsy:5100/current-accounts/transfers/essences" |
User sends a GET request to {string} with the following parameters|key1|value1||key2|value2| |
Action | send get request with params | When User sends a GET request to "https://partnerdlv.bankleumi.co.il/OpenAPI/ERP/api/v1/register/authorize" with the following parameters | grant_type | client_credentials | | companyId | "123" | |
User sends a PUT request to {string} with the following parameters|key1|value1||key2|value2| |
Action | send put request | When User sends a PUT request to "https://partnerdlv.bankleumi.co.il/OpenAPI/ERP/api/v1/register/authorize" with the following parameters | grant_type | client_credentials | | companyId | "123" | |
User sends a DELETE request to {string} with the following parameters|key1|value1||key2|value2| |
Action | send delete request | When User sends a DELETE request to "https://partnerdlv.bankleumi.co.il/OpenAPI/ERP/api/v1/register/authorize" with the following parameters | grant_type | client_credentials | | companyId | "123" | |
Then:
| Key Sentence | Type | Description | Example |
|---|---|---|---|
User should receive a response with status code "status_code" |
Action | check response status code | Then User should receive a response with status code 200 |
The response should contain the following fields||key1|value1||key2|value2| |
Action | check response fields | Then The response should contain the following fields| essencesItems/0/essenceDescription | תשלום || essencesItems/0/essenceDescriptionEng |payment || essencesItems/0/essenceIndex | 1 | |
The response header "header_key" should be "header_value" |
Action | check specific header value | Then The response header "Content-Type" should be "application/json" |
The response should contain an error with message "error_meesage" |
Action | check response error message | Then The response should contain an error with message "Authorization Error" |
The response should contain a field "field_key" with value "field_value" |
Action | check specific response field | Then The response should contain a field "regiserid" with value "12345" |