Data Source usage in test suite

Ask general questions here.
ajoshi4
Posts: 1
Joined: Tue Jan 15, 2019 10:29 am

Data Source usage in test suite

Post by ajoshi4 » Mon Sep 28, 2020 2:39 pm

I divide my functionality in three .CS files. I have data connector for each of them. Now for one test case i have to use first row of each data source(for each .CS) in first iteration. For second run, second row of each data source. Is it possible to do that? If yes, how to achieve it?

I created a test suite and added three test cases under the same. But it takes either ALL or some rage for each connector but execution in loop is not possible.

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

Re: Data Source usage in test suite

Post by odklizec » Tue Sep 29, 2020 7:13 am

Hi,

Could you please post a screenshot of your test suite and all three data files (or files mimicking the real data files)? In my opinion, you will have to use multiple smart folders to achieve what you want?
Basically, you will have yo use structure like this:

Code: Select all

[TestSuite]
|_TC1
    |_SF1 - data connector 1 with range limited to 1st row
    |   |_file1.cs
    |   |_file2.cs
    |   |_file3.cs
    |_SF2 - data connector 2 with range limited to 1st row
    |   |_file1.cs
    |   |_file2.cs
    |   |_file3.cs
    |_SF3 - data connector 3 with range limited to 1st row
    |   |_file1.cs
    |   |_file2.cs
    |   |_file3.cs
    |_SF4 - data connector 1 with range limited to 2nd row
    |   |_file1.cs
    |   |_file2.cs
    |   |_file3.cs
    |_SF5 - data connector 2 with range limited to 2nd row
    |   |_file1.cs
    |   |_file2.cs
    |   |_file3.cs
    |_SF6 - data connector 3 with range limited to 2nd row
    |   |_file1.cs
    |   |_file2.cs
    |   |_file3.cs
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