I use LightStreamer (it is a software to send broadcast messages from server to subscribed javascript-clients) to get events to update complicated data view on webpage. There are a lot of different events, with different datasets attached. And it is quite hard to test this system because I need to do much work to cause event generation.
I want to test webpage separately from back-end, so I want to create 'LightStreamer mock' that will send to client predefined events.
What is the best and simplest way to do it?
Pavel - your LightStreamer
should have some Interface - that is the way you can mock it.
If it is the case - there is an interface - you can use some of mocking frameworks to make it easier for you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.