Running the following: Java 1.8, selenium 3.4.0. , Ant, Jenkings and using eclipse IDE
I right click on my project and the select "Export..", under General folder then I select "Ant Buildfiles". Select your project and click finish (Ant build name = 'build.xml')
I right click on build.xml file and select ran as Ant Build.
I receive the following results:
> Buildfile: C:\Users\shcr\workspace\MWay_Tests\build.xml
> build-subprojects: init: build-project:
> [echo] MWay_Framework: C:\Users\shcr\workspace\MWay_Framework\build.xml init:
> build-project:
> [echo] MWay_Tests: C:\Users\shcr\workspace\MWay_Tests\build.xml build: BUILD
> SUCCESSFUL Total time: 429 milliseconds
If I right click on Build XML and select "External Tools Configuration", then under the Targets tab I can select my required tests. (Confirm your target order: "Build, tests, junitreport")If I click Run now, then it start my tests.
The problem is that in Jenkins I still only receive that build is successful but it doesn't start selenium tests:
Buildfile: C:\Users\shcr\workspace\MWay_Tests\build.xml build-subprojects: init: build-project: [echo] MWay_Framework: C:\Users\shcr\workspace\MWay_Framework\build.xml init: build-project: [echo] MWay_Tests: C:\Users\shcr\workspace\MWay_Tests\build.xml build: BUILD SUCCESSFUL Total time: 429 milliseconds