Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

407
Views
How to pass @Parameters value from Jenkins?

Currently Jenkins is able to run This test using Maven and Testng. I Want to make a Drop Down list in Jenkins Which will have: For example:

 Platform: - MAC / - Win / - Android / - IOS.
Users: -user1@gmail / -user2@gmail - user3@gmail.

And if i will choose from drop down Android and User3 it will start the test with this set up. Is it possible to implement this way? Because currently in order to change test i need to enter XML file and overwrite the configurations, then push them, and then run.

<test name="Chrome test 1">
    <parameters>
        <parameter name="platform" value="MAC" />
        <parameter name="browser" value="chrome" />
        <parameter name="version" value="56.0" />
        <parameter name="userEmail" value="123456@gmail.com" />
        <parameter name="password" value="123123Test" />
        <parameter name="url" value="https://dev2.com" />
    </parameters>
    <classes>
        <class name="test1"/>
    </classes>
</test>

<test name="Chrome test 2">
    <parameters>
        <parameter name="platform" value="MAC" />
        <parameter name="browser" value="chrome" />
        <parameter name="version" value="56.0" />
        <parameter name="userEmail" value="123123@gmail.com" />
        <parameter name="password" value="123123Test" />
        <parameter name="url" value="https://dev1.com" />
    </parameters>
    <classes>
        <class name="test2"/>
    </classes>
</test>

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I would propose a slightly different solution.
Since your tests will be run on Jenkins, you can go for Parametrized Build.
It is a plug-in that allows for building with parameters.
You can also choose them from a drop-down. I think you would need a choice parameter to choose from a drop-down. You can access such parameters with Maven (no need for TestNG here).

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!