Ask a Question

How to save script routine result in variable?

sshah1
Contributor

How to save script routine result in variable?

Hi,

I have keyword test (KWT) which has some variables. I call a script routine (from KWT) which generates string from variables.

I need to use generated string as filename in KWT. 

I have two questions:

How can I get string value from the script routine?

Script routine is not able to retrieve two variables from KWT for which I have used set variable value.

 

Thanks,

Samixa

 

 

2 REPLIES 2
Marsha_R
Champion Level 2

If you want to share variables between keyword tests and/or scripts, then you need to use a Project variable rather than a local variable.  

 

https://support.smartbear.com/viewarticle/72293/

Thanks for reply. I used "return variable" from my routine. It worked.

cancel
Showing results for 
Search instead for 
Did you mean: