Flex :: Unit Testing - Create A Partial Mock Using Mockto?

Jul 13, 2010

Is it posible to create a partial mock using mockito-flex?

View 1 Replies


Similar Posts:


Unit Testing - Mock Out A Service Using Local Data In Flex 3?

Jul 9, 2009

I am writing a small flex application that will, eventually, call PHP services to perform its work. In the meantime, however, I would like to have it use local data in XML form to allow me to develop the Flex part independently of the data service.

What is the best way to do this? I want to emulate a service like this:

[Code]...

And invoke the service using issuerService.send(), populating my results as expected. How do I do this as though it were a RemoteObject instead, but keep my data local?

View 2 Replies

Flex :: Unit Testing Event Handlers

Jul 24, 2009

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 Replies

Flex :: Unit Testing Puremvc Based Application?

Jul 10, 2010

I have a flex application written using PureMVC framework.Now,I want to write tests.We are using FlashBuilder 4.Is FlexUnit sufficient for testing? Are there any issues you have faced while writing tests?

View 1 Replies

Flex :: BUilding Project With Unit Testing On Cruise Control?

Oct 15, 2009

I have a flex application build with actionscript 3 on flex builder with unit testing on it using flexUnit4. I want to build this project on my cruise control and i don't know how?

View 3 Replies

Flash :: Unit Testing A Library With AsUnit In Flex Builder?

Mar 3, 2010

I'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?

View 1 Replies

Flex :: Flash Builder 4 Standard Profiling & Unit Testing Alternatives

Mar 3, 2011

I 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 Replies

Flash :: Unit Testing Frameworks Or Libraries?

Feb 5, 2011

What are the best unit testing frameworks or libraries for AS3 programming? Specifically for projects that do not involve Flex, only Flash.

View 1 Replies

ActionScrip :: Unit Testing :: Reliable Mocking Framework T?

Jul 4, 2009

I'm looking for a reliable mocking framework for ActionScript. I've been using mock-as3, but I'm annoyed with what I feel is a hack-ish solution for triggering events. There are other a few other reasons why I'd like to have some options, but not sure if I necessarily need to go into them. I've also looked into Mock4AS, but the interface appears to be cumbersome.

View 3 Replies

Actionscript 3 :: Unit Testing With A Singleton Using Inversion Of Control

Jan 26, 2011

I am developing an AS3 application which uses a Singleton class to store Metrics in Arrays. It's a Singleton because I only ever want one instance of this class to be created and it needs to be created from any part of the app. The difficulty comes when I want to unit test this class. I thought adding public getters and setters would enable me to unit test this properly and would be useful for my app. I have read that changing to a Factory pattern will enable unit testing or using Inversion of control. This would of course make it more flexible too. I would like to know of people's thoughts on this matter as there are SO many conflicting opinions on this!

View 1 Replies

Actionscript 3 :: Setting Event.target For Using Events In Unit Testing?

Jan 30, 2012

I want to override flash.display.Loader and to dispatch my own Event with a my owntarget.contentHow can i override Event.target?Property is read only"

View 2 Replies

ActionScript 3.0 :: Design Class To Create A Mock Interface For A Game?

Jan 30, 2010

This may seem like a noobish question (and it is) but I have created some AS code to help assist in a project of mine in a level design class to create a mock interface for a game. It works fine on the first screen but once you hit any button and go to the next and then try to go back, the code breaks and I am not sure why. Ive tried multiple things to get it to work but nothing seems to help. The code I am using is

ActionScript Code:
storybtn.addEventListener(MouseEvent.CLICK, start1);
function start1(MouseEvent){
gotoAndPlay(2);
}

[Code]...

View 1 Replies

Flex :: Deserializing Data Into Mock Objects?

Nov 9, 2009

I'm writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I'd prefer not to generate the data in code like this:

var mockData = new Array();
mockData.push(new Foo(1, "abc", "xyz"));
mockData.push(new Foo(2, "def", "xyz"));
...

Rather I'd like to store the data in a file in some format that it can be easily serialized into my strongly-typed value objects (i.e. Foo above). Ideally I'd like to create the data in a self-describing format(i.e. what data type each field is, what class it represents, etc)

View 2 Replies

Iphone - Flex - Create Ipa For Testing On Device Using IPhone Packager?

Sep 11, 2010

i'm following Christian Cantrell guide for packaging AS3 application for iPhone, but i can't find a way to use the packager for creating an app for testing on device. I've tried with -target ipa-test and -target ipa-app-store but when i try to upload my app on the iPad, iTunes throws an error sayng that i'm not allowed.I've done a simple test using the Packager bundled width CS5 (with the same certificates) and everything gone right.

