Forum Discussion
Not sure what your case is and having dependency between the tests.
- teak9 years agoContributor
Hi rao,
thanks for your reply.
I am not using the testCases as such and I am having testCases that rely on other testCases.
I have a suite of cases that run sequentially [some getting clients, tokens, etc to use in other test steps]
I suppose im just using the testCases as containers for test steps.
My case here is I have a request in one testCase that returns an object of items which I want to use to compare to another array in another request later in different testCase.
I would like to avoid having all of the test steps in 1 testCase.
Thanks
- teak9 years agoContributor
does anybody know if this is possible or not?
thanks
- teak9 years agoContributor
Hi,
I have an array [list] in a groovy script [from the response of previous request].
How can I access this array from another testCase in the same testSuite?
as far as I understand context is only available from within the testCase [I can access the array from other testSteps in the same testCase]
Thanks
- nmrao9 years agoChampion Level 3
Is it that both(source and target test steps) are groovy script tests? Otherwise, may be do you want to explain which type of step where you get the object of items and how does it look like? Can you convert it to comma separated string store it as suite level property and read it in the test case where you want to use it and convert it back to object as needed from the string.
- teak9 years agoContributor
Thanks for the response but that is what I said in my original post I could do but thought it a bit messy.
I want to have an array or list passed between test cases.
If it is not possible i will try that.
Thanks again
Related Content
Recent Discussions
- 6 days ago