FlexUnit4 with Flex Application compiled with Flex SDK 3.0?

The Flex application that I work on is compiled with Flex SDK 3.0.

Now I want to unit test this application using FlexUnit4.

I'm not able to find that flexunit4 for Flex SDK 3.0 in downloads page (http://www.flexunit.org/?page_id=14).

So I decided to download the FlexUnit 4 source code and compile it using the Flex SDK 3.0.

I downloaded the source code of the page of downloads (http://github.com/flexunit/flexunit/).

I need help in the compilation of the projects. I want to know what are the configuration changes that I need to run the build.xml ant task in my local machine.

Please help me out here.

@crazyghost81 - http://opensource.adobe.com/wiki/display/flexunit/Get+Source+Code

Tags: Adobe Open Source

Similar Questions

  • With the help of native Extensions with Flex SDK 4.6.0

    Hello

    I try to get the example of Mac OS x Bonjour everybody works with the Flex SDK 4.6.0 kit. I've changed in all the places where there 4.5.1 / etc, got the XCode project to compile properly, but I got stumped on a problem at step 3. The result I get at the end of step 3 is:

    + "/ Applications/Adobe Flash Builder 4.6/sdks/4.6.0/bin/adt ' - package - PKCS12 - keystore src/assets/test.pfx - storepass stores no - target ane airrt.ane src/extension.xml CFC - src/assets/com.airrt.extensions.swc-plateforme MacOS - x 86 - C src/assets/platform/mac.

    Swc file is invalid. The NameSpace extension requires version SWF 13 or lower.

    / Users/owenbennett/Documents/projects/Flash/Native Extensions OSX/NativeExtensions

    Any ideas?


    Thank you

    Owen

    Too bad

    Figured it out. Here are the steps that I followed, using the kit 4.6.0 Flex SDK and XCode 4.1:

    1. 00 - create cert-> go.sh and 01 - create CFCS-> go.sh and 03 - create ane-> go.sh 04 - create dmg-> go.sh and 05 - running on adl-> go.sh and goall.sh

    change

    Flex_sdk = / Applications/Adobe\ Flash\ Builder\ 4.5/sdks/4.5.1-air3.0

    TO

    Flex_sdk = / Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0

    2. 02 - create the extension of the platform-> mac-> TestNativeExtension-> TestNativeExtension.xcodeproj

    Open the project in XCode, select the root of the project, and then TARGETS-> TestNativeExtension-> build settings

    change Search-> Search framework paths paths

    Debug: "$(SYSTEM_APPS_DIR) / Adobe Flash Builder 4.5/sdks/4.5.1-air3.0/runtimes/air/mac.

    Release date: "$(SYSTEM_APPS_DIR) / Adobe Flash Builder 4.5/sdks/4.5.0-air3.0/runtimes/air/mac.

    "$(SYSTEM_APPS_DIR) / Adobe Flash Builder 4.5/sdks/4.5.1-air3.0/runtimes/air/mac.

    TO

    Debug: "$(SYSTEM_APPS_DIR) / Adobe Flash Builder 4.6/sdks/4.6.0/runtimes/air/mac.

    Release date: "$(SYSTEM_APPS_DIR) / Adobe Flash Builder 4.6/sdks/4.6.0/runtimes/air/mac.

    If you want to check it is OK to build, don't forget to change the target (at the top of the run key) for TestNativeExtension > My 32-bit Mac

    3 03 - create ane-> src-> extension.xml

    change

    http://ns.Adobe.com/air/extension/2.5">

    TO

    http://ns.Adobe.com/air/extension/3.1">

    4 04 - create dmg-> src-> NativeExtensionTest - app.xml and 04 - create dmg-> src-> asset-> NativeExtensionTest - app.xml and 05 - running on adl-> src-> NativeExtensionTest - App.xml

    change

    http://ns.Adobe.com/air/application/3.0">

    TO

    http://ns.Adobe.com/air/application/3.1">

    and who should build for you!

    Owen

  • Problem with AdvancedDataGrid in Flex SDK 3.3

    Hello Forum,

    I downloaded and installed Flex SDK 3.3. Once I did my environment for the 3.3 SDK compiler complained that he cannot find the AdvancedDataGrid component in the path. After some research, I was able to solve this problem by downloading Flex 3.3 Data Visualization Components of http://www.adobe.com/products/flex/flexdownloads/. Then I had to unzip the file downloaded in the /sdk_3.3.0_install_dir/

    I don't think that I had to go through that in my previous installations - 3.2 and 3.1. No one knows the reason for this step both download and installation?

    Also, I would use a new class of vector in my future development, anyone know what version of the SDK it provides?

    Much appreciated,

    Mike

    Hi Mike, the two-step process is because the AdvancedDataGrid and graphic elements are not part of the Flex SDK, they are additional components that come along Flex Builder 3 Pro

  • How to compile flex builder flex sdk project?

    I built a flex with flex builder project and wish to modify and maintain in an environment of the flex SDK.

    I wonder if there is no tool in flex sdk to do this.

    Thank you

    You can use Ant tasks

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=anttasks_1.html

  • Flex Builder error: Namespace 2.6 in the application descriptor file must be equal to or greater than the minimum version 3.1 required by Flex SDK.

    "2.6 Namespace in the application descriptor file must be equal to or greater than the minimum version 3.1 required by the Flex SDK kit."

    what it means?

    to run the application

    (1) I need lower version 3.1

    (2) I need a newer version than the 3.1

    I'm confused.

    You can change the project xml file. I solved like this.

  • Flex sdk 4.1 request show

    My request consists of 4 modules developed in flex sdk 4.0, has clusters of resource (Eng. and Spanish), now, we have designed the 5th module with flex sdk4.1 a eng and bundles of resources, when I

    Compile and run the app (5 modules) whole under unix with sdk4.0environment, each module is loading fine, until the charges of 5 modules, when 5th module loading, for the first time Spanish isn't

    loading, the entire page is empty, when I switch back to English it takes care of everything, and then you click on Spanish it works fine, every time when I change the viewstack the Spanish does not work for the

    first time. I debugged the issue, it gives no error,

    method Intialize() is called, creationcomplete is not called for main component viewstack.

    I changed all the 5 modules for bending sdk4.1 and respected and it works very well without Spanish loading problem.

    My question is their anyway I can use use sdk4.0 and run the application.

    they all matter to develop a module with sdk4.1 and compling it with 4.0?

    Your first message says that you had created the 5th module in a different SDK.  Who is this?

  • Support TLS 1.2 Air Desktop Version-Flex SDK 4.5.1

    Hi all

    I'm new to this forum. I'm working on the desktop air application. recently of Salesforce announced we'll disable the TLS 1.0 since their servers and they will support the TLS Protocol 1.1,1.2. Here is test url that we can use to test in the Office of the air: https://tls1test.salesforce.com/s/. I went through some of the messages in this forum and have not found similar post about this issue. I found one, but it did not help either: done FLEX and AIR support TLS 1.1 + encryption?  


    I wrote the code to verify that the url below. SecureSocket connection is successful. but UrlRequest is a failure, because it uses TLS 1.0 version to connect to the server, since Air app uses the TLS 1.0, the handshake protocol is a failure. I found this info in wireshark: TLSv1 Record Layer: alert (level: Fatal, Description: failure of the handshake)

    Screen Shot 2015-11-12 at 11.57.16 AM.png

    My goal is to spend my desktop client to support TLS 1.2 Protocol. I use the version of the Flex SDK 4.5.1 to build the application. Can you please help me understand this issue?

    1. Is there anyway to set the version of the Protocol TLS for UrlLoader and UrlRequest?
    2. I need a client certificate to authenticate with the server for TLS 1.2 Protocol?
    3. This will work if the upgrade from Flex and Air SDKS, I tried, it doesn't work, but do not know what I have tried is correct or not?

    Import flash.display.Sprite;

    Import flash.events. *;

    Import flash.net.URLLoader;

    Import flash.net.URLRequest;

    Import flash.net.URLRequestDefaults;

    Import flash.net.URLRequestHeader;

    Import flash.net.URLRequestMethod;

    import flash.net.URLVariables;

    private function {URLRequestHeaderExample()}

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = pouvez;

    configureListeners (loader);

    SecureSocketExample();

    var header: URLRequestHeader = new URLRequestHeader ('Permission', ' sampleToken');

    var request: URLRequest = new URLRequest ("""https://tls1test.salesforce.com/services/oauth2/token"""); / /https://tls1test.salesforce.com/

    //request.data = new URLVariables ("name = John + Doe");

    Request.Method = URLRequestMethod.GET;

    URLRequestDefaults.idleTimeout = 1200000;

    request.requestHeaders.push (header);

    try {

    Loader.Load (request);

    } catch (error: Error) {}

    trace() "Unable to load the document asked." );

    }

    }

    private function configureListeners(dispatcher:IEventDispatcher):void {}

    dispatcher.addEventListener (Event.COMPLETE, completeHandler);

    dispatcher.addEventListener (Event.OPEN, openHandler);

    dispatcher.addEventListener (ProgressEvent.PROGRESS, progressHandler);

    dispatcher.addEventListener (HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);

    dispatcher.addEventListener (SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

    dispatcher.addEventListener (HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);

    dispatcher.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);

    dispatcher.addEventListener (HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpRespoStatusHandler);

    }

    private function completeHandler(event:Event):void {}

    var loader: URLLoader = URLLoader (event.target);

    trace ("completeHandler:" + loader.data "');

    }

    private function openHandler(event:Event):void {}

    trace ("openHandler:" + event "");

    }

    private function progressHandler(event:ProgressEvent):void {}

    trace ("progressHandler loaded:" + event.bytesLoaded + "total:" + event.bytesTotal);

    }

    private function securityErrorHandler(event:SecurityErrorEvent):void {}

    trace()"securityErrorHandler:" ( + event); "."

    }

    private function httpStatusHandler(event:HTTPStatusEvent):void {}

    trace()"httpStatusHandler:" ( + event); "."

    }

    private function httpRespoStatusHandler(event:HTTPStatusEvent):void {}

    trace()"httpRespoStatusHandler:" ( + event); "."

    }

    private function ioErrorHandler(event:IOErrorEvent):void {}

    trace()"ioErrorHandler:" ( + event); "."

    }

    private var secureSocket:SecureSocket = new SecureSocket();

    private function SecureSocketExample()

    {

    secureSocket.addEventListener (Event.CONNECT, onConnect)

    secureSocket.addEventListener (IOErrorEvent.IO_ERROR, onError);

    try

    {

    secureSocket.connect ( "tls1test.salesforce.com", 443);

    }

    catch (error: error)

    {

    trace (Error.ToString);

    }

    }

    private function onConnect (event: Event):void

    {

    trace() "connected". );

    secureSocket.close ();

    }

    private function onError (error: IOErrorEvent):void

    {

    trace (error.text + "," + secureSocket.serverCertificateStatus);

    }

    []] >

    @kumarkasimala

    Our quality assurance team has been able to reproduce this problem.  We consider you cela a bug and will start working on fixing it for a future release.  Our internal bug for this number is 4095988 in case you need to reference it later.

    Thank you

    Chris

  • FlexUnit 4, Flash Builder 4 and Flex SDK 4

    I'm trying to create a project using these in combination. When I created my Tester under 4 SDK, it lacks everything trying to initialize the test. I decided to build FlexUnit 4 with 4 SDK, but it doesn't seem to find the mx namespace.

    Is there a version of FlexUnit 4 built for 4 SDk? If this isn't the case, are there some rules for the conversion of a project so it can be built under 4 SDK.

    I know that Flash Builder 4 will build FlexUnit and rune TuirnKey FlexUnit tests if I leave it with SDK 3.2, but I'm looking forward to learning and using SDK 4.

    They FlexUnit 4 library can e compiled under the Flex 3 and Flex 4 SDK, work too well either.

    The error you see actually is realted to the rider of the user interface. If you use in your project, you will not have a problem. (With Flex4 technically unnecessary one because the results can be reported by the plugin FlexUnit in Report Designer)

    If you don't want a UI 4 Flex, there is a prototype in SVN

    http://opensource.Adobe.com/svn/opensource/FlexUnit/branches/4.x/FlexUnit4UIRunnerSpark/

    However, I'm sure that there are several bugs because it has not been updated in a month or two, it was just a POC.

    Mike

  • Building Flex SDK

    I have download the Adobe Flex SDK 4.6, modified the DropDownController.as file, run the ant script to generate her updated the SDK.

    I created the Flex with this updated SDK project, but still the old code is reflecting instead of the updated SDK.

    What I am doing wrong.

    (PS: I try to avoid making the monkey patching)

    I think monkey patching is much easier.

    If you use RSL, then your changes will not be in the official RSL and you will need to monkey patch.

    If you are linking static libraries then what you should work even if Flash Builder requires a reboot that it can cache the old SWCs.

    -Alex

  • Unknown Flex SDK: «Extension Builder 4.5»

    Hi-

    I investigated this during a few days and I can't find an answer. I have a license Extension Builder 2 and am subscribed creative cloud. My ideal scenario is to build my extension with Fb 4.7. However, this seems so an unsupported configuration...

    My second best option is to build with 4.6:

    I install CS Extension Builder 2.0 in FlashBuilder 4.6.

    Installation seems to fill.

    I build a simple helloworld project.

    I target for SC 6.

    I select run as Adobe Indesign Extension

    I get the error: Unknown Flex SDK: «Extension Builder 4.5»

    Of course, my project is "Extension Builder 4.5" but this SDK is not installed. Or unrecognized. Or...

    Help, please. I encountered this on two separate computers (both mac os 10.8.3) and I am puzzled.

    I solved this. I have redownloaded and installed 4.6 FB.

  • MouseCursorData can be used with the SDK 3.6?

    Hello!

    playerglobal.swc in the title of 'libs/Player/10' has been substituted for the one under "libs/player/10.2".

    -target-player has been defined in 10.2.0.

    When you use MouseCursorData, there is no error in compilation.

    However, when running or debugging the application Exception occurs.

    VerifyError: Error #1014: class not found flash. ui::MouseCursorData.

    playerglobal.swc for flash player 11 can be used with the SDK 3.6.

    the value target-Player 11.0.0.

  • Where the Flex SDK 4.5.0.18623 SDK?

    http://fpdownload.Adobe.com/pub/Flex/SDK/builds/flexundefined/flex_sdk_4.5.0.18623.zip

    I am trying to download the latest version of the SDK of heroes with from this open source address of the Adobe Labs site, but I get the error 404 below:

    Not found

    The requested URL /pub/flex/sdk/builds/flexundefined/flex_sdk_4.5.0.18623.zip was not found on this server.

    http://opensource.Adobe.com/wiki/display/FlexSDK/download+Flex+hero

  • Flex Builder is not compatible 3.0.1 Flex SDK 3.5.0.

    Hello


    We were using Flex 3.0.1 SDK + Flex Builder 3.0.1 combination and worked very well. Then due to some other business requirements had to upgrade the Flex SDK 3.5.0. Now the problem that we face is that the old Flex Builder 3.0.1 is not compatible with the new SDK (version 3.5.0).


    What is the solution? Is there a Flex Builder compatible with Flex 3.5 SDK available... I googled a bit, but failed. Is there any necessary changes in Flex Builder 3.0 files?

    Any eventual solution will be really useful. Thanks in advance.

    Hello

    Have you tried to update Flex Builder 3.0.2 and then using Flex SDK 3.5?

    Updates are available here: http://www.adobe.com/support/flex/downloads_updaters.html#flex3

    Alternatively, Flash Builder 4 also provides full support for Flex SDK 3.5.

    Thank you

    Andrew

    Senior Product Manager, Flash Builder

  • Basic question on the Flex SDK kit:

    I'm a noob and can not afford Flex Builder, so I downloaded the Flex SDK kit.  I have the Java runtime and my sys JAVAHOME variable value.  I ran the

    C:\Program Files\FlexSDK\samples\explorer\build.bat

    .. .and it ran for a few minutes (I assume with success since I saw not the word "error" appear anywhere in the command line window).

    Now - I don't know if Component Explorer had been there before in the original of the Flex SDK kit download (where all which I copied into a directory I made called "C:\Program Files\FlexSDK\", but he is now inside the directory "C:\Program Files\FlexSDK\samples\explorer\".)  I don't know whether or not my batch.bat running created this "Explorer.html".  T it?

    My next question.  When I opened this Explorer.html - I received the order to Flex files to view sample - I see nothing but gray.

    I don't know what to do, but this is compounded by the fact that I am new to all of this - I don't know what to expect or the other.

    Can anyone help point me in the right direction?  Thank you.

    It looks like a write permissions problem. The Program Files directory has restrictions more stringent than other directories and mxmlc fails silently write the swf file.

    Please, create a "FlexSDK" directory directly under C:\ or in your own user directory, expand your SDK it and try again.

  • Invalid accept header with PHP SDK 5.1 against 1.5.1 vCloud Director

    In PHP 5.1 SDK samples do not work against 1.5.1 vCloud Director?  Any code that I am trying to write with PHP 5.1 SDK really will work against my vCD 1.5.1?  Or it will fail as the samples?  Is there something I can do for samples and all this work?

    My question seems very similar to http://communities.vmware.com/message/2142668#2142668.  I've had some success with the SDK 1.5 samples against my 1.5.1 vCloud Director.  But when I've upgraded to the PHP 5.1 SDK, all I could get was "invalid accepts header" messages, like this:

    PHP Fatal error: Eception exception 'VMware_VCloud_SDK_Exception' with the message "POST ". https://vCloud.mydomain.edu/API/login failed, return code: 400, error: <? xml version = "1.0" encoding = "UTF-8"? >

    " < error xmlns =" http://www.VMware.com/vCloud/v1.5 "stackTrace =" com.vmware.vcloud.api.rest.handlers.exceptions.BadRequestRestApiException: invalid application accepts the header

    at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.getBadRequestApiException(ErrorHandler.java:71)

    at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.errorBadRequest(ErrorHandler.java:44)

    at sun.reflect.GeneratedMethodAccessor11639.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)

    at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)

    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:133)

    to org.ap in /home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/ServiceAbstract.php on line 178

    After changing VCLOUD_API_VERSION in library/VMware/VCloud/Constants.php of 5.1 to 1.5, I get this:

    PHP Fatal error: Eception exception 'VMware_VCloud_SDK_Exception' with the message "POST ". https://vCloud.mydomain.edu/API/login failed, return code: 401 error,:, request data:
    ' in /home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/ServiceAbstract.php:178
    Stack trace:
    #0 home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/Service.php(114): VMware_VCloud_SDK_Service_Abstract-> message ('https://vcloud...) "(, 200) "
    #1 home/bob/lib/vcloudPHP-5.1.0/samples/login.php(78): VMware_VCloud_SDK_Service-> login ('vcloud.mydomain...', Array, Array)
    #2 {hand}
    lifting in /home/bob/lib/vcloudPHP-5.1.0/library/VMware/VCloud/ServiceAbstract.php on line 178

    A standard API call seems to work:

    curl - test id = true u scripty@system h ' Accept: application / * + xml; " version 1.5 =" https://vCloud.mydomain.edu/API/sessions

    Enter password for the user "scripty@system": Home


    HTTP/1.1 200 OK

    Date: Wednesday, November 28, 2012 17:43:56 GMT

    x vcloud-authorization: rxpTQIswdd15HNz + hZku6BCutGljF5VLUrt0M8x + IGI =

    Set-Cookie: vcloud-token = rxpTQIswdd15HNz + hZku6BCutGljF5VLUrt0M8x IGI plus; Guarantee; Path = /.

    Content-Type: application/vnd.vmware.vcloud.session+xml;version=1.5

    Date: Wednesday, November 28, 2012 17:43:56 GMT

    Content-Length: 1009


    <? XML version = "1.0" encoding = "UTF-8"? >

    " < session xmlns =" http://www.VMware.com/vCloud/v1.5 "user = org"scripty' = 'System' type="application/vnd.vmware.vcloud.session+xml' href =" https://vCloud.mydomain.edu/API/session/ "" xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi: schemaLocation = " http://www.VMware.com/vCloud/v1.5 http://vcloud.the.usg.edu/api/v1.5/schema/master.xsd" > "" "

    "" < link rel = "low" type="application/vnd.vmware.vcloud.orgList+xml" href = " https://vCloud.mydomain.edu/API/org/ "/>

    "" < link rel = "low" type="application/vnd.vmware.admin.vcloud+xml" href = " https://vCloud.mydomain.edu/API/Admin/ "/>

    "" < link rel = "low" type="application/vnd.vmware.admin.vmwExtension+xml" href = " https://vCloud.mydomain.edu/API/admin/extension "/>

    "" < link rel = "low" type="application/vnd.vmware.vcloud.query.queryList+xml" href = " https://vCloud.mydomain.edu/API/query "/>

    "" < link rel = "entityResolver" type="application/vnd.vmware.vcloud.entity+xml" href = " https://vCloud.mydomain.edu/API/entity/ "/>

    < / session >

    Version switching in gross 1.5 to 5.1 API call causes the accept header message invalid, which is not surprising, now that I became familiar with the format and the requirement to accept header.
    For example, can code samples from the SDK 5.1 actually work against 1.5.1 API?
    Thank you!!!

    Hello

    PHP Fatal error: Eception exception 'VMware_VCloud_SDK_Exception' with message "POST https://vcloud.mydomain.edu/api/login failed, return code: 401 error,:, request data:"

    [Rajesh] Seems to me like a problem of password username. As it clearly says 401.

    After changing VCLOUD_API_VERSION in library/VMware/VCloud/Constants.php of 5.1 to 1.5, I get this:

    [Rajesh] SDK users should not change the code in the library. This is a bug with the SDK for not allowing users to change the version of API through the library (connection method accepts the version as well) rather than change in the library.
    Kind regards
    Rajesh Kamal.

Maybe you are looking for