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

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

The newest version!
CreateMachineType:
   Masterdata_CreateMachineType_All_Valid_Smoke:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_CreateMachineType_01
      description: Create machine type details with valid data
      role: admin
      templateFields: ["description","name"]
      restMethod: post
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/MachineType/machineTypeResult
      input: '{
    "code": "Laptop2",
    "description": "Laptop2 info",
	"isActive": true,
	"langCode": "eng",
	"name": "Laptop2 test",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
	"code": "Laptop2"
}'
   Masterdata_CreateMachineType_Invalid_InputParameter_Code_Missing:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_CreateMachineType_02
      description: Create machine type details with code parameter as missing
      role: admin
      templateFields: ["description","name"]
      restMethod: post
      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_CreateMachineType_Invalid_InputParameter_Code_Empty:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_CreateMachineType_03
      description: Create machine type details with code parameter as empty
      role: admin
      templateFields: ["description","name"]
      restMethod: post
      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_CreateMachineType_InputParameter_Name_Missing:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_CreateMachineType_04
      description: Create machine type details with Name parameter as missing
      role: admin
      templateFields: ["description"]
      restMethod: post
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "Laptop2",
    "description": "Laptop2 test ",
	"isActive": false,
	"langCode": "eng",
	"name": "$REMOVE$",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.name: must not be null"
    }
  ]
}'
   Masterdata_CreateMachineType_InputParameter_Name_Empty:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_CreateMachineType_05
      description: Create machine type details with Name parameter as empty
      role: admin
      templateFields: ["description"]
      restMethod: post
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "Laptop2",
    "description": "Laptop2 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_CreateMachineType_InputParameter_Name_AboveMaxLen64:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_CreateMachineType_06
      description: Create machine type details with Name parameter characters above maximum length 64
      role: admin
      templateFields: ["description"]
      restMethod: post
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "Laptop2",
    "description": "Laptop2 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_CreateMachineType_InputParameter_Description_AboveMaxLen128:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_CreateMachineType_07
      description: Create machine type details with Name parameter description above maximum length 64
      role: admin
      templateFields: ["name"]
      restMethod: post
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "Laptop2",
    "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"
    }
  ]
}'
   Masterdata_CreateMachineType_InputParameter_isActive_Missing:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_CreateMachineType_08
      description: Create machine type details with is active parameter as missing
      role: admin
      restMethod: post
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "Laptop2",
    "description": "Laptop2 test",
	"isActive": "$REMOVE$",
	"langCode": "eng",
	"name": "Laptop3 testname",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.isActive: must not be null"
    }
  ]
}'

   Masterdata_CreateMachineType_With_Spacial_Characters_Neg:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_CreateMachineType_09
      description: Create machine type details with special characters added in input
      role: admin
      templateFields: ["description","name"]
      restMethod: post
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "L@apto@p2",
    "description": "Lapto@p2 info",
	"isActive": true,
	"langCode": "eng",
	"name": "Lap$top2 test",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
	"errors": [
    {
      "errorCode": "KER-MSD-999"
    }
  ]
}'

   Masterdata_CreateMachineType_Dublicate_Neg:
      endPoint: /v1/masterdata/machinetypes
      uniqueIdentifier: TC_Masterdata_CreateMachineType_10
      description: Create machine type details with duplicate details
      role: admin
      templateFields: ["description","name"]
      restMethod: post
      inputTemplate: masterdata/MachineType/machineType
      outputTemplate: masterdata/error
      input: '{
    "code": "Laptop2",
    "description": "Laptop2 info",
	"isActive": true,
	"langCode": "eng",
	"name": "Laptop2 test",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
	"errors": [
    {
      "errorCode": "KER-MSD-061"
    }
  ]
}'




© 2015 - 2025 Weber Informatics LLC | Privacy Policy