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

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Customer-Self-Service-Accept 48 0 0 0 0 48 7 0 7 2.683 Passed
Feature Customer-Self-Service-Accept
0.009
Before io.virtualan.cucumblan.core.BaseStepDefinition.before(io.cucumber.java.Scenario) 0.802
Before io.virtualan.cucumblan.core.DBBaseStepDefinition.before(io.cucumber.java.Scenario) 0.029
Before io.virtualan.cucumblan.core.MsgBaseStepDefinition.before(io.cucumber.java.Scenario) 0.000
Given provided all the feature level parameters from file 0.009
{
    "password": "xxxxxxxxxxxx",
    "email": "admin@example.com"
}
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: @quote
0.142
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
insurancePremium.amount i~500
insurancePremium.currency CHF
policyLimit.amount i~50000
policyLimit.currency CHF
status QUOTE_RECEIVED
expirationDate [expiryDate].000Z
{
  "insurancePremium": {
    "amount": 500,
    "currency": "CHF"
  },
  "policyLimit": {
    "amount": 50000,
    "currency": "CHF"
  },
  "status": "QUOTE_RECEIVED",
  "expirationDate": "2023-03-06T20:40:12.000Z"
}
When a user patch application/json in /insurance-quote-requests/[quoteId] resource on quote 0.105
{
    "AcceptContentType": "application/json",
    "resource": "http://microservices.virtualandemo.com:8090/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:8090"
}
Then the status code is 200 0.002
{
    "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.033
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"
  } ],
  "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-06T00:00:00.000+00:00",
    "insuranceType" : "Life Insurance",
    "deductible" : {
      "amount" : 500.00,
      "currency" : "CHF"
    }
  },
  "insuranceQuote" : {
    "expirationDate" : "2023-03-06T20:40:12.000+00:00",
    "insurancePremium" : {
      "amount" : 500,
      "currency" : "CHF"
    },
    "policyLimit" : {
      "amount" : 50000,
      "currency" : "CHF"
    }
  }
}
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"
    }
  }
}