Project Number Date
Lakeside Mutual - Customer Self-Service - API and Database(test) 676b8b35-c7c3-4fad-8760-e153edbc1169 06 Mar 2022, 20:40

Tag Report

Steps Scenarios Features
Tag Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
@json_Array 14 0 0 0 0 14 2 0 2 0.328 Passed
0.156
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 cssapi 0.132
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/insurance-quote-requests/466",
    "context": {
        "firstname": "Max",
        "city": "Rapperswil",
        "postalCode": "8640",
        "STATUS_CODE": "200",
        "quoteId": "466",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MjEwMjAsImV4cCI6MTY0NzIyNTYyMX0.20mHq_jgaV9r2BXmHzPzwHmfmabpmi-4XC0-rKowG2EThYWOTA9fwWA_ZUwVucaTDO-j8V9mrL93krNxN3tioA",
        "lastname": "Mustermann",
        "expiryDate": "2023-03-06T20:40:22",
        "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",
    "quoteId": "466",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MjEwMjAsImV4cCI6MTY0NzIyNTYyMX0.20mHq_jgaV9r2BXmHzPzwHmfmabpmi-4XC0-rKowG2EThYWOTA9fwWA_ZUwVucaTDO-j8V9mrL93krNxN3tioA",
    "lastname": "Mustermann",
    "expiryDate": "2023-03-06T20:40:22",
    "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.002
statusHistory/status
REQUEST_SUBMITTED|QUOTE_RECEIVED|QUOTE_ACCEPTED|
[{"statusHistory":[{"status":"REQUEST_SUBMITTED"},{"status":"QUOTE_RECEIVED"},{"status":"QUOTE_ACCEPTED"}]}]
{"date":"2022-03-07T02:40:22.136+00:00","statusHistory":[{"date":"2022-03-07T02:40:22.136+00:00","status":"REQUEST_SUBMITTED"},{"date":"2022-03-07T02:40:22.311+00:00","status":"QUOTE_RECEIVED"},{"date":"2022-03-07T02:40:22.463+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":"2021-06-20"},"id":466,"insuranceQuote":{"insurancePremium":{"amount":500,"currency":"CHF"},"policyLimit":{"amount":50000,"currency":"CHF"},"expirationDate":"2023-03-06T20:40:22.000+00:00"}}
And verify across response includes following in the response 0.019
id [quoteId]
{
  "id" : 466,
  "date" : "2022-03-07T02:40:22.136+00:00",
  "statusHistory" : [ {
    "date" : "2022-03-07T02:40:22.136+00:00",
    "status" : "REQUEST_SUBMITTED"
  }, {
    "date" : "2022-03-07T02:40:22.311+00:00",
    "status" : "QUOTE_RECEIVED"
  }, {
    "date" : "2022-03-07T02:40:22.463+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" : "2021-06-20",
    "insuranceType" : "Life Insurance",
    "deductible" : {
      "amount" : 500.00,
      "currency" : "CHF"
    }
  },
  "insuranceQuote" : {
    "expirationDate" : "2023-03-06T20:40:22.000+00:00",
    "insurancePremium" : {
      "amount" : 500.00,
      "currency" : "CHF"
    },
    "policyLimit" : {
      "amount" : 50000.00,
      "currency" : "CHF"
    }
  }
}
0.171
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 cssapi 0.124
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8080/insurance-quote-requests/475",
    "context": {
        "firstname": "Max",
        "city": "Rapperswil",
        "postalCode": "8640",
        "STATUS_CODE": "200",
        "quoteId": "466",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MjQxNjIsImV4cCI6MTY0NzIyNTYyNH0.Z-_c7spJ7roXf_YA46KPnnTZZELicU58uFJHgj7IadWZT-xWRle0S5nHvRfDZahxOvWxgqPJwypOwP6_1quNJA",
        "lastname": "Mustermann",
        "expiryDate": "2023-03-06T20:40:24",
        "password": "xxxxxxxxxxxx",
        "rejectQuoteId": "475",
        "streetAddress": "Oberseestrasse 10",
        "policy_limit_amount": "50000.00",
        "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",
    "quoteId": "466",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbkBleGFtcGxlLmNvbSIsImNyZWF0ZWQiOjE2NDY2MjA4MjQxNjIsImV4cCI6MTY0NzIyNTYyNH0.Z-_c7spJ7roXf_YA46KPnnTZZELicU58uFJHgj7IadWZT-xWRle0S5nHvRfDZahxOvWxgqPJwypOwP6_1quNJA",
    "lastname": "Mustermann",
    "expiryDate": "2023-03-06T20:40:24",
    "password": "xxxxxxxxxxxx",
    "rejectQuoteId": "475",
    "streetAddress": "Oberseestrasse 10",
    "policy_limit_amount": "50000.00",
    "customerId": "rgpp0wkpec",
    "email": "admin@example.com",
    "startDate": "2022-03-06"
}
And verify statusHistory response csvson includes in the response 0.031
status
REQUEST_SUBMITTED
QUOTE_RECEIVED
QUOTE_REJECTED
[{"status":"REQUEST_SUBMITTED"},{"status":"QUOTE_RECEIVED"},{"status":"QUOTE_REJECTED"}]
{"date":"2022-03-07T02:40:24.606+00:00","statusHistory":[{"date":"2022-03-07T02:40:24.606+00:00","status":"REQUEST_SUBMITTED"},{"date":"2022-03-07T02:40:24.767+00:00","status":"QUOTE_RECEIVED"},{"date":"2022-03-07T02:40:24.910+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-09-20"},"id":475,"insuranceQuote":{"insurancePremium":{"amount":500,"currency":"CHF"},"policyLimit":{"amount":50000,"currency":"CHF"},"expirationDate":"2023-03-06T20:40:24.000+00:00"}}
And verify across response includes following in the response 0.012
id [rejectQuoteId]
{
  "id" : 475,
  "date" : "2022-03-07T02:40:24.606+00:00",
  "statusHistory" : [ {
    "date" : "2022-03-07T02:40:24.606+00:00",
    "status" : "REQUEST_SUBMITTED"
  }, {
    "date" : "2022-03-07T02:40:24.767+00:00",
    "status" : "QUOTE_RECEIVED"
  }, {
    "date" : "2022-03-07T02:40:24.910+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-09-20",
    "insuranceType" : "Life Insurance",
    "deductible" : {
      "amount" : 500.00,
      "currency" : "CHF"
    }
  },
  "insuranceQuote" : {
    "expirationDate" : "2023-03-06T20:40:24.000+00:00",
    "insurancePremium" : {
      "amount" : 500.00,
      "currency" : "CHF"
    },
    "policyLimit" : {
      "amount" : 50000.00,
      "currency" : "CHF"
    }
  }
}