I try to add fields to the header: I.haveRequestHeaders({auth: ‘1111111’});
, but the I.haveRequestHeaders method returns an error:
-
FAILURES:
- test something:
I.haveRequestHeaders is not a function
- test something:
I try to add fields to the header: I.haveRequestHeaders({auth: ‘1111111’});
, but the I.haveRequestHeaders method returns an error:
FAILURES:
is it your custom function - I.haveRequestHeaders ?
As per the REST doc, it should be
I.sendGetRequest(‘/api/users.json’,“headers”:{“Accept”:“application/json”});
Understood, but don’t know how to pass an external variable to the executeScript method?