Lets Auto It

6,676 views

Published on

A Free Test Automation Platform
Presented at the SIGIST Event
Tel-Aviv, Feb 2, 2009
By Meir Bar-Tal

Published in: Technology
1 Comment
4 Likes
Statistics
Notes
  • Thanks for your interest.
    Here's how (from AutoIt's Help)

    WinSetState ( 'title', 'text', flag )

    Parameters
    title The title of the window to show. See Title special definition.
    text The text of the window to show.
    flag The 'show' flag of the executed program:
    @SW_HIDE = Hide window
    @SW_SHOW = Shows a previously hidden window
    @SW_MINIMIZE = Minimize window
    @SW_MAXIMIZE = Maximize window
    @SW_RESTORE = Undoes a window minimization or maximization
    @SW_DISABLE = Disables the window
    @SW_ENABLE = Enables the window

    Return Value
    Success: Returns 1.
    Failure: Returns 0 if window is not found.

    Remarks
    If multiple windows match the criteria, the most recently active window is used.
    @SW_MINIMIZE and @SW_MAXIMIZE even work on modal dialog windows.

    I cordially wish to invite you to post your questions and doubts at http://www.advancedqtp.com/forums/index.php/board,18.0.html

    Cheers,
    Meir
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
6,676
On SlideShare
0
From Embeds
0
Number of Embeds
77
Actions
Shares
0
Downloads
205
Comments
1
Likes
4
Embeds 0
No embeds

