Ask a Question

TestComplete 'Jenkins Job' with parameters

SOLVED
kixosvk
New Contributor

TestComplete 'Jenkins Job' with parameters

Hi all, 

 

is somehow possible to run Jenkins 'Test Complete test' job but with parameters ?

 

When i configure this kind of job with parameters (e.g. ENV, BROWSER or TEST_NAME, etc)  these are not sent to testcomplete / testexecute.

 

How are you solving this situation ?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
TanyaYatskovska
Community Manager

Re: TestComplete 'Jenkins Job' with parameters

Hi Kixosvk,

 

I’m not familiar very well with your requirements. However, you can try using the following approach:

  1. Enabling the This build is parameterized option in Jenkins.
  2. Specify your parameters and their values.
  3. In the TestComplete Test build step, you can pass those parameters to TestComplete via ${ParameterName}
  4. In TestComplete, you will need to modify your project accordingly to your parameters.

Please read the Setting up TestComplete Tests in Jenkins ( http://smartbear.com/viewarticle/70358/ ) article for details.

Does this approach work for you? If it doesn’t, please describe your task in details.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

9 REPLIES 9
TanyaYatskovska
Community Manager

Re: TestComplete 'Jenkins Job' with parameters

Hi Kixosvk,

 

I’m not familiar very well with your requirements. However, you can try using the following approach:

  1. Enabling the This build is parameterized option in Jenkins.
  2. Specify your parameters and their values.
  3. In the TestComplete Test build step, you can pass those parameters to TestComplete via ${ParameterName}
  4. In TestComplete, you will need to modify your project accordingly to your parameters.

Please read the Setting up TestComplete Tests in Jenkins ( http://smartbear.com/viewarticle/70358/ ) article for details.

Does this approach work for you? If it doesn’t, please describe your task in details.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

kixosvk
New Contributor

Re: TestComplete 'Jenkins Job' with parameters

Hi Tanya, 

 

big thanks to you it works !

 

Before i tried to call params with %ParamName% , that was the Problem.

 

A have maybe another question:

 

Is somehow possible to send params to TestComplete i mean in command line way (for late processing in TestComplete with 'BuildIn' class ) ? 

 

For example:

'TestName' param i will use in TestComplete Test build step but others (EnvName, BrowserName) i want only send to TestComplete in command line. Is that possible ? I will be very thanksfull if this is somehow possible.

 

 

 

 

TanyaYatskovska
Community Manager

Re: TestComplete 'Jenkins Job' with parameters

I’m glad that my solution works for you 🙂

 

As for your question, right now, there is no way to pass TestComplete command line parameters from Jenkins. You can submit a feature request here so that other community members could vote for it.

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
madeshwaran
Occasional Contributor

Re: TestComplete 'Jenkins Job' with parameters

Hi Kixosvk,

 

I am trying to pass the parameter from jenkins to Testcomplete. here is what i did.

 

I have created a Build with parameters in jenkins with a name Env_Val

 

Then in the testComplete, i created a method with parameter.

 

Then i set the value as Param1(value=${Env_Val}).

 

But i am not able to get the parameter value from jenkins to Testcomplete. Am i doing something wrong or if you hve any step by step procedure, then that would be really helpful

Madesh
IR, Chennai
baxatob
Community Hero

Re: TestComplete 'Jenkins Job' with parameters

Hi, 

 

Use "Additional command line arguments" in Jenkins -> Job -> Build (TestComplete Test) -> Settings

 

Then you can get it using BuiltIn.ParamStr() in TestComplete

 

 

DavidE
Contributor

Re: TestComplete 'Jenkins Job' with parameters

Tanya,

 

It appears that the link you provided is no longer valid.  I get a 404 error.  Is this document available elsewhere now?

 

Thanks!

tristaanogre
Community Hero

Re: TestComplete 'Jenkins Job' with parameters

This thread is almost 2 years old.   Links may not be the same as before.  Go to https://community.smartbear.com/t5/TestComplete-Feature-Requests/idb-p/TestXCompleteFeatureRequests and search for the request there.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
TanyaYatskovska
Community Manager

Re: TestComplete 'Jenkins Job' with parameters

Hi DavidE,

 

Check out the following article as well:

https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/running-tests.html

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
aalikhalid
Contributor

Re: TestComplete 'Jenkins Job' with parameters

Hi Tanya,

 

I'm having trouble implementing step 3 and 4.

 

"In the TestComplete Test build step, you can pass those parameters to TestComplete via ${ParameterName}" - Where are we supposed to specify the parameters, int eh 'additional command line arguments"? I am writing the values there but it's not working

 

In TestComplete, you will need to modify your project accordingly to your parameters. - Do you mean 'project variables' should be the same, or the test items parameters should be of the same name? Tried both, did not work for me.

 

Thanks a bunch.

cancel
Showing results for 
Search instead for 
Did you mean: