Service Virtualization

 View Only
  • 1.  Keystore not found in test suite

    Posted Jan 12, 2016 12:04 PM

    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:

      java.lang.NullPointerException

     

    Any idea how to solve this? Thanks



  • 2.  Re: Keystore not found in test suite

    Broadcom Employee
    Posted Jan 13, 2016 10:07 PM

    Hi,

     

         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).

     

    Thanks

    Srikanth