Access Data In a CSV Connector

Class library usage, coding and language questions.
jmckinstry
Posts: 14
Joined: Mon Sep 30, 2013 5:01 pm

Access Data In a CSV Connector

Post by jmckinstry » Thu Aug 13, 2020 3:03 pm

I have a data based test case that opens a URL and performs some basic clicks and validations. The issue is that I need for the URL to be different each iteration based on a value in the data connector. My data connector is a .csv file that is setup like this:

varSpecificClient, varDOB, varZip
abc,07/07/1990,30607
def,06/14/1970,30680
ghi,01/01/1990,30247

The URL is: http://www.dummysite.com?client=xxx

For each iteration, I need to replace the xxx with the varSpecificClient so the URL would be:
http://www.dummysite.com?client=abc
http://www.dummysite.com?client=def
http://www.dummysite.com?client=ghi

Is this possible? I have searched around, but have not been able to find a solution. Any help would be greatly appreciated.

Thanks!

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6180
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Access Data In a CSV Connector

Post by odklizec » Thu Aug 13, 2020 9:22 pm

Hi,

Of course, this is possible. All you have to do is to create DOM repo element, with xpath like this...
Where varSpecificClient is a repo variable, which must be connected to data connector (varSpecificClient column). Hope this helps?
Last edited by odklizec on Thu Aug 13, 2020 9:38 pm, edited 1 time in total.
Pavel Kudrys
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

jmckinstry
Posts: 14
Joined: Mon Sep 30, 2013 5:01 pm

Re: Access Data In a CSV Connector

Post by jmckinstry » Thu Aug 13, 2020 9:30 pm

Thank you!

I believe that is just what I am looking for. I was trying to make it way more complicated.