Forum Discussion
SmartBear_Suppo
Alumni
17 years agoHello,
Sure, that will work for you. But, I think it better to use test case property or even project property to store and retrieve file path.
That way you can access it outside test case.
Also, you could use property expansion..
Does it help,
robert
Sure, that will work for you. But, I think it better to use test case property or even project property to store and retrieve file path.
That way you can access it outside test case.
context.testCase.properties["fileName"].value = fileName // set a value for testCase property fileName
// in different test step
def fileName = context.testCase.properties["fileName"].value // get it
Also, you could use property expansion..
Does it help,
robert