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

masterdata.MachineType.UpdateMachineType.yml Maven / Gradle / Ivy

The newest version!
UpdateMachineType:
   Masterdata_UpdateMachineType_All_Valid_Smoke:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_UpdateMachineType_01
      description: Update machine type details with invalid data
      role: admin
      templateFields: ["description","name"]
      restMethod: put
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/MachineType/machineTypeResult
      input: '{
    "code": "Laptop2",
    "description": "Laptop2 info updated",
	"isActive": true,
	"langCode": "eng",
	"name": "Laptop2 test",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
	"code": "Laptop2"
}'
   Masterdata_UpdateMachineType_Invalid_InputParameter_Code_Missing:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_UpdateMachineType_02
      description: Update machine type details with code parameter as missing
      role: admin
      templateFields: ["description","name"]
      restMethod: put
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "$REMOVE$",
    "description": "Laptop2 test information",
	"isActive": false,
	"langCode": "eng",
	"name": "Laptop2 test",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.code: must not be null"
    }
  ]
}'
   Masterdata_UpdateMachineType_Invalid_InputParameter_Code_Empty:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_UpdateMachineType_03
      description: Update machine type details with code parameter as empty
      role: admin
      templateFields: ["description","name"]
      restMethod: put
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "",
    "description": "Laptop2 test information",
	"isActive": false,
	"langCode": "eng",
	"name": "Laptop2 test",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.code: Should not be blank or size must be between 1 and 36"
    }
  ]
}'
   Masterdata_UpdateMachineType_InputParameter_Name_Missing:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_UpdateMachineType_04
      description: Update machine type details with Name parameter as missing
      role: admin
      templateFields: ["description"]
      restMethod: put
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "Laptop3",
    "description": "Laptop3 test ",
	"isActive": false,
	"langCode": "eng",
	"name": "$REMOVE$",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.name: must not be null"
    }
  ]
}'
   Masterdata_UpdateMachineType_InputParameter_Name_Empty:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_UpdateMachineType_05
      description: Update machine type details with Name parameter as empty
      role: admin
      templateFields: ["description"]
      restMethod: put
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "Laptop3",
    "description": "Laptop3 test",
	"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_UpdateMachineType_InputParameter_Name_AboveMaxLen64:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_UpdateMachineType_06
      description: Update machine type details with Name parameter characters above maximum length 64
      role: admin
      templateFields: ["description"]
      restMethod: put
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "Laptop3",
    "description": "Laptop3 test",
	"isActive": false,
	"langCode": "eng",
	"name": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.name: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   Masterdata_UpdateMachineType_InputParameter_Description_AboveMaxLen128:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_UpdateMachineType_07
      description: Update machine type details with description parameter characters above maximum length 64
      role: admin
      templateFields: ["name"]
      restMethod: put
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "Laptop3",
    "description": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
	"isActive": false,
	"langCode": "eng",
	"name": "Laptop3",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.description: size must be between 0 and 128"
    }
  ]
}'




© 2015 - 2025 Weber Informatics LLC | Privacy Policy