Forum Discussion

joanfiz's avatar
joanfiz
Occasional Contributor
13 years ago

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!
  • joanfiz's avatar
    joanfiz
    Occasional Contributor
    I found the solutionto this initial problem (had spaces embedded in class name of test case). Moving on I got a new error: Unabl to resolve class GroovySeleneseTestCase....I researched on internet and tried loading the selenium java client driver.jar in the bin/ext folder. (1.0.1). Can someone please advise me what needs to occur to get the import of the com.thoughtworks.selenium.* package to be recognised by Groovy script?
    • testkeesman's avatar
      testkeesman
      New Contributor

      I got past this step by downloading the selenium java client driver jar and putting it in the extensions folder of soapUI.
      However after this i got stuck with the logger conflict.

      Your post has been unanswered since 2012, so i guess there are not many people trying to invoke Selenium IDE in SoapUI