Project Number Date
Lakeside Mutual - Customer Self-Service - API alone - VIRTUALAN(test-virtualan-collection) 54d3f565-07f4-4b81-88bf-361cc0f18bd4 06 Mar 2022, 20:40

Tag Report

Steps Scenarios Features
Tag Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
@css 80 0 0 0 0 80 10 0 10 3.477 Passed
1.345
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given a user perform a api action 0.000
And add request with given header params 0.042
contentType application/json
And create api with given input 0.001
password [password]
email [email]
{
    "password": "1password",
    "email": "admin@example.com"
}
When a user post application/json in /auth resource on css 0.869
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/auth",
    "context": {
        "password": "xxxxxxxxxxxx",
        "email": "admin@example.com"
    },
    "url": "http://microservices.virtualandemo.com:8080"
}
Then the status code is 200 0.035
{
    "password": "xxxxxxxxxxxx",
    "STATUS_CODE": "200",
    "email": "admin@example.com"
}
And verify across response includes following in the response 0.374
email [email]
{
  "email" : "admin@example.com",
  "token" : "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg"
}
And store the token value of the key as token 0.019
Tags: @css
0.580
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given a user perform a api action 0.000
And add request with given header params 0.000
contentType application/json
X-Auth-Token [token]
When a user get application/json in /user resource on css 0.094
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/user",
    "context": {
        "password": "xxxxxxxxxxxx",
        "STATUS_CODE": "200",
        "email": "admin@example.com",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg"
    },
    "url": "http://microservices.virtualandemo.com:8080"
}
Then the status code is 200 0.000
{
    "password": "xxxxxxxxxxxx",
    "STATUS_CODE": "200",
    "email": "admin@example.com",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg"
}
And verify across response includes following in the response 0.016
email [email]
{
  "email" : "admin@example.com",
  "customerId" : "rgpp0wkpec"
}
And store the customerId value of the key as customerId 0.028
And evaluate the SUBSTITUTE(TEXT(NOW()+365, "yyyy-mm-dd HH:mm:ss"), " ", "T") function value of the key as expiryDate 0.433
And evaluate the TEXT(TODAY(),"yyyy-mm-dd") function value of the key as startDate 0.003
Tags: @css
0.247
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given a user perform a api action 0.000
And add request with given header params 0.000
contentType application/json
X-Auth-Token [token]
When a user get application/json in /customers/[customerId] resource on css 0.104
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/customers/rgpp0wkpec",
    "context": {
        "expiryDate": "2023-03-06T20:40:12",
        "password": "xxxxxxxxxxxx",
        "customerId": "rgpp0wkpec",
        "STATUS_CODE": "200",
        "email": "admin@example.com",
        "startDate": "2022-03-06",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg"
    },
    "url": "http://microservices.virtualandemo.com:8080"
}
Then the status code is 200 0.003
{
    "expiryDate": "2023-03-06T20:40:12",
    "password": "xxxxxxxxxxxx",
    "customerId": "rgpp0wkpec",
    "STATUS_CODE": "200",
    "email": "admin@example.com",
    "startDate": "2022-03-06",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg"
}
And verify across response includes following in the response 0.021
firstname Max
{
  "customerId" : "rgpp0wkpec",
  "firstname" : "Max",
  "lastname" : "Mustermann",
  "birthday" : "1990-01-01T00:00:00.000+00:00",
  "streetAddress" : "Oberseestrasse 10",
  "postalCode" : "8640",
  "city" : "Rapperswil",
  "email" : "admin@example.com",
  "phoneNumber" : "055 222 4111",
  "moveHistory" : [ ],
  "_links" : {
    "self" : {
      "href" : "http://microservices.virtualandemo.com:8080/customers/rgpp0wkpec"
    },
    "address.change" : {
      "href" : "http://microservices.virtualandemo.com:8080/customers/rgpp0wkpec/address"
    }
  }
}
And store the customerId value of the key as customerId 0.017
And store the firstname value of the key as firstname 0.019
And store the lastname value of the key as lastname 0.019
And store the streetAddress value of the key as streetAddress 0.014
And store the postalCode value of the key as postalCode 0.019
And store the city value of the key as city 0.018
And evaluate the LEN("[firstname]")=3 condition success 0.003

