Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

408
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda