Flex :: FlexUnit Test Parsley Commands?
Aug 11, 2010I needed some guidance on how to use FlexUnit 4 within Flash Builder,to unit test a Parsley-frameworked Flex application.I have tried lookign at one or two sites but with no avail.
View 1 RepliesI needed some guidance on how to use FlexUnit 4 within Flash Builder,to unit test a Parsley-frameworked Flex application.I have tried lookign at one or two sites but with no avail.
View 1 RepliesIn FlexUnit 1 it is possible to access the name of the currently-running test using the TestCase.getName() method because all tests subclass TestCase. In FlexUnit 4, however, there's no base class for tests; the tests are identified by annotations. So, how can I replicate the getName() functionality in FlexUnit 4?
View 2 RepliesIs there a way to know how long one test took in FlexUnit? Is there a way to know how long all tests took?
View 1 RepliesFlex is a client-side language and based on events. How can such events be mocked to allow unit testing?
View 2 RepliesCan I use FlexUnit to unit test a File Upload and delete? Are those actions good examples of unit testing? I'm a little new to unit testing and trying to figure out what parts of my UI are suitable for unit tests.
View 1 RepliesI want to use the Parsley framework and I want to use GraniteDS for remoting. As of 2.1, GraniteDS generates AS3 service classes from your Java code as local proxies, and I want to use these classes in Parsley.[code]...
View 1 RepliesI am planning to start a new project in as3 and I want Dependency Injection in the project. I found that parsley and Robotlegs are two popular frameworks for implementing DI in AS3. Which is the best one among these two?
My main requirements are
lightweight
minimal learning
extensive documentation and active helping community
I have a doubt on Flex unit. Unit test cases are really required for flex application for displaying data.
View 1 RepliesI was wondering if Parsley framework is compatible for Flex Hero Mobile 4.5? I seem to get a warning saying it's not compatible.
View 2 RepliesHow do I compile from the Parsley framework repository to a Flex Library, so that i can use it with the latest 4.5 Flex framework?
View 1 RepliesI'm using
<parsley:ContextBuilder config="{Parsley_Config}"/>
in my main application. The problem is popup window cannot detect the configuration.
I am setting up FlexUnit to run from the command line and want to capture the results in JUnit format, so that I can pull them into Hudson.
View 1 RepliesI got 2 parsley configurations for my 2 elements.
A.xml
<fx:Declarations>
<!--Presenters-->
<presenters:ScenarioDefinitionPresenter id="scenarioDefinitionPresenter"/>
[Code].....
how to make that the "scenarioDefinitionPresenter" in both config share the same instance?
I'm looking for examples of command chaining in Parsley. What I mean by command chaining is when one command returns a result that is then immediately used to initiate another command. I ask this question here because the parsley forums have been down for 2 days.
View 1 Repliesi'm looking for a possibility to log messages in my flex 4.5 Project. This should cover errormessages in remoteClasses, errorHandler or messages typing by hand. After reading a lot of webpages, the solution from parslay looks good. i want to switch to this framework anyway. the benefit is the possibility to configure the logging behavior at runtime. but i don't understand the documentation. perhaps because I'm brandnew in parsley. Also google has no fitting result.
[Code]...
I am trying to use parsley framework in my flex application. Messaging System is one of the best feature that I see while using parsley, But I had a doubt, Does using Parsley framework in your application means that
[Code]....
I'm starting with Parsley and cannot manage to make the autowire working. My configuration is based on flex 4.5 and parsley 3.0.0. My application contains the folowing bootrap :
[code]....
The workaround is quite heavy as it requires adding in all my views the proprietary tags. what is wrong with my configuration?
I am using FlexUnit4 with FlashBuilder4. A lot of the classes that I'm unit testing make use of the Flash Logger.In the main app, we use TraceTarget so that the logging shows up in the trace window, which greatly aids in debugging:[code]I'd like to do the same thing for the unit test runner that FlashBuilder generates (FlexUnitApplication.mxml), but I'm not sure how to go about it. I could, of course, add TraceTarget to FlexUnit Application. mxml, but as the warning at the top of the file says,My question is: how do I get logging-to-trace to work with FlashBuilder and FlexUnit?
View 1 Repliesconfirm that Flash Builder 4 STANDARD comes bundled with FlexUnit 4 just like Flash Builder 4 Premium trial does? My company is interested in buying a few copies just for unit testing an existing code base. Don't want to spend the extra money if not necessary and Adobe support was completely useless. Also, any other considerations you can think of regarding Flash Builder 4 Standard & FlexUnit 4?
View 1 RepliesI'd like to set up my projects in Eclipse to run FlexUnit tests everytime I save my work.
I found an example with JUnit here : [URL]
How would you do it? Is it possible to run FlexUnit tests without Flash Player?
I am testing timerevent with flex unit. Follwing is the code which i tried ,it always goes to cmdFailed function (Time out function).I am new to flex unit.[code]
View 1 RepliesI've set up FlexUnit in my app, I want to debug a test using trace, but im not sure how to get flexunit to traceto the flashlog file. Here's part of my test task in ant, I thought the 'localtrusted' property would help, but it doesnt seem to. In my logs I get the testcases only, none of my traces which are inside my tests.
[Code]...
I am using Parsley framework. In my application, messaging system of Parsley is working fine for custom events.
But, in some areas, I have event listeners for MouseDown, MouseUp events on some components. How to deal with flash inbuilt events ?
I'm trying to test a custom Flex 4 skinnable component, using the FlexUnit UIImpersonator class. If I run my tests from a FlashBuilder Spark only project everything works fine. If I try to test from a project with the mx component set on the classpath I get a "getElementIndex not available in non Flex 4 projects" error.Can I unit test spark components in FlexUnits visual test environment while still having the mx component set on the classpath?
UIImpersonator delegates it's method calls to a "testEnvironment".The implementation used for this "testEnvironment" is decided by the VisualTest EnvironmentBuilder class and the FlexEnvironmentBuilder class. If the FlexEnvironmentBuilder class can find the "mx.core.Container" on the classpath it returns a MX environment, else a Spark environment. Only the spark environment has valid implementations for Flex 4 relevant method calls on the UIImpersonator - like the addElement method.
Can we run command prompt commands (like copy, rename etc) from an AIR or flex application?I thought of creating a bat file and running it using fscommand, but that does`nt serve my purpose.
View 1 RepliesI would like to execute a CMD command from my flex application programmatically. Something like
> mediaplayer.exe "mySong.mp3"
I also tried using fscommand but was not successful. While googling I learnt that its not supported by AIR. I would like to know if there is any other alternative for executing the commands.
I see the benefit of asynchronous commands (waiting for server responses...) but in my flex app it creates me more problem than anything. Here's what I want: EVERY command executes only after the previous one returned (to result or fault function) And I'd like to do this as easily as possible.. by the way the GUI must become irresponsive (maybe a wait message) while a long command is being executed (I could show the wait message in the execute function and remove it in the fault or result function..)
View 1 RepliesI have a dataGrid with a dataProvider "documents"A column of the datagrid has a labelFunction that gets the project_id field of the document, and returns the project name, from a bindable variable "projects"Now, I dispatch the events to download from the server the documents and the projects, but If the documents get downloaded before the projects, then the label function gives an error (no "projects" variable)Therefore, I must serialize the commands being executed: the getDocuments command must execute only after the getProjects command.In the real world, though, I have dozens of resources being downloaded, and those command are not always grouped together (so I can't for example execute the second command from the onSuccess() method of the first, because not always they must be executed together..)..
View 1 RepliesI have a parsley popup that can create another popup.The issue comes when I close the root popup, when I open the popup again and click on the child popup, it's actually opening 2 child popups.Any idea why this thing happen?
<parsley:PopUp open="{presenter.scenarioCreatePopup}" modal="true" center="true" reuse="false" id="hem" >
<views:ScenarioView width="100%" height="100%" id="scenarioView"/>
[code].....
In the FlexUnit wiki I've read about the very interesting SequenceRunner that was contributed by the Fluint folks. Now I am trying to run a test that is very similar to the example, however when executing the run() Method of the SequenceRunner instance, I get this exception:
Cannot add asynchronous functionality to methods defined by Test,Before or After that are not marked async
Error: Cannot add asynchronous functionality to methods defined by Test,Before or After that are not marked async at org.flexunit.async::AsyncLocator$/getCallableForTest()[C:Usersdmoor eDocuments\_ProductionFlex Unit 4GITFlexUnit4srcorgflexunitasyncAsyncLocator.as:82]
[Code]...