Forum Discussion
testerA
13 years agoOccasional Contributor
I am able to get value in the "Value"
e.g Value = 202;704;8235
How do I split this "Value" to
three property values
I need
areacode = 202
prefix = 704
linenumber = 8235
I tried this code
My data text file
202;704;8235
979;557;6114
310;533;7810
940;594;7006
903;327;5261
Http log shows
Thu Mar 07 18:58:24 EST 2013:DEBUG:>> " <cus:CallerID AreaCode="Value" LineNumber="Value" Prefix="Value"/>[\n]"
e.g Value = 202;704;8235
How do I split this "Value" to
three property values
I need
areacode = 202
prefix = 704
linenumber = 8235
I tried this code
propTestStep.setPropertyValue("Value", tempValue)
def (areacode, prefix,linenumber) = "Value".split(";")My data text file
202;704;8235
979;557;6114
310;533;7810
940;594;7006
903;327;5261
Http log shows
Thu Mar 07 18:58:24 EST 2013:DEBUG:>> " <cus:CallerID AreaCode="Value" LineNumber="Value" Prefix="Value"/>[\n]"