I’m a SW Tester and we’re using jenkins for CI. I’m using TestNG and
I have a parameter, which specifies a TestSuite to be ran.
So in my pom.xml I have the following:
<suiteXmlFile>src/test/java/${testSuite}</suiteXmlFile>
We have various TestSuites, like SmokeTest.xml, Integration.xml and so on..
For manual build-requests, I set up a parameter DropDown to chose the *.xml file I want to run.
But how can I specify a standard value, which will be used for every SVN-triggered build?
I tried setting up "testSuite=SmokeTest.xml" in the Configure-tab of the project, but that way it always uses SmokeTest.xml and ignores the chosen value from the DropDown 🙁
Thanks a lot
I found out that jenkins uses the first line of the DropDown-values as default. So I added Regression.xml in the first line and the other values underneath.
This way, Regression.xml automatically gets triggered after a svn update (or after pre-projects have been rebuild), but I still have the chance to run other tests on demand.