Modifying recordings in a solution

Ask general questions here.
pkoel@americanbus
Posts: 14
Joined: Wed Oct 17, 2018 6:12 pm

Modifying recordings in a solution

Post by pkoel@americanbus » Thu Dec 20, 2018 4:05 pm

Hello All,

I have 75 recordings in my test solution, grouped in different test cases. A change in our company network requires me to increase every 3s delay in all test cases to 8s. Is there a solution-wide find&replace that will help me with this?

Sincerely,

Peter

User avatar
RobinHood42
Posts: 324
Joined: Fri Jan 09, 2015 3:24 pm

Re: Modifying recordings in a solution

Post by RobinHood42 » Fri Dec 21, 2018 9:42 am

Hi,

I would try to use Notepad++ to replace the delay:

Notepad++.png
Cheers,
Robin
You do not have the required permissions to view the files attached to this post.

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

Re: Modifying recordings in a solution

Post by odklizec » Fri Dec 21, 2018 10:17 am

Hi,

In addition to what Robin suggested, and with which I wholeheartedly agree, I would like to add a comment regarding Delays. In my opinion, and from my extensive experience with Ranorex, hardcoded delays should be used only if absolutely necessary. Use WaitFor Exists/NotExists instead! Delays are nowhere as reliable as WaitFor action.

If your still prefer to use delays, you should make the duration value a variable, connected to a Global Parameter, in which you can define a global delay value. Hope this helps?
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