How to edit ini file

Best practices, code snippets for common functionality, examples, and guidelines.
micheleaz
Posts: 2
Joined: Thu Jul 20, 2017 6:02 pm

How to edit ini file

Post by micheleaz » Mon Sep 25, 2017 10:57 pm

Hi all:
Quick question. I need to edit an ini file before a test run after the install of our application to point to a testing database. What is the best way to do that?
Thanks!

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

Re: How to edit ini file

Post by odklizec » Tue Sep 26, 2017 7:25 am

Hi,

I believe the only way to edit ini files in Ranorex is via custom code. Check for example this post with some ini-editing suggestions:
https://stackoverflow.com/a/217910
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