4 Replies Latest reply on Oct 19, 2010 3:20 PM by rfkrocktk

    Cannot run <junitreport/> on results from FlexUnit 4.1.0-RC1-77

    rfkrocktk Level 1

      I can't seem to run the junitreport ant task on the generated output of my tests from FlexUnit.

       

      Here's the error I'm getting:

       

      Buildfile: /home/rfkrocktk/Documents/Helios/activeinterview/build.xml
      setup:
      setup.main:
      setup.test:
      compile.client.test:
          [mxmlc] Loading configuration file /opt/adobe/flex/4.1.0.16076/frameworks/flex-config.xml
          [mxmlc] /home/rfkrocktk/Documents/Helios/activeinterview/activeinterview-client/build/test/test.application.swf is up-to-date and does not have to be rebuilt.
      test.client:
       [flexunit] (gflashplayer:20638): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer
       [flexunit] (gflashplayer:20638): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
       [flexunit] Suite: com.activeinterview.flex.PassingTestCase
       [flexunit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec
       [flexunit] Results :
       [flexunit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec
      [junitreport] Processing /home/rfkrocktk/Documents/Helios/activeinterview/activeinterview-client/src/flexunit/TESTS-TestSuites.xml to /tmp/null1041996623
      [junitreport] Loading stylesheet jar:file:/opt/eclipse/helios/64/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
      [junitreport] : Error! Use of the extension element 'redirect' is not allowed when the secure processing feature is set to true.
      [junitreport] Failed to process /home/rfkrocktk/Documents/Helios/activeinterview/activeinterview-client/src/flexunit/TESTS-TestSuites.xml
      
      BUILD FAILED
      /home/rfkrocktk/Documents/Helios/activeinterview/build.xml:70: Errors while applying transformations: javax.xml.transform.TransformerException: java.lang.RuntimeException: Use of the extension element 'redirect' is not allowed when the secure processing feature is set to true.
      
      Total time: 7 seconds
      

       

      This is what my ant target looks like:

       

      <target name="test.client" depends="compile.client.test">
           <flexunit swf="${client.test.bin.file}" 
                haltonfailure="true" verbose="false" localtrusted="true"
                headless="false" todir="${client.flexunit.bin.dir}"/>
           
           <junitreport todir="${client.flexunit.bin.dir}">
                <fileset dir="${client.flexunit.bin.dir}" includes="TEST-*.xml"/>
                <report format="frames" todir="${client.reports.bin.dir}"/>
           </junitreport>
      </target>
      

       

      Can anyone help me with this issue?