Can not run flexunit tests from ant

Hello,
I'm trying to script test execution in order to integrate tests in Jenkins. I followed the wiki article here http://docs.flexunit.org/index.php?title=Ant_Task
The tests run successfully with Flash Builder but not with ant. I'm getting the following error:
Error
VerifyError: Error #1014: The class flash.filesystem::FileStream could not be found
I think that this occurs because I'm using the flashplayer_11 as suggested in the wiki article and flashplayer does not load the airglobal.swc component.
I noticed that Flash Builder launches the ADL.exe process; whereas flexunit within ant tests launches flashplayer.exe.
Should I use ADL.exe with flexunit instead of Flash player ? In that case how to use adl argument in flexunnit ? I saw that Richard Lee has committed a fix to make flexunit support ADL arguments, how ?
Is there a solution to my problem ?
Thanks in advance.
Ygor

Thank you Michael,
I resolved my problem by adding the the player attribute in the flexunit task as follow:
<flexunit
           player="air"
            workingDir="${bin.loc}"
            toDir="${report.loc}"
            haltonfailure="false"
            verbose="true"
            localTrusted="true"
            >

Similar Messages

  • Can you run Hardware Test from older DVD?

    Hello,
    My mini2,1 came with OS 10.4. I have the two original system discs. SInce I bought it right before 10.5 was released, Apple sent me a single Leopard Upgrade disc. Does anyone know if the Apple Hardware Test is on the 10.5 upgrade disc? If it isn't, can I run the test from Disc 1 of the original 10.4 DVD's even though the mini is now running 10.5?
    Thanks in advance.

    Excellent. I found the hardware test on the original 10.4 OS X Install Disc 1. Glad to know that the test on the DVD is for my specific computer hardware, and that the current OS on that machine does not matter.This was not clear to me and I could not find an answer on Apple's help pages. And that explains why the hardware test isn't on the 10.5 upgrade DVD.
    Thanks BD and Niel.
    Dr. Rock

  • Can not run the test form using servlet (patch 8)

    Installed 9I AS 1.0.2.2.1 and forms patch 8 on Windows 2000.
    Configured the Forms Listener Servlet by following the white paper "Forms 6i Patch 8: Oracle Forms Listener Servlet for Deployment of Forms on the Internet".
    I can get the page titled Forms 6i Listener Servlet using URL: http://myserver/servlet/oracle.forms.servlet.ListenerServlet.
    However, I can not run the test form using the servlet by the url:
    http://myserver/servlet/f60servlet?config=servlet. In the formsweb.cfg file I also added a section
    [servlet]
    serverURL=/servlet/oracle.forms/servlet.ListenerServlet
    No meaningful error message. At first it seems very slow, and then shows the "The page can not be displayed" page.
    Please advise.
    Thanks.

    u must add "Script Alias ifcgi60 "$ORACLE_HOME/forms60/cgi" in confirguration.

  • Running FlexUnit tests from command line

    Sorry if that has been posted before: I searched best I could and nothing came up.
    I am interested in building and running my unit tests from the command line so we can add it to a nightly build process.
    I am *very* new to all this: basically I picked up Adobe Flash Builder 4 a month ago and I have done *everything* inside that IDE: writing code, building, testing, running.
    I looked into at least how to build something from the command line, I found this:
    http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000 .html
    Can't get past this error:
    Buildfile: /Users/dbanks/build_test.xml
    BUILD FAILED
    Target "FlexUnitApplication" does not exist in the project "null".
    Total time: 0 seconds
    Adobe Flash Builder 4:
    An error has occurred. See the log file
    /Users/dbanks/Documents/Adobe Flash Builder 4/.metadata/.log.
    Plus, even if I got this going, I am just building the swf.  I also want to run it and capture the output in some meaningful way that can be read/evaluated/acted on.
    FWIW, the script/xml I am using to try to build:
    build_test.xml:
    <?xml version="1.0"?>
    <project default="main">
        <target name="main">
            <fb.exportReleaseBuild project="NightclubMogul" />
        </target>
    </project>
    execute_build_test.sh:
    WORKSPACE="$HOME/Documents/AdobeFlashBuilder4"
    # works with either FlashBuilder.app or Eclipse.app
    "/Applications/AdobeFlashBuilder4" \
        --launcher.suppressErrors   \
        -noSplash   \
        -application org.eclipse.ant.core.antRunner   \
        -data "$WORKSPACE"    \
        -file "/Users/dbanks/build_test.xml" FlexUnitApplication
    I am not clear what in here is actually supposed to point to where my project lives: it's off in some directory somewhere.  I see that I am pointing to a workspace (Documents/AdobeFlashBuilder4) but when I poke around in there I don't see anything connecting back to the directories where the code lives.
    Any help would be great: getting the tests to build from command line, then getting them to run.

    C:\>sqlplus @myscript
    That would be the easiest variation
    C:\>sqlplus user/passwd@tns_alias @myscript
    would be an often used variation
    And then there is of course the version with parameter passing:
    C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
    Dunno about MSBuild

  • Can not run hardware test on nMP

    I have Mac Pro late 2013, 6 cores, 16 Gb RAM, Yosemite. I have followed Apple instructions how to run hardware test. Both using D and Alt D at startup. Unplugged devices, plugged devices. The only thing I see is a row of languages and option to shut down or restart with black background I check English and hit return. After that nothing happens. Is there somone who could explain ?

    Using Apple Diagnostics
    Using Apple Diagnostics - Apple Support
    I take it you are using a wired keyboard and you are not seeing the display:

  • Can not Run Application from Client PC.

    Hi,
    I have a pc running on WinXP called "PC1". I have installed Oracle9i Database, Developer Suite 10g and services. I can run my application smoothly on "PC1".
    My problem is that i can not run my application from client pc running on WinXP called "PC2". I have installed JINIT.exe on "PC2". I started OC4J also on "PC2". IE shows "Page can not be displayed" message.
    What settings i have to do to run my application on Client i.e. "PC2".
    Waiting for any kind of help.
    Thanks.

    Hi all,
    Thanks for the reply.
    I have already install same JINI.exe on Client "PC2" which is on Server "PC1". And the version of the IE and JINI are same on Server "PC1" and Client "PC2".
    I start OC4J on Server.
    Should i make some settings on JINI Control Panel on Client ? Like Proxies.
    I have enable all check box on "Basic" Tab of JINI.
    Further, On client, the check Box of "Show Java Console" is also on, but when i try to connect my application from IE, the Java console does not appear.
    I would like to inform u that, when i start additional Proxy driver like Analog proxy on my server and then i give that proxy address and port in Client IE connection LAN setting, i am able to run my application from that Client.
    But i think that is not the solution.
    Waiting for reply.

  • Spark Classes and Skins not being included when running FlexUnit task via Ant

    I have a series of unit tests that run on a spark component. This spark component has a custom skin defined for it, and that is working beautifully.
    Inside that component is a spark list... By default, after digging into the list code, spark lists should use a default skin called "BorderContainerSkin". When I run the application that uses this component directly (whether compiled via FlashBuilder or via Ant/Hudson), the component itself runs and looks exactly like I would expect. When I run my unit tests in the browser (via Run As Web Application command on my TestRunner), the unit tests all perform as expected.
    However, when I run the FlexUnit tests via Ant (either through windows non-headless, or linux headless), an exception is thrown with the following error:
    Error: Skin for FromToList132.FromToListSkin133.VGroup134.fromList cannot be found.
        at spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.x\frameworks\pr ojects\spark\src\spark\components\supportClasses\SkinnableComponent.as:632]
        at spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.x\frame works\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
        at spark.components.supportClasses::SkinnableComponent/commitProperties()[E:\dev\4.x\framewo rks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:419]
        at spark.components.supportClasses::ListBase/commitProperties()[E:\dev\4.x\frameworks\projec ts\spark\src\spark\components\supportClasses\ListBase.as:785]
        at spark.components::List/commitProperties()[E:\dev\4.x\frameworks\projects\spark\src\spark\ components\List.as:907]
        at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx \core\UIComponent.as:7933]
        at mx.managers::LayoutManager/validateProperties()[E:\dev\4.x\frameworks\projects\framework\ src\mx\managers\LayoutManager.as:572]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:730]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects \framework\src\mx\managers\LayoutManager.as:1072]
    (Note: fromList is the id of the spark list used in the FromToList component.)
    The issue is that the "BorderContainerSkin" class isn't ever getting imported along the way. I did several things that worked to "fix" the problem, but they are all hacky and don't explain the root problem:
    1- If I explicitly import that skin into my test file, then everything works great.
    2- If I add the <includes> directive into my mxmlc task in the Ant file, and again specifically call out that skin class, then again it will work.
    However, how would I know what skins from the spark library are going to get included and which aren't? How would I know that a default skin isn't included or where to find it or even what it is?
    It seems like either I'm missing something in my Ant file or there is a serious bug here with the FlexUnit task. Can anyone shed light on if this is a known issue, any permanent fixes (that don't involve keeping track of a long list of strings of class references), or anything that I might be missing?
    Thank you for any help!

    Guessing the ant tasks aren't forcing the include of the spark skins libraries... which is a little silly. I would assume the compiler would take care of this but it is something we can investigate...
    Not 100% sure as to why, but this is what it sounds like.
    Mike

  • HP4275A can not pass self test after running the labview program

    I am using Labview to control HP4275A LCR meter. The Labview program is just the instrument driver for the HP4275A, and it works great. Before running the program, the instrument can pass both Open and Short test perfectly. But after running the program, it can not pass self test, neither Open nor Short. I don't know why?? Is it relative to my Labview program??
    Thanks

    Thank you so much for your help. Yes, the instrument is in Local after running the instrument driver. In normal Open self test, just choose Capactiance as the Display A, and leave the four output terminals open then press the Self Test button. The Open self test will start and "OP" will be shown in the DIsplay A window, after 2 seconds, the open test will be finished. If something abnormal, the number of the abnormal step is displayed in Display A. Similar with the Short test.
    The problem I had was: before running the instrument driver, the self tests pass; but after running the instrument driver, the Open and Short test show abnormal, Open test is abnormal at step 17, and Short test is abnormal at step 24.
    And the instrument driver is only write commands into the instrument and then read back measuring values from it. Nothing else. So I am not sure if the problem is my instrument driver.
    The weird thing is the problems happened several times and then if I do the Open and Short self test again after running the instrument driver, both pass. I am not sure whether the problem will come back or not.
    Ia there any help??
    Big thanks

  • Hi, I got the problem with Firefox 27.0.1. I can not run Selenium on Firefox after login a website for automation testing. The browser is not responding.

    Hi, I got the problem with Firefox 27.0.1. I can not run Selenium on Firefox after login a website for automation testing. The browser is not responding. However when I close Nunit, the page is back to be normal. The title is returned to the name of website without "not responding". I sure this problem did not happen on Firefox version 26. I just got this problem when firefox upgrading automatically to version 27. Please help me fix this problem because it is very important for my work. If you need more information pls send your concerns via my email address.
    Thanks so much

    Hi, the work around suggested above should put you in working mode in the meantime. However to help investigate the issue it is possible to analyze what is not loading or taking a long time by analyzing the network traffic or http headers of the Nunit web page.
    *[https://addons.mozilla.org/en-us/firefox/addon/live-http-headers/]
    *Web developer Tools > Web console
    If you post the results with out the user data, we are happy to help.

  • I can not access Itunes Store from my computer. When I run the dianostic I get a red light that says "Secure Link to the Itunes Store Failed".

    I can not access Itunes Store from my computer.
    When I run the diagnostic tool for network connectivity, my network connects but I get a Red light that says "SECURE LINK TO THE ITUNES STORE FAILED".
    Can anyone help me on this problem?

    ITunes won't connect all I get is the "accessing iTunes store......". With the bar scrolling but no connection.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • The report can not retrieve the data from the DB

    Dear all,
    I am facing a problem is that i have ready designed reports in Crystal. While refreshing the report in Crystal, it gives an error that it can not retrive the information from the database. But, if i am using the application which the report is attached, it is giving me the results and showing the report in Crystal. Even, for testing if i add a new field, i have to run it from the application, but directly from the Crsytal Reports, it displays an error.
    I hope you will help me in the issue.

    Could you please provide more information:
    What is the database? (Oracle, SQL Server, xml, etc.)
    What type of connectivity? (ODBC, Native, OLE DB, etc)
    Are application and Crystal Reports are running from the same machine?
    What is the error message? Any error numbers?

  • PCK  visual administrator can not run

    Hello Everyone,
       When i run pck, encounter a problem,"<b>Object not found in lookup of SapXIFileAdapterService"</b>
      I found the soultion from SDN, this need to registry the JNDI in visual administrator, but i can not run the visual adminstrator.
    my<b> go.bat</b> is under C:\usr\sap\A20\JC70\j2ee\ATS\bin
    and not under C:\usr\sap\A20\JC70\j2ee\admin,
    there is not admin folder under the C:\usr\sap\A20\JC70\j2ee;
    when i run go.bat , there is following information, and no config window show;
    Could some boby can help me how to solve this issue,
    Thank you very much.!
    <b>C:\usr\sap\A20\JC70\j2ee\ATS\bin>setlocal
    [SAP ATS Start] Version - 1.1.1, NW Release - 7.10, Change: 130621, Date: 2006/1
    1/14
    [MAIN JVM] Creating initial context -> Done
    [MAIN JVM] Cluster info [1 server node core ver.  7.10.3301.146320.2007050316504
    2  (click for details)]
    [MAIN JVM]
    [MAIN JVM] Checking tested environment
    [MAIN JVM] NAMING -> OK
    [MAIN JVM] DB     -> OK
    [MAIN JVM] HTTP   -> OK
    [MAIN JVM]
    [MAIN JVM] Test main root directory : <C:\usr\sap\A20\JC70\j2ee\ATS\tests>
    [MAIN JVM] Loading tests please wait...
    [MAIN JVM] All Tests:      0 classes, 0 methods.
    [MAIN JVM] Exclude Tests:  0 classes, 0 methods.
    [MAIN JVM] Test loading finished. Elapsed time: 31 ms.
    [MAIN JVM] Test end, elapsed: 00min 00.000s, local time: 11:06:08 AM
    [MAIN JVM] All tests finished at 11:06:08 AM
    [MAIN JVM] -
        INFO    -
    [MAIN JVM] Test execution process completed.
    [MAIN JVM] -
    </b>

    Hi rocky
    check your JAVA_HOME env variable
    You just get a copy of  "admin" folder and paste it within the j2ee folder
    You should be able to start Visual admin
    regards
    krishna

  • Running Unit Test from test manager that run bat file from command line

    Hi ,
    I am trying to run Jsystem (java framewotk) from command line using runScenario.bat thru unit test that i associated to test in test manager.
    the idea is that when i ran the automated test  from MTM - it will run the the unit test that will run the appropriate test case in java.
    i wrote the code like this : 
    using System;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    namespace UnitTestProject3
    [TestClass]
    public class UnitTest1
    [TestMethod]
    public void TestMethod1()
    try
    String command = "c:\\JSYSTEM\\runner\\runScenario.bat
    c:\\Users\\ryeshua\\Source\\Workspaces\\Auto1\\my-tests-project\\target\\classes scenarios\\feature1 RoeySetup.xml ";
    System.Diagnostics.ProcessStartInfo procStartInfo =
    new System.Diagnostics.ProcessStartInfo("cmd", "/c " + command);
    procStartInfo.RedirectStandardOutput = true;
    procStartInfo.UseShellExecute = false;
    //procStartInfo.CreateNoWindow = true;
    System.Diagnostics.Process proc = new System.Diagnostics.Process();
    proc.StartInfo = procStartInfo;
    proc.Start();
    string result = proc.StandardOutput.ReadToEnd();
    Console.WriteLine(result);
    catch (Exception objException)
    // Log the exception
    and when i ran it from visual studio it worked perfect. and update  the Jsystem logs of the junit test in the jsystem/runner/log folder.
    but when i added it to associated test and ran it from MTM - it pass but it does not update  the logs in jsystem folder.
    the problem that i dont know what is not working. i cant see the output of it when i ran from mtm but can see when i ran from VS.
    i am using VS 2013 Pro with MTM 2013.
    please advice
    Roey

    Hi Roey,
    Thank you for posting in MSDN forum.
    Based on your issue, could you please tell me how you generate the log file under the jsystem folder?
    Generally, I know that when we run unit test from VS IDE, the file will be saved into the local machine. But when we run unit test from MTM, the unit test method will be run on the test agent machine, so the file will be saved into the test agent machine.
    Therefore, I suggest you could check if you did not see the updated logs file in jsystem folder on the test agent machine.
    In addition, I suggest you could try to copy this unit test project on this test agent machine and then run the unit test method using mstest.exe in command line and then check if you can update the logs file.
    https://msdn.microsoft.com/en-us/library/ms182489.aspx?f=255&MSPPError=-2147217396
    If you have any updated message about this issue, please tell me.
    Best Regards,
    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.

  • How can i run unix script from my apex page

    how can i run unix script from my apex page and take the output of unix script as a hidden variable and display it on the report region of that page

    I had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
    1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
    Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
    2. In Apex,
    a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
    b. I created a PL/SQL process whose source looks as follows:
    shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
    and which was conditioned on the the button P2_RUN_SHELL.
    It works like a charm.
    Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
    Ackness

  • College student can not take online tests

    Hello,
    My daughter can not take online tests on her ibook because the college she is attending uses a Windows only program called secure exam for online test taking. Is there some Mac based program out there that will allow her to take her tests online while allowing her teacher to grade her exams using his PC?
    Thanks for all you help in advance!

    Samuel,
    If you do decide to use VirtualPC for the Mac, may I recommend that you look into educational pricing?
    I just bought the program two weeks ago and paid $114.95 for it. (This price is for VirtualPC only and not for a bundled copy of Windows. I already had an old copy of Windows 2000 that was not installed anywhere, which I used. If you don't have a separate, unused, and fully licensed copy of Windows, you will need to buy one, and that costs additional money.)
    But if you buy VirtualPC by September 30, Microsoft has a $30 rebate, which makes the product cost $74.95 for students, faculty, and staff.
    The company I bought from was CCVSoftware (no space in the name), and I was pleased with their delivery and attention to the order.
    I was
    b NOT,
    however, pleased with VirtualPC for the Mac and will be returning my copy:
    1. The program seizes control of the Macintosh and does not permit even a mouse pointer outside the VirtualPC window.
    2. It is slow, which I expected. I did not expect, though, that I would take me 2:50 (two minutes, fifty seconds) to load VirtualPC, Windows 2000, and then the full version of the Oxford English Dictionary. I can look up a word in my paper copy of the dictionary faster.
    3. Worst of all, to me, is that you cannot switch from a VirtualPC emulation window back to Macintosh mode and then back to VirtualPC; once you are inside VirtualPC, you are stuck there until you shut down the copy of Windows you are running.
    Hope this helps with your decision,
    Jim Chumbley

Maybe you are looking for

  • ITunes CRASH (wont open)

    Everytime i try and open iTunes i get a system error saying "Itunes has encountered a problem, and needs to close". ive tried everything. from reinstalling to uninstalling. delteing my library info, clearing app temp. etc. i just cant get it to work.

  • Imac not connecting to ibook

    My home network is set up so that my iMac is wired to the router and the iBook is connected via WiFi to the router. When I try to connect to the iBook from the iMac, I get a notice that the server cannot connect. However, when I connect to the iMac f

  • Change InfoView language (local) from URL

    Hi Everyone, We have a portal and in the portal we can click on a url to access InfoView. But in case the user change the local on the portal to view in another language like Chinese and when he/she clicks on the url to access InfoView. InfoView will

  • How to resolve inability to send Apple Mail to new ISP server from work.

    Switched to Insight Broadband over the weekend. Now at work, I can receive email but not send it. The error message is authentication required, yet Insight specifically does not require any authentication on its outgoing server and I set up the accou

  • Haw I can do macro photo stacking (+/- 20 photos) in Photoshop elements 12?

    How I can do photostacking in Photoshop Elements 12? Should I purchase other program to create good quality result?