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

masterdata.TitleSearch.TitleSearch.yml Maven / Gradle / Ivy

The newest version!
TitleSearch:
   MasterData_TitleSearch_Valid_Smoke:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_01
      description: Search the title details by valid data
      role: admin
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{

	"filters": [],
	"sort": [{
		"sortField": "titleName",
		"sortType": "ASC"
	}],

	"pageStart": 0,
	"pageFetch": 10,
	"languageCode": "eng",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "data": [
     
    ]
}'
   MasterData_TitleSearch_Valid_lang:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_02
      description: Search the title details with valid language code
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{

	"filters": [
		{
		"columnName": "titleName",
		"type": "equals",
		"value": "Mr"
	}
	],
	"sort": [{
		"sortField": "titleName",
		"sortType": "ASC"
	}],

	"pageStart": 0,
	"pageFetch": 10,
	"languageCode": "eng",
	"requesttime": "$TIMESTAMP$"
}'
      output: '{
   "data": [
     
    ]
}'
   MasterData_TitleSearch_Equals_Name_eng_smoke:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_03
      description: Search the title details where the type equals the language code eng
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "equals",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "titleName",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "data": [
     {
        "code": "TEST0011",
        "titleName": "TEST0011",
        "titleDescription": "TEST0011"
      }
    ]
}'
   MasterData_TitleSearch_Equals_Name_ara_smoke:
      endPoint: /v1/masterdata/title/search
     uniqueIdentifier: TC_Masterdata_TitleSearch_04
      description: Search the title details where the type equals the language code arabic
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "equals",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "titleName",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "ara",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "data": [
     {
        "code": "TEST0011",
        "titleName": "TEST0011",
        "titleDescription": "$IGNORE$"
      }
    ]
}'
   MasterData_TitleSearch_Invalid_Value_Name_neg:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_05
      description: Search the title details with invalid name parameter
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "equals",
        "value": "Language"
      }
    ],
    "sort": [
      {
			        "sortField": "titleName",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "data": []
}'
   MasterData_TitleSearch_InvalidPageFetch_neg:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_06
      description: Search the title details with invalid page fetch parameter
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "equals",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "titleName",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": -1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-313",
      "message": "Invalid pagination value received pagestart:0 and pagefetch:-1"
    }
  ]
}'
   MasterData_TitleSearch_InvalidPageStart_neg:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_07
      description: Search the title details with invalid page start parameter
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "equals",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "titleName",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": -1,
      "pageFetch": 1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-313",
      "message": "Invalid pagination value received pagestart:-1 and pagefetch:1"
    }
  ]
}'
   MasterData_TitleSearch_Invalid_FilterType_neg:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_08
      description: Search the title details with invalid filter type
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "between",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "titleName",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-324",
      "message": "Received Filter Type not supported"
    }
  ]
}'
   MasterData_TitleSearch_Invalid_SortType_neg:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_09
      description: Search the title details with invalid sort type
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "equals",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "titleName",
			        "sortType": "adgfh"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-358",
      "message": "Sort Type adgfh is not supported"
    }
  ]
}'
   MasterData_TitleSearch_Invalid_SortField_neg:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_10
      description: Search the title details with invalid sort field
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "equals",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "lang_code",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-357",
      "message": "Invalid Sort Field lang_code"
    }
  ]
}'
   
   MasterData_TitleSearch_Blank_SortField_pos:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_11
      description: Search the title details with sort field and blank
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "equals",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-314",
      "message": "Missing sort field or sort type values"
    }
  ]
}'
   MasterData_TitleSearch_Invalid_ColumnName_neg:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_12
      description: Search the title details with invalid column name
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "lang_code",
        "type": "equals",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "name",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-317",
      "message": "$IGNORE$"
    }
  ]
}'
   MasterData_TitleSearch_Invalid_RequestTime_neg:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_13
      description: Search the title details with invalid request time
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "equals",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "titleName",
			        "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"
    }
  ]
}'
   MasterData_TitleSearch_Contains_Name_eng_pos:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_14
      description: Search the title details with the parameter name contains with specific keyword and the language code as English
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "contains",
        "value": "TEST0011"
      }
    ],
    "sort": [
      {
			        "sortField": "titleName",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "data": [
     {
        "code": "TEST0011",
        "titleName": "TEST0011",
        "titleDescription": "TEST0011"
      }
    ]
}'
   MasterData_TitleSearch_StartsWith_Name_eng_pos:
      endPoint: /v1/masterdata/title/search
      uniqueIdentifier: TC_Masterdata_TitleSearch_15
      description: Search the title details with the parameter name starts with specific keyword and the language code as English
      role: admin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/TitleSearch/titleSearch
      outputTemplate: masterdata/TitleSearch/titleSearchResult
      input: '{
    "filters": [{
        "columnName": "titleName",
        "type": "startsWith",
        "value": "TEST001"
      }
    ],
    "sort": [
      {
			        "sortField": "titleName",
			        "sortType": "ASC"
			      }
    ],
  
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
  "requesttime": "$TIMESTAMP$"
}'
      output: '{
   "data": [
     {
        "code": "TEST0011",
        "titleName": "TEST0011",
        "titleDescription": "TEST0011"
      }
    ]
}'




© 2015 - 2025 Weber Informatics LLC | Privacy Policy