masterdata.Gender.CreateGender.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!
CreateGender:
Masterdata_CreateGender_Valid_Smoke_sid:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_CreateGender_01
description: Create Gender details by all valid data
role: admin
templateFields: ["genderName"]
restMethod: post
inputTemplate: masterdata/Gender/gender
outputTemplate: masterdata/Gender/genderResult
input: '{
"code": "Genderdummy",
"genderName": "TestGenderName",
"isActive": false,
"langCode": "eng",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"code": "Genderdummy"
}'
Masterdata_CreateGender_Invalid_InputParameter_Code_Missing:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_CreateGender_02
description: Create Gender details by missing code field
role: admin
templateFields: ["genderName"]
restMethod: post
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_CreateGender_Invalid_InputParameter_Code_Empty:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_CreateGender_03
description: Create Gender details by empty code
role: admin
templateFields: ["genderName"]
restMethod: post
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_CreateGender_Invalid_InputParameter_GenderName_Empty:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_CreateGender_04
description: Create Gender details by invalid code value
role: admin
templateFields: ["langCode"]
restMethod: post
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_CreateGender_Invalid_InputParameter_GenderName_AboveMaxLen64:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_CreateGender_05
description: Create Gender details by name more than 64 characters
role: admin
templateFields: []
restMethod: post
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_CreateGender_InputParameter_isActive_Missing:
endPoint: /v1/masterdata/gendertypes
uniqueIdentifier: TC_Masterdata_CreateGender_06
description: Create Gender details by missing isActive field
role: admin
templateFields: ["genderName"]
restMethod: post
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