Reputation: 81
I'm facing a problem with Fitnesse.
I have the following testcase with these steps.
I have another testcase that should use that return value.
Can I set a global variable that I can use in my whole testsuite? (Btw the return value is variable)
Thanks in advance.
Upvotes: 0
Views: 621
Reputation: 3272
It sounds like a bit design-smell to pass data between tests. But maybe there is a good reason for doing so in your situation. If it is done in a SuiteSetUp or SetUp it might more expected.
You can store the property in a Slim Symbol and read that property in the other test. Or, least preferred approach, you can create your own static variable in a fixture and pass data using that.
Upvotes: 0