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

masterdata.DeviceSearch.DeviceSearch.yml Maven / Gradle / Ivy

The newest version!
DeviceSearch:
   MasterData_DeviceSearch_Equals_Name_eng_smoke:
      endPoint: /v1/masterdata/devices/search
      uniqueIdentifier: TC_Masterdata_DeviceSearch_01
      description: Search Devices by columnName name and type startswith
      role: globalAdmin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/DeviceSearch/deviceSearch
      outputTemplate: masterdata/DeviceSearch/deviceSearchResult
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "startswith",
        "value": "Mock IRIS Scanner",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
	"data": [{
	"id": "$IGNORE$",
	"name": "$IGNORE$",
	"serialNum": "3456789012",
	"description": "$IGNORE$",
	"macAddress": "85-BB-97-4B-14-05",
	"ipAddress": "$IGNORE$",
	"deviceSpecId": "327",
	"isActive": "$IGNORE$",
	"validityDateTime": "$IGNORE$"
	}]
}'
   
   MasterData_DeviceSearch_Equals_SerialNo_smoke:
      endPoint: /v1/masterdata/devices/search
      uniqueIdentifier: TC_Masterdata_DeviceSearch_02
      description: Search Devices by columnName serialNum and type equals
      role: globalAdmin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/DeviceSearch/deviceSearch
      outputTemplate: masterdata/DeviceSearch/deviceSearchResult
      input: '{
    "filters": [
      {
        "columnName": "serialNum",
        "type": "equals",
        "value": "3456789012",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "serialNum",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
	"data": [{
	"id": "$IGNORE$",
	"name": "$IGNORE$",
	"serialNum": "3456789012",
	"description": "$IGNORE$",
	"macAddress": "85-BB-97-4B-14-05",
	"ipAddress": "$IGNORE$",
	"deviceSpecId": "327",
	"isActive": "$IGNORE$",
	"validityDateTime": "$IGNORE$"
	}]
}'
   MasterData_DeviceSearch_Equals_MacAddress_smoke:
      endPoint: /v1/masterdata/devices/search
      uniqueIdentifier: TC_Masterdata_DeviceSearch_03
      description: Search Devices by columnName macAddress and type equals
      role: globalAdmin
      checkErrorsOnlyInResponse: true
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/DeviceSearch/deviceSearch
      outputTemplate: masterdata/DeviceSearch/deviceSearchResult
      input: '{
    "filters": [
      {
        "columnName": "macAddress",
        "type": "equals",
        "value": "85-BB-97-4B-14-05",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "macAddress",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
}'
   MasterData_DeviceSearch_ASC_Name_eng_pos:
      endPoint: /v1/masterdata/devices/search
      uniqueIdentifier: TC_Masterdata_DeviceSearch_04
      description: Search Devices by columnName name and sortType By ASC
      role: globalAdmin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/DeviceSearch/deviceSearch
      outputTemplate: masterdata/DeviceSearch/deviceSearchResult
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "contains",
        "value": "Mock IRIS Scanner",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
	"data": [{
	"id": "$IGNORE$",
	"name": "$IGNORE$",
	"serialNum": "3456789012",
	"description": "$IGNORE$",
	"macAddress": "85-BB-97-4B-14-05",
	"ipAddress": "$IGNORE$",
	"deviceSpecId": "327",
	"langCode": "$IGNORE$",
	"isActive": "$IGNORE$",
	"validityDateTime": "$IGNORE$"
	}]
}'
   
   MasterData_DeviceSearch_DESC_Name_eng_pos:
      endPoint: /v1/masterdata/devices/search
      uniqueIdentifier: TC_Masterdata_DeviceSearch_05
      description: Search Devices by columnName name and sortType By Desc
      role: globalAdmin
      templateFields: ["languageCode"]
      restMethod: post
      inputTemplate: masterdata/DeviceSearch/deviceSearch
      outputTemplate: masterdata/DeviceSearch/deviceSearchResult
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "contains",
        "value": "Mock IRIS Scanner",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "DESC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
	"data": [{
	"id": "$IGNORE$",
	"name": "$IGNORE$",
	"serialNum": "3456789012",
	"description": "$IGNORE$",
	"macAddress": "85-BB-97-4B-14-05",
	"ipAddress": "$IGNORE$",
	"deviceSpecId": "327",
	"langCode": "$IGNORE$",
	"isActive": "$IGNORE$",
	"validityDateTime": "$IGNORE$"
	}]
}'
   
   MasterData_DeviceSearch_Invalid_Value_Name_smoke:
      endPoint: /v1/masterdata/devices/search
      uniqueIdentifier: TC_Masterdata_DeviceSearch_06
      description: Search Devices by columnName name and invalid value
      role: globalAdmin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/DeviceSearch/deviceSearch
      outputTemplate: masterdata/NilSearchResult
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "Language",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "ASC"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
    "fromRecord": "0",
    "toRecord": "0",
    "totalRecord": "0"
}'
   MasterData_DeviceSearch_Invalid_SortType_neg:
      endPoint: /v1/masterdata/devices/search
      uniqueIdentifier: TC_Masterdata_DeviceSearch_07
      description: Search Devices by columnName name and invalid sortType value
      role: globalAdmin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/DeviceSearch/deviceSearch
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "testDevicedummy",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "sortType": "AESCENDING"
      }
    ],
      "pageStart": 0,
      "pageFetch": 1,
    "languageCode": "eng",
    "requesttime": "$TIMESTAMP$"
  }'
      output: '{
   "errors": [
    {
      "errorCode": "KER-MSD-358",
      "message": "Sort type AESCENDING is not supported"
    }
  ]
}'
   MasterData_DeviceSearch_Invalid_RequestTime_neg:
      endPoint: /v1/masterdata/devices/search
      uniqueIdentifier: TC_Masterdata_DeviceSearch_08
      description: Search Devices by invalid Request Time
      role: globalAdmin
      templateFields: ["value"]
      restMethod: post
      inputTemplate: masterdata/DeviceSearch/deviceSearch
      outputTemplate: masterdata/error
      input: '{
    "filters": [
      {
        "columnName": "name",
        "type": "equals",
        "value": "testDevicedummy",
        "fromValue": "$REMOVE$",
        "toValue": "$REMOVE$"
      }
    ],
    "sort": [
      {
        "sortField": "name",
        "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