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

masterdata.SearchDocCategories.SearchDocCategories.yml Maven / Gradle / Ivy

The newest version!
SearchDocCategories:
   MasterData_SearchDocCategories_Valid_Request_Smoke:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_01
      description: Search document categories where the column name code equals to
      role: admin
      checkErrorsOnlyInResponse: true
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/SearchDocCategories/searchDocCategoriesResult
      input: '{
    "filters": [
      {
        "columnName": "isActive",
        "type": "equals",
        "value": "false",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      },
      {
        "columnName": "code",
        "type": "equals",
        "value": "DocTestCode123",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "isActive",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "totalRecord": "$IGNORE$"
}'
   MasterData_SearchDocCategories_Valid_sortBy_code:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_02
      description: Search document categories and sort by code
      role: admin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/SearchDocCategories/searchDocCategoriesResult
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "POA",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "totalRecord": "$IGNORE$",
   "data": [
     {
        "isActive": "$IGNORE$",
        "description": "$IGNORE$",
        "code": "POA",
        "langCode": "$IGNORE$",
        "name": "$IGNORE$"
      }
    ]
}'
   MasterData_SearchDocCategories_Valid_sortType_DESC:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_03
      description: Search document categories with sort type as descending order
      role: admin
      templateFields: ["languageCode"]
      restMethod: post
      checkErrorsOnlyInResponse: true
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/SearchDocCategories/searchDocCategoriesResult
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "POA",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": "DESC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "totalRecord": "$IGNORE$",
   "data": [
     {
        "isActive": "$IGNORE$",
        "description": "$IGNORE$",
        "code": "$IGNORE$",
        "langCode": "$IGNORE$",
        "name": "$IGNORE$"
      }
    ]
}'
   MasterData_SearchDocCategories_inValid_columnName_blank:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_04
      description: Search document categories with column name as empty
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "",
        "type": "equals",
        "value": "DocTestCode123",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-311",
      "message": "Column is missing in request"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_columnName:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_05
      description: Search document categories with invalid column name
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "agshshs",
        "type": "equals",
        "value": "DocTestCode123",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "agshshs",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-357",
      "message": "$IGNORE$"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_filter_value:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_06
      description: Search document categories with invalid filter value
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/SearchDocCategories/searchDocCategoriesResult
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "agshshs",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "totalRecord": "0"
}'
   MasterData_SearchDocCategories_inValid_filter_value_blank:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_07
      description: Search document categories with filter value as empty
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-390",
      "message": "Invalid filter value"
    }
  ]
}'
   
   MasterData_SearchDocCategories_inValid_sortField:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_08
      description: Search document categories with invalid sort field
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "DocTestCode123",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "fbheafg",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-357",
      "message": "Invalid sort field fbheafg"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_sortType:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_09
      description: Search document categories with invalid sort type
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "DocTestCode123",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": "fbheafg"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-358",
      "message": "Sort type fbheafg is not supported"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_sortField_blank:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_10
      description: Search document categories with sort field as empty
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "DocTestCode123",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "",
        "sortType": "fbheafg"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-314",
      "message": "Missing sort field or sort type values"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_sortType_blank:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_11
      description: Search document categories with sort type as empty
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "DocTestCode123",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": ""
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-314",
      "message": "Missing sort field or sort type values"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_pagesize:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_12
      description: Search document categories with invalid page size
      role: admin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "POA",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": -1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "request.pagination.pageFetch: Should have positive integer value"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_filterType_blank:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_13
      description: Search document categories with filter type as empty
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "",
        "value": "DocTestCode123",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-312",
      "message": "Filter type is missing"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_filterType:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_14
      description: Search document categories with invalid filter type
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "kfdjfkd",
        "value": "DocTestCode123",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-318",
      "message": "$IGNORE$"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_requestTime_format:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_15
      description: Search document categories with invalid request time
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "DocTestCode123",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "code",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "2018-12-10 06:12:52.994Z"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "Invalid Format in field : requesttime"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_typeFilter_contains:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_16
      description: Search document categories with invalid type filter
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "isActive",
        "type": "contains",
        "value": "true",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "isActive",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-318",
      "message": "$IGNORE$"
    }
  ]
}'
   MasterData_SearchDocCategories_inValid_typeFilter_startsWith:
      endPoint: /v1/masterdata/documentcategories/search
      uniqueIdentifier: TC_Masterdata_SearchDocCategories_17
      description: Search document categories with invalid type filter starts with
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocCategories/searchDocCategories
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "isActive",
        "type": "startsWith",
        "value": "true",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "isActive",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-318",
      "message": "$IGNORE$"
    }
  ]
}'




© 2015 - 2025 Weber Informatics LLC | Privacy Policy