UPDATE: My engineer says the request body is not sent to the server
I'm working on a script.
Portion of the script:
Code to disable account is working fine.
Code: Select all
Let>nextLine=%CRLF%
Let>caHeader=
Let>responseFile=C:\XAMS\RESPONSE.txt
ConCat>caHeader,Content-Type: application/json; charset=utf-8
ConCat>caHeader,nextLine
ConCat>caHeader,Accept: application/json; charset=utf-8
//===smoke-ABCX_05-DISABLE-ACCOUNT=========================
WriteLn>responseFile,nWLNRes,//===smoke-ABCX_05-DISABLE-ACCOUNT=========================
Let>HTTP_CUSTOM_HEADERS=%caHeader%
ReadFile>C:\XAMS\smoke-ABCX_05-DISABLE-ACCOUNT.txt,json_data
WriteLn>responseFile,nWLNRes,HTTP_CUSTOM_HEADERS
WriteLn>responseFile,nWLNRes,json_data
HTTPRequest>https://abcx2001.test.abcx.net:9022/Users/v1/accounts/suspended,,POST,json_data,HTMLResponse,,,,
WriteLn>responseFile,nWLNRes,HTMLResponse
wait>5
Ask>Continue?,strResponse
No error on server end.
Code: Select all
Let>nextLine=%CRLF%
Let>caHeader=
Let>responseFile=C:\XAMS\RESPONSE.txt
ConCat>caHeader,Content-Type: application/json; charset=utf-8
ConCat>caHeader,nextLine
ConCat>caHeader,Accept: application/json; charset=utf-8
//===smoke-DMGX_06-RESTORE-ACCOUNT=========================
WriteLn>responseFile,nWLNRes,//===smoke-DMGX_06-RESTORE-ACCOUNT=========================
Let>HTTP_CUSTOM_HEADERS=%caHeader%
ReadFile>C:\XAMS\smoke-DMGX_06-RESTORE-ACCOUNT.txt,json_data
WriteLn>responseFile,nWLNRes,HTTP_CUSTOM_HEADERS
WriteLn>responseFile,nWLNRes,json_data
HTTPRequest>https://abcx2001.test.abcx.net:9022/Users/v1/accounts/V123GI,,DELETE,,HTMLResponse,,,,
WriteLn>responseFile,nWLNRes,HTMLResponse
wait>5
Ask>Continue?,strResponse
So far POST, PUT and GET are all ok.
Thanks for any help provided.