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

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

The newest version!
CreateLocationData:
   MasterData_CreateLocationData_WithMandatoryLanguage_All_Valid_Smoke_Sid:
      endPoint: /v1/masterdata/locations
      uniqueIdentifier: TC_Masterdata_CreateLocationData_01
      description: Creating location data with valid details
      role: admin
      checkErrorsOnlyInResponse: true
      templateFields: ["name"]
      restMethod: post
      inputTemplate: masterdata/LocationController/locationData
      outputTemplate: masterdata/LocationController/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
      uniqueIdentifier: TC_Masterdata_CreateLocationData_02
      description: Creating location data with code as empty for secondary language english
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationController/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
      uniqueIdentifier: TC_Masterdata_CreateLocationData_03
      description: Creating location data with an invalid name length of 129 characters
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationController/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
      uniqueIdentifier: TC_Masterdata_CreateLocationData_04
      description: Creating location data with an name parameter as empty
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationController/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
      uniqueIdentifier: TC_Masterdata_CreateLocationData_05
      description: Creating location data with the hierarchy level parameter as a long integer
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationController/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
      uniqueIdentifier: TC_Masterdata_CreateLocationData_06
      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/LocationController/locationData
      outputTemplate: masterdata/error
      input: '{
    "code": "NST",
    "name": "NDATA",
    "hierarchyLevel":"7",
    "hierarchyName":"$HIERARCHYNAME$",
    "parentLocCode":"$PARENTLOCCODE$",    
    "langCode": "eng",
    "isActive": false,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
     {
      "errorCode": "KER-MSD-244",
      "message": "Location hierarchy is invalid"
    }
  ]
}'
   MasterData_CreateLocationData_inValid_HierarchyName65:
      endPoint: /v1/masterdata/locations
      uniqueIdentifier: TC_Masterdata_CreateLocationData_07
      description: Creating location data with the hierarchy name parameter set to 65 characters
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationController/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
      uniqueIdentifier: TC_Masterdata_CreateLocationData_08
      description: Creating location data with the hierarchy name parameter as empty
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationController/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
      uniqueIdentifier: TC_Masterdata_CreateLocationData_09
      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/LocationController/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
      uniqueIdentifier: TC_Masterdata_CreateLocationData_10
      description: Creating location data with invalid request time format
      role: admin
      templateFields: ["hierarchyName"]
      restMethod: post
      inputTemplate: masterdata/LocationController/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