Not Seeing the Test Results in GUI

I have a build configuration (Runner Type: Ant) to do some tests. The script is executed successfilyl but I could not view the results on the Teamcity (GUI).

I have copied build.xml file and output xml file for your information. I am using ImportData type as junit. Am I missing anything here?

build.xml
=========
<?xml version="1.0"?>
<project name="JMeter-Teamcity">
    <taskdef name="jmeter" classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"  classpath="/usr/local/ant/apache-ant-1.8.2/lib/ant-jmeter-1.0.9.jar"/>

    <target name="test">
            <jmeter jmeterhome="\home\teamcity\buildAgent1\work\jakarta-jmeter-2.4"
                    testplan="/home/teamcity/buildAgent1/work/recaptcha.jmx"
                    resultlog="/home/teamcity/buildAgent1/work/recaptcha_out.xml"/>

            <echo message="##teamcity[importData type='junit' path='/home/teamcity/buildAgent1/work/recaptcha_out.xml' verbose='true']"/>
    </target>

</project>

output.xml
==========
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">
<httpSample t="80" lt="80" ts="1303828174905" s="true" lb="recaptcha Request" rc="200" rm="OK" tn="Thread Group 1-1" dt="text" by="450">
  <assertionResult>
    <name>Response Assertion</name>
    <failure>false</failure>
    <error>false</error>
  </assertionResult>
</httpSample>
<httpSample t="48" lt="48" ts="1303828175903" s="false" lb="recaptcha Request failing" rc="200" rm="OK" tn="Thread Group 1-1" dt="text" by="450">
  <assertionResult>
    <name>Response Assertion</name>
    <failure>true</failure>
    <error>false</error>
    <failureMessage>Test failed: text expected to contain /6Lc_J7oSAAAAABwMaBNE4mjigCLECpuAp1M7bCuG/</failureMessage>
  </assertionResult>
</httpSample>

</testResults>

Teamcity Output:
============

[14:29:33]: Checking for changes
[14:29:33]: Clearing temporary directory: /home/teamcity/buildAgent1/temp/buildTmp
[14:29:33]: Checkout directory: /home/teamcity/buildAgent1/work
[14:29:33]: Starting:  /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java  -Dagent.home.dir=/home/teamcity/buildAgent1 -Dagent.name=Fedora Agent 1  -Dagent.ownPort=9091 -Dagent.work.dir=/home/teamcity/buildAgent1/work  -Dant.home=/home/teamcity/buildAgent1/plugins/ant -Dbuild.number=94  -Dfile.encoding=UTF-8 -Dfile.separator=/  -Djava.io.tmpdir=/home/teamcity/buildAgent1/temp/buildTmp  -Dos.arch=amd64 -Dos.name=Linux -Dos.version=2.6.35.12-88.fc14.x86_64  -Dpath.separator=: -Dteamcity.agent.cpuBenchmark=353  -Dteamcity.agent.dotnet.agent_url=http://localhost:9091/RPC2  -Dteamcity.agent.dotnet.build_id=2032  -Dteamcity.auth.password=0xpPwL2Ngw46mW1Q1xybepqHVKN6cvov  -Dteamcity.auth.userId=TeamCityBuildId=2032  -Dteamcity.build.changedFiles.file=/home/teamcity/buildAgent1/temp/buildTmp/changedFiles7225482185020410214.txt  -Dteamcity.build.checkoutDir=/home/teamcity/buildAgent1/work  -Dteamcity.build.id=2032  -Dteamcity.build.properties.file=/home/teamcity/buildAgent1/temp/buildTmp/teamcity.build5651290043816378879.properties  -Dteamcity.build.tempDir=/home/teamcity/buildAgent1/temp/buildTmp  -Dteamcity.build.workingDir=/home/teamcity/buildAgent1/work  -Dteamcity.buildConfName=JMeter Test Automation Ant  -Dteamcity.buildType.id=bt27  -Dteamcity.configuration.properties.file=/home/teamcity/buildAgent1/temp/buildTmp/teamcity.config7429039787476758864.properties  -Dteamcity.idea.home=/home/teamcity/buildAgent1/plugins/idea  -Dteamcity.projectName=JMeter Test Automation  -Dteamcity.runner.properties.file=/home/teamcity/buildAgent1/temp/buildTmp/teamcity.runner4694349169548778245.properties   -Dteamcity.runtime.props.file=/home/teamcity/buildAgent1/temp/agentTmp/ant8507176106870703100runtime   -Dteamcity.tests.recentlyFailedTests.file=/home/teamcity/buildAgent1/temp/buildTmp/testsToRunFirst7092509064107501661.txt  -Dteamcity.version=6.0.3 (build 15925) -Duser.country=US  -Duser.home=/home/teamcity -Duser.language=en -Duser.name=teamcity  -Duser.timezone=UTC -classpath  /home/teamcity/buildAgent1/plugins/ant/lib/ant-launcher.jar  org.apache.tools.ant.launch.Launcher -lib  /home/teamcity/buildAgent1/plugins/antPlugin/lib/buildServerAntRuntime.jar:/home/teamcity/buildAgent1/lib/runtime-util.jar  -listener jetbrains.buildServer.agent.ant.AgentBuildListener -buildfile  /home/teamcity/buildAgent1/work/build.xml test
[14:29:33]: in directory: /home/teamcity/buildAgent1/work
[14:29:34]: test (2s)
[14:29:34]: [test] jmeter (2s)
[14:29:34]: [jmeter] Executing test plan:  /home/teamcity/buildAgent1/work/recaptcha.jmx ==>  /home/teamcity/buildAgent1/work/recaptcha_out.xml
[14:29:34]: [jmeter] Created the tree successfully using /home/teamcity/buildAgent1/work/recaptcha.jmx
[14:29:34]: [jmeter] Starting the test @ Tue Apr 26 14:29:34 UTC 2011 (1303828174732)
[14:29:34]: [jmeter] Waiting for possible shutdown message on port 4445
[14:29:35]: [jmeter] Tidying up ...    @ Tue Apr 26 14:29:35 UTC 2011 (1303828175955)
[14:29:35]: [jmeter] ... end of run
[14:29:36]: [test] echo
[14:29:36]: [echo] ##teamcity[importData type='junit' path='/home/teamcity/buildAgent1/work/recaptcha_out.xml' verbose='true']
[14:29:36]: Importing data from '/home/teamcity/buildAgent1/work/recaptcha_out.xml' with 'junit' processor
[14:29:36]: Ant JUnit report watcher
[14:29:36]: [Ant JUnit report watcher] Watching paths:
[14:29:36]: [Ant JUnit report watcher] /home/teamcity/buildAgent1/work/recaptcha_out.xml
[14:29:36]: /home/teamcity/buildAgent1/work/recaptcha_out.xml report processed
[14:29:36]: Process exited with code 0
[14:29:36]: Ant JUnit report watcher
[14:29:36]: [Ant JUnit report watcher] 1 file(s) found
[14:29:36]: [Ant JUnit report watcher] /home/teamcity/buildAgent1/work/recaptcha_out.xml found
[14:29:36]: Waiting for 1 service processes to complete
[14:29:36]: Publishing artifacts
[14:29:36]: [Publishing artifacts] Paths to publish: [recaptcha_out.xml, teamcity-info.xml]
[14:29:36]: [Publishing artifacts] Sending files
[14:29:36]: Build finished
1 comment
Comment actions Permalink

Hi

This recaptcha_out.xml has its own format, not compatible with JUnit.
At the moment JMeter reports are not supported, but you can add this fearute request in our tracker.

Thanks

0

Please sign in to leave a comment.