Write test on page response

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Write test on page response

Yurij Shinkarev
Hello all.
I have page, this page return StreamResponse (json). So, I have in code:

StreamResponse onActivate() { .... }

I want write a test for this page.
I can send PUT/GET/POST/DELETE request with different parameters.
Server return me some result.
I want test this results.
How I can did it?