Running FlexUnit4 tests via ant & Hudson?

I'm just starting to move towards test driven development and I'm trying to figure out how to get continuous integration with FlexUnit4 working for our Flex projects & Hudson.
I've got our project compiling in Hudson via ant but I'm not sure how to go about having ant/Hudson run the FlexUnit4 tests? Is there an ant task I'm supposed to use or something somewhere?
Is there any documentation I should be reading? Forum/blog posts? I see a bunch of stuff about opening sockets and whatnot but I'm not sure if that's how it's supposed to work.
Thanks for any pointers.

Hi Brian,
I downloaded the latest build and tried running the ant task in the CISample project on my dev box just to see if I could get it to work locally first. I got a big stack trace running this with flex 3.3 but it apeared to work better with flex 3.4. However the build failed running the "test" ant task. This was my output:
init:
compile:
    [mxmlc] Loading configuration file /opt/flex_sdk/3.4.0/frameworks/flex-config.xml
    [mxmlc] /home/jersinghaus/fu4/4.x/FlexUnit4SampleCIProject/bin/Main.swf (327000 bytes)
test:
    [mxmlc] Loading configuration file /opt/flex_sdk/3.4.0/frameworks/flex-config.xml
    [mxmlc] /home/jersinghaus/fu4/4.x/FlexUnit4SampleCIProject/bin/TestRunner.swf (846287 bytes)
[flexunit] Creating local trusted file
[flexunit] opened server socket
BUILD FAILED
Error launching the test runner.
So I thought I'd ask a few questions:
1. Is there a log file somewhere that might give me some more detail as to the error?
2. I'm familiar with fluint's test runner which is an air application which runs test suites inside modules compiled to swf's. (I'm sure you know all this ) But here it looks like you call flex with no air related calls.  Does CISample project and associated ant build script work for air applications?
Thanks,
Joe

