Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ext {
testContainersVersion = '2.0.5'
cucumber = '7.34.3'
beftaFwVersion = '9.2.6'
ccdTestDefinitionVersion = '7.26.4'
ccdTestDefinitionVersion = '7.26.5-CCD-6195'
limits = [
'instruction': 90,
'branch' : 85,
Expand Down
18 changes: 18 additions & 0 deletions src/aat/resources/features/F-1027 - Decimal Numbers/F-1027.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@F-1027
Feature: F-1027: Validate numberField accepts and displays decimals

Background: Load test data for the scenario
Given an appropriate test context as detailed in the test data source

@S-1027.1
Scenario: must successfully create case with number field displaying as expected
Given a user with [an active profile in CCD]
And a case that has just been created as in [S-1027.1_Create_Case_Data]
And a successful call [to create a token for case creation] as in [F-1027_Case_Data_Create_Token_Creation]
When a request is prepared with appropriate values
And the request [is of caseType where case_data has NumberField of 12.88]
And it is submitted to call the [Submit Case Creation as Caseworker] operation of [CCD Data Store]
Then a positive response is received
And the response has all other details as expected


Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"_guid_": "F-1027_Case_Data_Create_Token_Creation",
"_extends_": "Standard_Token_Creation_Data_For_Case_Creation",
"specs": [
"to create a token for case creation",
"As a prerequisite"
],
"users": {
"invokingUser": {
"username": "master.caseworker@gmail.com",
"password": "[[$CCD_CASEWORKER_AUTOTEST_PASSWORD]]"
}
},
"request": {
"pathVariables": {
"uid": "[[DEFAULT_AUTO_VALUE]]",
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType",
"etid": "createCase"
}
},
"expectedResponse": {
"body": {
"case_details": {
"case_data": {
"DynamicList": {
"value": {
"code": "List1",
"label": " List 1"
},
"list_items": [
{
"code": "List1",
"label": " List 1"
},
{
"code": "List2",
"label": " List 2"
},
{
"code": "List3",
"label": " List 3"
},
{
"code": "List4",
"label": " List 4"
},
{
"code": "List5",
"label": " List 5"
},
{
"code": "List6",
"label": " List 6"
},
{
"code": "List7",
"label": " List 7"
}
]
}
},
"data_classification": {
"DynamicList": "PUBLIC"
},
"supplementary_data": null
},
"event_id": "createCase"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"title": "should create a case",
"_guid_": "F-1027_Test_Data_Base",
"productName": "CCD Data Store",
"operationName": "Submit Case Creation as Caseworker",
"method": "POST",
"uri": "/caseworkers/{uid}/jurisdictions/{jid}/case-types/{ctid}/cases",
"specs": [
"to create a full case"
],
"users": {
"invokingUser": {
"username": "master.caseworker@gmail.com",
"password": "[[$CCD_CASEWORKER_AUTOTEST_PASSWORD]]"
}
},
"user": {
"username": "master.caseworker@gmail.com",
"password": "[[$CCD_CASEWORKER_AUTOTEST_PASSWORD]]"
},

"request": {
"headers": {
"_extends_": "Common_Request_Headers"
},
"pathVariables": {
"uid": "[[DEFAULT_AUTO_VALUE]]",
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType"
},
"body": {
"data": {
"TextField": null,
"TextAreaField": null,
"DateField": null,
"PhoneField": null,
"NumberField": 12.88,
"YesNoField": null,
"CollectionField": [],
"AddressUKField": {
"AddressLine1": null,
"AddressLine2": null,
"AddressLine3": null,
"PostTown": null,
"County": null,
"PostCode": null,
"Country": null
},
"MarritalStatus": null,
"MoneyField": "008",
"EmailField": null,
"MultiSelectField": [],
"OrganisationPolicyField1": {
"OrgPolicyCaseAssignedRole": "[Claimant]",
"OrgPolicyReference": null,
"Organisation": {
"OrganisationID": null,
"OrganisationName": null
}
},
"OrganisationPolicyField2": {
"OrgPolicyCaseAssignedRole": "[Defendant]",
"OrgPolicyReference": null,
"Organisation": {
"OrganisationID": null,
"OrganisationName": null
}
},
"CaseLinkField": {
"CaseReference": null
},
"AddressField": {
"AddressLine1": null,
"AddressLine2": null,
"AddressLine3": null,
"Country": null
}
},
"event": {
"id": "createCase",
"summary": "",
"description": ""
},
"event_token": "${[scenarioContext][childContexts][F-1027_Case_Data_Create_Token_Creation][testData][actualResponse][body][token]}",
"ignore_warning": true,
"draft_id": null
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"_guid_" : "F-1027_Token_Creation_Base",


"productName": "CCD Data Store",
"operationName": "Start event creation as Case worker",

"method": "GET",
"uri": "/cases/{caseId}/event-triggers/{etid}",

"specs": [
"to create a token for case creation",
"to create a token for event creation"
],

"users": {
"invokingUser": {
"username": "master.caseworker@gmail.com",
"password": "[[$CCD_CASEWORKER_AUTOTEST_PASSWORD]]"
}
},

"request": {
"headers":{
"_extends_": "Common_Request_Headers",
"Experimental" : "true"
},
"pathVariables": {
"etid": "createCase",
"caseId": ""
}
},

"expectedResponse": {
"_extends_": "Common_200_Response",
"headers" : {
"Content-Encoding" : "gzip",
"Content-Length": "[[ANYTHING_PRESENT]]"
},
"body" : {
"token" : "[[ANYTHING_PRESENT]]",
"_links": {
"self": {
"href": "[[ANYTHING_PRESENT]]"
}
},
"case_details" : {
"id" : "[[ANYTHING_PRESENT]]",
"jurisdiction" : "BEFTA_MASTER",
"state" : "[[ANYTHING_PRESENT]]",
"version" : "[[ANYTHING_PRESENT]]",
"case_type_id" : "FT_MasterCaseType",
"created_date" : "[[ANYTHING_PRESENT]]",
"last_modified" : "[[ANYTHING_PRESENT]]",
"last_state_modified_date" : "[[ANYTHING_PRESENT]]",
"security_classification" : "[[ANYTHING_PRESENT]]",
"case_data" : "[[ANYTHING_PRESENT]]",
"data_classification" : "[[ANYTHING_PRESENT]]",
"supplementary_data": null,
"after_submit_callback_response" : null,
"callback_response_status_code" : null,
"callback_response_status" : null,
"delete_draft_response_status_code" : null,
"delete_draft_response_status" : null
},
"event_id" : "event2"
}
}
}
Loading