Quantcast
Channel: Adobe Community : Popular Discussions - FlexUnit
Viewing all 25673 articles
Browse latest View live

How to set source for openzoom multiscale image

0
0

How to set source for openzoom multiscale image

 

 

I am giving the source to multiscale image as "dzc_output.xml"

 

which is genereated through 'Deepzoom composer' but i am geeting the issue

 

 

MultiScaleImage.mxml:

 

<openzoom:MultiScaleImage id="image" left="0" right="0" top="0" bottom="0" source="../nature/dzc_output.xml">

<openzoom:controllers>

<openzoom:KeyboardController/>

<openzoom:MouseController/>

</openzoom:controllers>

<openzoom:transformer>

<openzoom:TweenerTransformer/>

</openzoom:transformer>

<openzoom:constraint>

<openzoom:CompositeConstraint>

<openzoom:ZoomConstraint maxZoom="200" minZoom="0.5"/>

<openzoom:VisibilityConstraint visibilityRatio="0.5"/>

<openzoom:CenterConstraint/>

</openzoom:CompositeConstraint>

</openzoom:constraint>

</openzoom:MultiScaleImage>

 

 

 

dzc_output.xml:

<?xml version="1.0" encoding="utf-8"?>

<Collection MaxLevel="8" TileSize="256" Format="jpg"

NextItemId="3" ServerFormat="Default"

xmlns="http://schemas.microsoft.com/deepzoom/2008">

<Items>

<I Id="0" N="0"

Source="nature/dzc_output_images/_1920x1200_widescreen_wallpaper_natur e_01188_elevation_1920x1200.xml">

<Size Width="1920" Height="1200" />

<Viewport Width="3.0399999999999996" X="-0" Y="-0" />

</I>

<I Id="1" N="1" Source="nature/dzc_output_images/71b61ce2b93e87bcc9e6fb8617437483.xml ">

<Size Width="1920" Height="1200" />

<Viewport Width="3.0400000000000014" X="-1.0200000000000007"

Y="-0" />

</I>

<I Id="2" N="2" Source="nature/dzc_output_images/143_size_1920x1200_002.xml">

<Size Width="1920" Height="1200" />

<Viewport Width="3.0400000000000018" X="-2.0400000000000018"

Y="-0" />

</I>

</Items>

</Collection>


What happened to IExternalDependencyRunner in 4.0-rc-1?

0
0

Hi all,

 

I just upgraded to FlexUnit 4.0-rc-1 (using FlexMojos).  Flex Unit is a fantastic framework with many great features!  We wrote a custom dependency loader that implements IExternalDependencyRunner to load XML data for many of our tests, and we are now getting the following error:

 

Error: InterfaceIExternalDependencyLoader was not found.

 

Indeed, the whole org.flexunit.runner.external package is no longer present.  The wiki still indicates this is the way to load external dependencies.  Are these classes still coming?  Is there a new way to do this?

 

Many thanks!

-Brian

Failure Trace stack frame paths are incorrect

0
0

I am using FlexUnit heavily, and appreciate it mightily.

 

However, there is one very powerful annoyance in the Failure Trace window in Eclipse/FlashBuilder.  When I double-click on a stack frame, FlexUnit attempts to open the source file using the wrong path.

 

For instance, my assert is thrown on the following stack frame:

 

**[ at my.package::MyTestCase/myTestFunction(MyTestCase.as:127) ]

 

When I double-click the stack frame, it commands the editor to open file:

 

/RootFolder/ProjectFolder/src/test/flex/my/package/MyTestCase.as

 

Which the editor complais that 'does not exist'.

 

When I inspect the properties of the actual file resource, Eclipse/FlashBuilder shows mee that the path is:

 

/ProjectFolder/src/test/flex/my/package/MyTestCase.as

 

Note the lack of '/RootFolder'.  I'm not sure why FlexUnit is tacking that on there, but it is causing the Editor View to choke.  /RootFolder is the folder that my project folders _happen to be in_, but I think it is irrelevant as far as my workspace is concerned.  My workspace folder is somewhere else entirely, if that is important (actually in /RootFolder/../workspaces/something/ FWIW)

 

