Forum Discussion
05ten
11 years agoContributor
I would recommend you to have a look at the Geb framework.
I think it can do almost exactly what you want it to.
@Grapes([
@Grab("org.codehaus.geb:geb-core:0.7.0"),
@Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.15.0"),
@Grab("org.seleniumhq.selenium:selenium-support:2.15.0")
])
import geb.Browser Browser.drive { go "http://myapp.com/login" assert $("h1").text() == "Please Login" $("form.login").with { username = "admin" password = "password" login().click() } assert $("h1").text() == "Admin Section" }
For more in-depth guidance i can strongly recommend their online docs
alokraj001
11 years agoNew Contributor
Thanx Osten for your reply.But I have to do it through SOAPUI tool.
- nmrao11 years agoCommunity HeroOsten had provided you the groovy script right? Have you tried it? And am sure you know how to run groovy script in soapui tool.