[Aether-474] Parse parameters when defining tests
If test key is defined use that when running tests
Change-Id: I61a109e0bdea41b0d1cc262587ead6236e1c4b5c
diff --git a/TestON/JenkinsFile/CommonJenkinsFile.groovy b/TestON/JenkinsFile/CommonJenkinsFile.groovy
index 279e858..84eee47 100644
--- a/TestON/JenkinsFile/CommonJenkinsFile.groovy
+++ b/TestON/JenkinsFile/CommonJenkinsFile.groovy
@@ -140,7 +140,14 @@
for ( String test : testsFromList.keySet() ){
toBeRun = testsToRun.keySet().contains( test )
stepName = ( toBeRun ? "" : "Not " ) + "Running $test"
- pureTestName = test.contains( "WithFlowObj" ) ? test - "WithFlowObj" : test
+ // pureTestName is what is passed to the cli, here we check to see if there are any params to pass as well
+ if ( test.contains( "WithFlowObj" ) ){
+ pureTestName = test - "WithFlowObj"
+ } else if ( testsToRun[ test ].keySet().contains( "test" ) ){
+ pureTestName = testsToRun[ test ][ "test" ]
+ } else {
+ pureTestName = test
+ }
pipeline[ stepName ] = runTest( test,
toBeRun,
prop,