Is is possible to use CS5 Packager for Flex project ? (i know that flex isn't optimized for mobile)

View 2 Replies

Flex :: Include Unit Tests In A Library?

Nov 24, 2009

I'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.

View 4 Replies

Flexunit - Unit Test Flex Applications?

Jul 26, 2010

Flex is a client-side language and based on events. How can such events be mocked to allow unit testing?

View 2 Replies

Flex :: Make A Set Of Flex Components A Unit?

Nov 8, 2009

I'd like to make a series of components into a solid, consistently repeatable object. For example, suppose I have a "notification" template that I want to add to a notifications area every time something new happens. This template includes an icon (Image), text (label), and some space between these two things.

I want to take a template like that and make it so I can invoke it with a function like add_notification("icon", "text"). How would I go about doing that?

View 1 Replies

ActionScript 2.0 :: Create A Custom Class (Testing) That Would Create A Box When An Instance Of The Class Is Created

Aug 29, 2007

I've been playing around with custom classes. My objective was to create a custom class (Testing) that would create a box when an instance of the class is created. I've tried three different approaches, however only (3) seems to be showing up. I'm just curious why (1) or (2) doesn't work?

Also is there a better approach than (3)? Since at the moment it's been created on _root. I hope the box can only be accessible through the instance. Since I'd like to incorporate the whole idea of public, private, encapsulation, etc.

[Code]...

View 3 Replies

Flex :: Flash Builder: Change Default Suite For Unit Tests?

Dec 7, 2010

What are the steps to change your default suite when running unit tests in Flash Builder 4 with PureMVC?

View 2 Replies

Flex :: Continuous Integration - Run Unit Tests From The Command Line On Linux?

Mar 12, 2011

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 Replies

ActionScript 3.0 :: Create A Testing Server Path?

Apr 30, 2010

I want to be able to detect if a swf is loaded into an html page so that I can apply the appropriate server path. but if I am testing the file, I wanted it to ignore the server path so that I can see the file locally. How do I do this?

right now in order to test the swf, i need to manually change the path by commenting and uncommenting it out each time I export it. It's not very efficient

View 2 Replies

ActionScript 2.0 :: Testing A Function Is Complete Or Testing 2 Tweens Have Finished

Feb 2, 2011

I basically need to scale an object up when the user rollsover the button which I have created dynamically already and I need to make sure the object is fully scaled up before I can allow the user to scale it back down again.Ive tried putting 2 tweens (x and yscale) into a function but not sure how to check if the tweens have finished. Im assuming if I check the function is complete it wont take into consideration the tweens may still be running.

View 0 Replies

ActionScript 3.0 :: Create Random Object That Moves In Direction Upon Testing Movie

Oct 13, 2009

I have a flash programming research assignment using AS3.The assignment is to create a random object that moves in a direction upon testing movie. After 2-3 seconds the object needs to change random directions.

View 1 Replies

ActionScript 3.0 :: Create A Random Object That Moves In A Direction Upon Testing Movie

Oct 13, 2009

The assignment is to create a random object that moves in a direction upon testing movie. After 2-3 seconds the object needs to change random directions.

View 1 Replies

Flex :: Testing - Null Object Reference With Automation Enabled Flex-application At Preloader?

Jun 10, 2010

We are trying to automate our flex application. After adding automation libraries to our project we get the following exception:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.automation::AutomationManager$/addDelegates()
at mx.automation::AutomationManager$/addDelegates()
at mx.automation::AutomationManager$/addDelegates()

[code].....

We are using Flex 3.4 and maven2 to build the application.

View 2 Replies

Flex :: Make Testing Process Automatic Flex Release?

Mar 31, 2011

I posted the same question but I think it was not so clear. Now I am rephrasing my question with real problem.I have a flex application. It is basically a web application. On it I have a player that play avi files and some buttons and tabs along side.The application also have recording button that records that direct stream from an IP cam and store that stream on the media (USB). How can I automate function testing of such application. Like I have confusion that when I press the recording button but can I be sure that recording starts? I have tried RIATest and flexUnit 4.

View 2 Replies

Flex UI Testing Automation?

Oct 14, 2010

We have a flex based UI whose functionality (eg: login, logout) needs to be tested periodically in IE 7. Manual testing takes a lot of time and hence we want to automate it EDIT: We dont have the source code of this app uder test so cannot use something like FlexUnit. Is there a way to automate this testing?

I have heard of FleXmonkey, but have read negative reviews of it and hence wary of trying it.

[Code]...

View 4 Replies

ActionScript 3 :: Testing And Mocking With Flex

Dec 16, 2009

I am developing a "dumb" front-end, it's an AIR application that interacts with a "smart" LiveCycle server. There are currently about 20 request & response pairs for the application. For many reasons (testing, developing outside the corporate network, etc), we have several XML files of fake data, and if a certain configuration flag is set, the files are loaded, a specific file is parsed and used to create a mock response. Each XML file is a set of responses for different situation, all internally consistent. We currently have about 10 XML files, each corresponding to different situation we can run into.

This is probably going to grow to 30-50 XML files. The current system was developed by me during one of those 90-hour-week release cycles, when we were under duress because LiveCycle was down again and we had a deadline to meet. Most of the minor crap has been cleaned up. The fake data is in an object called FakeData, with properties like customerType1:XML, customerType2:XML, overdueCustomer1:XML, etc. Then in the FakeData constructor, all of the properties are set like this:

customerType1:XML = FileUtil.loadXML(File.applicationDirectory.resolvePath("fakeData/customerType1.xml");

And whenever you need some fake data (this happens in special FakeDelegates that extend the real LiveCycle Delegates), you get it from an instance of FakeData. This is awful, for many reasons, but it works. One embarrassing part is that every time you create an instance of FakeData, it reloads all the XML files. If there's a design pattern that is not Singleton that can handle this more elegantly. The constraints are:

No global instances can be required (currently, all the code dealing with the fake data, including the fake delegates, is pulled out of production builds without any side-effects, and it needs to stay that way). This puts the Factory pattern out of the running. It can handle multiple objects using the XML data without performance issues. The XML files are read centrally so that the other code doesn't have to know where the XML files are, and so some preprocessing can be done (like creating a map of certain tag values and the associated XML file).

View 2 Replies

Flex :: Automate Testing Of Application?

Mar 25, 2011

I want to automate testing of flex application. I have heard that Flex provides with classes that help you automate the testing. But I don't know where to find them and how to use them.

View 3 Replies

Flash :: Automate Testing In Flex?

Mar 25, 2011

Possible Duplicate: automate testing in Flex I want to automate testing of flex application. I have heard that Flex provides with classes that help you automate the testing. But I don't know where to find them and how to use them.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved