cancel
Showing results for 
Search instead for 
Did you mean: 

Use wtext property as a parameter or variable

SOLVED
trajmo
Occasional Contributor

Use wtext property as a parameter or variable

Hello,

I have a simple question, can i use wText propery as a parameter or variable, in order to use that random value in another test.

Thanks in advance,

1 ACCEPTED SOLUTION

Accepted Solutions
BenoitB
Community Hero

Re: Use wtext property as a parameter or variable

What do you mean "by another test" ?

Var is persistent inside one test script

It can be persistent between several scripots if you put it in a shared unit (//USEUNIT)

Or you can use file to store value for other test..

Un sourire et ça repart

View solution in original post

3 REPLIES 3
Wamboo
Community Hero

Re: Use wtext property as a parameter or variable

Hey, sure you can.

Example:

 

var wTextValue = Aliases.obj.wText;

 

You can do anything you want with this variable.

BenoitB
Community Hero

Re: Use wtext property as a parameter or variable

What do you mean "by another test" ?

Var is persistent inside one test script

It can be persistent between several scripots if you put it in a shared unit (//USEUNIT)

Or you can use file to store value for other test..

Un sourire et ça repart

View solution in original post

sonya_m
Community Manager

Re: Use wtext property as a parameter or variable

Thank you Wamboo, Benoit!

 

Hi @trajmo! Does the advice help?

 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors