Is there any way I can use the context variable set in test suite at the test case.
How about this?
Hi @sumeet0420 ,
In your TestSuite you can assign value to context variable by below:
And in your TestCase, you can use the value by below:
When you run the test suite, the contents of the TestSuiteRunContext is put into each TestCaseRunContext (both classes are essentially just LinkedHashMaps).
So it should work as Rao described, but ONLY when the test suite is actually being run. When you run individual test cases or steps, the values won't be passed in (even if you have previously run the test suite or test suite set up script previously). See attached.
For a solution that lets you run single test cases and steps manually, you could use Properties on the test suite instead, as these are more permanent. The downside is that Properties can only be strings.