Quantcast
Channel: Adobe Community : Popular Discussions - FlexUnit
Viewing all articles
Browse latest Browse all 25673

junitreport 'redirect' is not allowed when the secure processing feature is set to true.

$
0
0

junitreport 'redirect' is not allowed when the secure processing feature is set to true.

 

 

Hello,

   I'm running flexunit4.1.0-8 and I have an ant script running the test suite.    I recently upgraded from FB 4 to 4.5 and now I'm getting

failures on junitreports.  Here's the full error: 

 

 

[junitreport] : Error! Use of the extension element 'redirect' is not allowed when the secure processing feature is set to true.

[junitreport] Failed to process C:\TDMSE_2_6\tdmse\flex-test\flex_unit_reports\TESTS-TestSuites.xml

 

 

BUILD FAILED

C:\TDMSE_2_6\tdmse\build\flexunitbuild.xml:116: 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.

 

 

Here's the junitreport section:

 

 

[code]

<target name="flex-unit-execute-tdmse-test-runner"

                              description="executes the test runner app">

          <flexunit swf="${FLEX_UNIT_TEST_HOME}/TDMSETestRunner.swf"

                              toDir="${FLEX_UNIT_REPORTS_HOME}"

                              haltonfailure="false"

                              localTrusted="true"

                              verbose="true"

                              headless="false"/>

 

 

          <junitreport todir="${FLEX_UNIT_REPORTS_HOME}">

                    <fileset dir="${FLEX_UNIT_REPORTS_HOME}">

                              <include name="Test-*.xml"/>

                    </fileset>

                    <report format="frames" todir="${FLEX_UNIT_REPORTS_HOME}/html"/>

          </junitreport>

</target>

[/code]

 

 

And here's the full ant build:

[code]

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE project>

<!--

################################################################################

                         TDMS flex unit test suite

################################################################################

$Author:: hermannee                                                            $

$Revision:: 10963                                                              $

$Date:: 2011-11-15 13:38:46 -0500 (Tue, 15 Nov 2011)                           $

$URL:: svn://ehsntpvld03.niehs.nih.gov/dev/tdmse_test_suite/trunk/build/flexun#$

################################################################################

-->

 

 

          <!-- **** ADD THIS TO tdmes/build/build.xml *************

          <property name="FLEX_UNIT_HOME" value="${tdmsedir}/../tdmse_test_suite" />

          <target name="run_flex_units">

              <ant antfile="${FLEX_UNIT_HOME}/build/build.xml" />

          </target>

          ********************************************************* -->

 

