Testing web applications and web-sites with RoutineBot

As long as RoutineBot is interface testing software, which use image patters for testing purposes it is easy to use for testing of online applications and web-sites.

Actually, for RoutineBot it doesn’t matter what to test — Windows application or web-based application or something else. RoutineBot does exactly as user does, e.g. search for some image pattern on the screen, then click on it or move mouse to it or select some option in the menu.

Here are some typical steps that should be included into web application testing script:

  1. Wait until the web-page will be fully loaded in your browser
  2. Do some action. For instance, click some button or on some link or select category from drop-list.
  3. Check results against expected results.

How to do this with RoutineBot?

To wait until page is loaded use the following code:

repeat

res:=MouseFocuse(‘tag-in-browser.bmp’,10000);

until res=1;

where tag-in-browser should be an image pattern for loaded tag in the browser.

How to check what results are there?

res1:=MouseFocuse(‘error-message1.bmp’,10000);

res2:=MouseFocuse(‘error-message2.bmp’,10000);

res3:=MouseFocuse(‘ok-message.bmp’,10000);

if res1 = 1 then res_msg:=’Failed: error message1′;

if res2 = 1 then res_msg:=’Failed: error message2′;

if res3 = 1 then res_msg:=’Passed’;

WriteText(‘C:\tmp\res.txt’, res_msg,1); //this command will append res_msg to the output file

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.

Email: