FlexUnit ant - running tests that make calls to the server

Hello

I am using BlazeDS in my project to connect to a Tomcat server. I have configured my services in the file services - config.xml and past the location of the file as an argument to the compiler in Flash Builder.

I have some unit tests that make calls to the asynchronous server. When I run these tests from Flash Builder, the thin running tests. But when I run the tests via the flexunit ant task, these tests only downtime while the other tests pass. In addition, it seems like the server is contacted at all as my messeges newspaper in my code aside server are not visible.

I tried passing the path to the file services - config.xml and the root of the application context in the mxmlc Ant task that compiles my TestRunner.mxml file:

"< mxmlc file="${main.src.loc}/flexUnitTests/TestRunner.mxml "output="${bin.loc}/TestRunner.swf ">"

< dir = "${lib.loc library path}" append = "true" > "

< include name = "*.swc" / >

< / library path >

< element path-source-path = "${basedir}" / src "/ >"

< element path-source-path = "${basedir} /locale/ {local}" / >

< compile .verbose-stacktraces > true < / compile .verbose-stacktraces >

true < compile .headless-server > < / compile .headless-server >

< compiler.services > C:\myApp\Source\WebServer\WebContent\WEB-INF\flex\services-config.xml < / compiler.services >

< compile .context-root > myApp < / compile .context-root >

< / mxmlc >

No use. My tests still expire. Here is my flexUnit task:

< target name = 'test' depends on 'compile' = >

<!-run FlexUnit tests and publish reports->

< flexunit

" swf="${bin.loc}/TestRunner.swf ".

workingDir = "${bin.loc}" "

toDir = "${report.loc}" "

haltonfailure = "false".

verbose = "true".

localTrusted = 'true '.

headless = "${headless}" >

< source dir = "${basedir} /locale/ {local}" >

< include name = "*.properties" / >

< / source >

< dir = "${lib.loc library}" / > "

< / flexunit >

I guess I'm missing something - a way to tell Ant about the location of my server or something like that. Help, please!

Thanks in advance.

Maury

or create a config replacement for testing services. It would be able to resolve the server url if the swf file served from a web server.

Tags: Adobe Open Source

