How to set up webservice when running behat

How to set up webservice when running behat

av tam nguyen -
Antall svar: 1
I  need to test a feature of my module using web service (called from core/ajax). It's always failed but I dont know why until I go to behat test site and check something.

I checked the service installation by enter behattestsite.local/admin/settings.php?section=externalservices. And it proves that service has not installed yet.


So

1. how can I add my service to the list? 

2. Beside, is there a way to enable web service configuration quickly involve 

  - enable webservice

  - enable rest protocol

instead promiscuous test cases


Please,

Tam Nguyen

Gjennomsnittlig vurdering: -
Som svar til tam nguyen

Re: How to set up webservice when running behat

av tam nguyen -

Yeah I found the reason !

Once adding a web service to plugin, we must increase the version of plugin. So the service will be added to the external service list.