prem
1
Hi Friends,
I am getting the below error message is displaying when i execute the API testing. Need help on this.
API URL :
I.sendDeleteRequest('https://api.trello.com/1/boards/?name=codeceptjssss&key=4bb074f497d713ed5919599cc7247c06&token=72a28bc701ef2c3b8a353fff47253e1bd9a2f19f5f317e744f7ba0e5229181a2 ');
Error message : I.sendDeleteRequest is not a function
ufko
2
Hi, could you share your config please?
prem
3
Hi Ufko,
this is i give in the config file for Rest.
Config File :
REST: {
endpoint: ‘https://api.trello.com’,
},
prem
5
No… It;s not under helpers…
Config file :
exports.config = {
tests: ‘./*_test.js’,
output: ‘./output’,
helpers: {
WebDriver: {
url: ‘https://trello.com/’,
browser: ‘chrome’
}
},
REST: {
endpoint: ‘ttps://api.trello.com’,
},
paulb
6
@prem you need to move REST
inside the helpers property .
@paulb bingo! Many people put the helpers, plugins in wrong place
@prem you don’t need WebDriver
helper if you just play around with REST
paulb
9
@peterngtr then we should improve docs, the actual example does not show the context https://codecept.io/helpers/REST#example
prem
11
thnx paulb… for providing the information… Now it’s working…
prem
12
thnx peterngtr… for providing the information…