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

masterdata.SearchDynamicField.SearchDynamicField.yml Maven / Gradle / Ivy

The newest version!
SearchDynamicField:
   MasterData_SearchDynamicField_Valid_Smoke:
      endPoint: /v1/masterdata/dynamicfields/search
      uniqueIdentifier: TC_Masterdata_SearchDynamicField_01
      description: Search dynamic field with valid data
      role: admin
      checkErrorsOnlyInResponse: true
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDynamicField/searchDynamicField
      outputTemplate: masterdata/SearchDynamicField/searchDynamicFieldResult
      input: '{
	"filters": [],
	"sort": [{
		"sortField": "createdDateTime",
		"sortType": "ASC"
	}],
	"pageStart": 0,
	"pageFetch": 10,
	"languageCode": "eng",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": null
}'
   MasterData_SearchDynamicField_Valid_Filter_Name:
      endPoint: /v1/masterdata/dynamicfields/search
      uniqueIdentifier: TC_Masterdata_SearchDynamicField_02
      description: Search dynamic field with valid filter name value
      role: admin
      checkErrorsOnlyInResponse: true
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDynamicField/searchDynamicField
      outputTemplate: masterdata/SearchDynamicField/searchDynamicFieldResult
      input: '{
	"filters": [{
		"columnName": "name",
		"type": "equals",
		"value": "bloodType"
	}],
	"sort": [{
		"sortField": "createdDateTime",
		"sortType": "ASC"
	}],
	"pageStart": 0,
	"pageFetch": 10,
	"languageCode": "eng",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": null
}'
   MasterData_SearchDynamicField_Invalid_NegPageFetch:
      endPoint: /v1/masterdata/dynamicfields/search
      uniqueIdentifier: TC_Masterdata_SearchDynamicField_03
      description: Search dynamic field with invalid negative page fetch value
      role: admin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDynamicField/searchDynamicField
      outputTemplate: masterdata/error
      input: '{
    "filters": [{
         "columnName": "name",
		"type": "equals",
		"value": "bloodType"
      }],
    "sort": [{
       "sortField": "createdDateTime",
	   "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_SearchDynamicField_Invalid_NegPageStart:
      endPoint: /v1/masterdata/dynamicfields/search
      uniqueIdentifier: TC_Masterdata_SearchDynamicField_04
      description: Search dynamic field with invalid negative page start
      role: admin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDynamicField/searchDynamicField
      outputTemplate: masterdata/error
      input: '{
    "filters": [{
        "columnName": "name",
		"type": "equals",
		"value": "bloodType"
      }],
    "sort": [{
       "sortField": "createdDateTime",
	   "sortType": "ASC"
	  }],
    "pageStart": -1,
    "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
       "errorCode": "KER-MSD-999",
       "message": "request.pagination.pageStart: Should have positive integer value"
    }
  ]
}'
   MasterData_SearchDynamicField_Invalid_SortType_neg:
      endPoint: /v1/masterdata/dynamicfields/search
      uniqueIdentifier: TC_Masterdata_SearchDynamicField_05
      description: Search dynamic field with invalid sort type value
      role: admin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDynamicField/searchDynamicField
      outputTemplate: masterdata/error
      input: '{
   "filters": [{
        "columnName": "name",
		"type": "equals",
		"value": "bloodType"
      }],
    "sort": [{
       "sortField": "createdDateTime",
	   "sortType": "asdf"
	  }],
     "pageStart": 0,
     "pageFetch": 1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-358",
      "message": "Sort type asdf is not supported"
    }
  ]
}'
   MasterData_SearchDynamicField_Invalid_SortField_neg:
      endPoint: /v1/masterdata/dynamicfields/search
      uniqueIdentifier: TC_Masterdata_SearchDynamicField_06
      description: Search dynamic field with invalid sort field value
      role: admin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDynamicField/searchDynamicField
      outputTemplate: masterdata/error
      input: '{
    "filters": [{
        "columnName": "name",
		"type": "equals",
		"value": "bloodType"
      }],
    "sort": [{
       "sortField": "createddDateTime",
	   "sortType": "ASC"
	  }],
     "pageStart": 0,
     "pageFetch": 1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-357",
      "message": "Invalid sort field createddDateTime"
    }
  ]
}'
   
   MasterData_SearchDynamicField_Blank_SortField:
      endPoint: /v1/masterdata/dynamicfields/search
      uniqueIdentifier: TC_Masterdata_SearchDynamicField_07
      description: Search dynamic field with sort field value as empty
      role: admin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDynamicField/searchDynamicField
      outputTemplate: masterdata/error
      input: '{
    "filters": [{
        "columnName": "name",
		"type": "equals",
		"value": "bloodType"
      }],
    "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_SearchDynamicField_Invalid_RequestTime:
      endPoint: /v1/masterdata/dynamicfields/search
      uniqueIdentifier: TC_Masterdata_SearchDynamicField_08
      description: Search dynamic field with invalid request time
      role: admin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/SearchDynamicField/searchDynamicField
      outputTemplate: masterdata/error
      input: '{
    "filters": [{
        "columnName": "name",
		"type": "equals",
		"value": "bloodType"
      }],
    "sort": [{
		"sortField": "createdDateTime",
		"sortType": "ASC"
	  }],
    "pageStart": 0,
    "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "2019-7-3T05:22:35.845"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-999",
      "message": "Invalid Format in field : requesttime"
    }
  ]
}'




© 2015 - 2025 Weber Informatics LLC | Privacy Policy