Inflectra Customer Forums: Passing test parameters to Jenkins build? (Thread) Hello, I have one question. I have managed to run multiple tests in one Jenkins build via runtests.cmd file as described in the KB. However, I would like to pass the starting url as a test parameter to all the tests that are run through the runtests.cmd The first step in each test is Navigator.Open(url) and what I like is to pass different values to url from Jenkins for each build. (the url will be the same for each test in one test run, the goal is to run the tests in different environments). Is it anyway possible to do it? The tests that are being executed from the runtests.cmd are executed via their play.cmd files en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/rapise/issues-questions/1834.aspxthreadId=1834Stefan Mandovski (stefan.mandovski@interworks.com.mk)rapise jenkins parametersPassing test parameters to Jenkins build? Hello, I have one question. I have managed to run multiple tests in one Jenkins build via runtests.cmd file as described in the KB. However, I would like to pass the starting url as a test parameter to all the tests that are run through the runtests.cmd The first step in each test is Navigator.Open(url) and what I like is to pass different values to url from Jenkins for each build. (the url will be the same for each test in one test run, the goal is to run the tests in different environments). Is it anyway possible to do it? The tests that are being executed from the runtests.cmd are executed via their play.cmd files Wed, 25 Apr 2018 11:53:34 -04002018-05-07T13:05:53-04:00/Support/Forum/rapise/issues-questions/1834.aspxmessageId=3270Jim R (donotreply5@kronodesk.net) Hi Stefan, Yes, dont use the cmd file, instead just call the Rapise command line directly and pass Hi Stefan, Yes, dont use the cmd file, instead just call the Rapise command line directly and pass the parameter values: https://www.inflectra.com/Support/KnowledgeBase/KB26.aspx Regards Jim Mon, 30 Apr 2018 16:58:11 -04002018-04-30T16:58:11-04:00/Support/Forum/rapise/issues-questions/1834.aspx#reply3270messageId=3273Stefan Mandovski (stefan.mandovski@interworks.com.mk) Thanks for the solution Jim. What I actually ended up doing was 1. Put the different ENV links Thanks for the solution Jim. What I actually ended up doing was 1. Put the different ENV links in an IF statement in the Rapise tests. Every test reads from an external txt file a variable and depending on the value, it goes to the link. 2. In the Jenkins job, check This is a parameterized build and add the (ENVs as) parameters to the job. When building the Jenkins job, upon selection of the ENV in Jenkins, Jenkins writes the ENV name as a variable to the txt file using a batch command and the Rapise tests read the ENV from that file and use it in the IF statement to navigate to the proper ENV link. It might be a little more work than it should but works seamlessly. Mon, 07 May 2018 13:05:53 -04002018-05-07T13:05:53-04:00/Support/Forum/rapise/issues-questions/1834.aspx#reply3273