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

What causes "Error saving report" error?

$
0
0

Hi

I am trying to generate the junit style test results using flex unit.

 

The error log is:

 

Buildfile: c:\Code\unittests\src\build.xml

 

init:

   [delete] Deleting directory c:\Code\unittests\src\reports

    [mkdir] Created dir: c:\Code\unittests\src\reports

 

main:

    [mxmlc] Loading configuration file C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\frameworks\flex-config.xml

    [mxmlc] C:\Code\unittests\build\unittests.swf is up-to-date and does not have to be rebuilt.

 

test:

    [mxmlc] Loading configuration file C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\frameworks\flex-config.xml

    [mxmlc] Required RSLs:

    [mxmlc]     http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/framework_4.6.0.23201.swz with 1 failover.

    [mxmlc]     http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz with 1 failover.

    [mxmlc]     http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/spark_4.6.0.23201.swz with 1 failover.

    [mxmlc]     http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/sparkskins_4.6.0.23201.swz with 1 failover.

    [mxmlc]     http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/mx_4.6.0.23201.swz with 1 failover.

    [mxmlc] C:\Code\unittests\build\unittests.swf (370343 bytes)

     [echo] gets to here0

[flexunit] Validating task attributes ...

[flexunit] Generating default values ...

[flexunit] Using the following settings for the test run:

[flexunit]      FLEX_HOME: [C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0]

[flexunit]      haltonfailure: [true]

[flexunit]      headless: [false]

[flexunit]      display: [99]

[flexunit]      localTrusted: [true]

[flexunit]      player: [flash]

[flexunit]      port: [1024]

[flexunit]      swf: [c:\Code\unittests\build\unittests.swf]

[flexunit]      timeout: [60000ms]

[flexunit]      toDir: [c:\Code\unittests\src\reports]

[flexunit] Setting up server process ...

[flexunit] Starting server ...

[flexunit] Entry [c:\Code\unittests\build] already available in local trust file at [C:\Users\Ghost\AppData\Roaming\Macromedia\Flash Player\#Security\FlashPlayerTrust\flexUnit.cfg].

[flexunit] Opening server socket on port [1024].

[flexunit] Waiting for client connection ...

[flexunit] Executing 'rundll32' with arguments:

[flexunit] 'url.dll,FileProtocolHandler'

[flexunit] 'c:\Code\unittests\build\unittests.swf'

[flexunit]

[flexunit] The ' characters around the executable and arguments are

[flexunit] not part of the command.

[flexunit]

[flexunit] Client connected.

[flexunit] Setting inbound buffer size to [262144] bytes.

[flexunit] Receiving data ...

[flexunit] Sending acknowledgement to player to start sending test data ...

[flexunit]

[flexunit]

[flexunit] Stopping server ...

[flexunit] End of test data reached, sending acknowledgement to player ...

[flexunit] Closing client connection ...

[flexunit] Closing server on port [1024] ...

 

BUILD FAILED
c:\Code\unittests\src\build.xml:68: java.util.concurrent.ExecutionException: Error saving report.

at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)

at java.util.concurrent.FutureTask.get(FutureTask.java:83)

at org.flexunit.ant.tasks.TestRun.run(Unknown Source)

at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

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:390)

at org.apache.tools.ant.Target.performTasks(Target.java:411)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

at org.apache.tools.ant.Main.runBuild(Main.java:809)

at org.apache.tools.ant.Main.startAnt(Main.java:217)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Caused by: Error saving report.

at org.flexunit.ant.report.Report.save(Unknown Source)

at org.flexunit.ant.FlexUnitSocketThread.processTestReport(Unknown Source)

at org.flexunit.ant.FlexUnitSocketThread.parseInboundMessages(Unknown Source)

at org.flexunit.ant.FlexUnitSocketThread.call(Unknown Source)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:662)

Caused by: java.io.FileNotFoundException: c:\Code\unittests\src\reports\TEST-scheduledTaskSuite.tests.TestCase1.xml (The requested operation cannot be performed on a file with a user-mapped section open)

at java.io.FileOutputStream.open(Native Method)

at java.io.FileOutputStream.<init>(FileOutputStream.java:194)

at java.io.FileOutputStream.<init>(FileOutputStream.java:145)

... 9 more

 

Total time: 8 seconds

 

C:\Code\unittests\src>

 

The error at the bottoms says it could not find the file TestCase1.xml, but I checked the reports folder and TEST-scheduledTaskSuite.tests.TestCase1.xml is indeed there.

I have a total of 14 tests and sometime there are two reports generated, sometimes 7, but it appears it is a timing issue as a random number of reports out of the 14 are generated each time.


Viewing all articles
Browse latest Browse all 25673

Trending Articles



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