Flex :: Access The Test Name Of A FlexUnit 4 Test?

Jan 21, 2010

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


Similar Posts:


Flex :: How Long One Test Took In FlexUnit

Jul 1, 2009

Is 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 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 :: FlexUnit Test Parsley Commands?

Aug 11, 2010

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

Actionscript 3 :: FlexUnit: Unit Test File Upload?

Mar 27, 2012

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

Flex :: Test Spark Components In FlexUnits Visual Test Environment

Sep 17, 2011

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.

View 1 Replies

Professional :: Buttons Don't Work When Test Movie/Test Scene?

Aug 4, 2011

My buttons only work when I click on them on the stage while having the "enable simple buttons" option on. They do not work if I try to "test movie," "test scene" and publish it to a SWF. Nothing responds whenever I am in these modes. I am using Adobe Flash Professional CS5 Actionscript 2.0.
 
This is the code that I put in for the buttons:
 
[Code].....

View 5 Replies

ActionScript 3.0 :: Movie Works In Flash Test But Not Html Test?

Aug 30, 2009

i have a movie that has worked fine in past during Html test but ive been doing some dubugging using the flash test latly and it runs fine here but when i go back and try to test in Html mode no errors come just the movie never fully starts (starts up about as much as if there was an error).

View 5 Replies

ActionScript 2.0 :: Test Movie Works But Test Scene Does Not

Mar 19, 2009

I have two scenes in my flash file and in scene 1, first button takes you to frame 2 where movie clip is -works

on (release) {
gotoAndStop("scene1",2);
}
second button takes you to frame 3

but on scene 2 that performs same function as scene 1, the first button

on(press){
gotoAndStop("scene2",2);
}

instead of going to frame 2 goes to frame 3. and the second button goes correctly to frame 3.that happens when i test scene! when i test movie all buttons work properly.

View 1 Replies

Flash :: Packet Loss Test Like In Ping Test From Flash Technologies?

Feb 22, 2012

Does any one have a idea about how to do a packet loss test like in ping test from flash technologies (Flash or Flex)?

View 1 Replies

ActionScript 3.0 :: Keep Getting Access Of Undefined Property When Test Fla

Sep 22, 2009

I keep getting access of undefined property for "who" when I test this fla. Who is a movieclip in my library and it has an instance name of "who" in my .fla. Why do I keep getting this? What tiny thing I'm I forgetting? This is the same way I've built my other sites. here is my code....

[Code]...

View 3 Replies

Actionscript 3 :: Access Of Any Domain (for Test) And Copied It Directly Into File Server?

Mar 15, 2012

In code I use this before URLLoader (swf will be used with many different domains and this will be changing in time):

Security.allowDomain("*");

In http:[url]...., I have this for test:

<?xml version="1.0" ?>
<cross-domain-policy>[code].........

I used [url].... to create access for any domain (for test) and copied it directly into file server and also test if [url].... is accessible. I checked flashlog.txt and found that [url].... is loaded but will be ignored because of its syntax error - its generated by crossdomainmaker website and also correct with specifications and examples over internet, so what can I do?

View 1 Replies

Flex :: How To Test Application Using QTP 10

Dec 28, 2010

I'm wondering is there any way to automate testing of Flex applications using HP QTP 10?

View 1 Replies

Flex :: Test That Event Is Dispatched Twice?

Jul 22, 2009

I'm testing some event dispatch code in a Flex app, using FlexUnit's addAsync method for testing that events are dispatched. Great so far, I can ensure that at least one event was fired. However, I want to be a bit more detailed; I want to ensure that exactly the set of events I'm expecting are dispatched. Is there a useful test pattern (or, even, different test framework -- I'm flexible!) to accomplish this?I tried this code, but it doesn't seem to get invoked the second time:[code]

View 2 Replies

Flex :: Test For An Event Sequence?

Feb 10, 2010

I have a component that, on creation, dispatches two events to populate data fields. The events should remain separate because they're used elsewhere for distinct actions.

