Passing data from Jenkins parameterized build to testng.xml at runtime
<p>I have a browser automation framework which uses Java, Maven and TestNG.  I am using testng.xml files to pass different parameters to tests in the following way:</p>

<pre><code>&lt;parameter name="firstName" value="John"/&gt; 
</code></pre>

<p>I want to be able to expose the data inputs to non-technical people and propose to do this by using a parameterized Jenkins job.  </p>

<p>All of the test data are Strings.</p>

<p>I can see how I can create a parameterized project in Jenkins and can create String parameters within the project.</p>

<p>I am unclear as to the best way of passing the data at runtime. </p>

<p>I understand an Ant script can be used, but I am using Maven already and don't want to introduce another conflicting technology.</p>

<p>I have heard this can be done using a Beanshell script in the testng.xml but, from the example on the <a href="http://testng.org/doc/documentation-main.html#beanshell" rel="nofollow noreferrer">testng docs</a>, I'm still unclear how best to implement this. </p>