Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I pass command-line arguments to a test execution?

0
Posted

How do I pass command-line arguments to a test execution?

0

-DparameterName=parameterValue If the number of parameters on the command line gets unweildy, pass in the location of a property file that defines a set of parameters. Alternatively, the JUnit-addons package contains the XMLPropertyManager and PropertyManager classes that allow you to define a property file (or XML file) containing test parameters. • Why do I get a LinkageError when using XML interfaces in my test? (Submitted by: Scott Stirling) The workaround as of JUnit 3.7 is to add org.w3c.dom.* and org.xml.sax.* to your excluded.properties. It’s just a matter of time before this fix becomes incorporated into the released version of JUnit’s excluded.properties, since JAXP is a standard part of JDK 1.4. It will be just like excluding org.omg.*. By the way, if you download the JUnit source from its Sourceforge CVS, you will find that these patterns have already been added to the default excluded.properties and so has a pattern for JINI. In fact, here is the current version in CVS, wh

0
10

” I have using JVM arguments, with success. I would even suggest a properties file. It is likely that you’ll have more configuration parameters. Better to limit the number of parameters to pass to the JVM to one, so create a properties file and make its location a parameter to the JVM running your tests. J. B. Rainsberger, President, Diaspar Software Services Let’s write software that people understand. http://www.diasparsoftware.com/ telephone: +1 416 791-8603 All correspondence (c) 2002 Diaspar Software Services. If you want to use it, just ask; don’t steal. ———————— Yahoo! Groups Sponsor ———————~–> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/JjlUgA/vN2EAA/kG8FAA/5cFolB/TM ———————————————————————~-> To unsubscribe from this group, send an email to: junit-unsubscribe@xxxxxxxxxxxxxxx Your use of Yahoo! Groups is subject to http://docs.yahoo.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123