Jump to content

User:Aeroslacker/Phantom automation

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Aeroslacker (talk | contribs) at 19:41, 6 March 2009. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


Phantom Automation

Overview

Phantom is a Graphical User Interface (GUI) automation technology developed by Phantom Automated Solutions, Inc. It is used to perform automated GUI testing and for general process automation. Phantom currently supports the automation of Microsoft Windows based graphical interfaces.

The Phantom Language

Automation is accomplished by interpreting a set of commands written using the Phantom scripting language. The Phantom scripting language has a syntax similar to the C language. It includes capabilities common to any high-level scripting language such as:

  • Script flow control
  • Multi-dimensional variables
  • User defined functions
  • Exception handling
  • Complex variable types
  • Additionally, the Phantom language includes automation specific function sets:

  • Window control interaction functions
  • System interaction functions
  • Bitmap capture and control functions
  • Registry interaction functions
  • Mouse and Keyboard simulation functions
  • Window Declarations

    Phantom scritps interact with windows through the use of Window Delcarations. Window Declarations are text files created using the freely available Window Declarations Recorder. These text files contain information about each window and control to be automated. The declarations are in hierarchal form so that each windoe or control is referenced to its parent window. By using this method, as opposed to coordinated based automation, a window or control can be moved or resized without breaking automation scripts.

    An example of a script calling a window using window declarations is below:


    include "MyWin.dec"; # Include the window declarations file

    MyWin.MyControl.SetText("Sample Text"); # Set the control text
    MyWin.MyControl.MouseClick(0, 1, 1, 0); # Simulate a mouse click in 'MyControl'

    Commercial Products

    There are three primary products supplied by Phantom Automated Solutions, Inc. that support Phantom automation technology.

    Phantom Test Driver

    The Phantom Test Driver (PTD) application is a Microsoft Windows GUI based IDE for the Phantom language. Its primary purpose is to support large scale GUI test automation processes. It supports Phantom script development through a built-in script editor and debugger. PTD handles test automation by grouping similar test cases into groups called Suites. PTD can execute entire groups of test cases by running a single Suite.

    Some features of PTD include:

  • Color-coded script editor
  • Built-in, fully functional Phantom script debugger
  • Automation organization through the use of script Suites
  • Script and Suite output collection and display
  • Built-in script recorder utility
  • Built-in Window Declarations Editor
  • History

    Phantom was originally released in 2000 as a low cost alternative to existing automation technoligies. Version 2.0 of the Phantom Test Driver and Phantom Command Line Utility, as well as version 2.1 of Phantom Sidekick was released in 2008. The new releases represent a major structural change to the underlying automation engine.