<project name="flexunitbuild" basedir="." default="flex-unit-start-test-runner">

          <tstamp>

                    <format property="build.date" pattern="MMMMM dd, yyyy" />

                    <format property="build.time" pattern="HH:mm:ss" />

          </tstamp>

 

 

          <property name="tdmsedir" value="${basedir}/.." />

          <property name="builddir" value="${tdmsedir}/../build" />

 

 

          <property name="FLEX_HOME" value="${builddir}/tools/flex-4.5.0" />

          <property name="PARSLEY_HOME" value="${builddir}/tools/parsley-2.4.0" />

          <property name="FLEX_UNIT_HOME" value="${tdmsedir}/flex-test" />

          <property name="FLEX_UNIT_LIBS_HOME" value="${builddir}/tools/flexunit-4.1.0-8" />

          <property name="FLEX_UNIT_REPORTS_HOME" value="${FLEX_UNIT_HOME}/flex_unit_reports" />

          <property name="FLEX_UNIT_TEST_HOME" value="${FLEX_UNIT_HOME}/flex_unit_tests" />

 

 

          <!-- ==== tasks ============================ -->

          <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>

          <taskdef resource="flexUnitTasks.tasks" classpath="${FLEX_UNIT_LIBS_HOME}/flexUnitTasks-4.1.0-8.jar" />

 

 

          <!-- dev -->

          <echo>basedir: ${basedir}</echo>

          <echo>tdmsedir: ${tdmsedir}</echo>

          <echo>builddir: ${builddir}</echo>

          <echo>FLEX_HOME: ${FLEX_HOME}</echo>

          <echo>FLEX_UNIT_HOME: ${FLEX_UNIT_HOME}</echo>

          <echo>FLEX_UNIT_LIBS_HOME: ${FLEX_UNIT_LIBS_HOME}</echo>

          <echo>FLEX_UNIT_REPORTS_HOME: ${FLEX_UNIT_REPORTS_HOME}</echo>

 

 

          <!-- =================================

          target: run-tdmse-test  

          ================================= -->

          <target name="flex-unit-start-test-runner"

                              description="clean, compile and run tdmse flexunit tests"

                              depends="flex-unit-clean-tdmse-tests,

                              flex-unit-tdmse-compile-test-suite,

                              flex-unit-execute-tdmse-test-runner"/>

 

 

          <target name="flex-unit-clean-tdmse-tests" description="Cleans the FlexUnit test and reports directories">

                    <delete dir="${FLEX_UNIT_REPORTS_HOME}" failOnError="false"

                                        includeEmptyDirs="true" />

                    <mkdir dir="${FLEX_UNIT_REPORTS_HOME}" />

 

 

                    <delete dir="${FLEX_UNIT_TEST_HOME}" failOnError="false"

                                        includeEmptyDirs="true" />

                    <mkdir dir="${FLEX_UNIT_TEST_HOME}" />

          </target>

 

          <target name="flex-unit-tdmse-compile-test-suite">

                    <mxmlc file="${tdmsedir}/flex-src/TDMSETestRunner.mxml"

                                        output="${FLEX_UNIT_TEST_HOME}/TDMSETestRunner.swf">

                              <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>

 

 

                              <!-- ==== include tdmse resource bundles ====== -->

            <locale>en_US</locale>

            <source-path path-element="${tdmsedir}/flex-src/locale/{locale}" />

            <include-resource-bundles>COMMON</include-resource-bundles>

            <include-resource-bundles>OW</include-resource-bundles>

            <include-resource-bundles>PREF</include-resource-bundles>

            <include-resource-bundles>RD</include-resource-bundles>

            <include-resource-bundles>RG</include-resource-bundles>

 

                              <!-- ==== compile parsley library ============= -->

                              <compiler.library-path dir="${PARSLEY_HOME}" append="true">

                                        <include name="parsley-flex4-2.4.0.swc" />

                                        <include name="spicelib-flex-2.4.0.swc" />

                              </compiler.library-path>

 

                              <!-- ==== compile all tdmse flex-src ========== -->

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

                              <source-path path-element="${tdmsedir}/flex-test" />

 

 

                              <!-- ==== compile all flexunit swc's ========== -->

                              <compiler.library-path dir="${FLEX_UNIT_LIBS_HOME}" append="true">

                                        <include name="*.swc"/>

                              </compiler.library-path>

 

                              <!-- ==== compile all flexunit swc's ========== -->

                              <compiler.library-path dir="${FLEX_UNIT_LIBS_HOME}/mocklibs" append="true">

                                        <include name="*.swc"/>

                              </compiler.library-path>

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

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

                    </mxmlc>

          </target>

 

          <target name="flex-unit-execute-tdmse-test-runner"

                                        description="executes the test runner app">

                    <flexunit swf="${FLEX_UNIT_TEST_HOME}/TDMSETestRunner.swf"

                                        toDir="${FLEX_UNIT_REPORTS_HOME}"

                                        haltonfailure="false"

                                        localTrusted="true"

                                        verbose="true"

                                        headless="false"/>

 

 

                    <junitreport todir="${FLEX_UNIT_REPORTS_HOME}">

                              <fileset dir="${FLEX_UNIT_REPORTS_HOME}">

                                        <include name="Test-*.xml"/>

                              </fileset>

                              <report format="frames" todir="${FLEX_UNIT_REPORTS_HOME}/html"/>

                    </junitreport>

          </target>

          <!-- ======================================================== -->

 

 

</project>

 

 

[/code]

 

 

I haven't seen much info about this problem anywhere on google except for this forum post:

 

 

http://forums.adobe.com/thread/740146

 

 

Thanks for any help!


Viewing all articles
Browse latest Browse all 25673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>