Using action Set Value, how do I set a value of two combined variables?
Something like this:
Setting a value of two combined variables
-
- Posts: 9
- Joined: Wed Nov 08, 2017 10:59 pm
Setting a value of two combined variables
You do not have the required permissions to view the files attached to this post.
Mariya Syera
Office Ally, Inc
Office Ally, Inc
Re: Setting a value of two combined variables
Hi,
I’m afraid, that’s currently not possible with SetValue action. You will have to convert the SetValue action into user code and then merge both variables in code.
I’m afraid, that’s currently not possible with SetValue action. You will have to convert the SetValue action into user code and then merge both variables in code.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Setting a value of two combined variables
Not having a built-in feature to concatenate variables is annoying.
On the other hand, creating a custom code is a "one-liner" like this:
On the other hand, creating a custom code is a "one-liner" like this:
Code: Select all
[UserCodeMethod]
public static string concat3strings(string s1, string s2, string s3)
{
return s1 + s2 + s3;
}
- Official docs at: https://support.ranorex.com/help/latest ... nd-methods