我正在使用ANT运行testng文件,我想设置属性-Djavax.net.ssl.trustStore="E:\trust.jks".
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite" parallel="false" verbose="2">
<test name="Test">
<method-selectors>
<method-selector>
<script language="beanshell"><![CDATA[ System.setProperty("username","TestNG");return true;]]>
</script>
</method-selector>
</method-selectors>
<classes>
<class name="organized.chaos.testng.FunnyTest" />
</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->
这个解决方案对我有效。在套件中指定。https://groups.google.com/forum/#!主题/testng users/v1SK8zxRwM8