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!
Access Data In a CSV Connector
Re: Access Data In a CSV Connector
Hi,
Of course, this is possible. All you have to do is to create DOM repo element, with xpath like this...
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 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
-
- Posts: 18
- Joined: Mon Sep 30, 2013 5:01 pm
Re: Access Data In a CSV Connector
Thank you!
I believe that is just what I am looking for. I was trying to make it way more complicated.
I believe that is just what I am looking for. I was trying to make it way more complicated.