Hi Guys ,
I want to create tests for different languages so I am using 2 ways to do it
1. I have edited the RxPath in a way that it uses unique identifiers which don't change if the
Language/OS changes, which are language independent.
2. For some HTML/UI elements we can can not add unique identifiers so I have added variables for them
For instance: instead of /button[@text='&Close'] i have used /button[@text='$close'].
Problem is here:
I want to use Resource file (.resx) to put localized string and fill variables ( $close) with Resource file string.
Please give me a way to assign Resource file data into variable.
i.e $close = GeneralResource.CloseString
Here I don't want to use variables with Excel sheet.
Regards,
Manish
How to bind resource file and variables
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: How to bind resource file and variables
Hello,
Unfortunately, we don't provide a way to use a resource file (.resx) as a data source using our data connector.
Would it be an option for you to use a .csv file to store your values?
You could write a custom XML Parser to get values from your resource file and store them into your variables.
Regards,
Markus (T)
Unfortunately, we don't provide a way to use a resource file (.resx) as a data source using our data connector.
Would it be an option for you to use a .csv file to store your values?
You could write a custom XML Parser to get values from your resource file and store them into your variables.
Regards,
Markus (T)