Running Flex Unit in AIR

Hi I am loving flex unit and wanted to use it on a air app I developed a few months back.
I added an new application.mxml file to the project and added the TestRunnerBase and a ref to FlexUnitCore.
When I try to debug the app, the debugger starts but the app never becomes visible. I can see the process in windows explorer but can not see the app on the screen. If I take out the reference to FlexUnitCore it runs fine. Of course the tests can not run. Am I doing something wrong or is Air not supported?
Air 1.5
Flex 3.2
Any pointers appreciated.

You may be using an outdated version of FlexUnit, check out this example mxml from the most current master version over at github. http://github.com/flexunit/flexunit/blob/master/FlexUnit4SampleCIProject/src/test/flex/Air TestRunner.mxml
If you don't see that an AirCIListener is available to use, then download the latest source from here : http://github.com/flexunit/flexunit or if you just want the compiled .swcs to add to your project you can grab them here http://flexunit.digitalprimates.net:8080/job/FlexUnit4-Flex3.5/lastSuccessfulBuild/artifac t/flexunit-4.0.0.zip

Similar Messages

  • Flex SDK and AIR runtime version in mobile

    Hi, guys.
    I'm trying to make my first Flex mobile app.
    I'm a little confused about the relationship between Flex SDK and AIR  runtime versions for mobile development.
    In the "Developing Mobile Applications with ADOBE FLEX 4.6 and ADOBE FLASH BUILDER 4.6" pdf document, it says:
    "AIR requirements
    Flex mobile projects and ActionScript mobile projects require AIR 2.6 or a higher version. You can run mobile projects on physical devices that support AIR 2.6 or a higher version of AIR.
    You can install AIR 2.6 or a higher version only on supported Android devices that run Android 2.2 or a higher version. For the complete list of supported Android devices, see Certified Devices. Also, review the minimum system requirements to run Adobe AIR on Android devices at Mobile System Requirements.
    Note: If you do not have a device that supports AIR 2.6 or a higher version of AIR, you can use Flash Builder to launch and debug mobile applications on the desktop."
    So, I go and check the Certified devices in http://www.adobe.com/devnet-apps/flashruntimes/certified-devices.html and find that the minimun FLASH PLAYER version accepted by ALL devices is FP 10.1
    1. Does this mean that if I want to release an app to target ALL mobile devices, then I can only use Flex 4.5?
    2. Do support for Flash Player mean the same than support for Adobe AIR? Or the application will prompt the user to install whatever version of the AIR runtime and all of them would be supported by the device, even in the FLASH PLAYER support is for a lesser version?
    Thanks!

    Thanks for your help, Flex harUI,
    The first impression that comes to mind is that FP version is indeed only for the web browser plugin. Then, why does the official Flex 4.6 mobile development documentation have a link to that page that only speaks about the supported FP version in mobiles under the title "AIR requirements"??
    This makes it way too confusing.
    Do you know whether there is something like an equivalent matrix/list of mobile devices with their supported AIR runtime versions?  I went a great deal in trying to keep my original app under 400kb... I didn't know that in the end it would end up weighing 9.5Mb... :S
    Thanks again,

  • Calling LiveCycle Data Services from a Flex application within AIR

    Hi there,
    I was experimenting with AIR by migrating some of the Flex TestDrive sample applications and trying to run them as stand-alone apps. Following the examples I found on some blogs, I managed to run the applications that use WebService and HTTPService. However, RemoteObject components fail to detect the destinations associated with the remoting service. A simple remoting example from the TestDrive is "Sample 3: Accessing data using Java RPC" and it produces the following error when running it as an AIR app:
    [RPC Fault faultString="No destination with id 'product' is registered with any service." faultCode="Server.Processing" faultDetail="null"]
    I would be grateful for any suggestions.
    Note: I hard-coded the endpoints of all the services in services-config.xml to point to my local JBoss server.

    Hi Bushra,
    May I suggest that you pose your question on the Adobe AIR Forum? As there are people monitoring the AIR forum with that particular expertise, it would seem to be the more appropriate venue.
    Thanks,
    Kim

  • [svn:fx-trunk] 12869: Fix FB-24801: Unable to run an application with AIR 3 .4 sdk

    Revision: 12869
    Revision: 12869
    Author:   [email protected]
    Date:     2009-12-11 14:50:26 -0800 (Fri, 11 Dec 2009)
    Log Message:
    Fix FB-24801: Unable to run an application with AIR 3.4 sdk
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FB-24801
    Modified Paths:
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSessionManag er.java

    I've fixed the problem!
    I think the problem was in the way I was linking to the libraries. I ended up deleting all my hand made ANT settings and instead exporting the settings from my Flash Builder project, and just using those.
    Full details in this article here, it saved my life: http://helpx.adobe.com/x-productkb/multi/compilation-results-flex-builder-flex.html

  • [svn:osmf:] 10655: Removing the hack we came up with for using the MAST plugin in the Flex unit tests .

    Revision: 10655
    Author:   [email protected]
    Date:     2009-09-28 13:52:01 -0700 (Mon, 28 Sep 2009)
    Log Message:
    Removing the hack we came up with for using the MAST plugin in the Flex unit tests.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/.actionScriptProperties
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/MediaFrameworkTests.as
    Removed Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/mast/
        osmf/trunk/plugins/MASTLib/

    Hi OMAW8,
    It would be better if you could share us the detailed error message in English.
    Do you mean that you could run your test in your build agent machine? If so, I doubt that it would be related to the TFS build. I mean that maybe it is not the test issue.
    Please share the detailed error in English, and then post this issue to the TFS-build forum would be better for this issue since it works well in build agent machine.
    Form link:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=tfsbuild
    Reference:
    https://msdn.microsoft.com/en-us/library/hh691189.aspx
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Flex Unit 4 Doesnt wor with AS4 Mock

    Hi,
    Wehen I run the Mock 4 AS script with the Flex Unit 4 I get the dblow error.
    ArgumentError: Error #1063: Argument count mismatch on org.mock4as.samples.publisher::PublisherTest
    at flexunit.framework::TestSuite(TestSuite.as:124)
    at org.flexunit.internals.runners::FlexUnit1ClassRunner/createTestSuiteWithFilter(FlexUnit1C lassRunner.as:167)
    at org.flexunit.internals.runners::FlexUnit1ClassRunner(FlexUnit1ClassRunner.as:100)
    at org.flexunit.internals.builders::FlexUnit1Builder/runnerForClass(FlexUnit1Builder.as:60)
    at org.flexunit.runners.model::RunnerBuilderBase/safeRunnerForClass(RunnerBuilderBase.as:63)
    at org.flexunit.internals.builders::AllDefaultPossibilitiesBuilder/runnerForClass(AllDefault PossibilitiesBuilder.as:106)
    at org.flexunit.runners.model::RunnerBuilderBase/safeRunnerForClass(RunnerBuilderBase.as:63)
    at org.flexunit.runners.model::RunnerBuilderBase/localRunners(RunnerBuilderBase.as:119)
    at org.flexunit.runners.model::RunnerBuilderBase/runners(RunnerBuilderBase.as:87)
    at org.flexunit.runners::Suite(Suite.as:170)
    at org.flexunit.runner::Request$/classes(Request.as:201)
    at Function/http://adobe.com/AS3/2006/builtin::apply
    at org.flexunit.runner::FlexUnitCore/runClasses(FlexUnitCore.as:191)
    at Function/http://adobe.com/AS3/2006/builtin::apply
    at org.flexunit.runner::FlexUnitCore/run(FlexUnitCore.as:171)
    at flexunit.flexui::FlexUnit4TestRunner/run(FlexUnit4TestRunner.as:75)
    at flexunit.flexui::FlexUnitTestRunnerUI/runWithFlexUnit4Runner(FlexUnitTestRunnerUI.mxml:14 8)
    **[ at FlexUnitApplication/onCreationComplete(FlexUnitApplication.mxml:22) ]
    **[ at FlexUnitApplication/___FlexUnitApplication_Application1_creationComplete(FlexUnitApplicat ion.mxml:7) ]
    at flash.events::EventDispatcher/dispatchEventFunction
    at flash.events::EventDispatcher/dispatchEvent
    at mx.core::UIComponent/dispatchEvent(UIComponent.as:12266)
    at mx.core::UIComponent/set initialized(UIComponent.as:1577)
    at mx.managers::LayoutManager/doPhasedInstantiation(LayoutManager.as:759)
    at mx.managers::LayoutManager/doPhasedInstantiationCallback(LayoutManager.as:1072)
    How can I resolve this error.

    Here is code snippet I am using
    package org.mock4as.samples.publisher
    import flexunit.framework.TestCase;
    import org.mock4as.Mock;
        public class PublisherTest extends TestCase
    public function PublisherTest(methodName : String){
                super(methodName);
    public function testOneSubscriberReceivesAMessage():void{
    // create the mock
    var mockSubscriber:MockSubscriber = new MockSubscriber();
    const MSG:String = "MESSAGE";
    // set expectations
    mockSubscriber.expects("receive").times(1).withArg(MSG).noReturn();
    // inject the mock
    var myPublisher:Publisher = new Publisher();
    myPublisher.add(mockSubscriber);
    // execute
    myPublisher.publish(MSG);
    // verify mock behavior
    mockSubscriber.verify();
    // show mock expectation error message if any
    assertNull(mockSubscriber.errorMessage());
    // Inner Class
    import org.mock4as.Mock;
    import org.mock4as.samples.publisher.ISubscriber;
    class MockSubscriber extends Mock implements ISubscriber {
    public function receive(message:String):void
    record("receive", message);

  • Flex 4 and air 2beta

    hii
    I have an air application using flex 4 and air 2.0beta version,
    when i am trying to run the project its showing an error :
    VerifyError: Error #1014: Class flash.display::Shader could not be found... ,
    did get what it indicatess....
    have made all the cofigurations..,,changed the namespace 2.0beta2..n all
    please give me any solution ..
    Thanks
    Saritha

    Sounds like airglobal.swc is missing in your library path. I have some tips here http://blogs.adobe.com/jasonsj/2010/03/using_the_air_2_sdk_in_flash_builder_4.html, but you might want to double check your SDK overlay: http://labs.adobe.com/wiki/index.php/AIR_2:Release_Notes#AIR_2_SDK.
    Jason San Jose
    Software Engineer, Flash Builder

  • Flex 4 with AIR 2.0 performance

    I have a Flex 4 application that runs perfectly will under AIR 1.5. However, after installing Air 2.0 it's performance renders it virtually unusable. My app has two native windows (one window has controls) the other shows complex drawn graphics and video combined) the application is just about usable if I keep the windows small but once I maximize the graphics window (or set it to fullscreen) the application rarely responds to mouse clicks or keyboard input. Wierdly though the frate rate still seems to remain high.
    Has anyone else experienced this problem or does anyone have any suggestions what I might try to overcome this?
    At the moment I have to keep regressing to AIR 1.5 but because of the way Adobe forces upgrade to 2.0 this is getting a bit tedious to keep reinstalling.
    Thanks for your help in advance.
    Mark.

    Try comparing profiler output on the two versions.

  • My iPhone5 is my wifi hot spot for my mac mini computer and iPad. I live in a rural area. Will this be sufficient to run apple tv and air play?

    My iPhone5 is my wifi hot spot for my mac minim computer and iPad. I live in a rural area with no other options. Will this be sufficient to run Apple TV and air play?

    If you are intending using your hot spot to download movies for the Apple TV, you'll very quickly eat through your data allowance.

  • Need HTTPService and play video in flex 4.6 Air Mobile App

    We are porting a flex 3.2 app to mobile app. The 3.2 app uses mx.rpc.http.HTTPService to send XML requests for data and launch video web pages. Will a flex 4.6 Air Mobile app be able to do the same? If so, what replaces mx.rpc.http.HTTPService? I read that mx components will not work in Flex mobile apps.

    HI,
    Its working fine.And the mxml components which are displayobject should not be used in the mobile application except the chart.
    So nothing wrong with using "mx.rpc.http.HTTPService",you can also use  <s:HTTPService/>
    Also there is a nice way to see which components should be used or which not for the mobile application.
    Simply mouse over on the component when you have used it.You can see a message on that if that is not optimized for the mobile application like for the combobox you can see this message:-
    "Adobe discourages using ComboBox when targeting profiles: mobileDevice."
    While this is not the case with <s:HTTPService/>.
    with Regards,
    Shardul

  • How to update flex to use air 1.5.1

    How to update Flex to use air 1.5.1?
    The last Nightly Build (3.4.0.5042) release today has the
    "old" 1.5 version of air sdk.
    Thanks

    Currently, you have to overlay the AIR 1.5.1 SDK on top of
    your Flex SDK. There are instructions in the AIR 1.5.1 release
    notes:
    http://www.adobe.com/support/documentation/en/air/1_5_1/releasenotes_developers.html#sdk
    The AIR 1.5.1 SDK is available here:
    http://www.adobe.com/products/air/tools/sdk/

  • I have four small black lines running down my iPad Air, is there anyway to fix this?

    I have four small black lines running down my iPad Air screen. is there anyway to fix this myself ?

    Try holding the lock button and the home button at the same time if this does not work let your ipad run flat recharge it then turn it on and see what happens

  • Air application loading flex applications(no Air) with flex linked as RSL.

    Hello
    I am trying to make an AIR application which loads number of flex applications(no AIR). The subapplications are using the Flex SDK as a RSL, and each of them can use different version of the SDK.
    The problem is that the subapplicationsare trying to load the needed SDK from local filesystem, which they are not permited.
    public class CrossDomainRSLItem extends RSLItem
         override public function load(progressHandler:Function,
                                      completeHandler:Function,
                                      ioErrorHandler:Function,
                                      securityErrorHandler:Function,
                                      rslErrorHandler:Function):void

    Hi again.
    Is there any way to reliably edit the trust files with AIR application?
    As I see it we have to make the user to add our folder to the trusted locations, or to use some application which can find and write in the FlashPlayerTrust (native for the specific OS installer for example.). (even finding this directory with an AIR application seems not 100% reliable).
    Thanks in advance for you help.
    Ps: Right now I am trying to patch this.
    I compiled some sub-applications using custom preloader class(the controlling class, not the UI), where I removed the RSL loading. After that in an ApplicationDomain I load all the RSLs with loaders. After that I load the sub-application in the same domain. On paper this should work, but the sub-application can't find the classes from the RSLs(the first exeption is that there is no definition for spark.components.Application)

  • Flex PMD view is always empty. Nothing happens when I run Flex PMD/Cut and Paste option

    Hi, "Nothing happens when I run Flex PMD/?Flex cut and paste option ". Please help !! I am using ???Flex Builder 3 + Eclipse 3.3 version. From the adobe forum, I came to know that Flex PMD plugin is tested from the Flex Builder 3 + Eclispe 3.4 version. Does this mean that it wont work on earlier versions of Eclipse. I have installed Flex PMD from the following link which contains version 1.0.0.v200912991712  ??http://opensource.adobe.com/svn/opensource/flexpmd/plugin/trunk/flex-pmd-eclipse-plugin-si te ?? and configured the Flex Plugin(jar files) of version 1.1 & 1.2. Do I need to configure Jar files of version 1.0 as Flex PMD plugin version is 1.0? FYI, there are no white spaces either in my workspace name or project name. Also changed the Java command line to temp directory. But still Flex PMD view is empty. Thanks in Advance

    Hi,
    "Nothing happens when I run Flex PMD/Flex cut and paste option ". Please help !!
    I am using Flex Builder 3 + Eclipse 3.3 version.
    From the adobe forum, I came to know that Flex PMD plugin is tested from the Flex Builder 3 + Eclispe 3.4 version.
    Does this mean that it wont work on earlier versions of Eclipse.
    I have installed Flex PMD from the following link which contains version 1.0.0.v200912991712  http://opensource.adobe.com/svn/opensource/flexpmd/plugin/trunk/flex-pmd-eclipse-plugin-si te
    and configured the Flex Plugin(jar files) of version 1.1 & 1.2.
    Do I need to configure Jar files of version 1.0 as Flex PMD plugin version is 1.0?
    FYI, there are no white spaces either in my workspace name or project name. Also changed the Java command line to temp directory.
    But still Flex PMD view is empty.
    Thanks in Advance

  • Can't run App on macbook Air

    Hi, I am trying to run an App on my Itunes (MacBook Air, latest model) but although the App has downloaded, i can't get it to run. It is a childrens' App which, when running, allows me to download the individual videos/songs (Gigglebellies). As my Ipad won't connect to the wifi for some unknown reason, I want to download them into my computer and then sync them.
    Any ideas on how to get the App to run on my Macbook Air?
    Thank you

    Thanks very much. That *DID* occur to me but it seemed too obvious to be true... oh well, now I have to figure out why my Ipad won't download (but it logs into the App Store so the wifi obviously works!!)
    Thanks again

Maybe you are looking for

  • Zoom item renderer out of scroller boundaries

    Hi everyone, hoping someone has the easy Answer.  I want to have an item renderer that can zoomIn and display outside the scroller boundaries for which it resides in.  I have Scroller  set depth property =1 | Datagroup (tile layout) depth=2 | custom

  • 'CONVT_NO_NUMBER'  run time error in custom program of upgraded ECC system.

    Hi, I am getting a run time error in custom program and st22 shows 'CONVT_NO_NUMBER' as the cause. We have just upgraded system to ECC6 and with 4.7 we were not getting this error. Can you please let me know if there is any SAP note to address this ?

  • Interval dates in Table V_T706B2

    Hello, During customizing of messages types (warning or error) when exepenses exceed limit, i wants to know how the fields "Start date" and "End date" works. Those date range can take into account a different limit expenses from one period to another

  • Data trabsfer using XML

    i need help in transefering data from one website to other, i had read some where that the data tranfer can be done thru XML can any please help me on that. the idea basically is to tranfer data from A to B and once the work is done B acknowldeges A

  • How to ignore credit amounts in oldest item credit check

    Hi, We've had an order that got put on hold because of the oldest item credit check.  The item is older than 15 days (our configuration setting), but the item is a credit memo, not an invoice.  Is there anyone to change this credit check so it will o