cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for groovy script for updating SSL Keystore in RestTestREquest Properties.

SOLVED
Regular Visitor

Looking for groovy script for updating SSL Keystore in RestTestREquest Properties.

Hi,

I am looking for updating the SSL KEystore in REST TestRequest Properties using groovy.

 

The groovy which i have is updating the WS-Security Configurations > Keystore. 

 

But, I need to update in the propeties section. Please help me.:)

-Ramiz

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Contributor

Re: Looking for groovy script for updating SSL Keystore in RestTestREquest Properties.

Hi Ramiz1234,

 

Try

// YourStepName
def request = testRunner.testCase.testSteps["YourStepName"].testRequest
request.setSslKeystore("") // input your string

// if you want to update Rest test step, try below

def request = testRunner.testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.class).each{teststep - >
teststep.testRequest.setSslKeystore("") // input your string
}

 

Regards,

/Aaron

View solution in original post

1 REPLY 1
Highlighted
Frequent Contributor

Re: Looking for groovy script for updating SSL Keystore in RestTestREquest Properties.

Hi Ramiz1234,

 

Try

// YourStepName
def request = testRunner.testCase.testSteps["YourStepName"].testRequest
request.setSslKeystore("") // input your string

// if you want to update Rest test step, try below

def request = testRunner.testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.class).each{teststep - >
teststep.testRequest.setSslKeystore("") // input your string
}

 

Regards,

/Aaron

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors