I am running testng file using ANT and I want to set the property -Djavax.net.ssl.trustStore="E:\trust.jks".
Asked
Active
Viewed 1,049 times
0
-
I am trying to login through code on RSA Authentication Manager but I am getting following error – Nikhil R Chaudhari Nov 23 '15 at 07:25
-
Test Connection failed: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target – Nikhil R Chaudhari Nov 23 '15 at 07:26
-
Post the Ant code that runs testng. – Chad Nouis Nov 23 '15 at 15:34
-
@NikhilRChaudhari, you should able to provide in the command line like `ant -Djavax.net.ssl.trustStore="E:\trust.jks"` – Rao Dec 02 '15 at 12:03
-
https://groups.google.com/forum/#!topic/testng-users/v1SK8zxRwM8 – Nikhil R Chaudhari May 20 '16 at 10:50
-
above suggestion worked for me – Nikhil R Chaudhari May 20 '16 at 10:51
1 Answers
0
<?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 -->
this solution worked for me. specifying in suite. https://groups.google.com/forum/#!topic/testng-users/v1SK8zxRwM8

Nikhil R Chaudhari
- 21
- 1
- 7