Forum Discussion

NBalas's avatar
NBalas
New Contributor
12 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

  • JDR2500's avatar
    JDR2500
    Frequent Contributor

    We arrange our tests in groups/subgroups in the Execution Plan.  From Jenkins we can then run the tests in specific groups by passing the group names in the command line to TestExecute.  Not sure if that approach would be helpful for you though.

    Best regards, John

    • NBalas's avatar
      NBalas
      New Contributor

      Hi, I have a testItem called 'MultiGateway', I tried adding the following parameters but it still launchs the complete project :

      Like this and inside the "CommandLineArguments"


      • JDR2500's avatar
        JDR2500
        Frequent Contributor

        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.