Running scripts with RESTful APIs
|
04-07-2015, 10:07 PM
Post: #3
|
|||
|
|||
RE: Running scripts with RESTful APIs
(04-07-2015 01:00 AM)pmeenan Wrote: The API has a "script" parameter (should be documented on the REST API docs page). If you are using HTTP GETs to talk to the API make sure to urlencode the script first. Thanks Patrick for the quick reply. I tried running the test using Get as well as post. Here are some of issues I faced. Using Get I get a HTTP Status 200 back on the API response. With the <jsonUrl>**</jsonUrl> returned I can see the test is executing. But finally the test fails. here is one the result. http://www.webpagetest.org/result/150407_WM_M1X/ Using Post I am always getting the following error. The script has the navigate command and tab delimited. I am using the same script i use in the script tab in the home page. I am using application/x-www-form-urlencoded for post. Seems I am missing something here. <statusCode>400</statusCode> <statusText> Invalid Script (make sure there is at least one navigate command and that the commands are tab-delimited). Please contact us if you need help with your test script. </statusText> |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Running scripts with RESTful APIs - ha_webdev - 04-06-2015, 11:52 PM
RE: Running scripts with RESTful APIs - pmeenan - 04-07-2015, 01:00 AM
RE: Running scripts with RESTful APIs - ha_webdev - 04-07-2015 10:07 PM
RE: Running scripts with RESTful APIs - pmeenan - 04-07-2015, 10:30 PM
RE: Running scripts with RESTful APIs - playtech_wpt - 05-24-2017, 02:04 AM
RE: Running scripts with RESTful APIs - pmeenan - 05-26-2017, 01:54 AM
|
User(s) browsing this thread: 1 Guest(s)