Test result not display in CC dashboard

View: New views
2 Messages — Rating Filter:   Alert me  

Test result not display in CC dashboard

by udi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I would like to see the unit test results in the CC web interface so that I have added below lines in the build file:-


Build.xml
<target name="canoo" depends="deploy">
        <ant antfile="build.xml" dir="D:\Canoo\workcruise" target="wt.full"/>
</target>

For the unit testing, we are using Canoo WebTest tool so that I am calling Canoo build xml which has sub target to run the test successfully.

Test results is generated into the “D:/Canoo/workcruise/results/webtestResults.html”

Cruisecontrol - config.xml
<log dir="logs/${project.name}">
           <merge file="${pmd.output.dir}/pmd_report.xml" pattern="*.xml"/>
           <merge file="D:/Canoo/workcruise/results/webtestResults.html" pattern="*.html" />
</log>

 
To see the successfully generated Test Results in the CC web interface I have given the html file path - D:/Canoo/workcruise/results/webtestResults.html.

But still I cannot see the test results in the CC web results. (Please check the testresults.jpg).

Note: - I can see the “webtestResults.html” file opening with Internet Browser but not able to see in the CC web interface.

Getting below exception error in the cruisecontrol.log file:-
[cc]Sep-11 01:53:57 ScriptRunner  - wt.openResultFile.init:
[cc]Sep-11 01:53:57 ScriptRunner  -
[cc]Sep-11 01:53:57 ScriptRunner  - wt.openResultFile:
[cc]Sep-11 01:53:57 ScriptRunner  -      [echo] Opening result file D:\Canoo\workcruise\results\webtestResults.html with cmd
[cc]Sep-11 01:53:58 ScriptRunner  -
[cc]Sep-11 01:53:58 ScriptRunner  - wt.full:
[cc]Sep-11 01:53:58 ScriptRunner  -
[cc]Sep-11 01:53:58 ScriptRunner  - BUILD SUCCESSFUL
[cc]Sep-11 01:53:58 ScriptRunner  - Total time: 1 minute 35 seconds
[cc]Sep-11 01:54:01 jectController- workcruise Controller: build result event: build successful
[cc]Sep-11 01:54:01 Project       - Project workcruise:  merging accumulated log files
[cc]Sep-11 01:54:01 jectController- workcruise Controller: build progress event:merging accumulated log files
[cc]Sep-11 01:54:22 MergeLogger   - Could not read log: D:\Canoo\workcruise\results\webtestResults.html.  Skipping...
java.net.ConnectException: Connection timed out: connectat java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
        at sun.net.www.http.HttpClient.New(HttpClient.java:304)
       at sun.net.www.http.HttpClient.New(HttpClient.java:316)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)

Please help to resolve the problem !!!!!


Re: Test result not display in CC dashboard

by Tom Hain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have exactly the same problem. Could you solve this in the meanwhile?

I already specified proxy settings but some of the log-files cannot be merged. Direct access of the files using an Internet Browser is successful.

Does somebody have an idea?



udi wrote:
Hi,

I would like to see the unit test results in the CC web interface so that I have added below lines in the build file:-


Build.xml
<target name="canoo" depends="deploy">
        <ant antfile="build.xml" dir="D:\Canoo\workcruise" target="wt.full"/>
</target>

For the unit testing, we are using Canoo WebTest tool so that I am calling Canoo build xml which has sub target to run the test successfully.

Test results is generated into the “D:/Canoo/workcruise/results/webtestResults.html”

Cruisecontrol - config.xml
<log dir="logs/${project.name}">
           <merge file="${pmd.output.dir}/pmd_report.xml" pattern="*.xml"/>
           <merge file="D:/Canoo/workcruise/results/webtestResults.html" pattern="*.html" />
</log>

 
To see the successfully generated Test Results in the CC web interface I have given the html file path - D:/Canoo/workcruise/results/webtestResults.html.

But still I cannot see the test results in the CC web results. (Please check the testresults.jpg).

Note: - I can see the “webtestResults.html” file opening with Internet Browser but not able to see in the CC web interface.

Getting below exception error in the cruisecontrol.log file:-
[cc]Sep-11 01:53:57 ScriptRunner  - wt.openResultFile.init:
[cc]Sep-11 01:53:57 ScriptRunner  -
[cc]Sep-11 01:53:57 ScriptRunner  - wt.openResultFile:
[cc]Sep-11 01:53:57 ScriptRunner  -      [echo] Opening result file D:\Canoo\workcruise\results\webtestResults.html with cmd
[cc]Sep-11 01:53:58 ScriptRunner  -
[cc]Sep-11 01:53:58 ScriptRunner  - wt.full:
[cc]Sep-11 01:53:58 ScriptRunner  -
[cc]Sep-11 01:53:58 ScriptRunner  - BUILD SUCCESSFUL
[cc]Sep-11 01:53:58 ScriptRunner  - Total time: 1 minute 35 seconds
[cc]Sep-11 01:54:01 jectController- workcruise Controller: build result event: build successful
[cc]Sep-11 01:54:01 Project       - Project workcruise:  merging accumulated log files
[cc]Sep-11 01:54:01 jectController- workcruise Controller: build progress event:merging accumulated log files
[cc]Sep-11 01:54:22 MergeLogger   - Could not read log: D:\Canoo\workcruise\results\webtestResults.html.  Skipping...
java.net.ConnectException: Connection timed out: connectat java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
        at sun.net.www.http.HttpClient.New(HttpClient.java:304)
       at sun.net.www.http.HttpClient.New(HttpClient.java:316)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)

Please help to resolve the problem !!!!!
LightInTheBox - Buy quality products at wholesale price!