IncludeIniFile function in RoutineBot


IncludeIniFile( FileName:String )



Full path to file with params

Return value

If file exists function return 1, otherwise function return 0.


With function IncludeIniFile you can read some parameters from file. Parameters must be represent in format <key>=<value>. E.g. after including file, with content
s=some text

you become in scrtipt 2 variables : a:integer with value 2 and s:string with value ‘some text’.


For these example you must create text file with content
s=Hello world!

(or download it from here)
and save it as ‘c:\sometext.txt’.

MSGBox('i = ' + ToString(i));
MSGBox('s = ' + s);

Download example IncludeIniFile.

Posted in Articles
Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *


Example: GUI test with RoutineBot

RoutineBot is testing GUI, trying to enter various values into the text fields and processing warning messages that tested program shows.

Gui Test Automation

GUI Testing TipsCheck out our GUI Test Automation tips.
Test Automation Step-by-Step
Learn more than 99% users know about test automation! Subscribe to maillist now! Learn how to create scripts that will do routine job for you.