Location as a variable in data-driven testing

Ranorex Spy, Recorder, and Studio.
sjberkeley
Posts: 4
Joined: Fri Mar 21, 2014 7:05 pm

Location as a variable in data-driven testing

Post by sjberkeley » Fri Nov 21, 2014 6:54 pm

Hi - I'm trying to set click locations to be variables in recorded tests, and then drive them from a .csv data connector. I can't seem to get Ranorex to pick up the values from the .csv file. The attachment shows a simple example with three variables (in green). My .csv file is as follows:

FileMenu,ThermalAnalysis,CloseXT
30;15,250;15,1890;15

Regardless of what I set these values to, the replay still reverts to the originals (defaults). When I remove the .csv file, the test complains, so I know it's reading it. I've used variables successfully elsewhere (for other input fields). Is there something I'm missing ?

I also tried transposing the rows and columns in the .csv file.

Thanks, Steve.
Attachments
Capture.PNG
Capture.PNG (37.63 KiB) Viewed 781 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Location as a variable in data-driven testing

Post by Support Team » Mon Nov 24, 2014 4:32 pm

Hi Stephen,

Please ensure that the entered data have the correct format in your CSV-file.

For example:

Code: Select all

Header1;Header2;Header3;Header4
"1;1";"2;2";"3;3";"4;4"
"11;11";"22;22";"33;33";"44;44"
Regards,
Markus (S)
.
Image

sjberkeley
Posts: 4
Joined: Fri Mar 21, 2014 7:05 pm

Re: Location as a variable in data-driven testing

Post by sjberkeley » Thu Nov 27, 2014 11:06 am

Hi Markus,

I fixed the format, it still didn't work but then I found that the problem was that I was running just a single recording, not the whole test case ... there is another thread that mentions this, with the title "Binding module Variables to Global Parameters Issue".