How to share data / JS runtime between tests?

Get help with testing, discuss unit testing strategies etc.


Post Reply
User avatar
ivanj
Posts: 38
Joined: Wed Apr 15, 2015 11:17 pm

How to share data / JS runtime between tests?

Post by ivanj »

I have first test that creates User_TIMESTAMP.
I want second test to do some stuff with this user and the 3rd test to delete them.
What is good way to pass that user name User_TIMESTAMP between the two tests?

User avatar
nickolay
Core Developer
Core Developer
Posts: 3447
Joined: Mon May 16, 2011 10:48 am

Re: How to share data / JS runtime between tests?

Post by nickolay »

Hi,

Tests should not depend on each other generally (because that will prevent parallel execution). Thus there's no way to pass information from one to another.

You can place these tests in the same file or, perhaps, extend the test class with additional helper methods: https://www.bryntum.com/docs/siesta/#!/ ... test_class
We offer training in both Ext JS and our products, read more here.
Read the API documentation

Post Reply