Is there any way I can use the context variable set in test suite at the test case.
How about this?
You can simply use
If you want an example, here you go:
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:
Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓
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.