Forum Discussion
- KonstantinosLpsOccasional Contributor
Hi joeri,
there is nothing really compicated with your script at first. I usually set a context property using this
context.setProperty("value","value")
after that you can access this property by using
context.value
Have you tried this approach?
Thank you
-Konstantinos
- nmraoChampion Level 3Hmm.. Little tricky the way you designed the tests.
Test are being called in cyclic fashion and once you call the test case from "handler", it is losing the "context". Here do you need to call them in the same manner?
The thumb rule is that, each and every test case is independent.
May be you need to reconsider the test case design so that they run independently. Or club them in a single testcase otherwise. - HimanshuTayalCommunity Hero
Hi Joeri,
Yes i am agreed with nmrao, the way you have created your framework is quite tricky because when you run in this cyclic way it just losses the Context.
So the main problem which i found is with context.testvar="5" in your handle groovy script.
So reconsider about the design of your framework.
Related Content
- 11 months ago
Recent Discussions
- 2 days ago
- 6 days ago