masterdata.Gender.UpdateGender.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!
UpdateGender:
Masterdata_UpdateGender_Valid_Smoke:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_UpdateGender_01
description: Update Gender details with all valid details
role: admin
templateFields: ["langCode"]
restMethod: put
inputTemplate: masterdata/Gender/gender
outputTemplate: masterdata/Gender/genderResult
input: '{
"code": "Genderdummy",
"genderName": "TestGenderName updated",
"isActive": true,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"code": "Genderdummy"
}'
Masterdata_UpdateGender_Invalid_InputParameter_Code_Missing:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_UpdateGender_02
description: Update Gender details with missing code field
role: admin
templateFields: ["langCode"]
restMethod: put
inputTemplate: masterdata/Gender/gender
outputTemplate: masterdata/error
input: '{
"code": "$REMOVE$",
"genderName": "TestGenderName",
"isActive": false,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.code: must not be null"
}
]
}'
Masterdata_UpdateGender_Invalid_InputParameter_Code_Empty:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_UpdateGender_03
description: Update Gender details with empty code
role: admin
templateFields: ["langCode"]
restMethod: put
inputTemplate: masterdata/Gender/gender
outputTemplate: masterdata/error
input: '{
"code": "",
"genderName": "TestGenderName",
"isActive": false,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.code: Should not be blank or size must be between 1 and 16"
}
]
}'
Masterdata_UpdateGender_Invalid_InputParameter_GenderName_Missing:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_UpdateGender_04
description: Update Gender details with missing genderName field
role: admin
templateFields: ["langCode"]
restMethod: put
inputTemplate: masterdata/Gender/gender
outputTemplate: masterdata/error
input: '{
"code": "Genderdummy",
"genderName": "$REMOVE$",
"isActive": false,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.genderName: must not be null"
}
]
}'
Masterdata_UpdateGender_Invalid_InputParameter_GenderName_Empty:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_UpdateGender_05
description: Update Gender details with empty genderName
role: admin
templateFields: ["langCode"]
restMethod: put
inputTemplate: masterdata/Gender/gender
outputTemplate: masterdata/error
input: '{
"code": "Genderdummy",
"genderName": "",
"isActive": false,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.genderName: Should not be blank or size must be between 1 and 64"
}
]
}'
Masterdata_UpdateGender_Invalid_InputParameter_GenderName_AboveMaxLen64:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_UpdateGender_06
description: Update Gender details with genderName more than 64 characters
role: admin
templateFields: ["langCode"]
restMethod: put
inputTemplate: masterdata/Gender/gender
outputTemplate: masterdata/error
input: '{
"code": "Genderdummy",
"genderName": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
"isActive": false,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "KER-MSD-999",
"message": "request.genderName: Should not be blank or size must be between 1 and 64"
}
]
}'
Masterdata_UpdateGender_InputParameter_isActive_Missing:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_UpdateGender_07
description: Update Gender details with missing isActive field
role: admin
templateFields: ["genderName"]
restMethod: put
inputTemplate: masterdata/Gender/gender
outputTemplate: masterdata/error
input: '{
"code": "Genderdummy",
"genderName": "TestGenderName",
"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