Ask a Question

unable to pass value to Test case custom property using groovy?

punter
Contributor

unable to pass value to Test case custom property using groovy?

Test Case 1_custom properties.JPG

5 REPLIES 5
sanj
Super Contributor

Re: unable to pass value to Test case custom property using groovy?

Looks like the paramter order is reversed

username and domain

punter
Contributor

Re: unable to pass value to Test case custom property using groovy?

Tried same result

 

Capture.JPGd.JPG

sanj
Super Contributor

Re: unable to pass value to Test case custom property using groovy?

punter
Contributor

Re: unable to pass value to Test case custom property using groovy?

Still ,no solution

 

just want to pass a value in test step custom property

sanj
Super Contributor

Re: unable to pass value to Test case custom property using groovy?

I have tried the link below it works for me

https://www.soapui.org/scripting-properties/tips-tricks.html

 

Below is what I did and it works for me

testRunner.testCase.setPropertyValue( "Firstname", "Sanjeet" )
def testCaseProperty = testRunner.testCase.getPropertyValue( "Firstname" )

 

cancel
Showing results for 
Search instead for 
Did you mean: