When I'm running a test case individually that is a web service call, the keystore (jks file) is recognized. However if I try to include it inside a test suite and have it run, I get the following error:
faultString: Unable to instantiate Crypto class; nested exception is:
java.lang.NullPointerException; nested exception is:
org.apache.ws.security.WSSecurityException: Unable to instantiate Crypto class; nested exception is:
Any idea how to solve this? Thanks
Create a mar info file for the test case by right click on test case and select "Create MAR info file" and check whether security token details (keystore/jks files) are included in mari file. If not included, add those details manually. And then create mar file from mari file by rightclick on mari file and select "Create MAR file", this will create mar file.
Once mar file is created, you can run mar file by right click on mar file -> Run DCM Registry (this will run yout test case on server).