Any workarounds?

 

Thanks!

JW

FlexUnit tests fail due to missing sound card on headless CI server

0
0

Hi,

 

I have set up Jenkins CI server with Xvnc to run FlexUnit tests during the build process.  Everything worked fine until I started working with Sound - now Flash Player is started, throws a bunch of errors complaining about the missing sound card (which obviously, a headless virtual server doesn't have), and stops execution of the tests entirely. 

 

I am working around this problem by only running sound-related tests on my local machine, but since the entire purpose of a CI server is to make sure every commit runs through ALL the available unit tests, I was wondering if there is any way to make Flash Player "think" a sound card is available, much in the same way that Xvnc allows me to work without a physical monitor.  Does anyone here have experience with this kind of problem?  Or better yet: Is there a best practice or solution to this problem?

 

Thanks in advance,

 

w3ltraumpirat

How to install adobe on my website?

FlexUnit Eclipse/Flex Builder 3 Plugin - Feedback Please

Building on headless linux

0
0

Hi

 

I am trying to run my flexunit4 tests on a headless linux bamboo CI server.

 

I have got xvfp that runs the flashplayer for me. I am using flashplayer 10 for linux.

 


My problem is that the build timesout after the policy file is sent.

 

These are the steps it manages to take:

 

[flexunit] Creating local trusted file
[flexunit] opened server socket
[flexunit] accepting data from client
[flexunit] start of test run
[flexunit] sent policy file

 

 

Then it hangs and finally times out. Any pointers ?

 

When i run it locally on my windows machine, it runs fine and no policy file is requested, why is that ?

Running FlexUnit4 tests via ant & Hudson?

0
0

I'm just starting to move towards test driven development and I'm trying to figure out how to get continuous integration with FlexUnit4 working for our Flex projects & Hudson.

 

I've got our project compiling in Hudson via ant but I'm not sure how to go about having ant/Hudson run the FlexUnit4 tests? Is there an ant task I'm supposed to use or something somewhere?

 

Is there any documentation I should be reading? Forum/blog posts? I see a bunch of stuff about opening sockets and whatnot but I'm not sure if that's how it's supposed to work.

 

Thanks for any pointers.


Delegate class to access non-public methods during testing?

Socket timeout on Mac

0
0

Hello,

 

I am trying to run the flexunit ANT task on a Mac but keep getting the following error.

 

[flexunit] Stopping server ...
[flexunit] End of test data reached, sending acknowledgement to player ...
[flexunit] Closing client connection ...
[flexunit] Closing server on port [1024] ...

"Socket timeout waiting for flexunit report"

 

I see the test runner launch in Flash Player but then nothing else happens after that.  I'm assuming FlexUnit isn't able to communicate with flash player but at this point i am not sure how to remedy the problem.

 

Does anyone have any suggestions on how to get flexunit and ANT working on a Mac?

 

Thanks.

Unit testing Main Application with URL fragment

0
0

Hi,

 

I have written an application that performs login, register and reset password. As part of this, the user receives an e-mail with a URL containing fragments to direct them to the correct start screen on the application. An example:

 

http://localhost:8080/Server/Client-debug/Client.html#reason=register& email=des@someplace.com&code=8846748080/Server/Client-debug/Client.html#reason=register&email=des@somepla ce.com&code=884674

 

I have written the code to deal with the URL in the main Client.mxml file and all of this works. the Client.mxml dispatches a particular Event depending on the content of the URL, but I would like to retrofit FlexUnit4 testing for this. I have no idea how to set this up so that my tests will take a URL and I assert that a particular event has been dispatch.

 

Could you please help me out with setting this up to test? There will be three different URLS used to test

 

http://localhost:8080/Server/Client-debug/Client.html#reason=reset&ema il=des@someplace.com&code=8846748080/Server/Client-debug/Client.html#reason=reset&email=des@someplace. com&code=884674

 

http://localhost:8080/Server/Client-debug/Client.html#reason=register& email=des@someplace.com&code=8846748080/Server/Client-debug/Client.html#reason=register&email=des@somepla ce.com&code=884674

 

http://localhost:8080/Server/Client-debug/Client.html#

 

Thanks

Des

AsyncToken Unit testing with Mocks

0
0

Hi,

 

I have been working with mockalate and trying to find a way to unit test my login code. The problem I am running into is that although the code works when I run the app, the unit tests are failing for some unknown reason.

 

There are a few parts to the actual test and they are:

 

Swiz: Calls a delegate function and returns an AsyncToken

Mocolate: Mocks the delegate function and returns an ASyncToken ResultResponse.

 

From what I have been able to troubleshoot, the app code itself handles the mock response correctly and assigns the login vales in the code under test, but as soon as I get back into the unitTest code, the values are blank. I see that there is a scopechain where all the values are, but they are cleared in the unit. Inside the code being tested, the mock performs as required and the model.username is set, but outside the app code, the value is blank? Basically, I have hit a brick wall in trying to mock this. Could someone help out?

 

Thanks

Des

 

 

Code for reference:

===============

 

        // Deal with a login request
        [Mediate(event="AuthenticationEvent.LOGIN")]
        public function login(authenticationEvent:AuthenticationEvent):void {

 

            // Handle successful login.
            var loginResultEvent:Function = function(event:ResultEvent ):void  {
           
                // Write the username to the model for convenience
                loginModel.username = authenticationEvent.username;
               
                eventDispatcher.dispatchEvent(new AuthenticationEvent(AuthenticationEvent.LOGGEDIN));
            }
           
            // Handle login failure.
            var loginFaultEvent:Function = function(faultEvent:FaultEvent):void {
                eventDispatcher.dispatchEvent(new AuthenticationEvent(AuthenticationEvent.LOGIN_FAIL));
            }

 

            // Log into the Remote server channelset login
            serviceHelper.executeServiceCall(loginDelegate.login(authenticationEv ent.username,authenticationEvent.password),
                loginResultEvent, loginFaultEvent);

 

        }

 

 

This is called by the UnitTests

=======================

 

[Before]
        public function runBeforeEveryTest():void
        {
            fixture = new LoginController();
           
            // Mock up the delegate
            fixture.loginDelegate = loginDelegateMock;

            fixture.loginModel = new LoginModel();

            fixture.eventDispatcher = new EventDispatcher();

        }

 

    [Test(async)]

        public function loginTest_with_valid_user():void
        {
            // Create the authenticationEvent the Presenter would have sent
            authenticationEvent = new AuthenticationEvent(AuthenticationEvent.LOGIN);
            authenticationEvent.username = testUsername;
            authenticationEvent.password = testPassword;
           
            var result:Object = testURLCode;
            var token:AsyncToken = new AsyncToken();
            var resultEvent:ResultEvent = new ResultEvent(ResultEvent.RESULT, false, false, result, token);
           
            // Mock the response
            mock(loginDelegateMock).method("login").args(authenticationEvent.user name, authenticationEvent.password).returns(token).answers(new ResultAnswer(token, resultEvent));
           
            //execute the method
            fixture.login(authenticationEvent);
           
            Assert.assertEquals("Username is in Model", testUsername, fixture.loginModel.username);
        }

 

 

Trace from run

===========

 

Username is in Model - expected:<a@b.com> but was:<>
at flexunit.framework::Assert$/failWithUserMessage(Assert.as:591)
at flexunit.framework::Assert$/failNotEquals(Assert.as:394)
at flexunit.framework::Assert$/assertEquals(Assert.as:98)
**[ at com.wl.sfx.unit.controller::LoginControllerTests/loginTest_with_valid _user(LoginControllerTests.as:141) ]
at Function/http://adobe.com/AS3/2006/builtin::apply
at flex.lang.reflect::Method/apply(Method.as:208)
at ReflectiveCallable/run(FrameworkMethod.as:297)
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync(Fra meworkMethod.as:171)
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync(Fr ameworkMethod.as:186)
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate(Invo keMethod.as:77)
at org.flexunit.internals.runners.statements::ExpectAsync/evaluate(Expec tAsync.as:544)
at org.flexunit.internals.runners.statements::StackAndFrameManagement/ha ndleTimerComplete(StackAndFrameManagement.as:141)
at flash.events::EventDispatcher/dispatchEventFunction
at flash.events::EventDispatcher/dispatchEvent
at flash.utils::Timer/tick

FlexUnit 4.1 Beta 1 turnkey project doesn't build

0
0

Getting the following error after setting up the project:

 

 

Could not resolve <flexUnitUIRunner:TestRunnerBase> to a component implementation.    flexunit-test/src    FlexUnit4Turnkey.mxml    line 86

 

Any ideas? Clearly, things have moved around quite a bit (always a fun thing to push out in a minor release), but I can't figure out what I should be using instead of TestRunnerBase.

FlexUnit 0.9 to FlexUnit 4 question

0
0

Hi me again with a question.

 

Our Flex applications have a back-end to retrieve and set information from/to. This back-end server requires a login (and logout when done). Now every bit of functionality that is tested via this back-end has seperate cases based on groups of functionality (there are about 150 - 200 different calls grouped in about 20 test cases).

 

In FlexUnit 0.9 the suite was setup as follows:

 

 

publicclass EIBTestSuite extends TestSuite     {          public function EIBTestSuite()          {               // Verify that the servers are online               this.addTest(new EibCase("VerifyEuroportTest"));               this.addTest(new EibCase("VerifyServiceTest"));                               // Login               this.addTest(new UserCase("LoginTest"));                               // Payment               this.addTest(new PaymentCase("paymentStart"));               this.addTest(new PaymentCase("paymentEntry"));               this.addTest(new PaymentCase("removePaymentEntry"));               this.addTest(new PaymentCase("loadStandingPayments"));                               // Other cases                               // Logoff               this.addTest(new UserCase("LogoutTest"));          }          }

 

 

As you can see the Login and Logout test are in the same case but are called not directly after eachother. This way we don't need to do the login / logout calls for every case we have.

 

Now I'm trying to convert our tests to FlexUnit 4 but I have a problem with converting the above code to FlexUnit 4. Because when I would change the above code to the following all cases after the UserCase would fail because there is no user logged in.

 

 

[Suite]     [RunWith("org.flexunit.runners.Suite")]     publicclass EIBTestSuite     {          public var eibCase:EibCase;          public var userCase:UserCase;          public var paymentCase:PaymentCase;          // Other cases     }

 

 

 

What we could do is add the login and logout calls to each seperate case and ensure the order in which the tests are executed. But first of all this is a lot of repetition for the same piece of code and second if the login procedure would ever change it would have to be changed in all the cases. Neither is desirable.

 

Is there a best-practices way for changing the described situation to FlexUnit 4?

 

Thanks for the help,

Rick Veenstra

How to Verify using Unit Testing

0
0

Hi,

 

How do we unit test using ASMocking   whether an Event is called and next screen is displayed

 

Tools i am using

ASMOCK

Flexunit 4


Providing a reference to the Stage in a Pure AS3 Environment

0
0

Hi All,

 

I'm having real problems trying to get a reference to the Stage in FlexUnit 4.1 TestCases.  I am using the FlexUnit Ant Tasks to generate the TestRunner.mxml file which I have modified to bootstrap the VisualTestEnvironmentBuilder like so:

 

     VisualTestEnvironmentBuilder.getInstance(stage);

 

However, when FlexUnit tries to run each testcase, I get the following stacktrace:

 

<testcase classname="com.moshigames.api::TestContentAPIImpl" name="loadFails_completeCallbackCalled" time="5" status="error"><error message="Error #1034: Type Coercion failed: cannot convert org.fluint.uiImpersonation.actionScript::ActionScriptVisualTestEnviro nment@5671191 to mx.core.IUIComponent." type="com.moshigames.api::TestContentAPIImpl.loadFails_completeCallba ckCalled" ><![CDATA[TypeError: Error #1034: Type Coercion failed: cannot convert org.fluint.uiImpersonation.actionScript::ActionScriptVisualTestEnviro nment@5671191 to mx.core.IUIComponent.

at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild()

at mx.core::Container/addChildAt()

at mx.core::Container/addChild()

at org.fluint.uiImpersonation.actionScript::ActionScriptEnvironmentBuild er/buildVisualTestEnvironment()

at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/buildVisualT estEnvironment()

at org.flexunit.internals.runners.watcher::FrameWatcher/getStage()

 

Am I missing something obvious here?

 

Once possible solution to this problem would be to use a simple ServiceLocator type class for retrieving a stage reference in the Unit Test Cases; Something simple like:

 

     FlexUnitStageLocator.stage;

 

Which could be bootsrapped as part of the TestCase setup - this would be enourmously beneficial for testing Clients which have to interace with the Stage.

 

Thanks

jonny.

How to resolve "Failed to open the panel socket"?

0
0

 

I am trying to run some of our Flexunit tests on Unix OS.  To setup my environment I followed all of the steps on http://docs.flexunit.org/index.php?title=Ant_Task document.  My environment is now:

 

 

OS: RedHat 5 64bit

 

SDK 4.1.0

 

Flexunit version 4.1.0-8-as3_4.1.0.16076

 

Flash Player 10.3.181.34

 

Apache Ant 1.8.2

 

 

 

I am trying to compile and run the provided sample application “FlexUnit4SampleCIProject” with the included ant build script.  The application gets compiled fine but flash player fails to run the tests.The only error message that I see in the console is “Failed to open the panel socket”  Below is the complete log from the console.  Does anyone know what I am doing wrong?

 

 

 

Any help is greatly appreciated!

 

====================================================================== =============

[demomictay@rdcesx09113 FlexUnit4SampleCIProject]$ ant -v clean package
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Trying the default build file: build.xml
Buildfile: /home/demomictay/proj/FlexUnit4SampleCIProject/build.xml
Detected Java version: 1.6 in: /usr/java/jdk1.6.0_26/jre
Detected OS: Linux
parsing buildfile /home/demomictay/proj/FlexUnit4SampleCIProject/build.xml with URI = file:/home/demomictay/proj/FlexUnit4SampleCIProject/build.xml
Project base dir set to: /home/demomictay/proj/FlexUnit4SampleCIProject
parsing buildfile jar:file:/home/demomictay/apache-ant-1.8.2/lib/ant.jar!/org/apache/to ols/ant/antlib.xml with URI = jar:file:/home/demomictay/apache-ant-1.8.2/lib/ant.jar!/org/apache/to ols/ant/antlib.xml from a zip file
[property] Loading Environment env.
Build sequence for target(s) `clean' is [clean]
Complete build sequence is [clean, init, compile, test, package, ]

 

clean:
   [delete] Deleting directory /home/demomictay/proj/FlexUnit4SampleCIProject/target
   [delete] Deleting /home/demomictay/proj/FlexUnit4SampleCIProject/target/bin/TestRunner. mxml
   [delete] Deleting /home/demomictay/proj/FlexUnit4SampleCIProject/target/bin/TestRunner. swf
   [delete] Deleting /home/demomictay/proj/FlexUnit4SampleCIProject/target/bin/Main.swf
   [delete] Deleting directory /home/demomictay/proj/FlexUnit4SampleCIProject/target/bin
   [delete] Deleting directory /home/demomictay/proj/FlexUnit4SampleCIProject/target/report
   [delete] Deleting directory /home/demomictay/proj/FlexUnit4SampleCIProject/target/dist
   [delete] Deleting directory /home/demomictay/proj/FlexUnit4SampleCIProject/target
Build sequence for target(s) `package' is [init, compile, test, package]
Complete build sequence is [init, compile, test, package, clean, ]

 

init:
    [mkdir] Created dir: /home/demomictay/proj/FlexUnit4SampleCIProject/target
    [mkdir] Created dir: /home/demomictay/proj/FlexUnit4SampleCIProject/target/bin
    [mkdir] Created dir: /home/demomictay/proj/FlexUnit4SampleCIProject/target/report
    [mkdir] Created dir: /home/demomictay/proj/FlexUnit4SampleCIProject/target/dist

 

compile:
    [mxmlc] Loading configuration file /home/demomictay/sdk/frameworks/flex-config.xml
    [mxmlc] /home/demomictay/proj/FlexUnit4SampleCIProject/target/bin/Main.swf (58111 bytes)

 

test:
[flexunit] Validating task attributes ...
[flexunit] OS: [Linux]
[flexunit] Generating default values ...
[flexunit] Using the following settings for compilation:
[flexunit]     FLEX_HOME: [/home/demomictay/sdk]
[flexunit]     player: [flash]
[flexunit]     sourceDirectories: ["/home/demomictay/proj/FlexUnit4SampleCIProject/src/main/flex"]
[flexunit]     testSourceDirectories: ["/home/demomictay/proj/FlexUnit4SampleCIProject/src/test/flex"]
[flexunit]     libraries: ["/home/demomictay/proj/FlexUnit4SampleCIProject/libs/flexunit-4.1.0- 8-as3_4.1.0.16076.swc","/home/demomictay/proj/FlexUnit4SampleCIProject /libs/flexunit-4.1.0-8-flex_4.1.0.16076.swc","/home/demomictay/proj/Fl exUnit4SampleCIProject/libs/flexunit-aircilistener-4.1.0-8-4.1.0.16076 .swc","/home/demomictay/proj/FlexUnit4SampleCIProject/libs/flexunit-ci listener-4.1.0-8-4.1.0.16076.swc","/home/demomictay/proj/FlexUnit4Samp leCIProject/libs/flexunit-flexcoverlistener-4.1.0-8-4.1.0.16076.swc"," /home/demomictay/proj/FlexUnit4SampleCIProject/libs/flexunit-uilistene r-4.1.0-8-4.1.0.16076.swc","/home/demomictay/proj/FlexUnit4SampleCIPro ject/libs/fluint-extensions-4.1.0-8-4.1.0.16076.swc"]
     [null] Executing '/usr/java/jdk1.6.0_26/jre/bin/java' with arguments:
     [null] '-jar'
     [null] '/home/demomictay/sdk/lib/mxmlc.jar'
     [null] '--version'
     [null]
     [null] The ' characters around the executable and arguments are
     [null] not part of the command.
     [null] Output redirected to property: SDK_VERSION
[flexunit] Found SDK version: 4
[flexunit] Created test runner at [/home/demomictay/proj/FlexUnit4SampleCIProject/target/bin/TestRunner .mxml]
[flexunit] Compiling test classes: [org.flexunit.demo.EchoPanelTest, org.flexunit.demo.SampleTest]
[flexunit] Executing '/usr/java/jdk1.6.0_26/jre/bin/java' with arguments:
[flexunit] '-Xmx256M'
[flexunit] '-jar'
[flexunit] '/home/demomictay/sdk/lib/mxmlc.jar'
[flexunit] '+flexlib'
[flexunit] '/home/demomictay/sdk/frameworks'
[flexunit] '-output'
[flexunit] '/home/demomictay/proj/FlexUnit4SampleCIProject/target/bin/TestRunner .swf'
[flexunit] '-source-path'
[flexunit] '/home/demomictay/proj/FlexUnit4SampleCIProject/src/main/flex'
[flexunit] '/home/demomictay/proj/FlexUnit4SampleCIProject/src/test/flex'
[flexunit] '-library-path+=/home/demomictay/proj/FlexUnit4SampleCIProject/libs/f lexunit-4.1.0-8-as3_4.1.0.16076.swc'
[flexunit] '-library-path+=/home/demomictay/proj/FlexUnit4SampleCIProject/libs/f lexunit-4.1.0-8-flex_4.1.0.16076.swc'
[flexunit] '-library-path+=/home/demomictay/proj/FlexUnit4SampleCIProject/libs/f lexunit-aircilistener-4.1.0-8-4.1.0.16076.swc'
[flexunit] '-library-path+=/home/demomictay/proj/FlexUnit4SampleCIProject/libs/f lexunit-cilistener-4.1.0-8-4.1.0.16076.swc'
[flexunit] '-library-path+=/home/demomictay/proj/FlexUnit4SampleCIProject/libs/f lexunit-flexcoverlistener-4.1.0-8-4.1.0.16076.swc'
[flexunit] '-library-path+=/home/demomictay/proj/FlexUnit4SampleCIProject/libs/f lexunit-uilistener-4.1.0-8-4.1.0.16076.swc'
[flexunit] '-library-path+=/home/demomictay/proj/FlexUnit4SampleCIProject/libs/f luint-extensions-4.1.0-8-4.1.0.16076.swc'
[flexunit] '-debug=false'
[flexunit] '-headless-server=true'
[flexunit] '/home/demomictay/proj/FlexUnit4SampleCIProject/target/bin/TestRunner .mxml'
[flexunit]
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit]
     [null] Error redirected to property: MXMLC_ERROR
     [null] Loading configuration file /home/demomictay/sdk/frameworks/flex-config.xml
     [null] /home/demomictay/proj/FlexUnit4SampleCIProject/target/bin/TestRunner. swf (104083 bytes)
[flexunit] Using the following settings for the test run:
[flexunit]     FLEX_HOME: [/home/demomictay/sdk]
[flexunit]     haltonfailure: [true]
[flexunit]     headless: [true]
[flexunit]     display: [7000]
[flexunit]     localTrusted: [true]
[flexunit]     player: [flash]
[flexunit]     port: [1024]
[flexunit]     swf: [/home/demomictay/proj/FlexUnit4SampleCIProject/target/bin/TestRunner .swf]
[flexunit]     timeout: [60000ms]
[flexunit]     toDir: [/home/demomictay/proj/FlexUnit4SampleCIProject/target/report]
[flexunit] Setting up server process ...
[flexunit] Starting server ...
[flexunit] Starting xvnc
[flexunit] Attempting start on :7000 ...
[flexunit] Executing 'vncserver' with arguments:
[flexunit] ':7000'
[flexunit]
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit]
[flexunit] Opening server socket on port [1024].
[flexunit] Waiting for client connection ...
[flexunit]
[flexunit] New 'rdcesx09113:7000 (demomictay)' desktop is rdcesx09113:7000
[flexunit]
[flexunit] Starting applications specified in /home/demomictay/.vnc/xstartup
[flexunit] Log file is /home/demomictay/.vnc/rdcesx09113:7000.log
[flexunit]
[flexunit] Setting DISPLAY=:7000
[flexunit] Entry [/home/demomictay/proj/FlexUnit4SampleCIProject/target/bin] already available in local trust file at [/home/demomictay/.macromedia/Flash_Player/#Security/FlashPlayerTrust /flexUnit.cfg].
[flexunit] Executing 'gflashplayer' with arguments:
[flexunit] '/home/demomictay/proj/FlexUnit4SampleCIProject/target/bin/TestRunner .swf'
[flexunit]
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit]
[flexunit] Failed to open the panel socket
[flexunit] Failed to open the panel socket
[flexunit] Failed to open the panel socket
[flexunit] Failed to open the panel socket
[flexunit] Failed to open the panel socket
[flexunit] Failed to open the panel socket
[flexunit] Failed to open the panel socket
[flexunit] Failed to open the panel socket
[flexunit] Failed to open the panel socket
[flexunit] Failed to open the panel socket
[flexunit] Failed to allocate the agent. Exitting...
[flexunit] Failed to invoking the agent: No such file or directory
[flexunit] Cannot launch the agent
[flexunit] The messenger is now down
[flexunit]
[flexunit] Stopping server ...
[flexunit] End of test data reached, sending acknowledgement to player ...
[flexunit] Closing client connection ...
[flexunit] Closing server on port [1024] ...

====================================================================== =============

The flexunit wiki main page is corrupted. http://docs.flexunit.org/index.php?title=Main_Page

FocusManager in FlexUnit4?

0
0

I'm trying to write just a simple test ensuring that a TextInput control has focus when a component is loaded. However focusManager is null even after I've used the UIImpersonator class to setup my component. Am I doing it wrong or is this a bug?

 

UIImpersonator.addChild(sc);

Assert.assertEquals(sc.itemInput.name, Object(sc.focusManager.getFocus()).name);

flexunit task hangs after "Receiving data ..."

0
0

Hello,

 

I am trying to launch the Ant script found in FlexUnit4SampleCIProject but it just doesn't works.

Last message in console is "[flexunit] Receiving data ..." and the tests in the UI are not started and showing 0/100.

 

I am using latest standalone debug flash player : flashplayer_10.0.42.34_sa_debug.exe

 

I use flextasks from Flex4 4.0.0.13549 as the flexTasks.jar that comes with the project doesn't work:

BUILD FAILED
X:\wb_fb4\FlexUnit4SampleCIProject\build.xml:47: The class not found in jar file: mxmlc.jar

 

 

Buildfile: X:\wb_fb4\FlexUnit4SampleCIProject\build.xml
init:
compile:
    [mxmlc] Loading configuration file F:\Program Files (x86)\Adobe\Adobe Flash Builder Plug-in Beta 2\sdks\4.0.0.13549\frameworks\flex-config.xml
    [mxmlc] X:\wb_fb4\FlexUnit4SampleCIProject\target\bin\Main.swf (469843 bytes)
test:
    [mxmlc] Loading configuration file F:\Program Files (x86)\Adobe\Adobe Flash Builder Plug-in Beta 2\sdks\4.0.0.13549\frameworks\flex-config.xml
    [mxmlc] X:\wb_fb4\FlexUnit4SampleCIProject\target\bin\TestRunner.swf (989770 bytes)
[flexunit] Validating task attributes ...
[flexunit] Generating default values ...
[flexunit] Using default snapshot file path [X:\wb_fb4\FlexUnit4SampleCIProject\target\report\snapshot.jpg]
[flexunit] Using the following settings:
[flexunit]     haltonfailure: [false]
[flexunit]     headless: [false]
[flexunit]     localTrusted: [false]
[flexunit]     player: [flash]
[flexunit]     port: [1024]
[flexunit]     snapshot: [false]
[flexunit]     snapshotFile: [X:\wb_fb4\FlexUnit4SampleCIProject\target\report\snapshot.jpg]
[flexunit]     swf: [X:\wb_fb4\FlexUnit4SampleCIProject\target\bin\TestRunner.swf]
[flexunit]     timeout: [60000ms]
[flexunit]     toDir: [X:\wb_fb4\FlexUnit4SampleCIProject\target\report]
[flexunit]     verbose: [true]
[flexunit]     xcommand: [xvfb]
[flexunit] Setting up server process ...
[flexunit] Starting server ...
[flexunit] OS: [Windows]
[flexunit] Launching player:
[flexunit] Executing 'rundll32' with arguments:
[flexunit] 'url.dll,FileProtocolHandler'
[flexunit] 'X:\wb_fb4\FlexUnit4SampleCIProject\target\bin\TestRunner.swf'
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit] Opening server socket on port [1024].
[flexunit] Waiting for client connection ...
[flexunit] Client connected.
[flexunit] Setting inbound buffer size to [262144] bytes.
[flexunit] Receiving data ...

 

Here I can wait long time, and if I close the UI, i get those bonus lines :

 

[flexunit]
[flexunit] Stopping server ...
[flexunit] End of test data reached, sending acknowledgement to player ...
[flexunit] Closing client connection ...
[flexunit] Closing server on port [1024] ...

 

BUILD FAILED
X:\wb_fb4\FlexUnit4SampleCIProject\build.xml:68: java.util.concurrent.ExecutionException: java.lang.NullPointerException

 

Total time: 53 seconds

 

 

Am I doing something wrong?

 

Thank you in advance for your help,

Adnan

Viewing all 25673 articles
Browse latest View live




Latest Images