Flex :: Flash Builder: Change Default Suite For Unit Tests?
Dec 7, 2010What are the steps to change your default suite when running unit tests in Flash Builder 4 with PureMVC?
View 2 RepliesWhat are the steps to change your default suite when running unit tests in Flash Builder 4 with PureMVC?
View 2 RepliesI'm working on a general code library for ActionScript 3.0 called as3lib which includes several extensions to the core API and some useful functions. I've written several unit tests (using FlexUnit) to make sure everything is working correctly.
What is the best way to organize these tests in the library? Currently, I have all my code in src/ and my tests in test/ but I've set up a secondary Flex project to run the unit tests. I am also manually adding and removing the test files from the library when I want to run the tests.
Preferably one where the compiled library doesn't include the test files but I don't need two separate projects to test them.
I am setting up a FlexBuilder build under Hudson/Jenkins on a Linux system. I want to execute our unit tests, but do it without using the standard GUI-based test runner.
View 1 RepliesI've been trying to setup a working method for unit testing flex libraries using Flex Builder. i have tried setting up a standard flex lib project and using Ant to compile and run the units tests. But this means that when something does go wrong and I want to use the flex builder debugger I cannot do so.
So my next plan is to setup the library as a normal as3/flax/air app as I can use the concept of a main class to run the unit tests. I can then compile the actual library code using Ant.
I could also setup a separate companion project who's sole task is to run units tests on the lib. But this is a little awkward as each library now requires two projects to manage. How do other people develop flex libraries and use unit tests to test/develop/debug the code?
When creating an Actionscript Project in Flex builder 3 an application class is automatically created and dropped in the root of your source folder. In my case my source folder is called src/.Is it possible to change the default application class to a class which is not directly in the root of the src folder? It seems when right-clicking on class files which are in sub packages the 'Set as Default Application' option is not selectable.Is this done on purpose by Adobe to enforce all pure AS projects to have their application class residing in the top-most package?
View 3 RepliesI want to profile and unit test my application in Flash Builder 4 Standard. Adobe says I need to upgrade to the Premium version but I can't pay the money they want right now.Are there any alternatives for unit testing and profiling?
View 2 RepliesThis is kinda related to my other question: flex dictionary bug? The HashMap has a method getValues() which returns an array of values:
[cODE]....
the loop for (var key:* in map) iterates the keys of the dictionary map, but it seems its implementation does it in some random way. What is the best way to write a test since I don't know what the array returned by getValues method will contain? I thought I could do it by calling the sort method, and compare the values, is there a better way to do it?assertEquals(map.getValues().sort(), "value A,value B,value C,value X,value Y,value Z");
I know you can change Flash builders default "Main source folder" by right clicking on the project properties and going to the "Flex Build Path" ...but how do you change that by default for all new projects? I prefer the folder name "src_flex" rather than "src" when I create my projects.You can do this for PHP in "PHP>>New Project Layout" preferences but I don't see anything similar for Flash Builder or know if there's a (hidden) file I could edit to do this.
View 1 RepliesI'd like to be able to automatically open text files in my editor of choice from within flash builder when I right click, open with 'Default editor'.
Can't seem to find this in preferences.
I just got my MacBook and am trying out the Flash BUilder on said platform. I've installed Firefox and Google Chrome on my MacBook but I can't seem to find a way to set which browser would launch my Flex apps whenever I hit the Run button inside Flash Builder. As far as I know, I can locate the Browser property on the Project Properties on my Windows copy of Flash Builder but I couldn't over here at my Mac. Any thoughts?
View 1 RepliesI have a nicely working actionscript project in Flash Builder 4.5. However, I'd like to change the directory name that it sits in. Seems Flash Builder breaks if I manually change this directory name using the operating system. Is there a way to change this in Flash Builder so it doesn't get mad at me, or other workaround?
View 2 RepliesI need an horizontal layout on my forms, they look like this:
[Code]...
I'm very confused about the new Flex 4 architecture...
How to create horizontal layout container like HGroup but with border and border radius?In this example there is some default height:
<s:BorderContainer width="100%" borderWeight="2" cornerRadius="5">
<s:layout>
<s:HorizontalLayout/>
[code]....
I want it to have height of the heighest element in container. Like in HGroup. Add: Why is height for above example BorderContainer equal to 112 ?
How can I skin, or otherwise change, the default cursor (white arrow) displayed in a Flex application?
View 3 RepliesDoes anyone know if there is a way to make the new Package Explorer window in Flash Builder emulate Flex Builders 'Flex navigator' window?
Bottom line is I don't always need to peer into SWC's, and I don't like having a 'default package' automatically created for me. Not sure why the interface wasn't made simpler, allowing access to more power and complexity only if necessary. I want to focus on the code, not on how to navigate and use the bells and whistles in the coding environment.
I just upgraded to Flash Builder 4 (beta 2) from Flex Builder 3 which I have been using since it came out. Problem: All the projects that were in my workspace from Flex Builder 3 did not carry over into Flash Builder 4 (e.g. in the "Flex Navigator" view if FB3). Flash Builder 4 now uses the .FXP format to manage projects, but Flex Builder 3 did not. Is there an easy way to get all my projects back into Flash Builder 4?
View 2 RepliesI have the Creative Suite CS5 and Flash CS5 does not have the Quiz Templates option.
Yet, if you purchase the Elearning Suite 2, that version of Flash CS5 does have the Quiz Templates.
Is there anyway to get the Quiz Templates for my version of Flash CS5?
When I export assests for actionscript the defaul package is empty it there change to change it? To each time I export library asset for actionscritp default value for class field will contain package?
ex.
Class: assets.MyClass
I tried to create some, such as "Drag and Drop" or "True and False." However, the instructions weren't adequate. I couldn't figure out what Adobe was telling me to do. I went online to Adobe, and tried to find tutorials.It seems, to me, that there Quiz Learning Interactions are included only in the version of Flash CS5 that comes with the e-Learning suite.
View 27 RepliesSometimes there is a name conflict between classes in two different libraries, but I almost exclusively use one over the other. Unfortunately, the one I am using is not showing up as the first entry and I have to press the down arrow to pick it.
View 1 RepliesOn my old computer (Windows XP) I was using Flashpaper to convert jpg files to swf files that can be panned and zoomed. It worked great for my website. Here is an example. [URL] I just purchased Adobe Creative Suite 5 Design Premium for my new computer (Windows 7). I was told that it included the ability of Flashpaper to create the pan/zoom swf files. I can't find this ability. Please tell me where it is located or that I need to purchase Flashpaper for my new computer. Please note, I use Photoshop, Illustrator and Dreamweaver, but the only Flash I use is the swf to pan and zoom via Flashpaper. Please keep this in mind when answering my question, i.e. I probably need specifics if the functionality is located in Flash.
View 1 RepliesI'm setting up a functional test suite for an application that loads an external configuration file. Right now, I'm using flexunit's addAsync function to load it and then again to test if the contents point to services that exist and can be accessed.
The trouble with this is that having this kind of two (or more) stage method means that I'm running all of my tests in the context of one test with dozens of asserts, which seems like a kind of degenerate way to use the framework, and makes bugs harder to find. Is there a way to have something like an asynchronous setup? Is there another testing framework that handles this better?
I have an AIR project that I was working on Flash Builder 4.5 which now I'm trying to import to my updated Flash Builder 4.5.1 and it is prompting me to fix some paths before the import is completed. I'm kinda clueless what I should put in those fields.
[URL]
The project access a web server to retrieve data using JSON.
how do change the settings of a flash movie so that it's default will be on medium or low?
View 1 RepliesI want to write integration tests for a Flex application using pureMVC architecture.The back-end is sqlite.
View 1 RepliesI am trying to migrate a project from Flash Builder 4.0 to Flash Builder 4.5. After Flash Builder prompts me to choose my new SDK, I choose 4.5, Then I get the following error:" error "The required skin state 'disabledWithPrompt' is missing".
View 1 RepliesHow can I change the default publish preview player from HTML to Flash in Adobe Flash CS5.5??
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?
What methods do you use to unit test event handlers, particularly if they require information from the event (such as mouse coordinates, or the target of the event)? Is the most common practice to just refactor the behavior into a method that does the lifting while the handler just extracts information from the event, or are there effective ways to simulate event dispatch in FlexUnit or Fluint?
View 1 RepliesFlex is a client-side language and based on events. How can such events be mocked to allow unit testing?
View 2 Replies