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

masterdata.SearchHoliday.SearchDocumentType.yml Maven / Gradle / Ivy

The newest version!
SearchDocumentType:
   MasterData_SearchDocumnetType_Valid_Smoke:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_01
      description: Search document type with valid data
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/SearchDocumentType/searchDocumentTypeResult
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "TestDocType0010 Card",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "data": [
     {
        "isActive": "$IGNORE$",
        "description": "$IGNORE$",
        "code": "TestDocType0010",
        "langCode": "$IGNORE$",
        "name": "$IGNORE$"
      }
    ]
}'  
   MasterData_SearchDocumnetType_Valid_FilterTypeContains:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_02
      description: Search document type with the condition that the filter type contains specified keywords
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/SearchDocumentType/searchDocumentTypeResult
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "contains",
        "value": "TestDocType0010 Card",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "data": [
     {
        "isActive": "$IGNORE$",
        "description": "$IGNORE$",
        "code": "TestDocType0010",
        "langCode": "$IGNORE$",
        "name": "$IGNORE$"
      }
    ]
}'
   MasterData_SearchDocumnetType_Valid_FilterTypeStartsWith:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_03
      description: Search document type with the condition that the filter type starts with specified keywords
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/SearchDocumentType/searchDocumentTypeResult
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "startsWith",
        "value": "TestDocType0010 Card",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "data": [
     {
        "isActive": "$IGNORE$",
        "description": "$IGNORE$",
        "code": "TestDocType0010",
        "langCode": "$IGNORE$",
        "name": "$IGNORE$"
      }
    ]
}'
   MasterData_SearchDocumentType_inValid_columnName_blank:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_04
      description: Search document type with the column name as empty
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "",
        "type": "equals",
        "value": "TestDocType0010",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-311",
      "message": "Column is missing in request"
    }
  ]
}'
   MasterData_SearchDocumentType_inValid_columnName:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_05
      description: Search document type with the invalid column name
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "agshshs",
        "type": "equals",
        "value": "TestDocType0010",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-317",
      "message": "$IGNORE$"
    }
  ]
}'
   MasterData_SearchDocumentType_inValid_filter_value:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_06
      description: Search document type with the invalid filter value
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "agshshs",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "data": []
}'
   MasterData_SearchDocumentType_inValid_filter_value_blank:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_07
      description: Search document type with the filter value as empty
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-390",
      "message": "$IGNORE$"
    }
  ]
}'
   
   MasterData_SearchDocumentType_inValid_sortField:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_08
      description: Search document type with the invalid sort field
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "TestDocType0010 Card",
        "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_SearchDocumentType_inValid_sortType:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_09
      description: Search document type with the invalid sort type
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "TestDocType0010 Card",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "fbheafg"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-358",
      "message": "Sort type fbheafg is not supported"
    }
  ]
}'
   MasterData_SearchDocumentType_inValid_sortField_blank:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_10
      description: Search document type with the sort field as empty
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "TestDocType0010 Card",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-314",
      "message": "Missing sort field or sort type values"
    }
  ]
}'
   MasterData_SearchDocumentType_inValid_sortType_blank:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_11
      description: Search document type with invalid sort type
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "TestDocType0010 Card",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": ""
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-314",
      "message": "Missing sort field or sort type values"
    }
  ]
}'
   MasterData_SearchDocumentType_inValid_pagesize:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_12
      description: Search document type with invalid page size
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "TestDocType0010 Card",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "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_SearchDocumentType_inValid_filterType_blank:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_13
      description: Search document type with the filter type as empty
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "",
        "value": "TestDocType0010 Card",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-312",
      "message": "Filter type is missing"
    }
  ]
}'
   MasterData_SearchDocumentType_inValid_filterType:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_14
      description: Search document type with invalid filter type
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "kfdjfkd",
        "value": "TestDocType0010 Card",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-318",
      "message": "$IGNORE$"
    }
  ]
}'
   MasterData_SearchDocumentType_inValid_requestTime_format:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_15
      description: Search document type with invalid request time
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "code",
        "type": "equals",
        "value": "TestDocType0010 Card",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "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_SearchDocumentType_inValid_typeFilter_contains:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_16
      description: Search document type with an invalid type filter contains
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      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_SearchDocumentType_inValid_typeFilter_startsWith:
      endPoint: /v1/masterdata/documenttypes/search
      uniqueIdentifier: TC_Masterdata_SearchDocumnetType_17
      description: Search document type with an invalid type filter starts with
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/SearchDocumentType/searchDocumentType
      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