Test automation

iTestBot – new idea in test automation

itestbot-interface-smallIdea is not new at all but cute implementations must pay our attention. iTestBot made by AKS-Labs is one of these solutions that I’m looking for. Click “Play” at the end of the day and read tests report next morning ! without mass number of test scenarios, performed by several testers who base on “click and forgot” methodology, possible ?

To realize that, perfect idea we must have some tools:

  • to manage test cases / scripts
  • executor of the scripts
  • some mechanism to gain reports and provide summary

iTestBot is responsible for execution, it is a robot which takes a role of fulltime employee. On the market we have several test robots, ex. AutoIt as an open and free solution. However majority of them uses system native application access methods ex. through Windows API.
These ways of action executing have at least three major drawbacks:

  • we do not have the one test robot for all our product portfolio;
  • sometimes native methods are’t perfect and simply does not workinig – ex. some components, sometimes changes ID
  • we cannot test design quality ex. company logo always should apear in some place in all Internet browsers;

iTestBot is based on image recognition, so we can create screenshot of application, slice some area ex. button, then robot can focus and click it.  Possible – let’s check it below.

Microsoft Windows Application – Wordpad
[cc lang=”pascal”]
Execute(‘C:\Program Files\Windows NT\Accessories\wordpad.exe’);
// wait for some picture – caption of wordpad
MouseFocuse(‘wordpad_window.bmp’,10000);
// focus text area
MouseFocuse(‘textarea.bmp’,10000);
// click on the are so we can enter text
MouseClick;
// send some keys
EnterKeys(‘This is a test automation…’);
// try to close application with Alt+F4
EnterKeys(‘%{F4}’);
// wait 0,5 second
Wait(500);
// msgbox “save before exit”, we don’t want to save, click n
EnterKeys(‘n’);
[/cc]

wordpad_window.bmp

textarea.bmp

Download project itestbot_app.zip

HTML Web page – Google Advanced Search Form
[cc lang=”pascal”]
Execute(‘C:\Program Files\Mozilla Firefox\firefox.exe’);
MouseFocuse(‘firefox.bmp’,10000);
MouseFocuse(‘adress_area.bmp’,10000);
EnterKeys(‘http://www.google.pl/advanced_search?hl=en’);
EnterKeys(‘{ENTER}’);
// focus on exact phrase search field
MouseFocuse(‘exact_word.bmp’,10000);
MouseClick;
EnterKeys(‘software quality’);
EnterKeys(‘{ENTER}’);
// check if good seach phrase was sent to google
result:=MouseFocuse(‘results.bmp’,10000);
// if no – show the message box
if result=0 then MsgBox(‘Error in search form’);
// close firefox
EnterKeys(‘%{F4}’);
[/cc]

firefox.bmp

firefox.bmp

adress_area

adress_area.bmp

exact_word

exact_word.bmp

results

results.bmp


Adobe Flex Application – Guitar Scale App

[cc lang=”pascal”]
Execute(‘C:\Program Files\Mozilla Firefox\firefox.exe’);
MouseFocuse(‘firefox.bmp’,10000);
MouseFocuse(‘adress_area.bmp’,10000);
EnterKeys(‘http://www.rozengain.com/guitar-scales/’);
EnterKeys(‘{ENTER}’);
MouseFocuse(‘title.bmp’,10000);
// focus on root note combobox
MouseFocuse(‘root_combo.bmp’,10000);
// pull down the combo
MouseClick;
// focus on D note
MouseFocuse(‘d_note.bmp’,10000);
MouseClick;
// check guitar neck for right notes
MouseFocuse(‘d_scale.bmp’,10000);
EnterKeys(‘%{F4}’);
[/cc]

title

title.bmp

root_combo

root_combo.bmp

d_note

d_note.bmp

d_scale

d_scale.bmp

Download project itestbot_flex.zip

Additional – Go to URL funtion

[cc lang=”pascal”]
function gotourl(url: string): integer;
begin
Execute(‘C:\Program Files\Mozilla Firefox\firefox.exe’);
MouseFocuse(‘firefox.bmp’,10000);
MouseFocuse(‘adress_area.bmp’,10000);
EnterKeys(url);
EnterKeys(‘{ENTER}’);
end;
[/cc]

Conclusions
iTestBot and the script language is a fine way to write and execute test automation. In minutes we can change our manual test scripts in full test automated environment.
Program saves projects in zip file, so we have the one archive for screens and scripts and we can access it without running iTestBot – great.

For sure look at iTestBot documentation at http://itestbot.com/

[digg=http://digg.com/software/iTestBot_new_idea_in_test_automation]

Discussion

4 comments for “iTestBot – new idea in test automation”

  1. […] problem of a robot that performs a test for the man appears to be something simple: iTestBot , AutoIT and many others. Each of these applications will be able to log the duration of the […]

    Posted by Desktop Applications Performacne Testing Automatization | Test And Try | April 1, 2009, 8:06 pm
  2. […] was reviewed and recommended by […]

    Posted by | iTestBot - GUI Test Automation Robot | April 4, 2009, 10:30 am
  3. […] was reviewed and recommended by […]

    Posted by RoutineBot reviwed by TestAndTry.com | RoutineBot - GUI Test Automation Robot | June 13, 2009, 10:27 pm
  4. […] when I wrote about a tool that in a different way comes to gui test automation. In article titled “iTestBot – new idea in test automation” I was wondering the solution based on the images / screenshots. It is very simple and very […]

    Posted by RoutineBot – Test Automation Tool Review – Technology does not matter? | Test And Try | January 4, 2010, 2:24 pm

Post a comment