How to send variable from one module to another

Best practices, code snippets for common functionality, examples, and guidelines.
GranPapi
Posts: 5
Joined: Mon Jul 25, 2016 6:33 pm

How to send variable from one module to another

Post by GranPapi » Mon Aug 15, 2016 2:55 pm

Hey guys, I need a little bit of your knowledge :P

I'm working on a module that obtains the InnertText of a table row and stores it in a variable, and then I'd like to send that variable to another module, so it can use it to search for a file (already have the searching file module created), how can I do this?

Thanks in advance :)

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: How to send variable from one module to another

Post by krstcs » Mon Aug 15, 2016 4:58 pm

Use a test case or global parameter. There is documentation on it in the user guide, which I would recommend reading fully as it contains information and examples on using Ranorex, including parameters and module variables.

http://www.ranorex.com/support/user-guide-20.html
Shortcuts usually aren't...

GranPapi
Posts: 5
Joined: Mon Jul 25, 2016 6:33 pm

Re: How to send variable from one module to another

Post by GranPapi » Mon Aug 15, 2016 10:40 pm

krstcs wrote:Use a test case or global parameter. There is documentation on it in the user guide, which I would recommend reading fully as it contains information and examples on using Ranorex, including parameters and module variables.

http://www.ranorex.com/support/user-guide-20.html
Thanks for your reply, krstcs! I'm trying in creating a module with the "Get Value" action, but I don't understand quite a bit how this action works, do you know where can I find information regarding this action?

Thanks in advance :)