Unit restriction in RoutineBot 2.0

As RoutineBot uses FastScript as script engine, there are 2 restrictions:

1.  If you use units in you project, you must use quoted names in uses-decalartion.

E.g.  in PascalScript these syntax is invalid:

uses unit1;

instead use syntax

uses 'unit1';
2. Unit structure must be same as default script. E.g. in pure Pascal structure of unit is
Unit unitname;
interface
function, procedures,constant and other declarations
implementation
realization of function and procedures declared in interface section
end.

In PascalScript you must use these syntax for units
function unitfunction1 : integer;
begin
realization of unitfunction1
end;
function unitfunction2 : string;
begin
realization of unitfunction2
end;
procedure unitprocedure3;
begin
realization of unitprocedure3
end;
begin

initialization io unit
end.


Here you can download example unit.

Posted in Articles

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.

Email: