Forum Discussion
omatzura
17 years agoSuper Contributor
Hi,
this could be because soapUI is evaluating your script as a "scriptlet" and not a class.. try the following instead:
If this doesn't work, you will probably need to put the Temp class in an external jar (or the script library if you are using soapUI Pro) to use it like this.
regards!
/Ole
eviware.com
this could be because soapUI is evaluating your script as a "scriptlet" and not a class.. try the following instead:
import junit.framework.*;
import com.thoughtworks.selenium.*;
import junit.textui.TestRunner;
public class Temp extends TestCase {
private Selenium browser;
public Temp(String name) {
super(name);
}
public void setUp() {
//some code
}
public static TestSuite suite() {
return new TestSuite(Temp.class);
}
public void test1(){
// some code
}
public void tearDown() {
// some code
}
}
Temp test = new Temp("test");
TestRunner a = new TestRunner();
TestResult result = a.run(test.suite());
If this doesn't work, you will probably need to put the Temp class in an external jar (or the script library if you are using soapUI Pro) to use it like this.
regards!
/Ole
eviware.com