zerocode
zerocode copied to clipboard
WebHook testing example to HelloWorld repo, also WebSocket
Background
- Recently in twitter a folk from CapGemini is looking for WebHook testing.
- Tweet link: https://twitter.com/iamsoham/status/1090977861404631040
- AT the face of it sounds like set of Http calls
- Investigate if any further complexities involved
- We can simply override the
HttpClient
to deal with WebHooks. Or even without it?
TODO in this ticket-
- Add some HelloWorld examples to showcase the WebHook testing
- Add some WebSocket examples to showcase the WebSocket testing
References-
- The server side push event testing demo could help here if any async calls involved
- @BeTheCodeWithYou can throw some light here or point to the examples as he has achieved this
- Overriding HttpClient exmple can be linked here if that helps e.g. OAuth2 by @santhoshTpixler
Tweet has some details which sounds like achievable straigh away, but provide examples.
@sohamda




Couldn't find anything specific for webhook. Looking into the perspective of the chatbot, it is more like a conversation using HTTP calls. Let's say you ask something to a bot which is an HTTP request and the response would the answer from the bot.
The screenshots also portray the same. Looks like he needs to spend some time in evaluating zerocode to find exactly what he is trying to achieve.
Folks, if any of you are doing WebHooks
testing using Zerocode, would you mind putting an example JSON here?
:::Note::: You can replace your business data-text with some interesting text like Pizza delivery
And, please provide a multi-step example so that it might help Mr Soham to visualize the scenarios.