TestComplete 'Jenkins Job' with parameters
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kixosvk,
I’m not familiar very well with your requirements. However, you can try using the following approach:
- Enabling the This build is parameterized option in Jenkins.
- Specify your parameters and their values.
- In the TestComplete Test build step, you can pass those parameters to TestComplete via ${ParameterName}
- 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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
IR, Chennai
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Use "Additional command line arguments" in Jenkins -> Job -> Build (TestComplete Test) -> Settings
Then you can get it using BuiltIn.ParamStr() in TestComplete
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tanya,
It appears that the link you provided is no longer valid. I get a 404 error. Is this document available elsewhere now?
Thanks!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
