masterdata.Title.CreateTitle.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apitest-masterdata Show documentation
Show all versions of apitest-masterdata Show documentation
Parent project of MOSIP Admin Services apitests
The newest version!
CreateTitle:
MasterData_CreateTitle_All_Valid_Smoke:
endPoint: /v1/masterdata/title
uniqueIdentifier: TC_Masterdata_CreateTitle_01
description: Create title details with valid data
role: admin
templateFields: ["titleName","titleDescription"]
restMethod: post
inputTemplate: masterdata/Title/title
outputTemplate: masterdata/Title/titleResult
input: '{
"code": "TEST0011",
"titleName": "TEST0011",
"titleDescription": "TEST0011",
"isActive": true,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"code": "TEST0011"
}'
MasterData_CreateTitle_Invalid_InputParameter_TitleName_Missing:
endPoint: /v1/masterdata/title
uniqueIdentifier: TC_Masterdata_CreateTitle_02
description: Create title details with input parameter title name as missing
role: admin
templateFields: ["titleDescription"]
restMethod: post
inputTemplate: masterdata/Title/title
outputTemplate: masterdata/error
input: '{
"code": "TEST0011",
"titleName": "$REMOVE$",
"titleDescription": "TEST0011",
"isActive": false,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.titleName: must not be null"
}
]
}'
MasterData_CreateTitle_Invalid_InputParameter_TitleName_Empty:
endPoint: /v1/masterdata/title
uniqueIdentifier: TC_Masterdata_CreateTitle_03
description: Create title details with input parameter title name as empty
role: admin
templateFields: ["titleDescription"]
restMethod: post
inputTemplate: masterdata/Title/title
outputTemplate: masterdata/error
input: '{
"code": "TEST0011",
"titleName": "",
"titleDescription": "TEST0011",
"isActive": false,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.titleName: Should not be blank or size must be between 1 and 64"
}
]
}'
MasterData_CreateTitle_Invalid_InputParameter_TitleName_AboveMaxLen64:
endPoint: /v1/masterdata/title
uniqueIdentifier: TC_Masterdata_CreateTitle_04
description: Create title details with input parameter title name exceeding the maximum length of 64 characters
role: admin
templateFields: ["titleDescription"]
restMethod: post
inputTemplate: masterdata/Title/title
outputTemplate: masterdata/error
input: '{
"code": "TEST0011",
"titleName": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
"titleDescription": "TEST0011",
"isActive": false,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.titleName: Should not be blank or size must be between 1 and 64"
}
]
}'
MasterData_CreateTitle_Invalid_InputParameter_TitleDescription_AboveMaxLen128:
endPoint: /v1/masterdata/title
uniqueIdentifier: TC_Masterdata_CreateTitle_05
description: Create title details with input parameter title description exceeding the maximum length of 128 characters
role: admin
templateFields: ["titleName"]
restMethod: post
inputTemplate: masterdata/Title/title
outputTemplate: masterdata/error
input: '{
"code": "TEST001",
"titleName": "TEST001",
"titleDescription": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
"isActive": false,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.titleDescription: size must be between 0 and 128"
}
]
}'
MasterData_CreateTitle_Invalid_InputParameter_isActive_Missing:
endPoint: /v1/masterdata/title
uniqueIdentifier: TC_Masterdata_CreateTitle_06
description: Create title details with input parameter is active as missing
role: admin
templateFields: ["titleName","titleDescription"]
restMethod: post
inputTemplate: masterdata/Title/title
outputTemplate: masterdata/error
input: '{
"code": "TEST002",
"titleName": "TEST002",
"titleDescription": "TEST002",
"isActive": "$REMOVE$",
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.isActive: must not be null"
}
]
}'
© 2015 - 2025 Weber Informatics LLC | Privacy Policy