Hi,
I have to implement groovy with canoo to validate 
textfield value for special characters.
with groovy i have written validation script,i 
dunno how to pass that value to canoo.
for eg x="hello"
Here after validating x,how can
I pass the value of x to setinputfield of canoo.
Please find the script below:

<steps>
<scriptStep description="to check  for alphabets" language="groovy">
x="lavanya"
  println(x)
  theRegularExpression = /([a-zA-Z])/

  if (x =~theRegularExpression)
        
  {
   println("passed")
  }
 else
 {
 println("failed")
 }

</scriptStep>
</steps>
From the above scripting ,how can i pass the  value  to setinput attribute.
That is to
"<setInputField name="applicant.name.first" value="${x}"/>"
Thanks in Advance
Lavanya







      Chat on a cool, new interface. No download required. Go to 
http://in.messenger.yahoo.com/webmessengerpromo.php

Reply via email to