Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote a few selenium test cases for testing a web application and then integrated the testcases using ANT build automation tool using build.xml.

The output comes to the reports folder, but how can I see the results for all the testcases that I wrote?

share|improve this question
Are you using a test framework such as JUnit or TestNG? – user246 Aug 2 '13 at 2:06
TestNG framework and some times Junit framework also – Sudha Aug 2 '13 at 19:11
I find your question a bit confusing. You ask where to "see" the results, but you clearly state that the output goes into the reports folder. So you know where the reports are, what can't you "see" – Steve Miskiewicz Aug 2 '13 at 23:39

There must be an Index.html file in the result directory. After execution you can see the execution result in that file. Open the file in any of the available browser, or refresh that if already opened.

If you are using xslt reporting, you can get the result in index.html file of test-output directory.

share|improve this answer
There are other html files such as alltest-fails, alltests-errors, all-tests.. please tell me what these files are? Can we see failed tests in alltests-fails and all the errors in alltests-errors? – Sudha Aug 4 '13 at 8:20
@Sudha...Two things... first...It that so much difficult that you could not check it by your own? and second, if you are asking any question not same as the raised one, you should raise a separate thread for it. – Sankumarsingh Aug 4 '13 at 8:36

Something like this perhaps in your build.xml ? I haven't tried this but I assume "frames" means HTML frames output?

<target name="test-reports" depends="test">
    <junitreport tofile="TESTS-TestSuites.xml" todir="${junit.output.dir}/reports">
        <fileset dir="${junit.output.dir}">
            <include name="**/reports/*TEST-*.xml" />
        <report format="frames" todir="${junit.output.dir}/reports" />

Personally, I think Maven or Gradle is a better way to do it than Ant but then again I haven't used Ant and so perhaps I cannot judge.

share|improve this answer
Yeah above is the ANT build.xml, But here am not confused with build.xml. I wanted to know how to view the results after the testcases are run through ANT. – Sudha Aug 2 '13 at 19:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.