Auto It Demo

Views:
 
     
 

Presentation Description

this is demo presentation for auto it non gui testing

Comments

Presentation Transcript

Slide 1: 

11/10/2009 Auto IT Demo Presentation for Non GUI Automation Testing with Auto IT Sreelesh Kunnath

Index : 

11/10/2009 Index What is Auto IT? What is Non GUI automation testing. Auto IT script editor. GUI Concepts and Auto It Window Info Tool. Compiling Auto IT script. Auto IT GUI On Event mode

Slide 3: 

11/10/2009 Auto IT is a basic scripting language which is easy to learn but does require a little bit of coding knowledge. Auto It is a freeware Windows automation language. It can be used to script most simple Windows-based tasks. Auto It script extension should be au3 extension .Compile auto It Script, Edit Script and Run Script. Auto It is a simple tool that can simulate key presses, mouse movements and window commands (maximize, minimize, wait for, etc.) in order to automate any windows based task. What is Auto IT?

Slide 4: 

11/10/2009 Auto It is non GUI automation testing tool, Auto It script identify object in the application without object repository so it is called non GUI automation testing. Auto It only works with standard Microsoft controls. Auto It Used to automate many simple or complex windows tasks like executing programs, sending keystrokes and mouse clicks, text clipboard functions, registry functions and more with out GUI repository What is Non GUI automation testing.

Slide 5: 

11/10/2009 The Auto IT Script Editor is a handy tool for creating Auto IT scripts. The Editor opens in 3 panes along with the normal Windows Menu Bar and a toolbar at the top. The top left pane contains the script actions that can be used in Auto IT. The script itself opens in the right pane. The lower left pane contains 2 tabs. The Routines tab contains all of the sub-routines defined in the script. The variables tab contains all of the pre-defined variables that can be used in Auto IT. Example: Run("notepad.exe")WinWaitActive("Untitled - Notepad")Send("This is some text.")WinClose("Untitled - Notepad")WinWaitActive("Notepad", "Do you want to save")Send("!n") Auto IT script editor

Slide 6: 

11/10/2009 A GUI consists of one or more windows and each window contains one or more controls. GUIs are "event driven" which means you react to events - like a button that is clicked. You spend most of your time idling and waiting for an event to happen - this is a little different to a normal script where you are in control of what happens and when! Think of it as waiting by the door for the postman – You sit there until a letter pops through the postbox and then you look at the letters and decide what to do with them - this is exactly how GUIs work - you wait for the postman to come to you. GUI Concepts and Auto It Window Info Tool.

Slide 7: 

11/10/2009 GUI Concepts and Auto It Window Info Tool. Information that can be obtained includes Window titles :Text on the window (visible and hidden)Window size and positionContents of the status barPosition of the mouse pointer Color of the pixels underneath the mouse pointerDetails of the Control underneath the mouse pointer AU3Info allows you to get information from a specified window that can be used to effectively automate it.  :

Slide 8: 

11/10/2009 Compiling Auto IT script. Au3 script and compile it into a standalone executable; this executable can be used without the need for Auto It to be installed and without the need to have AutoIt3.exe on the machine.  In addition, the compiled script is compressed and encrypted and there is the option to bind additional files (also compressed/encrypted) to the exe using the FileInstall function.  Also, any #include files will also be compiled into the script so they are not required at run-time.

Slide 9: 

11/10/2009 Auto IT GUI On Event mode In the On Event mode instead of constantly polling the GUI to find out if anything has happened you make the GUI temporarily pause your script and call a pre-defined function to handle the event. For example, if the user clicks Button1 the GUI pauses your main script and calls a previously defined user function that deals with Button1. When the function call is completed the main script is resumed. This mode is similar to the Visual Basic forms method. In the On Event mode your GUI will generate the following "events": Control Event System Event

Slide 10: 

11/10/2009 Thank you .