In order to test with Junit 4, I manage to setup the test suite like the following
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses( { ClazzToTestA.class, ClazzToTestB.class })
But I keep getting curve underline for those lines starts with @ saying "syntax error on tokens, delete those tokens"
The following is my entire code:
package org.dale.testscript;
import net.sourceforge.jwebunit.junit.WebTester;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses( { ClazzToTestA.class, ClazzToTestB.class })
public class JWebUnitTest extends WebTester {
public JWebUnitTest(String name) {
}
public void testsetUp() {
System.out.println("setup");
getTestContext().setBaseUrl("http://ser.col.com/myportal/retail");
getTestContext().setProxyAuthorization(null, null, "spxyapp.col.com.au", 8080);
System.out.println("setup done");
}
public void testSearch() {
System.out.println("enter testSearch()");
setTextField("userid", "user");
System.out.println("enter userid");
setTextField("password", "password1");
System.out.println("enter password");
submit("img_submit");
System.out.println("enter submit()");
}
}
Can anyone help me out here? Thanks very much