Forum Discussion

gbhargava2000's avatar
gbhargava2000
New Contributor
7 years ago

Auth info not used in Commnd-line execution

Hi, I have a TestSuite with 2 Testcases.   The first TestCase has a groovy step, that creates a Kerberos Ticket Generating Ticket (TGT). The second TestCase has a REST step, for which Kerberos/SP...
  • gbhargava2000's avatar
    7 years ago

    I have noticed one thing. When I open the "TestCase Editor" and click on the run icon, then TestCase properly using the Kerberos TGT that is in my User Profile folder. 

     

    But when I use TestRunner to run the same TestCase, I get the Authentication error (ie. it is not using the Kerberos TGT to send a ticket to the Server).

     

    What is the different in executing a TestCase from the Editor Vs executing it from TestRunner?

  • gbhargava2000's avatar
    gbhargava2000
    7 years ago

    I found the resolution. 

    For the Kerberos auth to work correctly from the TestRunner, it needs the following JVM parameter:

    -Djavax.security.auth.useSubjectCredsOnly=false