I'm using library.
the whole project is running fine with library.
I cannot post the whole part of the code for library.
but i'm invesgating...
I've checked your screenshot and have some comments:
- you cannot write a script at one Groovy script test step, and, then, use its methods in another part of the project;
- you said that you use libraries, so that shouldn't be the case, but, inside the method, you use a test step response. To make your test_validate_name method independent, you can pass both values as parameters.
Note that there is the RunTestCase test step. You can write a groovy script in this test case and run it when it's needed with different parameters. Maybe, this will help you.
Thank you everyone for help!
Hi @_ivanovich_ , please share your progress with us. Have you solved the issue?
Perhaps, Nastya's latest comment could help straighten things out a bit?
I think this screenshot makes me clear of your problem....please refer attached dummy project hope it will solve your problem..it explains 2 parts:
1) calling groovy script from same Test case
2) calling groovy script from diffrent Test Suite
@_ivanovich_ have you got any time to check the xml file which i have shared, hope it will resolve your issue, eager to know the result....
no it doesn't resolve the probleme, the context is not the same.
solution is in progress....
Didn't get "context is not the same", can you please breif more.