DeLoooping
DeLoooping

Reputation: 211

Server/client test isolation and initialization in TestCafe

So I'm currently developing a client/server application in Typescript/NodeJS and I want to add end-to-end testing. However, the documentation of TestCafe (and other e2e frameworks btw.) leave me clueless on what I want to achieve.

What I want to do is some sort of isolation of client/server setups for different tests. I imagine something like this:

As far as I understand the documentation, any examples assume the same server environment for all tests. Is anything like the above possible with TestCafe (without implementing too much of this functionality by myself)? Are there other frameworks that are better suited for this kind of tests?

Thanks for your help

Upvotes: 0

Views: 155

Answers (1)

Alex Kamaev
Alex Kamaev

Reputation: 6318

TestCafe does not support the capability to set up your server environment, so this should be implemented by a developer. As for Client isolation, TestCafe runs every test in isolated mode. This means that each test run does not depend on the previous test run. In addition, TestCafe runs every single test with clear cookies/storages.

Upvotes: 1

Related Questions