Flex Builder 3 Debugger hanging unit tests

If I try to run my Unit Tests in debug mode from Flex Builder 3, FF and IE just hang until I cancel the debugger.  Is this expected?

Nope. I developed the whole core in debug mode of Flex Builder 3, so I know it works there.
Mike

Similar Messages

  • Flash Builder 4.7 Unit Tests for Mobile Devices

    I am trying to setup a simple unit test using Flash Builder 4.7. I created a Test Suite and a Test Case class.
    Using the menu, I select Run > Run. I see options to select which Test Case / Methods I'd like to run.
    But the strange thing is, next I have to select a launch configuration. I'd assume it would just launch in some console window and give me test results. I did what I could and have it setup to run on the AIR simulator for a XOOM device. Nothing happens I just see a blank screen with a blank bar at the top.
    I've also tried right clicking the project and choosing execute flexunit tests. My FlexUnit Resulst still says 0/0.
    What is the launch configuration I need to use to execute the test cases and get the results?

    I solved it! After looking at example code on google, I realized that the s:ViewNavigatorApplication was missing two key options:
    firstView="flexunit.flexui.FlexUnitTestRunnerUIMobile"
    firstViewData="{getFirstViewData()}"
    Thankfully I was able to derive this. It makes 0 since to me why this wouldn't be added to the automatically generated mxml file but the functions it utalizes does. This to me seems like a defect. If you'd like people to use automatically generated files, make sure they are functional.
    Thanks

  • Flex Builder debugger breakpoint  folows wrong lines

    this morning i start seing strange things happening with
    flexbuilder, first it seeme that it was entering code that was
    physically impossible; things like entering "if" clause and then
    immediately entering " else " clause, finally i realized debugger
    was showing lines when in reality it was executing lines that were
    about 2-3 lines above what it was showing with breakpoint , I am
    blaming this to flash player 10 debug version, maybe because its
    still new there is bug ?
    I hate to uninstall it and reinstall version 9, maybe there
    is workaround to fix it.?

    yeah I implied that, I did clean, I did manual clean I did
    every possible option, then I uninstalled f player 10 debug and
    reinstalled f player 9 debug, and while doing that discovered
    another little bug in FB3 that could contribute to this issue ,
    case is following :
    I imported a flex project from my old machine where output
    folder was /a/b/c
    in my new PC output folder is /dev/a/b/c
    so I went in project properties and adjusted output folder to
    point to correct directory /dev/a/b/c but what flexbuilder is doing
    is, it does not update all property files that have this path so
    after you build the project, half of the assets go to new directory
    /dev/a/b/c and half goes to old directory, /a/b/c, whats even
    stranger is that if you close flex builder and reopen it, project
    output folder gets reset back to point to old /a/b/c folder,
    anyways I finally fixed it by manually modifying
    .actionScriptproperties and .project files restarted FB cleaned
    output folder,and then rebuild it, but now I am not sure did these
    steps fix the issue or the flashplayer downgrade, or maybe both?
    because I had to do these steps yesterday as well, and then
    it was building correctly whole afternoon into new output folder,
    but today it started it again, finaly I obliterated the existence
    of /a/b/c path completely.

  • Flex Builder, debugger and web application: how?

    Hello,
    I'm traying to setup a project in eclipse with both a java
    web application (servlets, jsp) and flex applications as a
    frontend. So I installed flex builder as a plugin on an eclipse+web
    standard tools, then created a WST web application project, and
    used the "Add flex nature.." of the flex plugin. I don't want to
    use the flex data services.
    Now, in a standard run (I installed a tomcat 5.5 and
    configured it in eclipse), my mxlm files are being correctly
    compiled into swf, and they are successfully calling my servlets
    (which simulates a backend xml-based interface).
    I'm having problems in debug: if I launch the debug profile
    related to tomcat, the normal version of the sfw will be used (even
    manually switching to the "-debug" version, it says that a running
    flex debugger has not be found on localhost). On the other way, if
    I launch the debug as a "flex application", it seems to work (it
    stops at breakpoints) but my tomcat is not started at all, the swf
    is accessed as a local file and all call to my servlet will fail..
    so it will stop working almost immediately.
    There is a way to setup eclipse to start standard java
    debugging with tomcat *and* the flex debugger?
    Thanks
    Cosma

    I found a workaround of sorts for the problem: don't
    terminate the applications!
    Previously, I would terminate the application using either
    the Terminate button in the Debug view or by closing the tab in the
    browser (Firefox). Now I just let them pile up in the browser and I
    rarely see this problem.
    In other words, I was having lots of trouble when doing
    Launch-Terminate-Launch-Terminate... but now I just
    Launch-Launch-Launch... and clean up once in a while.

  • When building an application unit tests are added to a support directory

    Why are unit tests (.lvtest files) added to a support directory when building an application? I cannot find a way to exclude them from the support directory.

    I'd imagine this is happening to you because they are in the "Dependencies" section of your project file (*.lvproj). Is this correct?
    If so, you should add them to your project file somewhere. Then you will be able to prevent them from being installed. In my experience LabVIEW grabs files it thinks are nesecary from the Dependencies list and installs them in a support directory. 

  • QTP with flex/air addin hangs during test execution

    While executing the QTP tests (version 11.0) that includes Flex/Air plug in on a Flex/Air application, it simply hangs for no reason.
    Any resolutions to this is appreciated.

    Hey Guys,
    This is strange. But it got resolved, after renaming the Sap.txt file in QC to SAP.txt and adding and deleting this library file multiple times from the application SAPDOC.
    if SAP TAO development team is reading this, guys you need to sort this problem out, coz there was no real reason of failure and then it got resolved on its own.
    Regards
    Avijit

  • [svn:bz-4.0.0_fixes] 22382: Merge flex.messaging.client. FlexClientManager unit tests from trunk to 4.0.0_fixes.

    Revision: 22382
    Revision: 22382
    Author:   [email protected]
    Date:     2011-09-02 06:15:42 -0700 (Fri, 02 Sep 2011)
    Log Message:
    Merge flex.messaging.client.FlexClientManager unit tests from trunk to 4.0.0_fixes.
    Added Paths:
        blazeds/branches/4.0.0_fixes/modules/core/test/src/flex/messaging/client/
        blazeds/branches/4.0.0_fixes/modules/core/test/src/flex/messaging/client/FlexClientManage rTest.java

    Hi,
    Its good that u pasted the complete log file. In your environment you have to run this upgrade tool only once from any of the middle tier.
    And with respect to your error that u got in precheck is quite simple. All u have to do is just run this script from by connecting to portal schema using sqlplus.
    Run dropupg.sql
    Location-------- /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/dropupg.sql
    Later you re-run the upgrade tool and let me know the status.
    Good luck
    Tanmai

  • Xcode service - CI Bot error when performing Unit Tests

    When an Xcode Service bot attempts to perform a build with 'run unit tests' enabled, the build always fails. When looking at the log file the same error repeated many times:
    xcsbuildd[1966] <Warning>: [XCSBuildOperation.m:106 7368f310 +2126ms] Preflight connection to /var/XCSControl/com.apple.XCSTestUserPreflightService failed; retrying: No such file or directory
    Followed by these messages a few lines later:
    xcsbuildd[1966] <Error>: [XCSBuildOperation.m:102 7368f310 +2104ms] Timed out trying to connect to CG Session; giving up after 60 seconds
    xcsbuildd[1966] <Error>: [XCSOperation.m:33 7368f310 +0ms] Error Domain=XCSBuildServiceDomain Code=0 "Cancelled integration because headless test environment is required but not available after 60s" UserInfo=0x7fa952571bd0 {NSLocalizedDescription=Cancelled integration because headless test environment is required but not available after 60s}
    xcsbuildd[1966] <Debug>: [XCSOperation.m:28 7368f310 +0ms] Cancelling operation: XCSBuildOperation
    I've hit a brick wall with this, and can't find anything on it.
    Has anyone had this problem and found a fix?

    Same problem here after updating the Xcode service to the latest version. Anyone found a solution ?

  • Flash Builder 4.6 - How can I keep unit test classes out of the finished swc?

         I have a library of code I'm building and I'm working on unit testing but I have a major issue. When my finished swc compiles no matter what I do it includes the unit test classes as part of the intellisense if you load the swc via flash. The classes aren't really in the swc since if you just try and import them they'll come up undefined. They only appear to go into the intellisense for the swc. Does anyone know how can I keep this from happening in the finished source? Currently my folder setup is like this in flash builder.
    src\main - source documents for the library to get compiled
    src\mock - mock class area for unit testing
    src\test - unit test classes
         In the project Properties panel > the first tab of my Flex Library Build path I have selected only the src\main folder for the classes to inlude in the library. No other folder paths are selected.
    The "Flex Library Build Path" doesn't change my results with any setting.
    Thanks,

    Mel Riffe,
    Here's a Help topic about compiler options in Flash Builder: http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb524b8220812e5611f28f-7fe7. html
    For information on using mxmlc, the application compiler, to compile SWF files from your ActionScript and MXML source files, you can see: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fcc.html
    Hope this helps,
    Mallika Yelandur
    Flash Builder Community Help & Learning
    Adobe Systems Incorporated

  • [svn:osmf:] 10655: Removing the hack we came up with for using the MAST plugin in the Flex unit tests .

    Revision: 10655
    Author:   [email protected]
    Date:     2009-09-28 13:52:01 -0700 (Mon, 28 Sep 2009)
    Log Message:
    Removing the hack we came up with for using the MAST plugin in the Flex unit tests.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/.actionScriptProperties
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/MediaFrameworkTests.as
    Removed Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/mast/
        osmf/trunk/plugins/MASTLib/

    Hi OMAW8,
    It would be better if you could share us the detailed error message in English.
    Do you mean that you could run your test in your build agent machine? If so, I doubt that it would be related to the TFS build. I mean that maybe it is not the test issue.
    Please share the detailed error in English, and then post this issue to the TFS-build forum would be better for this issue since it works well in build agent machine.
    Form link:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=tfsbuild
    Reference:
    https://msdn.microsoft.com/en-us/library/hh691189.aspx
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unit testing in flex

    .How to implement the unit testing for flex? and give an
    example?

    Try Flexunit:
    http://code.google.com/p/as3flexunitlib/

  • Suggestions requested for Unit Testing process and build processes.

    Hi All,
    We are using WebLogic WorkShop 8.1 SP2 to build our WebApp. One thing I am trying
    to get together is a "Best Practises" list for aspects of WorkShop developement,
    particularly Unit Testing, Continous Build methodology, source control management
    etc.I have been through the "Best Practises Guide" that comes in WorkShop help,
    but it doesnt address these issues.This could help us all for future projects.
    1)Could anyone give pointers on how to perform Unit Testing using either JUnit/JUnitEE
    in the WorkShop realm, given that Controls cannot be accessed directly from PO
    Test classes.
    2)For a project of size say 5 developers ,does it make sense to have a nightly
    build using tools like CruiseControl?We use CVS for our source control and its
    working out pretty well, but given that we currently have no Unit Tests that can
    be run after the build and that can provide some reports on what broke/what didnt?
    I am sure we all would appreciate any suggestions and more questions on this topic.
    Thanks,
    Vik.

    Hi, Chris,
    can you perhaps explain your solution in greater detail. I am really curious to
    find a way to test controls.
    "Chris Pyrke" <[email protected]> wrote:
    >
    I have written (well it's a bit of a dirty hack really) something that
    lends itself
    to the name ControlTest (it unit tests controls). Its a blend of Junit
    and Cactus
    with some of the source of each brutalised a bit to get things to work
    (not much
    - it was a couple of hours work, when I was supposed to be doing something
    else).
    To write a control test you code something like...
    package com.liffe;
    import com.liffe.controlunit.ControlTestCase;
    import controls.Example;
    public class TestExample extends ControlTestCase
    private Example example = null;
    public void setUp() {
    example = (Example)getControl("example");
    public void testExample() {
    this.assertNotNull(example);
    String result = example.getData();
    assertEquals(result, "Happy as Larry");
    Other tasks required to set up a test are creating a web project with
    a jpf which
    needs some cut and paste code (14 lines) in its begin method and a jsp
    which is
    also cut and paste (5 lines). (ie create a standard web project and paste
    in 2
    pieces of code)
    In the web project you need to create a control (A) with an instance
    name of controlContainer.
    (if it's called something else the pasted in code will need changing
    to reflect)
    In this control you need to put an instance of TestContainerImpl and
    any controls
    that need testing.
    You then need to add a method to the control (A) that looks like…
    * @common:operation
    public String controlTestRun(String theSuiteClassName, boolean xsl)
    container.setControl("example", example);
    return container.controlTestRun(theSuiteClassName, xsl);
    You need to call container.setControl for each control being tested and
    the object
    'container' is the instance name of the TestContainerImpl that was put
    in.
    There are 4 jars (junit, cactus etc) that go in the library. You will
    also need
    the ControlUnitBase project (or maybe just it's jar).
    To use you call a URL like:
    http://localhost:7001/TestWeb/Controller.jpf?test=com.liffe.TestExample
    TestWeb is the name I gave to my web project - this will be different
    for each
    test project
    com.liffe.Example is the class above and will therefore be different
    for each
    test case.
    You can also call
    http://localhost:7001/TestWeb/Controller.jpf?test=com.liffe.TestExample&xsl=true
    (Note the extra &xsl=true) and the browser will (if it can) render it
    more prettily.
    This seems to do the job quite nicely, but there are several caveats
    I would hope
    someone from bea would be able to address before I start using it widely.
    1) To access the control you need to create it (eg as a subcontrol in
    the control
    (A) above.
    To get it into the test case you need to pass it round as an Object (can't
    return
    Control from a control operation). As it's being passed around among
    Java (POJO)
    classes I'm assuming that control remains in the control container context
    so
    this is OK. It seems to work and the Object is some form of proxy as
    any control
    seems to be reproxied before the control is invoked from the test case.
    2) If I'm testing controls called from a JPD then they either need to
    be in a
    control project (and my test cases called from a Web Project) which makes
    for
    a large increase in project numbers (we already have this and are trying
    to resist
    it) To avoid this - as a process project is a brain damaged web project
    I simply
    perform some brain surgery and augment the process project with some
    standard
    files found in any old web project. this means I can call the test JPF
    from a
    browser. This seems nasty, is there a better way?
    3) I would like to be able to deliver without the test code. At the worst
    the
    code can be in place but must be inacessible in a production environment.
    I don't
    know how best to do this - any suggestions (without creating lots of
    projects,
    or lots of manual effort)
    If anyone has read this far I would ask the question does this seem like
    the kind
    of thing that would be useful?
    Hopefully a future version of workshop will have something to enable
    unit testing
    and this hacking will be unnecessary.
    Could someone from BEA tell me if this is a dangerous way to do things?
    Chris
    "vik" <[email protected]> wrote:
    Hi All,
    We are using WebLogic WorkShop 8.1 SP2 to build our WebApp. One thing
    I am trying
    to get together is a "Best Practises" list for aspects of WorkShop developement,
    particularly Unit Testing, Continous Build methodology, source control
    management
    etc.I have been through the "Best Practises Guide" that comes in WorkShop
    help,
    but it doesnt address these issues.This could help us all for future
    projects.
    1)Could anyone give pointers on how to perform Unit Testing using either
    JUnit/JUnitEE
    in the WorkShop realm, given that Controls cannot be accessed directly
    from PO
    Test classes.
    2)For a project of size say 5 developers ,does it make sense to have
    a nightly
    build using tools like CruiseControl?We use CVS for our source control
    and its
    working out pretty well, but given that we currently have no Unit Tests
    that can
    be run after the build and that can provide some reports on what broke/what
    didnt?
    I am sure we all would appreciate any suggestions and more questions
    on this topic.
    Thanks,
    Vik.

  • Reporting unit test duration over builds

    We have a set of unit tests which perform standard operations in our software, spinning up the application, creating data...
    What we would like to do is create a line chart to show the running time of individual tests across builds, so we can show how code changes are altering system performance.
    Is this possible? This is just a quick question before we spend resources to investigate how to do it.
    Thanks in advance

    As part of the Test result output we are getting TRX files. TRX files are just XMLs. You can write an XSLT transformation to present the data in the format you need. A nice thing about XSLT is that it has built-in aggregation, grouping, sorting etc capabilities
    Few more options in detail given below.
    http://richhewlett.com/2012/05/24/exporting-an-html-report-from-your-vstfs-test-results/
    http://social.technet.microsoft.com/wiki/contents/articles/2061.how-to-create-reports-for-tfs-2010-test-results.aspx
    Cheers, Senthilraj

  • Flash Builder + unit tests = Unknown error generating output application.xml

    Please see my initial forum post here: http://forums.adobe.com/message/3730193
    This forum does not let me mark my initial post as "not answered" (re-opened) and it seems the dev is not going to respond to it as-is (maybe because he does not know)... so I'll re-open it this way
    An update to my initial post:
    I am now seeing this on Flex 4.1 projects as well. Both AIR and Flex Library projects.
    It appears to be some kind of race condition. Sometimes unit tests will launch on the first try, other times it takes 4-5 tries. If I keep the unit tests application XML open in the background, even on successful launches I see that the <content> node is re-written to contain the square brackets.

    Thanks Sudhir. I had just assumed that you were not getting the notifications since the ticket was marked as "answered".
    I appreciate your help in this matter.

  • Unit Test in SQL Developer 2.1: Automated Builds

    Hi,
    I am interested to know if the new Unit Testing framework can be accessed via API so the test execution is initiated from automated build process.
    Regards,
    Vadim

    I am having a problem with the unit testing command line.
    I am attempting to run the unit testing using the command line interface.
    I can connect to UNIT_TEST_REPOS schema in SQL developer.
    I am successfully running units test and suites in SQL developer.
    UNIT_TEST_REPOS, RCSV1 and DEVER users are granted on the UT_REPO_USER role and UNIT_TEST_REPOS and DEVER on the UT_REPO_ADMINISTRATOR.
    The following commands result in an error box saying "No Repository was found on the selected connection, you need to create a repository." (The HELP button apparently does nothing. The OK button closes the box.)
    C:\Program Files\sqldeveloper\sqldeveloper\bin>UtUtil -exp -test -name RCSV1_RCS_SECURITY.GET_LDAP_BASE -repo unit_test_repos -file c:\ut_xml\test.xml
    Unable to open repository
    C:\Program Files\sqldeveloper\sqldeveloper\bin>UtUtil -run -test -name RCSV1_RCS_SECURITY.GET_LDAP_BASE -repo unit_test_repos -db dever
    Unable to open repository
    C:\Program Files\sqldeveloper\sqldeveloper\bin>UtUtil -run -test -name RCSV1_RCS_SECURITY.GET_LDAP_BASE -repo dever -db dever
    Unable to open repository
    I would guess that I am not supplying the correct connection info.
    My last comment triggered an idea. It turns out that the connection names required are those connections named in SQL developer. In my case, they are not the same as the schema names. The following command worked as advertised.
    C:\Program Files\sqldeveloper\sqldeveloper\bin>UtUtil -run -test -name RCSV1_RCS_SECURITY.GET_LDAP_BASE -repo UNIT_TEST -db DeverLocal
    The ANT target is
    <target name="UnitTests">
    <exec executable="cmd" dir="${sqldev.bin.dir}">
    <arg value="/c"/>
    <arg value="UtUtil -run -suite -name RCSV1 -repo UNIT_TEST -db DeverLocal"/>
    </exec>
    </target>
    Regards,
    Bill

Maybe you are looking for

  • CTM 4.7 on solaris 9

    Hi Is it possible install CTM 4.7 on solaris 9, release 5.9? Thanks

  • Can't find 3d option in photoshop cc

    I Can't find 3d option in photoshop cc

  • WRT54G - Pls Help

    I have a Linksys WRT54G and I'm having a strange problem. It will work fine on my desktop (which is Windows XP) but on the laptop (which is brand new and Vista) it'll work fine for awhile, but then some sites won't work. When it turn it on in the mor

  • In 4.6C, How to delete IDoc stuck?

    Hi, experts after I load more than 20000000 records data from R/3 side, I found out there are too many IDoc stuck in R/3 side use SM58. How can I delete these IDoc in one time? the T-CODE 'WE11' and the program 'RSETESTD' can not use in my 4.6C syste

  • Streams 9i to 10g

    can I user oracle 9.2.0.1.0 as source for implementing streams across 9i-->10g or i need 9.2.0.6 or higher versions only??