Similar Messages

  • 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

  • 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"
                >

  • Why do I get this error when I want to run a test using Ant?

    Why do I get this error when I run the Ant build file?
    Testsuite: JUnit
    Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    Caused an ERROR
    JUnit
    java.lang.ClassNotFoundException: JUnit
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

    Abder-Rahman wrote:
    In the "XML" file, I was giving the name of the test as JUnit ---> <test name="JUnit">Well, do you have a class called just "JUnit" that contains a test?

  • Unit tests with ant (FB4 beta)?

    Since flexunit is integrated with FB4, I was wondering how to run unit tests with ant on FB4 (using 3.4 sdk). In my current ant build file, the <mxmlc> and <compc> tags both work but the tag <flexunit> does not seem to work anymore (it worked on FB3 with flexunit download). So is there anyway currently to run unit tests on FB4 using ant?

    Hi,
    Let us take your requirements as separate two requriements.
    1. Using the flexunit ant task - I think for this you needed a separate ant library to support this. So this may be missing in the ant available with FB. May be you can analyse this and add on your own and try out.
    2. Debuggin the results.
    Now FlexBuilder has the feature inbuilt as part of the IDE which provides more featuers like , source naviagation, rerunnig , saving results loading results etc.FlexBuilder uses its own set up to show the results details in IDE.
    Currently other than using the feature in FB, there is no way to debug the results of the tests. However if you would like to get the tests to be run by ant task, and analyse the results, the following can be used.
    Option 1 : Run outside FB, show and analyse results in FB
    a. Use the FB, create some sample testCases in FB.
    b. Use 'Execute FlexUnit tests' from the run,  or debug launcher
    c. Use the option Save configuration. This will get the configuration as xml or mxml file. You can use this file template and generate your test cases (may be you will configure your tests in a testSuite class and always use that as the input to the application, so that application syntax never changes). If you run the mxml created swf  (whch you can do by the simple ant tasks which does not use the flexunit task ) out side FlexBuilder and if the FlexBuilder is open, you can still see the results in the FB and analyse the results. (You need the library which is used by the FB to use the classes. You can get the location of swc file by inspecting the library path of a project in which you have added the testCase or testSuite class using the FB IDE)
    Option2:Run outside FB and  Analyse the results in FB.
    If you have the project for which you have run the tests, and you have the XML results of the run, you can still analyse the results in the FlexBuilder.
    a. Ensure that the report is in the required syntax of FB. (we have tried to use the similar syntax as that of the JUnit resutl report)
    b. Use FB, load your project, open the FlexUnit result view, use the open result option in the FB. This should load the XML in FB (we have only ensured to open the result files which were created using FB ,back in the result view. So if you are facing some issue in opening your XML, you can refer the required syntax by saving a sample run result from FB)
    Option 3: Run and analyse the results in FB.
    a. Have the input setup mentioned to FB. (If you would like to integrate changes, have a suite class which will take care of this and mention in the Execute FlexUnit tests to use this suite class. But there is no way to specify to run the FB commands outside FB.)
    b. So whenever you would like to anlyse the tests, you need to run your test in FB and then analyse the results shown in result view.
    Please let me know whether this is what you are looking for.
    Thanks,
    Rani

  • FlexUnit4 - Tests run but runner has to be manually closed and no reports generated.

    I am trying out FlexUnit4 and using ant to build the tests.
    I built my ant script on the one from the FlexUnit4SampleCIProject.
    The test from that project run, the runner automatically closes and the reports are generated, my project however does not close the runner and generate reports.
    I am using flexsdk 3.3
    What could i be doing wrong?

    Morning guys,
    Mike and I worked through the race condition issue this evening/morning and new code should be in SVN as you read this post.  The short of it was that sometimes the FlashPlayer would spin up faster than the socket on the Java side and data was being lost along the way.  We've implemented a handshake between the CIListener and the Ant task so we can guarantee that things are working correctly now.  I've also done a shallow refactoring of the code to decouple some responsibilities so we can more easily test things going forward.  I've also updated the threading code to use stuff from Java 5, so going back to Java 1.4 will be a pain, but is still feasible with a few extra JARs.
    Let us know how it goes.
    -Brian

  • My 2006 iMac running Snow Leopard won't boot even after erasing and re-installing Snow Leopard (via my MacBookPro), either from the HD or DVD drive.  Can't get it to run Hardware Test.  Disk Utility says disk OK - files are there. What can I do?

    My 2006 iMac running Snow Leopard won't boot even after erasing and re-installing Snow Leopard.   I erased and re-installed by putting the iMac in Target Disk mode and usin my MacBookPro as the host.  But after numerous attempts I still can't get it to boot either from the HD or DVD drive. I just get the white screen after the wheel stops spinning.  I can't get it to run Hardware Test - just get the white screen.  If I use Disk Utility via my MBP it says the disk appears OK. All the Snow Leopad files appear to have been installed. What can I do?

    Hi-NRG Bwoy wrote:
    I erased and re-installed by putting the iMac in Target Disk mode and using my MacBookPro as the host.
    Reet the SMC and the PRAM
     Cheat sheet to help diagnose and fix your Mac
    Perhaps you installed the wrong version OS X onto the iMac, you can't use the disk from another Mac.
    clean the disk.
    If it's not working then use this method to create a bootable 10.6 USB from the iMac machine specific 10.6 disk or the 10.6.3 retail disk on your other Mac, use it to boot the iMac with.
    http://www.maciverse.com/install-os-x-snow-leopard-from-usb-flash-drive.html
    How to erase and install Snow Leopard 10.6

  • Want to run multiple Test Cases by ant ?

    Hi all,
    I have a class called Book.java and two test cases called BookTest1.java and BookTest2.java . I want to test both this test cases by ant. I have to set this ant task unix cron job so, that this test is done automatically each day.
    I have wrote the build file with batchtest option but it is building the application suucessfully without checking the Test Cases individually.
    I am successfully the same task with JUnit Test suite.
    Thanks and Regards
    Taton Banerjee
    Book.java
    package src;
    public class Book {
        private String title;
        private double price;
        public Book(String title,double price) {
            this.title = title;
            this.price = price;
    public static void main(String args[])
         System.out.println("Inside Book class");
        public boolean equals(Object object) {
            if (object instanceof Book) {
                Book book = (Book) object;
                return getTitle().equals(book.getTitle())
                        && getPrice() == book.getPrice();
            return false;
        public double getPrice() {
            return price;
        public void setPrice(double price) {
            this.price = price;
        public String getTitle() {
            return title;
        public void setTitle(String title) {
            this.title = title;
    BookTest1.java
    package src;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    //import de.laliluna.tutorial.junitexample.Book;
    * @author http://www.laliluna.de
    public class BookTest1 extends TestCase {
        private Book book1;
        private Book book2;
        @SuppressWarnings("unused")
         private Book book3;
         * setUp() method that initializes common objects
        protected void setUp() throws Exception {
            super.setUp();
            book1 = new Book("ES", 12.99);
            book2 = new Book("The Gate", 11.99);
            book3 = new Book("ES", 12.99);
         * tearDown() method that cleanup the common objects
        protected void tearDown() throws Exception {
            super.tearDown();
            book1 = null;
            book2 = null;
            book3 = null;
         * Constructor for BookTest1.
         * @param name
        public BookTest1(String name) {
            super(name);
         * testEquals method to test the equals(..) method
         * of the class Book
        public void testEquals(){
            assertFalse(book2.equals(book1));
            assertTrue(book1.equals(book3));
        public static Test suite(){
            TestSuite suite = new TestSuite();
            suite.addTest(new BookTest1("testEquals"));
            return suite;
    BookTest2.java
    package src;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    //import de.laliluna.tutorial.junitexample.Book;
    public class BookTest2 extends TestCase {
        private Book book3;
        private Book book4;
        private Book book5;
         * setUp() method that initializes common objects
        protected void setUp() throws Exception {
            super.setUp();
            book3 = new Book("ES", 12.99);
            book4 = new Book("The Gate", 11.99);
            book5 = new Book("ES", 12.99);
         * tearDown() method that cleanup the common objects
        protected void tearDown() throws Exception {
            super.tearDown();
            book3 = null;
            book4 = null;
            book5 = null;
         * Constructor for BookTest.
         * @param name
        public BookTest2(String name) {
            super(name);
         * testEquals method to test the equals(..) method
         * of the class Book
        public void testEquals(){
            assertFalse(book4.equals(book3));
            assertTrue(book3.equals(book5));
        public static Test suite(){
            TestSuite suite = new TestSuite();
            suite.addTest(new BookTest2("testEquals"));
            return suite;
    Test Suite(Not neccessary when running with ant)
    package src;
    import junit.framework.Test;
    import junit.framework.TestSuite;
    public class AllJUnitTests {
         /*public AllJUnitTests(String name)
         super(name);
         public static Test suite() {
              TestSuite suite = new TestSuite("Test for src");
              //$JUnit-BEGIN$
              suite.addTest(BookTest2.suite());
              suite.addTest(BookTest1.suite());
              //$JUnit-END$
              return suite;
         * Runs the test suite using the textual runner.
        public static void main(String[] args) {
            junit.textui.TestRunner.run(suite());
    build.xml
    <?xml version="1.0"?>
         <project default="deploy">
         <!-- set global properties for this build -->
              <property name="src" value="src" />
              <property name="build" value="build" />
              <property name="dist" value="dist" />
              <target name="JUNIT">
                   <!-- Create the time stamp -->
                   <tstamp/>
                   <!-- Create the build directory structure used by compile -->
                   <mkdir dir="${build}/src" />
              </target>
              <target name="compile" depends="JUNIT">
                   <mkdir dir="${dist}/lib" />
                   <!-- Compile the java code from ${src} into ${build} -->
                   <javac srcdir="${src}" destdir="${build}/src" >
                   <classpath>
                        <!--<pathelement location="dist/lib/HellowithAnt.jar" />-->
                        <pathelement path="E:/junit4.4/junit-4.4.jar" />
                        <!--<pathelement path="/lib/commons-net-1.4.1.jar" />
                        <pathelement path="/lib/jakarta-oro-2.0.8.jar" />-->
                   <!--<pathelement path="E:/apache-ant-1.7/lib" />-->
                   </classpath>
                   </javac>
                   <junit printsummary="yes" fork="yes"
                           errorProperty="batchtest.failed"
                           failureProperty="batchtest.failed"
                           haltonfailure="yes">
                           <formatter type="xml"/>
                           <classpath path=".">
                             <pathelement path="E:/junit4.4/junit-4.4.jar" />
                             <pathelement path="/build/src/BookTest1.class"/>
                             <pathelement path="/build/src/BookTest2.class"/>
                                <pathelement path="/build/src/AllJUnitTests.class"/>                                   
                             </classpath>     
                             <!--<test todir="${build}/src"/>-->
                             <batchtest todir="${build}/src">
                             <!--<fileset dir="${build}/src" includes="src.AllJUnitTests.class"/>-->
                             <fileset dir="${build}/src">     
                        <filename name ="src.BookTest1.class"/>
                             <filename name ="src.BookTest2.class"/>
                             <filename name ="src.AllJUnitTests.class"/>     
                             </fileset>     
                             </batchtest>
                        <!--<batchtest todir="build.src">
                             <fileset dir="build.src">
                             <filename name ="src.BookTest1.class"/>
                             <filename name ="src.BookTest2.class"/>
                             </fileset>     
                        </batchtest>-->
                             <!--<test todir="${build}/src" name="src.BookTest"/>-->
                        </junit>
                             <fail message="Tests failed!" if="batchtest.failed"/>                              
                            <junitreport todir="${build}/src">
                                <!--<batchtest todir="${build}/src">
                            <fileset dir="${build}/src">
                             <include name="*.xml"/>
                             </fileset>
                             </batchtest>-->
                        <report format="frames" todir="${build}/lib"/>
                             </junitreport>
                    </target>
                    <target name="dist" depends="compile">
                     <!-- Create the ${dist}/lib directory -->
                     <!-- Put everything in ${build} into the HelloTest.jar file -->
                     <jar jarfile="${dist}/lib/HellowithAnt.jar" basedir="${build}/src" >
                          <!--<fileset dir="${dist}/lib">
                                                   <filename name="BookTest1.class"/>
                                                   <filename name="BookTest2.class"/>
                                               <filename name="Book.class"/>
                                               <filename name="dist.lib.HelloTestwith.jar"/>
                          </fileset>-->
                          <manifest>
                           <attribute name="Main-Class" value="src.Book"/>
                           </manifest>
                          </jar>
                    </target>
                    <target name="runtests" depends="dist" >
                     <java jar="${dist}/lib/HellowithAnt.jar"
                          fork="yes" 
                          classpath=".;D:/Java/jdk1.5.0_01/bin;E:/apache-ant-1.7.0/lib/junit-4.4.jar;C:/Documents and Settings/kaushikb/workspace/HelloTestwithAnt/dist/lib/HellowithAnt.jar;C:/Documents and Settings/kaushikb/workspace/HelloTestwithAnt/src/AllJUnitTests;C:/Documents and Settings/kaushikb/workspace/HelloTestwithAnt/src/BookTest1;C:/Documents and Settings/kaushikb/workspace/HelloTestwithAnt/src/BookTest2">
                        <!--<fileset todir="${build}/src">
                             <filename name="src.BookTest1.class"/>
                             <filename name="src.BookTest2.class"/>
                             </fileset>-->
                        <arg value="src.AllJUnitTests"/>
                     </java>
                    </target>
                     <target name="deploy" depends="runtests">
                   </target>
               </project>/*---------------------------------------------------------------------------
    Command prompt output :
    c:/Documents and Settings/kaushikb/workspace/HelloTestwithAnt> ant
    Buildfile: build.xml
    JUNIT:
    compile:
    [javac] Compiling 4 source files to C:\Documents and Settings\kaushikb\wor
    pace\HelloTestwithAnt\build\src
    [junitreport] Processing C:\Documents and Settings\kaushikb\workspace\HelloTes
    ithAnt\build\src\TESTS-TestSuites.xml to C:\DOCUME~1\kaushikb\LOCALS~1\Temp\nu
    1759201173
    [junitreport] Loading stylesheet jar:file:/E:/apache-ant-1.7.0/lib/ant-junit.j
    !/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
    [junitreport] Transform time: 1153ms
    [junitreport] Deleting: C:\DOCUME~1\kaushikb\LOCALS~1\Temp\null1759201173
    dist:
    [jar] Building jar: C:\Documents and Settings\kaushikb\workspace\HelloTe
    withAnt\dist\lib\HellowithAnt.jar
    runtests:
    [java] Inside Book class
    deploy:
    BUILD SUCCESSFUL
    Total time: 5 seconds
    ---------------------------------------------------------------------------

    Haven't looked too carefully because you weren't very specific, but here's how I would do it:
    public class Book { }
    public class TestBook1 extends TestCase {}
    public class TestBook2 extends TestCase {} //don't define any suite() method
    public class TestBookSuite extends TestCase {
       public static Test suite() {
          TestSuite suite = new TestSuite();
          suite.add(TestBook1.class);
          suite.add(TestBook2.class);
          return suite;
    //================ant:===========
    <target name="runtests" depends="dist" >
       <java classpath="." classname="junit.textui.TestRunner">
         <arg value="path.to.TestBookSuite"/>
       </java>
    </target>Of course filling in classpath information and the like where it's appropriate for your situation.

  • FlexUnit4 tests broke in FB4 beta 2

    We had numerous FlexUnit4 test classes containing many test cases (both "regular" and async) running from Flash Builder 4 beta 1 (created based on http://www.insideria.com/2009/05/flashbuilder4-will-support-fle.html ).  These all stopped running with the release of Flash Builder 4 beta 2 (just a
    blank white page displayed (view source reveals the html wrapper for the runner SWF).
    I even went so far as to delete the old mxml runner and the previous flexunit SWCs; then created a brand new Test Class and Suite (based on http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/WSA8198309-A6A6-4c68-A65C-24C6AB4D6 AA7.html ) to try to get a feel for any changes to running the tests.  However, even running these results in just a blank white page opening in the browser, and no tests running.
    I know this is a really open-ended question (sorry!) but I'd like to hear thoughts of resources I could look at, or things to try to get these tests running again.
    Thanks!

    Mike, thanks for your message.
    Upon further investigation of this, I had to start up a server and point to "localhost:port" (I'm communicating with a Ruby/Rails server for various files, logic and DB interaction) in order to get the tests to run.
    The way I have my project set up is building the SWF directly to a directory in my Rails server for ease of development and test runs (no need to copy the SWF into the server folder).  So, when I build my FlexUnitApplication.swf, it builds to this same directory.  Executing Flex Tests opened the browser, pointing to D:/subdirectory/FlexUnitApplication.html, but the FlexUnitApplication.swf never gets loaded into the html container -- unless the server is running.
    I haven't figured out yet why this is required as the unit tests are all written to run independently of a server, and server calls are mocked.
    I'm continuing to investigate this.

  • [svn] 4637: Update config testsuite on blazeds/ trunk to run mxunit tests for a configuration if there are any mxunit tests found in the configuration test directory .

    Revision: 4637
    Author: [email protected]
    Date: 2009-01-23 04:40:16 -0800 (Fri, 23 Jan 2009)
    Log Message:
    Update config testsuite on blazeds/trunk to run mxunit tests for a configuration if there are any mxunit tests found in the configuration test directory. Change some things around in the mxunit build.xml to make this possible, mainly allow things like test directory, reports directory etc. to be passed in as ant properties.
    Add browserServer.jar to the qa-regress-sdk.zip file used for regression runs.
    Update blazeds/trunk to use the latest qa-frameworks.zip.
    Checkintests: passed
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/build.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/build.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/build.xml
    blazeds/trunk/qa/resources/frameworks/qa-frameworks.zip

    Just checked but could only find this thread Unable to run ADFBC JUNIT Test Classes with JDEV11G 11.1.1.6
    As it's also dealing with junit and 11.1.1.6.0 you might want to read it.
    Timo

  • Display text as information when a user runs a package via Excel

    Hi,
    Is it possible to add text to the pop up window a user gets when running a package via the epm add-in? Ideally as per the attached screenshot.
    Thanks,
    Arnold

    Hi Vadim,
    I tried PROMPT(MESSAGE,[label]) but I could see only 3 lines text. how to make it scroll enable for all the test.
    I am using EPM ADDIN SP17 AND Office 213.
    Regards,
    Andrew.

  • Packaging .air file to .dmg via ANT

    First off, I hope someone sees this as this Archive thread is the only place the forum is allowing me to post my air related question.
    So, I'm having some trouble packaging (via ANT) my air 2.0 app into a .dmg file that can be run as a native installer.
    (I am running this on MacOSX 10.6.4 w/ a JRE 1.6.0_20)
    I should note that I can package a .dmg fine from the terminal via > adt -package -target native TestApp.dmg TestApp.air
    but attempting to do the same thing from an ANT task throws a host of various errors.
    For example :
    Running the following task throws errors saying that I have to include the signing options I used when I compiled the air app.
        <target name="package to dmg">
            <java jar="${ADT}" fork="true" failonerror="true" maxmemory="512m">
                <arg value="-package"/>
                <arg value="-target native"/>
                <arg value="TestApp.dmg"/>
                <arg value="TestApp.air"/>           
            </java>
        </target>
    Throws error :  [java] Signing options required to package from descriptor and fileset etc...
    My assumption is that this task should execute idential to the following terminal command :
    > adt -package -target native TestApp.dmg TestApp.air
    So I add my signing options and the compiler complains that now it can't see or load my app descriptor file.
    My understanding is that it shouldn't need the app descriptor since it already used that file when it compiled the swf into the air app?
        <target name="package to dmg"
            <java jar="${ADT}" fork="true" failonerror="true" maxmemory="512m">
                <arg value="-package"/>
                <arg value="-storetype"/>
                <arg value="${STORETYPE}"/>
                <arg value="-keystore"/>
                <arg value="${KEYSTORE}"/> 
                <arg value="-storepass"/>
                <arg value="${CERT_PASSWORD}"/>           
                <arg value="-target native"/> 
                <arg value="TestApp.dmg" />           
                <arg value="${DESCRIPTOR_FILE}"/>
                <arg value="-C"/>
                <arg value="${BUILD_DIR}"/>
                <arg value="."/>
            </java>
        </target>
    Throws error : error 301: Application descriptor missing/cannot be opened
    I have tried every combination of ADT arguments I can think of but to no avail.
    Like I said, I can compile the air app fine and launch it in the ADL as well as install it on my system, it's just the packaging to .dmg from ANT that is giving me pain.
    Any suggestions would be really appreciated.
    Thanks,
    Stephen
    Here is a link to my full build script that may help you see what's going on.
    http://www.quietless.com/tmp/build.xml
    properties files here:
    http://www.quietless.com/tmp/proj.properties
    http://www.quietless.com/tmp/cert.properties
    Message was edited by: braitsch

    Hi,
    Can you try this :
    <target name="package to dmg">
            <java jar="${ADT}"  fork="true" failonerror="true" maxmemory="512m">
                 <arg value="-package"/>
                 <arg value="-target"/>
                 <arg value="native"/>
                <arg value="TestApp.dmg"/>
                 <arg value="TestApp.air"/>           
            </java>
         </target>

  • Report to run CATT test case

    Hi Experts,
    I have a requirement where i need to create a report program to run the   CATT test case 'XYZ'.
    CATT Test case 'XYZ' mass updates pricing for materials via VK11 for condition type PR00, sales area GB20/IC/01.
    As the business should not have permanent authorization to run CATT they requires a report to execute test case 'XYZ' to be developed.
    I have no idea how to run CATT test case through report program. Any pointers will be highly appreciated.
    Thanks & Regards,
    Swati

    Hi Balu,
    Thanks for your feedback. But i am still not clear.Could you please let me know the procedure in steps.
    I also have FS in which functional mention to upload file data and run the test case for some condition type and sales area.
    File have following fields:
    Material, Rate, Pricing Unit, Valid on, Valid to
    Regards,
    Swati
    Edited by: Swati Garg on Mar 7, 2011 6:32 PM

  • Wlst deploy via ant fails with NameNotFoundException

    All,
    I am trying to setup a deployment of a simple ear application to Weblogic using wlst via ant.
    The deployment keeps failing with a NameNotFoundException.
    ####<Sep 20, 2012 4:41:35 PM CDT> <Error> <Deployer> <osb2-dev-1> <WLS_APPMGD1> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1348177295661> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1348177287862' for task '131'. Error is: 'javax.naming.NameNotFoundException: Unable to resolve 'ejb.xxxxServiceSLSBLocalHome'. Resolved 'ejb'; remaining name 'xxxxServiceSLSBLocalHome''
    javax.naming.NameNotFoundException: Unable to resolve 'ejb.xxxxServiceSLSBLocalHome'. Resolved 'ejb'; remaining name 'xxxxServiceSLSBLocalHome'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
    Note that I struck out the actual service name with xxxx. Here is output from ant:
    wl-deploy-only:
    [wldeploy] weblogic.Deployer -verbose -upload -noexit -name xxxx -source artifacts\xxxx.ear -targets APPMGD_Cluster -adminurl t3://soaadmin-dev-1:7003 -user weblogic -password ******** -deploy -appversion anthill-2240
    [wldeploy] weblogic.Deployer invoked with options: -verbose -upload -noexit -name xxxx -source artifacts\xxxx.ear -targets APPMGD_Cluster -adminurl t3://soaadmin-dev-1:7003 -user weblogic -deploy -appversion anthill-2240
    [wldeploy] <Sep 20, 2012 4:01:34 PM CDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, xxxx [archive: artifacts\xxxx.ear], to APPMGD_Cluster .>
    [wldeploy] Task 129 initiated: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    [wldeploy] Task 129 failed: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    [wldeploy] Target state: deploy failed on Cluster APPMGD_Cluster
    [wldeploy] java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    [wldeploy]
    [wldeploy] java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    [wldeploy]
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + xxxx APPMGD_Cluster
    BUILD FAILED
    weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 129 failed: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    Target state: deploy failed on Cluster APPMGD_Cluster
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    at weblogic.Deployer.run(Deployer.java:72)
    at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:420)
    at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1307)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1191)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:218)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: weblogic.deploy.api.tools.deployer.DeployerException: Task 129 failed: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    Target state: deploy failed on Cluster APPMGD_Cluster
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:542)
    at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140)
    at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.Deployer.run(Deployer.java:70)
    at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:419)
    at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    ... 2 more
    Total time: 25 seconds
    I tried redeploy instead of undeploy, but is still fails. Is there anything I am missing?
    Thanks.
    Edited by: 960582 on Sep 21, 2012 7:18 AM

    Kal, that parameter did not solve the problem. I added it under JAVA_OPTIONS in:
    ${oracle.home}\user_projects\domains\osb_domain\bin\startWebLogic.cmd
    I am still getting an exception. The new deployment only gets picked up after the managed servers are bounced. Any idea what could be going on?

  • GWT Testing from Ant Junit task

    Hey, gentlemen,
    I have a target to create junit task to run arbitrary tests for GWT (GWTTestCase subclasses) from different packages. Task should print test cases output in regular junit format and launch tests according to name format, let's say *TestCase.java from anywhere in the project.
    So, the problem is:
    I run it through shell command line
    java -cp 'CLASSPATHHERE' junit.textui.TestRunner my.package.MyTestCase
    successful, as well as from
    <java name="junit" class="junit.textui.TestRunner" ...>
    </java>
    ant target, BUT
    When I try to do it with the <junit> task, I CANNOT specify a tool (junit.textui.TestRunner) I want to run it with (no tag or attribute), so it failed to initialize hosted mode server. Specifying it like a regular test cases cannot run... (maybe something wrong with my eyes)
    Did anybody work with GWT and test cases? Any opinions? Thanks in advance...

    When you say you have the junit.jar on the classpath, where did you configure this? In the 10.1.2 release, it needs to be specified in the "Additional Classpath" field of the Project Properties.
    -Matt Hawkins
    Oracle JDeveloper

Maybe you are looking for

  • Early 2011 MBP 17 Random Shutdown and Battery Behavior

    Hi all, new to the forums here. I recently purchased a refurbished early 2011 MBP 17' 2.2 Ghz i7 with 8gb and 10.7.5. Out of the box, machine looked great, but I noticed that the power cable was different than the one I had for my early 2011 MBP 15'

  • Weblogic Portal 10.3.2 for Windows 64 bit with OEPE

    Our environment is Windows 64 bit and we are upgrading from Weblogic Portal 9.2 to 10.3.2. I have installed Weblogic Portal for 64 bit using generic installer and have also installed OEPE Helios for 64 bit. I am not getting Portal perspective in Ecli

  • Black background of .psd file appears dull green?

    Hi, after importing a .psd file into FCP its black background appears dull green...any suggestions as to how to prevent this? ...to make the background black in FCP like it was in Photoshop? thanks

  • Get rectangle from pdf C#

    Hi I displaying my a pdf on my form using the Adobe PDF Reader Once displayed the user can draw a rectangle using the Selection tool within Adobe I would like to know if there is a way i can get the coordinates for the rectangle drawn by the selectio

  • Mac Pro 2010 triple boot (Snow Leopard + Windows + Yosemite)?

    Hello All, This is my first question here, I'm usually trying to find the answer myself, but this time I wasn't able to find anything clear enough to me. So I hope that someone can give me clear and easy to understand answer. I must also tell that my