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

masterdata.DeviceType.CreateDeviceType.yml Maven / Gradle / Ivy

The newest version!
CreateDeviceType:
   MasterData_CreateDeviceType_All_Valid_Smoke:
      endPoint: /v1/masterdata/devicetypes
      uniqueIdentifier: TC_Masterdata_CreateDeviceType_01
      description: Create Device Type with all valid data
      role: admin
      templateFields: ["description"]
      restMethod: post
      inputTemplate: masterdata/DeviceType/deviceType
      outputTemplate: masterdata/DeviceType/deviceTypeResult
      input: '{
    "code": "GST3",
    "description": "test 1.0.8",
	"isActive": true,
	"langCode": "eng",
	"name": "GST",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
	"code": "GST3"
}'

   MasterData_CreateDeviceType_TO_verify_Deactivation:
      endPoint: /v1/masterdata/devicetypes
      uniqueIdentifier: TC_Masterdata_CreateDeviceType_02
      description: Create Device Type for deactivated devices
      role: admin
      templateFields: ["description"]
      restMethod: post
      inputTemplate: masterdata/DeviceType/deviceType
      outputTemplate: masterdata/DeviceType/deviceTypeResult
      input: '{
    "code": "REG",
    "description": "test 1.0.8",
	"isActive": true,
	"langCode": "eng",
	"name": "REG",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
	"code": "REG"
}'
   MasterData_CreateDeviceType_All_Valid_Mandatory_Fields:
      endPoint: /v1/masterdata/devicetypes
      uniqueIdentifier: TC_Masterdata_CreateDeviceType_03
      description: Create Device Type with all mandatory fields
      role: admin
      templateFields: ["description","name"]
      restMethod: post
      inputTemplate: masterdata/DeviceType/deviceType
      outputTemplate: masterdata/DeviceType/deviceTypeResult
      input: '{
    "code": "GST4",
    "description": "$REMOVE$",
	"isActive": true,
	"langCode": "eng",
	"name": "GST4",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
	"code": "GST4"
}'

   MasterData_CreateDeviceType_Dublicate_Device_Neg:
      endPoint: /v1/masterdata/devicetypes
      uniqueIdentifier: TC_Masterdata_CreateDeviceType_04
      description: Create Device Type with duplicate data
      role: admin
      templateFields: ["description"]
      restMethod: post
      inputTemplate: masterdata/DeviceType/deviceType
      outputTemplate: masterdata/error
      input: '{
    "code": "GST3",
    "description": "test 1.0.8",
	"isActive": true,
	"langCode": "eng",
	"name": "GST",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
       "errors": [
    {
      "errorCode": "KER-MSD-053"
    }
  ]
	
}'
   MasterData_CreateDeviceType_InputParameter_Name_Missing:
      endPoint: /v1/masterdata/devicetypes
      uniqueIdentifier: TC_Masterdata_CreateDeviceType_05
      description: Create Device Type with missing Input Parameter name
      role: admin
      templateFields: ["description"]
      restMethod: post
      inputTemplate: masterdata/DeviceType/deviceType
      outputTemplate: masterdata/error
      input: '{
    "code": "GST3",
    "description": "test 1.0.8",
	"isActive": false,
	"langCode": "eng",
	"name": "$REMOVE$",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.name: must not be null"
    }
  ]
}'
   MasterData_CreateDeviceType_InputParameter_Name_Empty:
      endPoint: /v1/masterdata/devicetypes
      uniqueIdentifier: TC_Masterdata_CreateDeviceType_06
      description: Create Device Type with empty Input Parameter name
      role: admin
      templateFields: ["description"]
      restMethod: post
      inputTemplate: masterdata/DeviceType/deviceType
      outputTemplate: masterdata/error
      input: '{
    "code": "GST3",
    "description": "test 1.0.8",
	"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_CreateDeviceType_InputParameter_Name_AboveMaxLen64:
      endPoint: /v1/masterdata/devicetypes
      uniqueIdentifier: TC_Masterdata_CreateDeviceType_07
      description: Create Device Type with name more than 64 characters
      role: admin
      templateFields: ["description"]
      restMethod: post
      inputTemplate: masterdata/DeviceType/deviceType
      outputTemplate: masterdata/error
      input: '{
    "code": "GST3",
    "description": "test 1.0.8",
	"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_CreateDeviceType_InputParameter_Description_AboveMaxLen128:
      endPoint: /v1/masterdata/devicetypes
      uniqueIdentifier: TC_Masterdata_CreateDeviceType_08
      description: Create Device Type with description more than 128 characters
      role: admin
      templateFields: ["name"]
      restMethod: post
      inputTemplate: masterdata/DeviceType/deviceType
      outputTemplate: masterdata/error
      input: '{
    "code": "GST3",
    "description": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
	"isActive": false,
	"langCode": "eng",
	"name": "GST",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.description: size must be between 0 and 128"
    }
  ]
}'
   MasterData_CreateDeviceType_InputParameter_isActive_Missing:
      endPoint: /v1/masterdata/devicetypes
      uniqueIdentifier: TC_Masterdata_CreateDeviceType_09
      description: Create Device Type with missing Input Parameter isActive
      role: admin
      restMethod: post
      inputTemplate: masterdata/DeviceType/deviceType
      outputTemplate: masterdata/error
      input: '{
    "code": "GST3",
    "description": "test 1.0.8",
	"isActive": "$REMOVE$",
	"langCode": "eng",
	"name": "GST",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.isActive: must not be null"
    }
  ]
}'

   MasterData_CreateDeviceType_Spacial_Character_Neg:
      endPoint: /v1/masterdata/devicetypes
      uniqueIdentifier: TC_Masterdata_CreateDeviceType_10
      description: Create Device Type with special characters in code
      role: admin
      templateFields: ["description","name"]
      restMethod: post
      inputTemplate: masterdata/DeviceType/deviceType
      outputTemplate: masterdata/error
      input: '{
    "code": "G@ST4",
    "description": "$REMOVE$",
	"isActive": true,
	"langCode": "eng",
	"name": "G@ST$4",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
	"errors": [
    {
      "errorCode": "KER-MSD-999"
    }
  ]
}'




© 2015 - 2025 Weber Informatics LLC | Privacy Policy