joanfiz
13 years agoOccasional Contributor
exported Selenium IDE test case as Groovy(Junit) getting err
Hello! In order to do integration testing with soapui and selenium for a web I recorded a test case in selenium IDE and exported as Groovy(junit)
package com.example.tests
import com.thoughtworks.selenium.*
class groovy for demo tool extends GroovySeleneseTestCase {
@Override
void setUp() throws Exception {
super.setUp('http://vlslcitcat07:11052/', '*chrome')
setDefaultTimeout(30000)
setCaptureScreenshotOnFailure(false)
}
void testGroovy for demo tool() throws Exception {
selenium.open("/DemoAdminTool/AdminPage.iface")
selenium.click("id=form1:viewGrp")
selenium.click("id=form1:addGrp")
selenium.click("id=form1:viewFam")
selenium.click("id=form1:addFam")
selenium.click("id=form1:addCov")
selenium.click("id=form1:addProvider")
}
}
when I ran this script as a groovy test step the system complained about the for keyword on line 5...do I need to adjust the code to soapui's flavor of Groovy? Thanx!
package com.example.tests
import com.thoughtworks.selenium.*
class groovy for demo tool extends GroovySeleneseTestCase {
@Override
void setUp() throws Exception {
super.setUp('http://vlslcitcat07:11052/', '*chrome')
setDefaultTimeout(30000)
setCaptureScreenshotOnFailure(false)
}
void testGroovy for demo tool() throws Exception {
selenium.open("/DemoAdminTool/AdminPage.iface")
selenium.click("id=form1:viewGrp")
selenium.click("id=form1:addGrp")
selenium.click("id=form1:viewFam")
selenium.click("id=form1:addFam")
selenium.click("id=form1:addCov")
selenium.click("id=form1:addProvider")
}
}
when I ran this script as a groovy test step the system complained about the for keyword on line 5...do I need to adjust the code to soapui's flavor of Groovy? Thanx!