All Downloads are FREE. Search and download functionalities are using the official Maven repository.

masterdata.DocumentType.UpdateDocumentType.yml Maven / Gradle / Ivy

The newest version!
UpdateDocumentType:
   MasterData_UpdateDocumentType_Valid_Smoke:
      endPoint: /v1/masterdata/documenttypes
      uniqueIdentifier: TC_Masterdata_UpdateDocumentType_01
      description: Update Document Type with all valid data
      role: admin
      templateFields: ["name","description"]
      restMethod: put
      inputTemplate: masterdata/DocumentType/documentType
      outputTemplate: masterdata/DocumentType/documentTypeResult
      input: '{
	"code": "TestDocType0010",
	"description": "TestDocType0010 Card Holder updated",
	"isActive": true,
	"langCode": "eng",
	"name": "TestDocType0010 Card",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
	"code": "TestDocType0010",
	"description": "TestDocType0010 Card Holder updated",
	"isActive": "$IGNORE$",
	"name": "TestDocType0010 Card"
}'
   
   MasterData_UpdateDocumentType_Invalid_Code_Char37:
      endPoint: /v1/masterdata/documenttypes
      uniqueIdentifier: TC_Masterdata_UpdateDocumentType_02
      description: Update Document Type with invalid Code more than 36 characters
      role: admin
      templateFields: ["name","description"]
      restMethod: put
      inputTemplate: masterdata/DocumentType/documentType
      outputTemplate: masterdata/error
      input: '{
	"code": "abcdefghijklmnopqrstuvwxyzabcdefghijk",
	"description": "GSD Card Holder",
	"isActive": false,
	"langCode": "eng",
	"name": "GSD Card",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.code: Should not be blank or size must be between 1 and 36"
    }
  ]
}'
   MasterData_UpdateDocumentType_Invalid_Name_Char65:
      endPoint: /v1/masterdata/documenttypes
      uniqueIdentifier: TC_Masterdata_UpdateDocumentType_03
      description: Update Document Type with invalid Description more than 64 characters
      role: admin
      templateFields: ["name","description"]
      restMethod: put
      inputTemplate: masterdata/DocumentType/documentType
      outputTemplate: masterdata/error
      input: '{
	"code": "GSD",
	"description": "GSD Card Holder",
	"isActive": false,
	"langCode": "eng",
	"name": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmf",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.name: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   MasterData_UpdateDocumentType_Invalid_Descr_Char129:
      endPoint: /v1/masterdata/documenttypes
      uniqueIdentifier: TC_Masterdata_UpdateDocumentType_04
      description: Update Document Type with invalid Description more than 128 characters
      role: admin
      restMethod: put
      templateFields: ["name","description"]
      inputTemplate: masterdata/DocumentType/documentType
      outputTemplate: masterdata/error
      input: '{
	"code": "GSD",
	"description": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
	"isActive": false,
	"langCode": "eng",
	"name": "GSD",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.description: size must be between 0 and 128"
    }
  ]
}'
   
   MasterData_UpdateDocumentType_Invalid_Name_Blank:
      endPoint: /v1/masterdata/documenttypes
      uniqueIdentifier: TC_Masterdata_UpdateDocumentType_05
      description: Update Document Type with invalid empty Name
      role: admin
      templateFields: ["description"]
      restMethod: put
      inputTemplate: masterdata/DocumentType/documentType
      outputTemplate: masterdata/error
      input: '{
	"code": "GSD",
	"description": "GSD Holder card",
	"isActive": false,
	"langCode": "eng",
	"name": "",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.name: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   MasterData_UpdateDocumentType_Invalid_Code_Blank:
      endPoint: /v1/masterdata/documenttypes
      uniqueIdentifier: TC_Masterdata_UpdateDocumentType_06
      description: Update Document Type with invalid empty Code
      role: admin
      templateFields: ["name","description"]
      restMethod: put
      inputTemplate: masterdata/DocumentType/documentType
      outputTemplate: masterdata/error
      input: '{
	"code": "",
	"description": "GSD Holder card",
	"isActive": false,
	"langCode": "eng",
	"name": "GSD",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.code: Should not be blank or size must be between 1 and 36"
    }
  ]
}'




© 2015 - 2025 Weber Informatics LLC | Privacy Policy