Executing test using ANT, build xml file, its NOT executing tests and generating empty results file

6 views
Skip to first unread message

Anjana Manandhar

unread,
Jul 31, 2015, 3:07:33 PM7/31/15
to JUnit Helper Group
I have been going round round on this, I am not sure what I am doing wrong. The Build is Successful and report gets generated. However, tests do not run and HTML report is empty.
Below is what I see in Command Prompt.

C:\Selenium-Automation-Framework>ant run-tests-setup
Buildfile: C:\Selenium-Automation-Framework\build.xml

clean: Okay
prepare: Okay
compile: Okay
jar: Okay

build-all:
run-tests-setup:
     [echo] Getting ready to run Selenium tests
     [echo] running JUnit Report
[junitreport] Processing C:\SeleniumAutomation\reports\TESTS-TestSuites.xml to C:\Users\admin\AppData\Local\Temp\null1126543060
[junitreport] Loading stylesheet jar:file:/C:/DevApps/apache-ant-1.9.5/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 241ms
[junitreport] Deleting: C:\Users\admin\AppData\Local\Temp\null1126543060
    [mkdir] Created dir: C:\SeleniumReports\report-Asetup-20150731-135843
     [copy] Copying 10 files to C:\SeleniumReports\report-Asetup-20150731-135843

BUILD SUCCESSFUL
Total time: 1 second

When I run 'ant -verbose', one of the things I see is <compile: [copy] No sources found. > This tells me I am missing something, but what I have no clue.

Any clue would be great.

Thanks
Reply all
Reply to author
Forward
0 new messages