Forum Discussion

NBalas's avatar
NBalas
New Contributor
14 days ago
Solved

How to use /tags or /test with Jenkins ?

I use Jenkins to launch my test campaign but I have trouble focusing on a part of my test with either Tags or test focusing. First I tried with Tags in my script and in the command line, but I think testExecute v15 doesn't support Tags. 
So I created a new "Test Item" named 'MultiGateway', and puted my test inside, separeted from the rest of the project : 

Here is a part of my pipeline, I added the "/test:MultiGateway" in my argumentLine AND in the parameter before but my whole project is launched everytime" :

steps { 
script {
 testcompletetest credentialsId: 'jenkins-execute', 
suite: 'E:\\TestComplete\\TMSFF\\TNR_TMS_FF.pjs', 
accessKeyId:'AccessKeyTestExecute', 
sessionScreenResolution: '1920x1080', 
commandLineArguments: '/PSVar:ServeurVM=****** /PrjVar:PRJ_USER_NAME=**** /PrjVar:PRJ_USER_MDP=***** /test:"MultiGateway" /PrjVar:"defaultWebUrl=http://***********" /PrjVar:"LOGIN_DELAY=85000"', useTCService: true 
} 
}

 

Anyone has any or help ? I'm not expert in either Jenkins or TestExecute and i'm all out of options to trie

Thanks in advance

  • Our execution plan looks like this:

    To run all the tests in the Running/Passing folder we pass this parameter to TestExecute from Jenkins:  "/test:Running|Passing"

    To run a specific test in the Passing folder you would append "|<test name>" to that where "<Test name>" represents the name of the test you see in the Execution Plan.

6 Replies