Repeating a recording

Best practices, code snippets for common functionality, examples, and guidelines.
HansSchl
Posts: 63
Joined: Wed Sep 19, 2018 10:05 am

Repeating a recording

Post by HansSchl » Thu Oct 15, 2020 9:04 am

Hi,
the subject of this thread may be a bit misleading, but I cannot think of a better one... This is what I want to do:

I created a recording which writes a name/value pair into a configuration file. Name and value come from variables.
My test case requires to write a number of name/value pairs into the configuration during the SETUP phase. I want to read these pairs from a data source, in order to make the test more flexible.

Note that this is not about executing the test one time for each line of the data source. Only one recording of the SETUP must be repeated. Is that possible?

Ranorex version: 9.3.1

Thank you
Hans

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

Re: Repeating a recording

Post by odklizec » Thu Oct 15, 2020 9:23 am

Hi,

There is definitely no way to repeat just one file from SETUP section. If I understand you right, there are multiple lines in data connector, which you want to read and use in given recording, but only in this particular recording? In this case, you need to create a smartfolder, containing just this one recording. And of course, the data connector must be connected to the smartfolder. But I'm afraid, that's not possible inside Setup/Teardown section.
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

HansSchl
Posts: 63
Joined: Wed Sep 19, 2018 10:05 am

Re: Repeating a recording

Post by HansSchl » Thu Oct 15, 2020 3:46 pm

Ok, thank you. I guess I'll create a user action that directly reads directly from a text or csv file...