I want to write an asynchronous flexunit test to confirm that these events are both sent. The problem is, they're both variants of the same event.

Here's the code:

[Code]....

The thing is, this only tests that the first get data event is dispatched, and worse, depends on the order of event dispatch. How can I test that both of these events are eventually sent out by this method, regardless of their order?

View 2 Replies

Flex :: Run AsUnit Test Runner From Ant?

Feb 28, 2010

How can you run AsUnit test runner from Ant?

I'm on the Mac OS so I use:

open -a "flash player" tests.swf

How can I make this cross platform?

View 1 Replies

AS3 :: Flex - Test Existence Of Xml Attribute?

Jan 13, 2011

What is the best method to test the existence of an attribute on an XML object in ActionScript 3 ttp://martijnvanbeek.net/weblog/40/testing_the_existance_of_an_attribute_in_xml_with_as3.html is suggesting to test using

if ( node.@test != node.@nonexistingattribute )

and I saw comments suggesting to use:

if ( node.hasOwnProperty('@test')) { // attribute qtest exists }

But in both case, tests are case sensitiveFrom the XML Specs : "XML processors should match character encoding names in a case-insensitive way" so I presume attribute name should also be match using a case-insensitive comparison.

View 2 Replies

Flex :: Test Latency Of Messages?

Aug 14, 2011

I have a system where clients connect via http streaming channels and use Producer and Consumer classes to dispatch and receive messages. I need to test the latency of messages in a way that adequately simulates real-world usage when the server is under load. I have 3 ideas for how this may be accomplished. Has anyone tried and succeeded or failed with these methods?

View 1 Replies

Flex :: Test Vkontakte Application With Local WS?

Sep 23, 2009

I've developed a Vkontakte application by using Adobe Flex technology with WCF as my server side. The whole thing works perfectly on localhost, but after uploading it to Vkontakte - the WS doesn't seem to work and I get this error[code]...

View 1 Replies

Flex :: Test To See If An Object Is An Associative Array?

Oct 1, 2009

Is there a test to see if an Object is an associative array?

View 2 Replies

Flex :: How To Handle Framework Events For ACE Test

Dec 23, 2009

In ACE Flex 3 , there is a topic "Handle Framework Events". Any document which lists all the 'required' framework events for ACE test? So I could know what are "framework" events and will focus on them.

View 1 Replies

AS3 :: Flex : Use Hamcrest To Test For Membership In An IList?

Jun 1, 2010

I'm using Flex 3.3, with hamcrest-as3 used to test for item membership in a list as part of my unit tests:

var myList: IList = new ArrayCollection(['a', 'b', 'c']).list;
assertThat(myList, hasItems('a', 'b', 'c'));

The problem is that apparently the IList class doesn't support for each iteration; for example, with the above list, this will not trace anything:

for each (var i: * in myList) { trace (i); }

However, tracing either an Array or an ArrayCollection containing the same data will work just fine.What I want to do is (without having to tear apart my existing IList-based interface) be able to treat an IList like an Array or an ArrayCollection for the purposes of testing, because that's what hamcrest does:

override public function matches(collection:Object):Boolean
{
for each (var item:Object in collection)
{

[code]....

View 3 Replies

Flex :: Extract Test Results From Flash?

Apr 5, 2011

I've got a suite of unit tests for my project (pure AS3), and they all work brilliantly outputting standard JUnit XML to the trace output window. However, when I tried to get my test suite running on our continuous integration server I ran up against a wall.Flash is a sandboxed beast, isolated from the file system. I can't see an intuitive way to get this generated JUnit XML in to our CI software so it can be verified as passing.

I've taken a shot at implementing the approach shown in Continuous Integration with Flex,but it relies on reading trace output logged to flashlog.txt that is prone to failure on many fronts (debug player must be installed, flashlog.txt must be created, mm.cfg file must be configured properly). Also, I find that some of the time it fails to find the results in the flashlog and the build fails despite all the tests passing. This could be because I have too many tests and some are being pushed out of the log file.

View 3 Replies

Actionscript 3 :: Flex - Automated Test Frameworks?

Mar 6, 2012

I've just been tasked with finding automated actionscript frameworks. Can anyone offer the best out there? I'm just beginning to write the code for my project. Is it better for me to keep my MXML and AS in separate files so I can more easily integrate with any frameworks....or does it even matter?

View 2 Replies

Flex :: Two Sibling Canvas - Label Overflow Test

Oct 27, 2010

If I have two sibling canvases displayed next to each other, can I have a child Label (or any child component for that matter) in the left canvas overflow outside of that canvas and on top of the next?

Something like this:
______________ ______________
| ----------------------------- |
| | Label overflow test | |
| ----------------------------- |
| | | |
| | | |
|______________| |______________|

View 1 Replies

Flash :: ArrayCollection Of Data For Label Test In Flex?

Jan 26, 2011

My label text is not showing up after binding the arraycollection to the label text. Could I see an example of how to properly bind an arraycollection to a labels text?

View 2 Replies

Actionscript 3 :: Test Individual Classes In A Flex Project?

Jun 22, 2011

I need to write and test xmlStuff.as. I would like to test it on its own without launching the entire application (launched with index.mxml).

Project
Folder: src
Package: Default Package
- index.mxml[c

If I was using java what I would do is I would create a new package: [url].....

And I would put this code in it:

public class xmlStuffTester {
public static void main(String [] args){
XmlStuff xs = new XmlStuff();[code]...

(Alternatly I would write a unit test if I knew exactly what the xml output should be. I don't know that yet so I prefer the above approach.)Question: What is the standard way to do this in Flex builder?

View 1 Replies

AS3 :: Test Services With Cookie Based Sessions In Flex?

Jul 6, 2011

As the title indicates the question is in regards to the service layer of a flex application. Specifically in a test case class. To call the services the user must first authenticate through an html/CF based page. Once that's done and the authentication has occurred the user is directed to the html page with the flex application embedded in. Once authenticated the server side CF code writes a cookie to the users computer. This cookie is then read by the flex app and is required for the flex app to make calls to the CF services.

The question is: how should this be handled in a test case class for the service class in the flex app? The following steps need to basically take place: use some account data to hit the server and authenticate, the cookie then needs to be written (which it will already), then the test case needs to pick up the session id from the cookie and pass it to the service call within the test case. That just all seems like too much for a test case class.

So, how is this type of thing usually handled. From what I gather it's typical for web service calls to require a session id like this.

View 1 Replies

ActionScript 3.0 :: Random Error #1009 "Cannot Access A Property Or Method Of A Null Object Reference" - Even When Test Without Changing Anything

Mar 28, 2009

So I am loading clips and images into a swf file for a portfolio site. As I test the site to debug I sometimes get a #1009 error and sometime I don't. Even when I test without changing anything and go through the exact same sequence of actions to try and get the error again it only throws the error about half the time.

I don't understand why it would do this at all since the file works flawlessly sometimes so my code is accurate. Any ideas? I have heard about display lists before and wonder if maybe that might have something to do with but I don't know what a display realy is or how to make sure that things are on it... I'm confused. Here is the error it tosses: TypeError: Error #1009: Cannot access a property or method of a null object reference. at 00000schmackLabIndexFINAL_fla::MainTimeline/loadMask() at 00000schmackLabIndexFINAL_fla::MainTimeline/frame208()

View 5 Replies

Flex :: Use Flash.sampler.getSamples To Test Garbage Collection?

Aug 10, 2011

I'm trying to unit test memory management. So far I have a semi-workable solution using flash.sampler.getSamples to get the difference between the number of NewObjectSamples and DeleteObjectSamples which have the same id value.

The test looks something like this:

startSampling();
new Foo();
new Foo();

[Code].....

Since there are no references to Foo I'm assuming that all instances are being garbage collected, and my code is simply wrong due to my lack of understanding how sampling works. I am trying this instead of using weakly keyed dictionary because it seems it should be less of a hack, but now I'm starting to wonder if it's worth the trouble.

View 1 Replies







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