No notes for slide
  • Lets Auto It

    1. 1. Let's Auto It! A Free Functional Automation Tool Meir Bar-Tal SOLMAR Knowledge Networks Mobile: +972 50-6725929 http://www.AdvancedQTP.com
    2. 2. Part I: The AutoIt Tool <ul><li>What is AutoIt? </li></ul><ul><li>Evolution of AutoIt </li></ul><ul><li>Main Features of AutoIt </li></ul><ul><li>AutoIt vs.Commercial Tools </li></ul><ul><li>Pros and Cons of AutoIt </li></ul>Part II: The AutoIt Show Part III: The AutoIt Community
    3. 3. What is AutoIt? <ul><li>Freeware BASIC-like scripting language designed for automating Windows GUI and general scripting. </li></ul><ul><li>Uses a combination of simulated keystrokes, mouse movement and window/control manipulation. </li></ul><ul><li>Enables to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). </li></ul><ul><li>AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying &quot;runtimes&quot; required! </li></ul>
    4. 4. Evolution of AutoIt <ul><li>Initially designed for PC &quot;roll out&quot; situations to reliably automate and configure thousands of PCs. </li></ul><ul><li>Now can be used as a general purpose scripting language (with awesome automation as well of course!). </li></ul><ul><li>Now supports complex expressions, user functions, loops and everything else – for senior scriptors. </li></ul>
    5. 5. Main Features of AutoIt <ul><li>Easy to learn BASIC-like syntax </li></ul><ul><li>Simulate keystrokes and mouse movements </li></ul><ul><li>Manipulate windows and processes </li></ul><ul><li>Interact with all standard windows controls </li></ul><ul><li>Scripts can be compiled into standalone executables </li></ul><ul><li>Create Graphical User Interfaces (GUIs) </li></ul><ul><li>COM support </li></ul>
    6. 6. Main Features of AutoIt (cont.) <ul><li>Regular expressions </li></ul><ul><li>Directly call external DLL and Windows API functions </li></ul><ul><li>Scriptable RunAs functions </li></ul><ul><li>Detailed help file and large community-based support forums </li></ul><ul><li>Compatible with Windows 95 thru Vista and 2008 </li></ul><ul><li>Unicode and x64 support </li></ul><ul><li>Digitally signed for peace of mind </li></ul><ul><li>Works with Windows Vista's User Account Control (UAC) </li></ul>
    7. 7. Detailed Features of AutoIt <ul><li>Basic-like Syntax and Rich Function Set </li></ul><ul><li>Most people who have ever written a script or used a high-level language should be able to pick it up easily. </li></ul><ul><li>Language features include: </li></ul><ul><ul><li>High-level elements for functions, loops and expression parsing </li></ul></ul><ul><ul><li>Rich in string handling functions and a Perl compatible regular expression engine (using the PCRE library). </li></ul></ul>
    8. 8. Detailed Features of AutoIt (cont.) <ul><li>COM support </li></ul><ul><li>Call Win32 and third-party DLL APIs </li></ul><ul><li>Rich Built-in Editor with Syntax Highlighting and Intellisense </li></ul><ul><ul><li>Customized &quot;light&quot; version of SciTe that makes editing scripts easy </li></ul></ul><ul><ul><li>Users can also download a complete version of SciTe that includes additional tools </li></ul></ul>
    9. 9. Detailed Features of AutoIt (cont.) <ul><li>Small and standalone The only prerequisite to run an AutoIt script is AutoIt3.exe. </li></ul><ul><li>Protect your Source Code Use the built-in script compiler Aut2Exe to convert your scripts into standalone executables. </li></ul><ul><li>International and 64-bit Support </li></ul><ul><ul><li>Fully Unicode aware </li></ul></ul><ul><ul><li>Includes x64 versions of all the main components! </li></ul></ul>
    10. 10. Detailed Features of AutoIt (cont.) <ul><li>Key and Mouse Simulation: </li></ul><ul><ul><li>Optimized keystroke and mouse simulation across Windows versions. </li></ul></ul><ul><ul><li>Highly configurable both in terms of simulation &quot;speed&quot; and functionality. </li></ul></ul><ul><li>Window Management: </li></ul><ul><ul><li>Move, hide, show, resize, activate, close and pretty much do what you want with windows. </li></ul></ul><ul><ul><li>Windows can be referenced by title, text on the window, size, position, class and even internal Win32 API handles. </li></ul></ul><ul><li>Controls: </li></ul><ul><ul><li>Directly get information on and interact with GUI controls. </li></ul></ul><ul><ul><li>Even work with controls in windows that aren't active! </li></ul></ul>
    11. 11. Detailed Features of AutoIt (cont.) Graphical User Interfaces (GUIs) AutoIt v3 will also allow you to create some complex GUIs - just like those below!
    12. 12. AutoIt vs. Commercial Tools Criteria Items Leading Tool Others AutoIt GUI Automation Yes Yes Yes Windows versions support Latest Latest From 95 thru 2008 64 bit support Yes Mixed Yes Technologies Full Basic/Partial Basic/Partial License Extremely expensive Very expensive to cheap Free COM support Yes Yes Yes Training investment High High High Win API & DLLs Indirect Indirect Direct Compilation to exe files No No Yes Parallel execution Yes with multiple licenses Yes with multiple licenses Yes GUI development tools No No Yes Support & Community Yes Yes Yes
    13. 13. Pros and Cons of AutoIt Criteria Items Pros Cons GUI Automation Yes Windows versions support From 95 thru 2008 64 bit support Yes Technologies Basic/Partial License Free COM support Yes Training investment High Win API & DLLs Direct Compilation to exe files Yes Parallel execution Yes GUI development tools Yes Support & Community Yes
    14. 14. Part II: The AutoIt Show <ul><li>GUI Testing </li></ul><ul><ul><li>Demo 1: Standard Windows Applications </li></ul></ul><ul><ul><li>Demo 2: Web Applications </li></ul></ul><ul><ul><li>Demo 3:.NET Applications </li></ul></ul><ul><li>Back-end Testing </li></ul><ul><ul><li>Demo 4: Web Services </li></ul></ul><ul><ul><li>Demo 5: Databases </li></ul></ul><ul><ul><li>Demo 6: XML files </li></ul></ul><ul><ul><li>Demo 7: DLLs </li></ul></ul>
    15. 15. Part II: The AutoIt Show (cont.) <ul><li>GUI Testing </li></ul><ul><ul><li>Demo 1: Standard Windows Applications </li></ul></ul><ul><ul><li>Demo 2: Web Applications </li></ul></ul><ul><ul><li>Demo 3:.NET Applications </li></ul></ul>
    16. 16. Part II: The AutoIt Show (cont.) <ul><li>Back-end Testing </li></ul><ul><ul><li>Demo 4: Web Services </li></ul></ul><ul><ul><li>Demo 5: Databases </li></ul></ul><ul><ul><li>Demo 6: XML files </li></ul></ul><ul><ul><li>Demo 7: DLLs </li></ul></ul>
    17. 17. Part III: The AutoIt Community <ul><li>Jonathan Bennett and the AutoIt Team </li></ul><ul><li>Releases </li></ul><ul><li>Documentation </li></ul><ul><li>Support and Forums </li></ul>
    18. 18. <ul><li>Jonathan Bennett (born 1973) – Author and copyright owner </li></ul><ul><li>An open community of contributors: http://www.autoitscript.com/autoit3/docs/credits.htm </li></ul><ul><li>Highly technically proficient </li></ul><ul><li>Very dedicated </li></ul>Jonathan Bennett & the AutoIt Team
    19. 19. <ul><li>The AutoIt Team releases AutoIt versions from time to time </li></ul><ul><li>The versions include both bug fixes and new features </li></ul><ul><li>All releases are very well documented </li></ul><ul><li>Last release (v3.3.0.0) is dated 24th December, 2008 </li></ul>Releases
    20. 20. <ul><li>Very detailed and illustrated help </li></ul><ul><li>Lots of sample scripts and tips </li></ul><ul><li>On-line documentation at http://www.autoitscript.com/autoit3/docs/ </li></ul><ul><li>Books: </li></ul><ul><ul><li>AutoIt v3: Your Quick Guide (Andy Flesner, O'Reilly) </li></ul></ul><ul><ul><li>Windows Admin Scripting Little Black Book (Jesse M. Torres, O'Reilly) </li></ul></ul>Documentation
    21. 21. <ul><li>Support is available at [email_address] </li></ul><ul><li>A community of tens of thousands of professionals </li></ul><ul><li>Q&A Forum ( http://www.autoitscript.com/forum/ ) </li></ul>Support & Community
    22. 22. <ul><li>Cost-effective solution for Web, .NET and Standard Windows applications. </li></ul><ul><li>Limited to the main Windows technologies </li></ul><ul><li>Best used with a proven testing automation methodology and framework </li></ul><ul><li>Enables maximizing ROI on automation by effective use of enterprise resources (parallel execution) </li></ul>Conclusions On AutoIt
    23. 23. Let's Auto It! A Free Functional Automation Tool THANK YOU! Meir Bar-Tal SOLMAR Knowledge Networks Mobile: +972 50-6725929 http://www.AdvancedQTP.com

    ×