2020-01-24 13:45:15.957 [WARN ] [.core.internal.folder.FolderObserver] - Error while opening file during update: C:\openHAB\conf\rules\testcase.rules
2020-01-24 13:45:16.342 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'testcase.rules'
2020-01-24 13:45:16.342 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'testcase.rules' is either empty or cannot be parsed correctly!
2020-01-24 13:45:17.584 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'testcase.rules' has errors, therefore ignoring it: [1,6]: no viable alternative at input 'â'
It means it doesn’t like the content of your rules file.
Given the funny character, you probably need to look into the character encoding your editor uses when it saves a file.
rule “testcase”
when
Item test received update ON
then
var url = "http://172.21.10.182/devices/1010013"
var contenttype = "application/json"
var PUTrequest = '{"name": "GOTO_POS_CMD", "value": 20}'
var output = sendHttpPutRequest(url, contenttype, PUTrequest)
end