Hey
sparrowenclave,
Are you saying youve already extracted the value and stored as a property already? As youve noticed poperties are stored as strings by default. Im typing this out on my phone (not sitting in front of laptop and so going on memory), but if you have the property stored at testcase level you can try the following:
// grab property from testcase level
def propStringValue = testRunner.testCase.getPropertyValue("propertyName")
//cast the string to integer type
def propStringValue = propStringValue.toInteger()
The above code will cast the string to integer type if property stored at testcase level. Youd need to edit if its stored elsewhere.
I need to highlight that
HimanshuTayal gets the credit for this....i just ripped this from one of his answers!
Nice one,
Rich