Similar Questions

  • MenuItems run() method that is called from the thread eventdispatching?

    Hello

    is it? I know that MenuItem itself extends thread, but I wonder why this method is called run() and finally and above all it would'nt be worse if this method would be called from a Thread.

    THX

    In fact the menu items are run on the thread of the event. You can see this by creating a menu item long-term. The menu will not close and will not refresh the screen.

  • I want to register my phone with a chip from the Bahamas to make calls to the

    I want to register my phone with a chip from the Bahamas to make calls to the United States, but it is not an option. Is there a work around for another option? I have unlimited international calls

    Unfortunately, the SkypeToGo program is not available in the Bahamas.

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • Portege M400: Is it possible to receive and make calls with the SIM card

    Is it possible to receive and make calls with the card SIM module in the Portege M400?

    I know that you can send and receive sms messeges, which, according to me, the software is not all good because you can't hold much, and you can't send to ems or mms.

    But there may be other software here?

    Hello

    What software do you mean exactly?

    As far as I know that the MobiLink was preinstalled on some units Portege M400.
    This software supports these features:
    Send and receive SMS, composition and read TEXT messages in several languages, compose and send to multiple recipients, the mobile contacts address book support, Rich edit for the launch of URL and Email using embedded addresses.

    As you can see that you can not use this software to make calls!
    And unfortunately other software does not know me :(

    With regard to the MobiLink Communications Software Suite;
    The details can be verified here:
    http://www.novatelwireless.com/products/solutions/MobiLink.html

    Greetings

  • Error #1009 when sound inside game, a movie clip that is called to the scene with child add method

    What is supposed to happen

    I have a clip that is called when the user clicks a button. When moving clip appears music is expected to play. When the user clicks the close button the music stops and the clip is removed from the scene.

    But then I get an error

    When I test the movie I get the following error:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    to mc_playSong / frame2 () [mc_playSong::frame2:6]

    This is the code that calls the clip on the stage (no problem here):

    Call the video clip with the song played on stage

    stage.addEventListener (MouseEvent.MOUSE_DOWN, goButtons);

    function goButtons(event:MouseEvent):void

    {

    If (event.target is song_bnt)

    {

    SoundMixer.stopAll ();

    addChild (myPlaySong);

    myPlaySong.x = 558;

    myPlaySong.y = 384;

    Event.stopImmediatePropagation;

    }

    The following code inside the clip is called to the scene. The music is meant to play:

    Stop();

    Variables for listening to music

    var RJPlaySong:RJSong = new RJSong();

    var RJPlaySongChannel:SoundChannel;

    Music for plays

    stage.addEventListener (Event.ENTER_FRAME, startRJSong); (I think that the error in the code is in this function. When I comment on him I don't get error.)

    function startRJSong(event:Event):void

    {

    RJPlaySongChannel = RJPlaySong.play ();

    }

    Stop all sounds, sets variables to null and calls a send event that removes the clip of the scene.

    bnt_closeSong.addEventListener (MouseEvent.MOUSE_DOWN, closeCreditSongScreen);

    function closeCreditSongScreen(event:MouseEvent):void

    {

    SoundMixer.stopAll ();

    RJPlaySong = null;

    RJPlaySongChannel = null;

    dispatchEvent (new Event ("RemoveMCsong"));

    }

    Someone at - it ideas? This seems to be a pretty simple question, but I can't understand it.

    I meant that you have quoted just to be taken literally.  If it's still not clear what I say or what did your code, try the following in order to demonstrate the IT change... This code to be...

    stage.addEventListener (Event.ENTER_FRAME, startRJSong);

    function startRJSong(event:Event):void {}

    trace ("I can do this all day");

    }

    After doing this, you can see why you want to only call the function once, and you could eliminate most of it and just put...

    RJPlaySongChannel = RJPlaySong.play ();

    Instead, or as I said originally, you can change it to be...

    function startRJSong (): void

    {

    RJPlaySongChannel = RJPlaySong.play ();

    }

    startRJSong();

  • How to identify the call to the server before that happens?

    Hello

    I need to show the busy popup whenever the server call occurs. I am able to do this by adding < af:clientListener > tab inside < af:commandButton > or < af:selectOneChoice > tags everywhere where I need and open the popup occupied on the client side.

    But I want to show this popup when call Server comes... I don't want to fix < af: clientListener > to all components. Instead, I want to identify the call to the server before it happens and to write the code to open the popup in a common area of a more generic way.

    I noticed the < af:StatusIndicator >. It is able to identify the call to the server until it happens and show the image of busy.gif instead of connected.gif.

    How does it work? If it is able to identify, so that I can use the same logic to identify the call Server and show the busy popup.

    Any idea?

    Thanks in advance.


    Kind regards
    Julien V

    Hello

    see the example #27 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

    its exactly what you ask for

    Frank

  • The host 'SMTP' could not be found. Please check that you have entered the server name correctly. _ subject 'Report issue', account: 'POP3', server: 'SMTP', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0D

    The host 'SMTP' could not be found. Please check that you have entered the server name correctly.
    'Report issue', account: 'POP3', server: 'SMTP', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0D.
    I'm answering an ad on craigslist and Windows Live continues to appear, but will not send my email I can be reached at * address email is removed from the privacy * or 614-499-1541.
    Thank you
    Stephen lawless

    Your post has nothing to do with Windows Update.

    You're not even close to have properly configured your e-mail account in Windows Live Mail.

    You will find support for Win7 e-mail Clients in this forum: http://social.answers.microsoft.com/Forums/en-US/w7network/threads

    You will find support for Windows Live Mail in this public newsgroup:
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Windows.live.mail.desktop

    Through your News Reader:
    News://msnews.Microsoft.com/Microsoft.public.Windows.live.mail.desktop

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Cannot bind Gmail to Outlook, receive error: the pop3.gmail of the host could not be found. Please check that you have entered the server name correctly.

    Original title: Link to Outlook g.mail

    I'm loving g.mail at Outlook 03, but I get the following error message: the pop3.gmail of the host could not be found. Please check that you have entered the server name correctly. Pop3g.mail.com, server pop3g.mail.com, Prtotocal pop3, Port 995, SSL server without error Socket 11001, error 0x800CCC0D account No. Can someone help me with this problem?

    Hi Eva,

    Thanks for posting on Microsoft Community. According to your description, it seems that you couldn't configure Gmail on Outlook and you receive error 0x800CCC0F. If I'm not mistaken you have Microsoft Outlook 2003 is installed.

    This happens usually when there are questions about the server. If you have not been able to set up the account successfully, I suggest you read this article that shows how to set up email on Outlook accounts.

    If you have configured the account successfully, but I could not send or receive e-mails, you go through this article which has troubleshooting for this issue.

    If this is not enough, you can replicate with the result, then we can help you solve more.

    Thank you!

  • The host 'SMTP' could not be found. Please check that you have entered the server name correctly.

    What I do when I get this message?

    The host 'SMTP' could not be found. Please check that you have entered the server name correctly.
    'SUBSCRIPTION', account: 'POP3', server: 'SMTP', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0D

    Hello

    I doubt that the fault lies in Internet Logistics (what this forum is about).

    I guess you have a problem with the configuration in your e-mail software (Outlook? Windows Live Mail? you don't tell us). Find tools, accounts or similar and triple to check the settings for sending server.

    Kind regards

    Hans

  • Unable to send/receive emails, error: the host 'smtp' could not be found. Please check that you have entered the server name correctly.

    Original title: outlook.

    The host 'smtp' could not be found. Please check that you have entered the server name correctly.
    'Job', account: 'pop3', server: 'smtp', Protocol: SMTP, Port: 25, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0D now that I signed up with outlook.com, I wish I had the other implemented to send emails, and anything else I might need to do. Is this possible without too much difficulty?

    If you use a POP3 account, you need an email like Windows Live Mail client to do. Outlook.com is Webmail.
     
     
    Help for Outlook.com is located in this forum
    http://answers.Microsoft.com/en-us/windowslive/Forum/mail?tab=all
     
  • Can't send or receive messages for the IMAP account. The host 'IMAP' could not be found. Please check that you have entered the server name correctly.

    Can't send or receive messages for the IMAP account. The host 'IMAP' could not be found. Please check that you have entered the server name correctly.

    Server: 'IMAP '.
    Windows Live Mail error ID: 0x800CCC0D
    Protocol: POP3
    Port: 110
    Secure (SSL): No.
    Socket error: 11001

    You are in the wrong forum, if you cannot solve your problem here try

    IMAP is a Protocol, you can use it instead of POP3, something in
    Let's not your e-mail configuration.  A mail server name is something like
    IMAP.example.org or SMTP.exemple.com or similar.
  • 'The host 'POP3' could not be found. Check that you have entered the server name correctly. »

    Original title: "e-mail mistakes".

    Recently, we lost all of our information on our laptop and have had to reinstall Windows and unfortunately we lost data, emails etc.

    We are still after the reinstallation, this error to come (see below) when e-mail messages are downloaded.  Don't know what to do at this point, really need help.

    The host 'POP3' could not be found. Please check that you have entered the server name correctly.
    Account: 'POP3 (1)', server: 'POP3', Protocol: POP3, Port: 110, secure (SSL): no, Socket error: 11001, error number: 0x800CCC0D

    "Trust" has written in the new message: * e-mail address is removed from the privacy... *

    Hi Bruce, I'm setting up account e-mail again, as for the mail server, in my opinion, bigpond is our mail server.

    I found a better link for you:

    http://BigPond.custhelp.com/app/answers/detail/A_ID/12611/kW/Windows%20Mail/SNO/1

    Best regards Steve. MS - MVP. MAIL. [DTS] UK. http://www.getsafeonline.org/

  • Try to download on our FTP Muse site recognizes the following FTP screen then stands up and says... "Unable to validate the specified domain that is associated with the server FTP. Still? "FYI, until I update to the 2014 version it worked fine. Pl help

    Try to download on our FTP site

    Muse recognizes the FTP

    Then the next screen appears and says...

    "Unable to validate the specified domain that is associated with the server FTP. Still? »

    FYI, before I update to version 2014 there worked well.

    Help please. Thank you. Chuck

    OK, I spent about 2 hours on the phone with the support guys Muse and here's what finally worked...

    When the second screen, enter ftp, your domain.com NOT www.yourdomain.com

    then put the name of next folder as usual.

    Why it works that way...? who knows... but it works.

    I would like to know how you do them.

    Chuck

  • I can't delete some files that I uploaded to the server. What should I do?

    I can't delete some files that I uploaded to the server. I get a notice: FTP an error occurred - cannot delete the PDF download server folder. Operation failed. The directory is not empty, or there may be a permission problem.

    What should I do?

    Try to delete the files in your folder first.

    If there is a permissions problem on the server that you cannot delete files, you need to contact your Site Administrator (if you have one) or your Web hosting provider.

    Nancy O.

  • BlackBerry smartphones can not make calls from the home page or the phone book.

    I've had my curve for several months now and the other day, that my most young got a hold of it... I don't know how they do it, but my children can do things with my phone and computers that I did not know they could do... In any case I tried to access my voicemail by organizing the 1 on the homepage and it took me to instead call log, so I tried to make a call from the phone book by selecting the name pressing on do it call button and no as soon as I actually had to go into the call log and manually type the number.

    My question is... What did do?  It is very aggravating and I would ask him, but he is two... I know he did not drop it or I would take it to a service provider.  All of the suggestions.

    Thank you

    If you go in your call log icon or by phone, click your menu button and go to Options. Then, go to the General Options. See if your the home screen dial is set to Yes.

    Also try to reset your device by removing the battery for 1 minute and replacig it to leave the unit restarts. Try it later

Maybe you are looking for