Hi,
Is it possible to verify, if AtributeEqual value , like 'User with login 'Name' already exist', where 'Name' is user variable $UsVar value? I tried to use Validate action with Match Value like (User with login $UsVar already exist) but it has not worked.
A Match Value cell (in Ranorex Studio) can contain only constant or only variable, isn't it? Is it possible to concatenate them?
Using variable in Match Value cell.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Using variable in Match Value cell.
Hi,
For your concern "AttributeContains" or "AttributeRegEx" would be more suitable.
Kind Regards,
Larissa
Ranorex Support Team
Yes, this is true. A combination would not make sense here.A Match Value cell (in Ranorex Studio) can contain only constant or only variable, isn't it?
When you write some code to your UserCode, you can of course concatenate strings.Is it possible to concatenate them?
For your concern "AttributeContains" or "AttributeRegEx" would be more suitable.
Kind Regards,
Larissa
Ranorex Support Team
Re: Using variable in Match Value cell.
Thanks. I used this solution, but wanted to know whether there is an easier waySupport Team wrote:Hi,
When you write some code to your UserCode, you can of course concatenate strings.

- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Using variable in Match Value cell.
Hi,
It depends what you want to validate?
If you just want to know if a "UserName" already exists, the easiest way is validation with "AttributeContains" and match value $UsVar.
Regards,
Larissa
Ranorex Support Team
It depends what you want to validate?
If you just want to know if a "UserName" already exists, the easiest way is validation with "AttributeContains" and match value $UsVar.
Regards,
Larissa
Ranorex Support Team
Re: Using variable in Match Value cell.
Hi
actually I want to validate full text of error message, not only "$UsVar".
actually I want to validate full text of error message, not only "$UsVar".