<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: How to read parameters in runtime + Java + TestNg (Thread)</title><description> Hi,  Im using CommandLine+RemoteLaunchX, and I have added parameters in the editParameters section (in TestCase &amp; TestSet). How can I read them at runtime in Java? I have attempted to use System.getProperty(search), but it didnt work.     Thanks,    </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/2847.aspx</link><item><guid isPermaLink="false">threadId=2847</guid><author>Naresh bodda (naresh.bodda@accordiontec.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">selenium</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> testng </category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> runtime parameters</category><category domain="http://www.inflectra.com/kronodesk/thread/tag">parameters</category><title>How to read parameters in runtime + Java + TestNg</title><description> Hi,  Im using CommandLine+RemoteLaunchX, and I have added parameters in the editParameters section (in TestCase &amp; TestSet). How can I read them at runtime in Java? I have attempted to use System.getProperty(search), but it didnt work.     Thanks,    </description><pubDate>Wed, 06 Sep 2023 16:54:33 -0400</pubDate><a10:updated>2023-09-08T21:12:02-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2847.aspx</link></item><item><guid isPermaLink="false">messageId=6191</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> When RemoteLaunchX runs it will call the specified application, which sounds like it is Java.  They</title><description> When RemoteLaunchX runs it will call the specified application, which sounds like it is Java.  They will be passed as arguments to the command-line, so I imagine you would read them using:   class MyClass {
 
    // Main driver method
    public static void main(String[] args)
    {
        // Printing the first argument
        System.out.println(args[0]);
    }
}   where the  args  array contains the parameters and values passed. </description><pubDate>Fri, 08 Sep 2023 21:12:02 -0400</pubDate><a10:updated>2023-09-08T21:12:02-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2847.aspx#reply6191</link></item></channel></rss>