Success condition :LEN("[firstname]")=3 >>> status true

Tags: @css
0.176
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given a user perform a api action 0.000
And add the Life Insurance value of the key as insuranceType 0.000
And add request with given header params 0.000
contentType application/json
X-Auth-Token [token]
And create api with given input 0.000
customerInfo.firstname [firstname]
customerInfo.customerId [customerId]
customerInfo.contactAddress.streetAddress [streetAddress]
customerInfo.contactAddress.city [city]
customerInfo.contactAddress.postalCode [postalCode]
customerInfo.billingAddress.streetAddress [streetAddress]
customerInfo.billingAddress.city [city]
customerInfo.billingAddress.postalCode [postalCode]
customerInfo.lastname [lastname]
insuranceOptions.deductible.amount i~500
insuranceOptions.deductible.currency CHF
insuranceOptions.insuranceType [insuranceType]
insuranceOptions.startDate [startDate]
{
    "customerInfo": {
        "firstname": "Max",
        "customerId": "rgpp0wkpec",
        "contactAddress": {
            "streetAddress": "Oberseestrasse 10",
            "city": "Rapperswil",
            "postalCode": "8640"
        },
        "billingAddress": {
            "streetAddress": "Oberseestrasse 10",
            "city": "Rapperswil",
            "postalCode": "8640"
        },
        "lastname": "Mustermann"
    },
    "insuranceOptions": {
        "deductible": {
            "amount": 500,
            "currency": "CHF"
        },
        "insuranceType": "Life Insurance",
        "startDate": "2022-03-06"
    }
}
When a user post application/json in /insurance-quote-requests resource on css 0.153
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/insurance-quote-requests",
    "context": {
        "firstname": "Max",
        "city": "Rapperswil",
        "postalCode": "8640",
        "STATUS_CODE": "200",
        "insuranceType": "Life Insurance",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg",
        "lastname": "Mustermann",
        "expiryDate": "2023-03-06T20:40:12",
        "password": "xxxxxxxxxxxx",
        "streetAddress": "Oberseestrasse 10",
        "customerId": "rgpp0wkpec",
        "email": "admin@example.com",
        "startDate": "2022-03-06"
    },
    "url": "http://microservices.virtualandemo.com:8080"
}
Then the status code is 200 0.002
{
    "firstname": "Max",
    "city": "Rapperswil",
    "postalCode": "8640",
    "STATUS_CODE": "200",
    "insuranceType": "Life Insurance",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg",
    "lastname": "Mustermann",
    "expiryDate": "2023-03-06T20:40:12",
    "password": "xxxxxxxxxxxx",
    "streetAddress": "Oberseestrasse 10",
    "customerId": "rgpp0wkpec",
    "email": "admin@example.com",
    "startDate": "2022-03-06"
}
And store the id value of the key as quoteId 0.019
Tags: @css
0.180
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given a user perform a api action 0.000
And add request with given header params 0.000
contentType application/json
X-Auth-Token [token]
And update api with given input 0.000
status QUOTE_ACCEPTED
{"status": "QUOTE_ACCEPTED"}
When a user patch application/json in /insurance-quote-requests/[quoteId] resource on css 0.136
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/insurance-quote-requests/448",
    "context": {
        "firstname": "Max",
        "city": "Rapperswil",
        "postalCode": "8640",
        "STATUS_CODE": "200",
        "insuranceType": "Life Insurance",
        "quoteId": "448",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg",
        "lastname": "Mustermann",
        "expiryDate": "2023-03-06T20:40:12",
        "password": "xxxxxxxxxxxx",
        "streetAddress": "Oberseestrasse 10",
        "customerId": "rgpp0wkpec",
        "email": "admin@example.com",
        "startDate": "2022-03-06"
    },
    "url": "http://microservices.virtualandemo.com:8080"
}
Then the status code is 200 0.000
{
    "firstname": "Max",
    "city": "Rapperswil",
    "postalCode": "8640",
    "STATUS_CODE": "200",
    "insuranceType": "Life Insurance",
    "quoteId": "448",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg",
    "lastname": "Mustermann",
    "expiryDate": "2023-03-06T20:40:12",
    "password": "xxxxxxxxxxxx",
    "streetAddress": "Oberseestrasse 10",
    "customerId": "rgpp0wkpec",
    "email": "admin@example.com",
    "startDate": "2022-03-06"
}
And verify api response csvson includes in the response 0.014
statusHistory/status
REQUEST_SUBMITTED|QUOTE_RECEIVED|QUOTE_ACCEPTED|
[{"statusHistory":[{"status":"REQUEST_SUBMITTED"},{"status":"QUOTE_RECEIVED"},{"status":"QUOTE_ACCEPTED"}]}]
{"date":"2022-03-07T02:40:11.867+00:00","statusHistory":[{"date":"2022-03-07T02:40:11.867+00:00","status":"REQUEST_SUBMITTED"},{"date":"2022-03-07T02:40:12.051+00:00","status":"QUOTE_RECEIVED"},{"date":"2022-03-07T02:40:12.218+00:00","status":"QUOTE_ACCEPTED"}],"customerInfo":{"firstname":"Max","customerId":"rgpp0wkpec","contactAddress":{"streetAddress":"Oberseestrasse 10","city":"Rapperswil","postalCode":"8640"},"billingAddress":{"streetAddress":"Oberseestrasse 10","city":"Rapperswil","postalCode":"8640"},"lastname":"Mustermann"},"insuranceOptions":{"deductible":{"amount":500,"currency":"CHF"},"insuranceType":"Life Insurance","startDate":"2022-03-06"},"id":448,"insuranceQuote":{"insurancePremium":{"amount":500,"currency":"CHF"},"policyLimit":{"amount":50000,"currency":"CHF"},"expirationDate":"2023-03-06T20:40:12.000+00:00"}}
And verify across response includes following in the response 0.027
id [quoteId]
{
  "id" : 448,
  "date" : "2022-03-07T02:40:11.867+00:00",
  "statusHistory" : [ {
    "date" : "2022-03-07T02:40:11.867+00:00",
    "status" : "REQUEST_SUBMITTED"
  }, {
    "date" : "2022-03-07T02:40:12.051+00:00",
    "status" : "QUOTE_RECEIVED"
  }, {
    "date" : "2022-03-07T02:40:12.218+00:00",
    "status" : "QUOTE_ACCEPTED"
  } ],
  "customerInfo" : {
    "customerId" : "rgpp0wkpec",
    "firstname" : "Max",
    "lastname" : "Mustermann",
    "contactAddress" : {
      "streetAddress" : "Oberseestrasse 10",
      "postalCode" : "8640",
      "city" : "Rapperswil"
    },
    "billingAddress" : {
      "streetAddress" : "Oberseestrasse 10",
      "postalCode" : "8640",
      "city" : "Rapperswil"
    }
  },
  "insuranceOptions" : {
    "startDate" : "2022-03-06",
    "insuranceType" : "Life Insurance",
    "deductible" : {
      "amount" : 500.00,
      "currency" : "CHF"
    }
  },
  "insuranceQuote" : {
    "expirationDate" : "2023-03-06T20:40:12.000+00:00",
    "insurancePremium" : {
      "amount" : 500.00,
      "currency" : "CHF"
    },
    "policyLimit" : {
      "amount" : 50000.00,
      "currency" : "CHF"
    }
  }
}
Tags: @css
0.267
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given a user perform a api action 0.000
And add request with given header params 0.000
contentType application/json
And create api with given input 0.000
password [password]
email [email]
{
    "password": "1password",
    "email": "admin@example.com"
}
When a user post application/json in /auth resource on css 0.238
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/auth",
    "context": {
        "firstname": "Max",
        "city": "Rapperswil",
        "postalCode": "8640",
        "STATUS_CODE": "200",
        "insuranceType": "Life Insurance",
        "quoteId": "448",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg",
        "lastname": "Mustermann",
        "expiryDate": "2023-03-06T20:40:12",
        "password": "xxxxxxxxxxxx",
        "streetAddress": "Oberseestrasse 10",
        "customerId": "rgpp0wkpec",
        "email": "admin@example.com",
        "startDate": "2022-03-06"
    },
    "url": "http://microservices.virtualandemo.com:8080"
}
Then the status code is 200 0.001
{
    "firstname": "Max",
    "city": "Rapperswil",
    "postalCode": "8640",
    "STATUS_CODE": "200",
    "insuranceType": "Life Insurance",
    "quoteId": "448",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTA0NTksImV4cCI6MTY0NzIyNTYxMH0.Ar367scYUaDz4_9seQL_RZzjUnE5JV2UPFrNuoEKLgISlWstnhAennsyyw_4siYMEKD_Ot2R5xoCZnjEfpM7Sg",
    "lastname": "Mustermann",
    "expiryDate": "2023-03-06T20:40:12",
    "password": "xxxxxxxxxxxx",
    "streetAddress": "Oberseestrasse 10",
    "customerId": "rgpp0wkpec",
    "email": "admin@example.com",
    "startDate": "2022-03-06"
}
And verify across response includes following in the response 0.012
email [email]
{
  "email" : "admin@example.com",
  "token" : "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTI1NTksImV4cCI6MTY0NzIyNTYxMn0.wupRC8uZ56wm2cf6hQqJ7MBUrwAcAPTAimRngLcuZ6azN3OpuzJtqE_nwQMAJvuSm2PutSjVe92o1aWvP951aw"
}
And store the token value of the key as token 0.012
Tags: @css
0.096
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given a user perform a api action 0.000
And add request with given header params 0.000
contentType application/json
X-Auth-Token [token]
When a user get application/json in /user resource on css 0.067
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/user",
    "context": {
        "firstname": "Max",
        "city": "Rapperswil",
        "postalCode": "8640",
        "STATUS_CODE": "200",
        "insuranceType": "Life Insurance",
        "quoteId": "448",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTI1NTksImV4cCI6MTY0NzIyNTYxMn0.wupRC8uZ56wm2cf6hQqJ7MBUrwAcAPTAimRngLcuZ6azN3OpuzJtqE_nwQMAJvuSm2PutSjVe92o1aWvP951aw",
        "lastname": "Mustermann",
        "expiryDate": "2023-03-06T20:40:12",
        "password": "xxxxxxxxxxxx",
        "streetAddress": "Oberseestrasse 10",
        "customerId": "rgpp0wkpec",
        "email": "admin@example.com",
        "startDate": "2022-03-06"
    },
    "url": "http://microservices.virtualandemo.com:8080"
}
Then the status code is 200 0.001
{
    "firstname": "Max",
    "city": "Rapperswil",
    "postalCode": "8640",
    "STATUS_CODE": "200",
    "insuranceType": "Life Insurance",
    "quoteId": "448",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTI1NTksImV4cCI6MTY0NzIyNTYxMn0.wupRC8uZ56wm2cf6hQqJ7MBUrwAcAPTAimRngLcuZ6azN3OpuzJtqE_nwQMAJvuSm2PutSjVe92o1aWvP951aw",
    "lastname": "Mustermann",
    "expiryDate": "2023-03-06T20:40:12",
    "password": "xxxxxxxxxxxx",
    "streetAddress": "Oberseestrasse 10",
    "customerId": "rgpp0wkpec",
    "email": "admin@example.com",
    "startDate": "2022-03-06"
}
And verify across response includes following in the response 0.011
email [email]
{
  "email" : "admin@example.com",
  "customerId" : "rgpp0wkpec"
}
And store the customerId value of the key as customerId 0.010
And evaluate the SUBSTITUTE(TEXT(NOW()+365, "yyyy-mm-dd HH:mm:ss"), " ", "T") function value of the key as expiryDate 0.002
And evaluate the TEXT(TODAY(),"yyyy-mm-dd") function value of the key as startDate 0.001
Tags: @css
0.220
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given a user perform a api action 0.000
And add request with given header params 0.000
contentType application/json
X-Auth-Token [token]
When a user get application/json in /customers/[customerId] resource on css 0.100
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/customers/rgpp0wkpec",
    "context": {
        "firstname": "Max",
        "city": "Rapperswil",
        "postalCode": "8640",
        "STATUS_CODE": "200",
        "insuranceType": "Life Insurance",
        "quoteId": "448",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTI1NTksImV4cCI6MTY0NzIyNTYxMn0.wupRC8uZ56wm2cf6hQqJ7MBUrwAcAPTAimRngLcuZ6azN3OpuzJtqE_nwQMAJvuSm2PutSjVe92o1aWvP951aw",
        "lastname": "Mustermann",
        "expiryDate": "2023-03-06T20:40:13",
        "password": "xxxxxxxxxxxx",
        "streetAddress": "Oberseestrasse 10",
        "customerId": "rgpp0wkpec",
        "email": "admin@example.com",
        "startDate": "2022-03-06"
    },
    "url": "http://microservices.virtualandemo.com:8080"
}
Then the status code is 200 0.000
{
    "firstname": "Max",
    "city": "Rapperswil",
    "postalCode": "8640",
    "STATUS_CODE": "200",
    "insuranceType": "Life Insurance",
    "quoteId": "448",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTI1NTksImV4cCI6MTY0NzIyNTYxMn0.wupRC8uZ56wm2cf6hQqJ7MBUrwAcAPTAimRngLcuZ6azN3OpuzJtqE_nwQMAJvuSm2PutSjVe92o1aWvP951aw",
    "lastname": "Mustermann",
    "expiryDate": "2023-03-06T20:40:13",
    "password": "xxxxxxxxxxxx",
    "streetAddress": "Oberseestrasse 10",
    "customerId": "rgpp0wkpec",
    "email": "admin@example.com",
    "startDate": "2022-03-06"
}
And verify across response includes following in the response 0.019
firstname Max
{
  "customerId" : "rgpp0wkpec",
  "firstname" : "Max",
  "lastname" : "Mustermann",
  "birthday" : "1990-01-01T00:00:00.000+00:00",
  "streetAddress" : "Oberseestrasse 10",
  "postalCode" : "8640",
  "city" : "Rapperswil",
  "email" : "admin@example.com",
  "phoneNumber" : "055 222 4111",
  "moveHistory" : [ ],
  "_links" : {
    "self" : {
      "href" : "http://microservices.virtualandemo.com:8080/customers/rgpp0wkpec"
    },
    "address.change" : {
      "href" : "http://microservices.virtualandemo.com:8080/customers/rgpp0wkpec/address"
    }
  }
}
And store the customerId value of the key as customerId 0.015
And store the firstname value of the key as firstname 0.013
And store the lastname value of the key as lastname 0.015
And store the streetAddress value of the key as streetAddress 0.016
And store the postalCode value of the key as postalCode 0.015
And store the city value of the key as city 0.019
Tags: @css
0.168
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given a user perform a api action 0.000
And add request with given header params 0.000
contentType application/json
X-Auth-Token [token]
And create api with given input 0.000
customerInfo.firstname [firstname]
customerInfo.customerId [customerId]
customerInfo.contactAddress.streetAddress [streetAddress]
customerInfo.contactAddress.city [city]
customerInfo.contactAddress.postalCode [postalCode]
customerInfo.billingAddress.streetAddress [streetAddress]
customerInfo.billingAddress.city [city]
customerInfo.billingAddress.postalCode [postalCode]
customerInfo.lastname [lastname]
insuranceOptions.deductible.amount i~500
insuranceOptions.deductible.currency CHF
insuranceOptions.insuranceType Life Insurance
insuranceOptions.startDate 2021-06-20
{
    "customerInfo": {
        "firstname": "Max",
        "customerId": "rgpp0wkpec",
        "contactAddress": {
            "streetAddress": "Oberseestrasse 10",
            "city": "Rapperswil",
            "postalCode": "8640"
        },
        "billingAddress": {
            "streetAddress": "Oberseestrasse 10",
            "city": "Rapperswil",
            "postalCode": "8640"
        },
        "lastname": "Mustermann"
    },
    "insuranceOptions": {
        "deductible": {
            "amount": 500,
            "currency": "CHF"
        },
        "insuranceType": "Life Insurance",
        "startDate": "2021-06-20"
    }
}
When a user post application/json in /insurance-quote-requests resource on css 0.150
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/insurance-quote-requests",
    "context": {
        "firstname": "Max",
        "city": "Rapperswil",
        "postalCode": "8640",
        "STATUS_CODE": "200",
        "insuranceType": "Life Insurance",
        "quoteId": "448",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTI1NTksImV4cCI6MTY0NzIyNTYxMn0.wupRC8uZ56wm2cf6hQqJ7MBUrwAcAPTAimRngLcuZ6azN3OpuzJtqE_nwQMAJvuSm2PutSjVe92o1aWvP951aw",
        "lastname": "Mustermann",
        "expiryDate": "2023-03-06T20:40:13",
        "password": "xxxxxxxxxxxx",
        "streetAddress": "Oberseestrasse 10",
        "customerId": "rgpp0wkpec",
        "email": "admin@example.com",
        "startDate": "2022-03-06"
    },
    "url": "http://microservices.virtualandemo.com:8080"
}
Then the status code is 200 0.001
{
    "firstname": "Max",
    "city": "Rapperswil",
    "postalCode": "8640",
    "STATUS_CODE": "200",
    "insuranceType": "Life Insurance",
    "quoteId": "448",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTI1NTksImV4cCI6MTY0NzIyNTYxMn0.wupRC8uZ56wm2cf6hQqJ7MBUrwAcAPTAimRngLcuZ6azN3OpuzJtqE_nwQMAJvuSm2PutSjVe92o1aWvP951aw",
    "lastname": "Mustermann",
    "expiryDate": "2023-03-06T20:40:13",
    "password": "xxxxxxxxxxxx",
    "streetAddress": "Oberseestrasse 10",
    "customerId": "rgpp0wkpec",
    "email": "admin@example.com",
    "startDate": "2022-03-06"
}
And store the id value of the key as rejectQuoteId 0.013
Tags: @css
0.193
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given a user perform a api action 0.000
And add request with given header params 0.000
contentType application/json
X-Auth-Token [token]
And update api with given input 0.000
status QUOTE_REJECTED
{"status": "QUOTE_REJECTED"}
When a user patch application/json in /insurance-quote-requests/[rejectQuoteId] resource on css 0.139
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/insurance-quote-requests/457",
    "context": {
        "firstname": "Max",
        "city": "Rapperswil",
        "postalCode": "8640",
        "STATUS_CODE": "200",
        "insuranceType": "Life Insurance",
        "quoteId": "448",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTI1NTksImV4cCI6MTY0NzIyNTYxMn0.wupRC8uZ56wm2cf6hQqJ7MBUrwAcAPTAimRngLcuZ6azN3OpuzJtqE_nwQMAJvuSm2PutSjVe92o1aWvP951aw",
        "lastname": "Mustermann",
        "expiryDate": "2023-03-06T20:40:13",
        "password": "xxxxxxxxxxxx",
        "rejectQuoteId": "457",
        "streetAddress": "Oberseestrasse 10",
        "customerId": "rgpp0wkpec",
        "email": "admin@example.com",
        "startDate": "2022-03-06"
    },
    "url": "http://microservices.virtualandemo.com:8080"
}
Then the status code is 200 0.001
{
    "firstname": "Max",
    "city": "Rapperswil",
    "postalCode": "8640",
    "STATUS_CODE": "200",
    "insuranceType": "Life Insurance",
    "quoteId": "448",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MTI1NTksImV4cCI6MTY0NzIyNTYxMn0.wupRC8uZ56wm2cf6hQqJ7MBUrwAcAPTAimRngLcuZ6azN3OpuzJtqE_nwQMAJvuSm2PutSjVe92o1aWvP951aw",
    "lastname": "Mustermann",
    "expiryDate": "2023-03-06T20:40:13",
    "password": "xxxxxxxxxxxx",
    "rejectQuoteId": "457",
    "streetAddress": "Oberseestrasse 10",
    "customerId": "rgpp0wkpec",
    "email": "admin@example.com",
    "startDate": "2022-03-06"
}
And verify statusHistory response csvson includes in the response 0.035
status
REQUEST_SUBMITTED
QUOTE_RECEIVED
QUOTE_REJECTED
[{"status":"REQUEST_SUBMITTED"},{"status":"QUOTE_RECEIVED"},{"status":"QUOTE_REJECTED"}]
{"date":"2022-03-07T02:40:13.004+00:00","statusHistory":[{"date":"2022-03-07T02:40:13.004+00:00","status":"REQUEST_SUBMITTED"},{"date":"2022-03-07T02:40:13.173+00:00","status":"QUOTE_RECEIVED"},{"date":"2022-03-07T02:40:13.287+00:00","status":"QUOTE_REJECTED"}],"customerInfo":{"firstname":"Max","customerId":"rgpp0wkpec","contactAddress":{"streetAddress":"Oberseestrasse 10","city":"Rapperswil","postalCode":"8640"},"billingAddress":{"streetAddress":"Oberseestrasse 10","city":"Rapperswil","postalCode":"8640"},"lastname":"Mustermann"},"insuranceOptions":{"deductible":{"amount":500,"currency":"CHF"},"insuranceType":"Life Insurance","startDate":"2021-06-20"},"id":457,"insuranceQuote":{"insurancePremium":{"amount":500,"currency":"CHF"},"policyLimit":{"amount":50000,"currency":"CHF"},"expirationDate":"2023-03-06T20:40:13.000+00:00"}}
And verify across response includes following in the response 0.014
id [rejectQuoteId]
{
  "id" : 457,
  "date" : "2022-03-07T02:40:13.004+00:00",
  "statusHistory" : [ {
    "date" : "2022-03-07T02:40:13.004+00:00",
    "status" : "REQUEST_SUBMITTED"
  }, {
    "date" : "2022-03-07T02:40:13.173+00:00",
    "status" : "QUOTE_RECEIVED"
  }, {
    "date" : "2022-03-07T02:40:13.287+00:00",
    "status" : "QUOTE_REJECTED"
  } ],
  "customerInfo" : {
    "customerId" : "rgpp0wkpec",
    "firstname" : "Max",
    "lastname" : "Mustermann",
    "contactAddress" : {
      "streetAddress" : "Oberseestrasse 10",
      "postalCode" : "8640",
      "city" : "Rapperswil"
    },
    "billingAddress" : {
      "streetAddress" : "Oberseestrasse 10",
      "postalCode" : "8640",
      "city" : "Rapperswil"
    }
  },
  "insuranceOptions" : {
    "startDate" : "2021-06-20",
    "insuranceType" : "Life Insurance",
    "deductible" : {
      "amount" : 500.00,
      "currency" : "CHF"
    }
  },
  "insuranceQuote" : {
    "expirationDate" : "2023-03-06T20:40:13.000+00:00",
    "insurancePremium" : {
      "amount" : 500.00,
      "currency" : "CHF"
    },
    "policyLimit" : {
      "amount" : 50000.00,
      "currency" : "CHF"
    }
  }
}