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

masterdata.LocationData.CreateLocationData.yml Maven / Gradle / Ivy

The newest version!
CreateLocationData:
   MasterData_CreateLocationData_All_Valid_Smoke:
      endPoint: /v1/masterdata/locations
      description: Create location data with valid details
      role: admin
      checkErrorsOnlyInResponse: true
      templateFields: ["name","hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationData/locationData
      outputTemplate: masterdata/LocationData/locationDataResult
      input: '{
    "code": "TST12",
    "name": "Test_Loc_A_",
    "hierarchyLevel": "$HIERARCHYLEVEL$",
    "hierarchyName": "$HIERARCHYNAME$",
    "parentLocCode": "$PARENTLOCCODE$",
    "langCode": "eng",
    "isActive": true,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
"isActive": "$IGNORE$",
"code": "TST12",
"name": "Test_Loc_A_",
"hierarchyLevel": "$IGNORE$",
"hierarchyName": "$IGNORE$",
"parentLocCode": "$IGNORE$",
"langCode": "$IGNORE$"
}'
   MasterData_CreateLocationData_Invalid_EmptyCode_SecondaryLang_eng:
      endPoint: /v1/masterdata/locations
      description: Create location data with code as empty for secondary language english
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationData/locationData
      outputTemplate: masterdata/error
      input: '{
    "code": "",
    "name": "Test_Loc_1_A",
    "hierarchyLevel":"$HIERARCHYLEVEL$",
    "hierarchyName":"$HIERARCHYNAME$",
    "parentLocCode":"$PARENTLOCCODE$",    
    "langCode": "eng",
    "isActive": false,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.code: Should not be blank or size must be between 1 and 32"
    }
  ]
}'
   MasterData_CreateLocationData_Invalid_NameLength129:
      endPoint: /v1/masterdata/locations
      description: Creating location data with an invalid name length of 129 characters
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationData/locationData
      outputTemplate: masterdata/error
      input: '{
    "code": "NST",
    "name": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
    "hierarchyLevel":"$HIERARCHYLEVEL$",
    "hierarchyName":"$HIERARCHYNAME$",
    "parentLocCode":"$PARENTLOCCODE$",    
    "langCode": "eng",
    "isActive": false,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.name: Should not be blank or size must be between 0 and 128"
    }
  ]
}'
   MasterData_CreateLocationData_Invalid_EmptyName:
      endPoint: /v1/masterdata/locations
      description: Creating location data with an name parameter as empty
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationData/locationData
      outputTemplate: masterdata/error
      input: '{
    "code": "NST",
    "name": "",
    "hierarchyLevel":"$HIERARCHYLEVEL$",
    "hierarchyName":"$HIERARCHYNAME$",
    "parentLocCode":"$PARENTLOCCODE$",    
    "langCode": "eng",
    "isActive": false,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.name: Should not be blank or size must be between 0 and 128"
    }
  ]
}'
   MasterData_CreateLocationData_Invalid_HierarchyLevel_LongInt:
      endPoint: /v1/masterdata/locations
      description: Creating location data with the hierarchy level parameter as a long integer
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationData/locationData
      outputTemplate: masterdata/error
      input: '{
    "code": "NST",
    "name": "NDATA",
    "hierarchyLevel":"2147483647",
    "hierarchyName":"$HIERARCHYNAME$",
    "parentLocCode":"$PARENTLOCCODE$",    
    "langCode": "eng",
    "isActive": false,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "Invalid Format in field : hierarchyLevel"
    }
  ]
}'
   MasterData_CreateLocationData_inValid_hierLevel_locHierCombo:
      endPoint: /v1/masterdata/locations
      description: Creating location data with the hierarchy level parameter using invalid data for the location and hierarchy combination
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationData/locationData
      outputTemplate: masterdata/error
      input: '{
    "code": "NST",
    "name": "NDATA",
    "hierarchyLevel":"363g3vf@636336gg",
    "hierarchyName":"$HIERARCHYNAME$",
    "parentLocCode":"363t3g",    
    "langCode": "eng",
    "isActive": false,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
     {
      "errorCode": "KER-MSD-244",
      "message": "$IGNORE$"
    }
  ]
}'
   MasterData_CreateLocationData_inValid_HierarchyName65:
      endPoint: /v1/masterdata/locations
      description: Creating location data with the hierarchy name parameter set to 65 characters
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationData/locationData
      outputTemplate: masterdata/error
      input: '{
    "code": "NST",
    "name": "NDATA",
    "hierarchyLevel":"$HIERARCHYLEVEL$",
    "hierarchyName":"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
    "parentLocCode":"$PARENTLOCCODE$",    
    "langCode": "eng",
    "isActive": false,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.hierarchyName: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   MasterData_CreateLocationData_Invalid_EmptyHierarchyName:
      endPoint: /v1/masterdata/locations
      description: Creating location data with the hierarchy name parameter as empty
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationData/locationData
      outputTemplate: masterdata/error
      input: '{
    "code": "NST",
    "name": "NDATA",
    "hierarchyLevel":"$HIERARCHYLEVEL$",
    "hierarchyName":"",
    "parentLocCode":"$PARENTLOCCODE$",    
    "langCode": "eng",
    "isActive": false,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.hierarchyName: Should not be blank or size must be between 1 and 64"
    }
  ]
}'
   MasterData_CreateLocationData_inValid_parentLocCode_nonExisting_inDB:
      endPoint: /v1/masterdata/locations
      description: Creating location data with a parent location code parameter that is not available in the database
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationData/locationData
      outputTemplate: masterdata/error
      input: '{
    "code": "NST",
    "name": "NDATA",
    "hierarchyLevel":"$HIERARCHYLEVEL$",
    "hierarchyName":"$HIERARCHYNAME$",
    "parentLocCode":"fbheafg",    
    "langCode": "eng",
    "isActive": false,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-243",
      "message": "Parent location not found"
    }
  ]
}'
   
   
   MasterData_CreateLocationData_Invalid_requestTime_format:
      endPoint: /v1/masterdata/locations
      description: Creating location data with invalid request time format
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationData/locationData
      outputTemplate: masterdata/error
      input: '{
    "code": "NST",
    "name": "NDATA",
    "hierarchyLevel":"$HIERARCHYLEVEL$",
    "hierarchyName":"$HIERARCHYNAME$",
    "parentLocCode":"$PARENTLOCCODE$",    
    "langCode": "eng",
    "isActive": false,
    "requesttime": "2019/12/20"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "Invalid Format in field : requesttime"
    }
  ]
}'




© 2015 - 2025 Weber Informatics LLC | Privacy Policy