cancel
Showing results for 
Search instead for 
Did you mean: 

Use wtext property as a parameter or variable

SOLVED
Highlighted
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
Highlighted
Community Leader

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
Highlighted
Community Leader

Hey, sure you can.

Example:

 

var wTextValue = Aliases.obj.wText;

 

You can do anything you want with this variable.

Highlighted
Community Leader

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

Highlighted
Community Manager

Thank you Wamboo, Benoit!

 

Hi @trajmo! Does the advice help?

 


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors