AIR automation delegate examples

We are trying to implement automated testing with RIATest and are looking for good desktop AIR examples (workable -- not the namby-pamby stuff in Adobe docs that apply only to QTP and browser-based applications).  Can anyone point me to a good working example of implementing a delegate for custom components, with custom component children (complex components), including the setting for additional compiler arguments.  What we have found that the Adobe docs to date have been fairly innocuous and not clear for implementation for AIR applications (FlexBuilder3, sdk 3.4.1).

You need to give more information about your problem.
For normal Flex controls like button, text, etc. I think you
should be able to get the properties.
-ted

Similar Messages

  • About the AIR automation testing

    I have come across a problem when I develop an AIR
    application. I was unable to get the properties of controls in the
    AIR application by using “automation.swc”,
    “automation_agent.swc”,
    “automation_dmv.swc”. However, it is OK in web
    application (SWFLoader). Having studied QuickTest, it can only
    support recording of mouse movement and is unable to give the
    control properties also. I would like to know the way to get
    control properties. If it is a bug in AIR, I would like to know the
    work-arounds or when it will be fixed. Thank you in advance.

    You need to give more information about your problem.
    For normal Flex controls like button, text, etc. I think you
    should be able to get the properties.
    -ted

  • Air printer delegates problem in Offline Mode

    Hello All,
    I am sending a print job to Air printer but when printer is offline then still delegates says print job had done sucessfully. And after 10 sec it shows a Alert that printer is in offline mode.
    My question is how to determine the Air printer is ON/OFF before sending any print Job to printer?
    Print JOb delegates not returning any error or msg for it.
    Thanks
    PD Maxter

    Hope, this afternoon when i reboot my Phone.. and crash ! lol
    This times got pictures of what i did exactly ! Sorry it's in French ;)      Step 1 : After a reboot, i open Spotify and obtain this, I had never seen this before last week ! Usual it connects me at phone's start.. (Android widget of Spotify didn't work too after reboot, i need to open the application directly)            Step 2 : i click on "Connection" and he asks me for the desactivation of the Offline Mode => this message appears twice. I need to quit Spotify and restart it to connect successfully.              Step 3 : when i look in my "Playlists", the "Dub.Inc" one is not synced whereas before the reboot it was ! And proof in step 4..              Step 4 : when i look in "Parameters" of applications, i see this.. So i do not understand lol :p My playlist is here, in Exceptionnal quality.          So as this bug was crazy, i tested on my ipod touch 4 with another version of Spotify. I synced it at the same moment as the Android. You see that after the reboot, playlist is always here ! It's not my account but other thing.. I've got a 64 GO memory card µSD maybe due to that ?! Card is here since one year and no problem detected on it.                             If someone can help, you'll welcome :)

  • Documentation of automation delegate events for record,playback

    When trying to use the automation framework, is there any reference documentation of the potential events generated by the Adobe delegate classes?
    I'm looking for something similar to the Flex Automation Object Type Information at www.adobe.com/go/flex3_qtp_object_type_reference (which after the codec parameter processing in the events, but that's fine) or similar to the information in AutoQuickEnv.xml or TEAFlex.xml (also after the codecs and limited to the commonly recorded events).  The only one of those that also includes Spark is the TEAFlex.xml for Flex 4.
    There is not a direct correlation between the events on the underlying classes and the events generated or replayed by the delegates, so it's not clear where to find out the specific details of the automation framework events that those delegates provide other than by the above sources or reading through the delegate source code.
    thanks for any additional information.

    Right now e-test only uses IE and IE7 only on 8.2 ....word on the street is that FF support is coming before the end of the year but nothing official yet....
    The netscape option is carry over from the 'ole days you can see it on one of the last options in the tree for the script (options>script) ...guess it's hard to let go of the past..
    Now in E-load I understand you can emulate Mozilla browsers for your load scripts but at the thin client level it wont tell you much more then what IE would see...(application independent of course)...
    Hope this helps

  • Automation for AIR

    We are looking at a number of products for AIR automation.  Does anyone have a good example of how to instrument AIR applications for automation.  We are currently looking at RIATest as a testing product.  I was unable to find whether or not HP QTP (which seems to be the Adobe recommended auto-testing tool) supports AIR applications.  Part of the issue we are facing is the vast number of custom components we use in our desktop app.

    We are using FlexBuilder3 with 3.4.1 sdk (soon to upgrade to FlashBuilder4.x).  We are looking at creating automated test scripts (similar to what I have read in the Adobe docs for HP QTP) but have AIR applications that have many custom components (several are drag and drop compatible).  All of the documentation that I have read for automated testing, except one vague line, references the use of Flex (and specifically HP QTP, on a browser) rather than AIR (desktop).  Do the examples in the Adobe docs apply to both Flex and AIR applications?  We are evaluating an automated test scripting tool that specifically mentions support of AIR applications, HP QTP does not make mention of support of AIR applications.  (HP was not very helpful in answering my question -- they disconnected my call.)

  • My air app gives VerifyError: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.

    Hi,
    I'm devlopping an air application, MacOSX 10.6.8, flex4.5.1 and air 2.6, suddenly the application will not start anymore, giving the following error:
    VerifyError: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.
              at spark.automation.delegates.components.supportClasses::SparkSkinnableTextBaseAutomationImp l$/init()[E:\dev\4.5.1\frameworks\projects\automation_spark\src\spark\automation\delegates \components\supportClasses\SparkSkinnableTextBaseAutomationImpl.as:73]
              at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2821]
              at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2729]
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at mx.preloaders::Preloader/timerHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx \preloaders\Preloader.as:542]
              at flash.utils::Timer/_timerDispatch()
              at flash.utils::Timer/tick()
    A colleague with the same setup has no problems. Also when i create a new air project in flashbuilder it will not start either, but not throwing the error.
    Anyone with the same problems? Or anyone who knows what might be the cause?
    kind regards,
    Arjen Veneman

    Found the solution.  We had to add swf-version=11 in our flex config.  Odd that we should have to start doing that now all of a sudden (we weren't setting that explicitly before).  Seems like a bug in the SDK.

  • Is there any automation in Photoshop and how it is named ?

    Does Photoshop support COM automation for example ? Should one buy additional module(s) ? Which ones ? What's available "in box" (i.e. basically) ?

    Yes, Photoshop supports COM (OLE Automation). There are samples in the 'Scriting Guide' folder of your CS and CS2 install. For Photoshop 7 look for the scripting support plug-in.

  • Changing Package Name of an AIR apk

    Hi. I have created an AIR app that is currently in the market. To update the app, obviously I must keep the same package name. My first version's were packaged using Eclipse with the ADT plugin.
    Now to use AIR 3.0 Native Extensions (ANE) which were not available when I first developed the app, I currently must create my APK using AIR's command line tools. Unfortunately, these command line tools force you to have a package name that starts with the word "air". For example, I need the package name "com.example". AIR creates the package name as "air.com.example".
    So now, I cannot update my app in the market since the package name has changed. Adobe has this horrific article to help you rename and remove the "air" in the package. I'm not a great programmer so this has really stumped me.
    http://kb2.adobe.com/cps/875/cpsid_87562.html
    Apparently this info is out of date or incorrect in a few areas.
    I have completely stumbled at step 12 which uses apkbuilder:
    apkbuilder final.apk -u -z resources.arsc -f classes.dex
    I am getting this error message:
    THIS TOOL IS DEPRECATED. See --help for more information.
    java.io.FileNotFoundException: resources.arsc does not exist
    I have used step 10 to create the new resources.arsc file. It clearly DOES exist and in the correct location. I tried using apkbuilder with other resources.arsc files taken from other projects. I still get the same error message.
    Maybe there is another way to do this using another tool like like apkTool. http://code.google.com/p/android-apktool/
    I tried this but then couldn't get jarsigner to sign the apk properly.
    Is there a chance in hell of this working? There doesn't seem to be much about this topic on the internet. If anyone is interested in this, I have a zip file with a sample AIR apk, windows bat files for all the command line work, and all the needed utilities so they don't need to be downloaded. To get started you just need to change my path.bat to fit your system. And you need notepad++ (or an equivalent) to batch automate renaming the package name across several files.
    http://bradwallacedesign.com/dktimer/renameApkProject.zip
    Thanks so much!

    If the DisplayObject is on the timeline then its name cannot
    be modified, but the name property of dynamically created
    DisplayObjects can be changed. (DisplayObject.name:String
    read/write).

  • Adding gameCenter functionality with actionscript3 and Adobe AIR

    I am writing a game in actionscript3 and adobe AIR for the iphone4. Is there a way to connect to iphone's gameCenter in actionscript3, or is that not possible and I am forced to use xcode and objective-C?
    If this is not possible, are there any alternatives to gameCenter that I can program with actionscript3 and AIR? For example openFeint??
    Thanks

    I am writing a game in actionscript3 and adobe AIR for the iphone4. Is there a way to connect to iphone's gameCenter in actionscript3, or is that not possible and I am forced to use xcode and objective-C?
    If this is not possible, are there any alternatives to gameCenter that I can program with actionscript3 and AIR? For example openFeint??
    Thanks

  • [svn:fx-4.x] 14699: Adding pop up children to the end of automation children array so that index of static children do not change due to these dynamic children .

    Revision: 14699
    Revision: 14699
    Author:   [email protected]
    Date:     2010-03-11 06:20:06 -0800 (Thu, 11 Mar 2010)
    Log Message:
    Adding pop up children to the end of automation children array so that index of static children do not change due to these dynamic children.
    QE notes:
    Doc notes:
    Bugs: FLEXENT-1248, FLEXENT-1250, FLEXENT-1253
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXENT-1248
        http://bugs.adobe.com/jira/browse/FLEXENT-1250
        http://bugs.adobe.com/jira/browse/FLEXENT-1253
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/automation/src/mx/automation/delegates/containe rs/ApplicationAutomationImpl.as
        flex/sdk/branches/4.x/frameworks/projects/automation_spark/src/spark/automation/delegates /components/SparkApplicationAutomationImpl.as

    Revision: 14699
    Revision: 14699
    Author:   [email protected]
    Date:     2010-03-11 06:20:06 -0800 (Thu, 11 Mar 2010)
    Log Message:
    Adding pop up children to the end of automation children array so that index of static children do not change due to these dynamic children.
    QE notes:
    Doc notes:
    Bugs: FLEXENT-1248, FLEXENT-1250, FLEXENT-1253
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXENT-1248
        http://bugs.adobe.com/jira/browse/FLEXENT-1250
        http://bugs.adobe.com/jira/browse/FLEXENT-1253
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/automation/src/mx/automation/delegates/containe rs/ApplicationAutomationImpl.as
        flex/sdk/branches/4.x/frameworks/projects/automation_spark/src/spark/automation/delegates /components/SparkApplicationAutomationImpl.as

  • Flex Air App... and SQLite

    I was hoping someone can point me in the direction to learn the SQLite on Adobe Air... I need something simple to start out... Most of what i found is rather complicated, and get's kind of confusing...
    Do you have to create the database at run-time?

    http://www.peterelst.com/blog/2008/04/07/introduction-to-sqlite-in-adobe-air/
    http://work.rowanhick.com/2007/06/12/working-air-sqlite-datagrid-example/

  • NEWBIE: Flex/AIR and databses

    Hi all,
    I'm a Director(lingo) user and use flash with actionscript
    for UI in app.
    I'm now playing with Flex3 to see how it compares etc.
    OK, one of the things I think i'm getting confused with and
    need some clarity (in not too technical terms!), is the ability to
    connect to a database online(with flex) and offline(with AIR).
    For example, if I have a simple database with 'name', 'age'
    and 'sex', with Director I could use a simple ADO Xtra to connect
    to the database and add/ammend the records. - In this example,
    Director would be running as an .exe on the users PC with the
    database either local or on a network. The database could be a
    simple mdb (access) or sql etc.
    So, is it possible to have an AIR application connecting to a
    local database? and does that database have to be a specificv type?
    or can it be an mdb? If so, how is this implemented?
    When it's web based with flex, am i right in thinking that
    flex does not actually connect to a database, but instead uses a
    'third party' such as php, asp etc to do this?
    As you can see, im confused!! Can someone explain in simple
    terms?
    Thanks everyone,
    Tim

    The AIR player has a built-in version of SQLList. There is a
    set of SQL classes in the AIR player you can use. Check out this
    article on my blog:
    Using
    SQL with AIR - you can download the code and check out the
    database classes.

  • Is it possible to automate software instrument parameters in a MIDI region? And alias the region with the automation?

    I am trying to track down a detail about how automation works in Logic Pro X.
    What I want to know is:
    1. Can I draw control-point curves (and smoothly bend them) in a MIDI region to automate a software instrument parameter (and/or smart controls)?
    2. Can a region containing this automation be aliased and reused around the timeline (without the automation points being duplicated)?
    If this is possible, can someone please post a couple of screenshots - a MIDI region with MIDI Draw automating (for example) the cutoff of an ES M, and screenshots of aliases around the timeline?
    thanks!!
    H

    First, I'd recommend going to Track>other>new with same instrument.  This gives you a blank lane to make a region with no notes. 
    Now, there are two strategies: do some track automation and then convert it to region. You can go into the local view menu and find the option to view MIDI automation and still adjust it.  Now you can make aliases of that region. You need to be careful of accidentally writing new track automation, which is easy to do and can happen if you have 'move automation with regions' on for instance.  If you make sure and delete all the track auto for this parameter you should be good (the line should be barely visible black, if it is highlighted in color, that means there is at least one active node at the beginning).  If the parameter freaks out, instead of following your curve, you can bet there is track automation fighting with the region automation, you might need to tell the automation menu in the track header to show the parameter in question.  None of this is a big deal and after doing it once you'll see.
    The other strategy is to assign a controller to a parameter (or use the quick MIDI things on certain instruments - you mentioned ES2, which has that) and you can use the hyper draw in the piano roll.  The view tip from the first strategy still works so you can edit the automation in the arrange.  I prefer the first strategy because the knob you are automating will still move.
    If you go to audio tuts plus (something like that) you can find a tut on the first method that's a few years old, and from Logic 9.  Basically the same, you just have to look through different menus for everything.

  • Can't install Air on XP

    Hi all,
    I can't install Adobe AIR on XP. This is a work machine but I do have admin rights. Any ideas?
    Thanks in advance.
    The error message:
    An error occurred while installing Adobe AIR. Installation may not be allowed by your administrator. Please contact your administrator.
    The log:
    Performing runtime install
    UI SWF load is complete
    UI initialized
    starting user confirmation
    Version of this installer: 1.5.2.8900
    Installation type: new
    starting install
    Scheduling runtime installation operations
    uninstall scheduled for 1.0.4, 1.0.6, 1.0.5
    Installed Product GUID:  is same:false
    Beginning runtime installation
    Beginning install
    Installing c:\docume~1\gcsgxc\locals~1\temp\air4b.tmp\setup.msi
    Error occurred; beginning rollback: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception Error: Error #3003" errorID=3003]
    Rolling back install of c:\docume~1\gcsgxc\locals~1\temp\air4b.tmp\setup.msi
    Rollback due to error complete
    error during install: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception Error: Error #3003" errorID=3003]
    runtime install entering error state: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception Error: Error #3003" errorID=3003]
    begin quitting

    I'm wondering if a previous admin on your system has done any of the following that might prevent it?
    Administrators can apply the following configuration settings for Adobe AIR running on Windows:
    Preventing installation of AIR applications
    Preventing installation of untrusted AIR applications
    Disabling automatic updates of Adobe AIR updates
    These settings are intended for use only within a closed environment, such as an enterprise where an IT administrator controls the end-users systems. These settings cannot be used as part of a native installer for distribution in an open environment.
    On both Windows and Mac OS, there are administrative settings for SWF content loaded into Adobe AIR from external sources (outside the application).
    Preventing installation of AIR applications
    On Windows, add a DWORD value named AppInstallDisabled to the HKey_Local_Machine\Software\Policies\Adobe\AIR registry key, and set the value to 1.
    On Linux, modify the AppInstallDisabled setting in the globalRuntime.conf configuration file in /etc/opt/Adobe\ AIR/. For example, set AppInstallDisabled=1 to prevent installation of AIR applications.
    If no setting is present or if the value is set to 0, installation of AIR applications is allowed. However, users still need system privileges to install to the application’s destination directory. Also, if system policy prohibits installation via Windows Installer (MSI), that policy is also respected by AIR.
    Even if installation of AIR applications is allowed, the following restrictions are observed:
    On Mac OS and Linux, to install or update an application, the user needs to have adequate system privileges to install to the application directory (and administrative privileges if the application needs to update Adobe AIR).
    On Windows, a user needs to have administrative privileges.
    Preventing installation of untrusted AIR applications
    On Windows, add a DWORD value named UntrustedAppInstallDisabled to the HKey_Local_Machine\Software\Policies\Adobe\AIR registry key, and set the value to 1.
    On Linux, modify the UntrustedAppInstallDisabled setting in the globalRuntime.conf configuration file in /etc/opt/Adobe\ AIR/. For example, set UntrustedAppInstallDisabled=1 to prevent installation of untrusted AIR applications.
    If no setting is present or if the value is set to 0, installation of untrusted AIR applications is allowed. However, users still need system privileges to install to the application’s destination directory.
    An AIR application is trusted when it has been signed with a certificate that is trusted, or which chains to a certificate that is trusted on the installation computer. For more information, see “Code signing” in the Adobe AIR Security white paper (http://www.adobe.com/go/learn_air_security_wp_en).

  • Air Update Framework Issue... Help please!

    The following code is from the Air Employee Directory example
    to which I have added an Update Object, the app installs and
    updates with no problem, but as soon as the update is done and it's
    time for the app to start, the app just doesn't come up. It was
    working fine before I added the update object... Any idea on what I
    could be doing wrong?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:ui="com.adobe.empdir.ui.*"
    applicationComplete="onApplicationComplete()" height="100%"
    width="100%" frameRate="45"
    horizontalScrollPolicy="off" verticalScrollPolicy="off"
    visible="false"
    showEffect="Fade" xmlns:local="*"
    creationComplete="checkUpdate()">
    <mx:Script>
    <![CDATA[
    import mx.logging.Log;
    import com.adobe.empdir.commands.ui.CloseApplicationCommand;
    import mx.binding.utils.BindingUtils;
    import mx.events.StateChangeEvent;
    import mx.events.ResizeEvent;
    private function onApplicationComplete() : void
    callLater( ui.init );
    // We listen to CLOSING fromboth the stage and the UI. If
    the user closes the app through the taskbar,
    // Event.CLOSING is emitted from the stage. Otherwise, it
    could be emitted from TitleConrols.mxml.
    ui.addEventListener( Event.CLOSING, onWindowClosing );
    stage.nativeWindow.addEventListener( Event.CLOSING,
    onWindowClosing );
    stage.nativeWindow.addEventListener( Event.CLOSE,
    onWindowClose );
    private function onWindowClose( evt:Event ) : void
    NativeApplication.nativeApplication.exit();
    private function onWindowClosing( evt:Event ) : void
    evt.preventDefault();
    var cmd : CloseApplicationCommand = new
    CloseApplicationCommand();
    cmd.execute();
    ]]>
    </mx:Script>
    <mx:Script>
    <![CDATA[
    import air.update.events.UpdateEvent;
    import mx.controls.Alert;
    import flash.events.ErrorEvent;
    import air.update.ApplicationUpdaterUI;
    * @var the object that that handles the update related
    actions
    private var appUpdater:ApplicationUpdaterUI = new
    ApplicationUpdaterUI();
    * This function is triggered when the application finished
    to load;
    * Here we initialize <code>appUpdater</code> and
    set some properties
    private function checkUpdate():void {
    setApplicationVersion();
    // we set the URL for the update.xml file
    appUpdater.updateURL = "
    http://localhost/updater/update.xml";
    //we set the event handlers for INITIALIZED nad ERROR
    appUpdater.addEventListener(UpdateEvent.INITIALIZED,
    onUpdate);
    appUpdater.addEventListener(ErrorEvent.ERROR, onError);
    //we can hide the dialog asking for permission for checking
    for a new update;
    //if you want to see it just leave the default value (or set
    true).
    appUpdater.isCheckForUpdateVisible = false;
    //if isFileUpdateVisible is set to true, File Update, File
    No Update,
    //and File Error dialog boxes will be displayed
    appUpdater.isFileUpdateVisible = false;
    //if isInstallUpdateVisible is set to true, the dialog box
    for installing the update is visible
    appUpdater.isInstallUpdateVisible = false;
    //we initialize the updater
    appUpdater.initialize();
    * Handler function triggered by the
    ApplicationUpdater.initialize;
    * The updater was initialized and it is ready to take
    commands
    * (such as <code>checkNow()</code>
    * @param UpdateEvent
    private function onUpdate(event:UpdateEvent):void {
    //start the process of checking for a new update and to
    install
    appUpdater.checkNow();
    * Handler function for error events triggered by the
    ApplicationUpdater.initialize
    * @param ErrorEvent
    private function onError(event:ErrorEvent):void {
    Alert.show(event.toString());
    * A simple code just to read the current version of the
    application
    * and display it in a label.
    private function setApplicationVersion():void {
    var appXML:XML =
    NativeApplication.nativeApplication.applicationDescriptor;
    var ns:Namespace = appXML.namespace();
    ]]>
    </mx:Script>
    <mx:TraceTarget level="0" includeDate="false"
    includeTime="false"
    includeCategory="true" includeLevel="true">
    <mx:filters>
    <mx:Array>
    <mx:String>*</mx:String>
    </mx:Array>
    </mx:filters>
    </mx:TraceTarget>
    <ui:ApplicationUI id="ui" width="100%" height="100%"
    />
    </mx:Application>

    This was an issue with the Update Framework in AIR SDK 1.5.3, which has been fixed. If you still want to use the ApplicationUpdaterUI, you can replace the swc in Flex SDK 3.6 with an applicationupdater_ui.swc from a newer version of AIR.
    Have a look at solution 3 in this post for some details on where to find the applicationupdater_ui.swc and how to replace it.
    http://forums.adobe.com/message/3060118#3060118
    Hope this helps!
    Horia

Maybe you are looking for

  • Can't scan from Pixma to Mac

    Hi, I have an ongoing problem with scanning from my Canon Pixma to my Mac Airbook. The printer scans, but the image is not made available on the computer - Image Capture says that 'no device is connected'. Having done some internet research, I see th

  • Removing items from the Open With Menu List!

    I'm not sure how this happened but when I select the Open With option I have multiple listing of the same applications. there must be a list that is displayed that may be edited.. Can someone help?

  • The ability to measure cash in and outflows based on the Profit Centers

    Hi, As you may be aware, we are currently undertaking a global project to split our Balance Sheet based on the divisional structure (Profit Centres in SAP).  The splitting of Receivables and Payables by Profit Centre. We have an additional requiremen

  • 1 message in = 2 messages out

    Hi,           I have problems with my JMS queue. If I send 1 message to the queue it           will give me 2 messages to pick out from the queue. Could it be that           I'm not acknowledging my messages correctly? I'm really lost.           Some

  • Regarding downloading thw report in pdf format

    Hi Experts, when we download the report in pdf format using printer friendly icon, my concern is that is it possible to add watermark in the downloaded report by changing in xml files. please suggest any solutions.