Page 1 of 1

How to share data / JS runtime between tests?

Posted: Thu Aug 23, 2018 3:53 am
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?

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

Posted: Thu Aug 23, 2018 11:24 am
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