怎么看别人网站怎么做的优化,企业网站建设和实现 论文,网站栏目名,网络建设公司3.选择options—format#xff0c;选择java /Junit4/remote control ,选择工作区中的source标签#xff0c;即显示java脚本51Testing软件测试网5^,_{8Ke5o$~h.F#HY2H,H.lS,u(e0脚本如下#xff0c;只需修改一下红色部分#xff0c;即可在Eclipse里运行w;\J6U9g,D[0pa…3.选择options—format选择java /Junit4/remote control ,选择工作区中的source标签即显示java脚本51Testing软件测试网5^,_{8Ke5o$~h.F#HY2H,H.lS,u(e0脚本如下只需修改一下红色部分即可在Eclipse里运行w;\J6U9g,D[0package text.package;-J/t8t#IS6X0z$t0b}A;gc%K0import com.thoughtworks.selenium.*;51Testing软件测试网5R)A QAp/yq}import org.junit.After;DxV1GV| g:C(I0import org.junit.Before;51Testing软件测试网s#Rz1Z2MW }3WEimport org.junit.Test;51Testing软件测试网G#pC:U9fimport java.util.regex.Pattern;)xZly%{KF0W3R!gu?/L6Dv0public class ClsTestextends SeleneseTestCase{Qlap#gs8U2i0Before?mIgDP1?0public void setUp() throws Exception {51Testing软件测试网h2u0dc_selenium new DefaultSelenium(localhost, 4444, *firefox, http://www.baidu.com/);51Testing软件测试网nl6Ok(gSselenium.start();P,B^FTuV0}w2O4]FV5d\051Testing软件测试网2PSI]4Z;}(V2}Test%^g-kw$\x(ko0public void testTest1() throws Exception {!MD/h(r}-oM0selenium.open(http://www.baidu.com/);51Testing软件测试网,YG%Za X.yselenium.type(idkw, 12);51Testing软件测试网rQ-CB3n(yselenium.click(idsu);#W;U|7a;uXhV0selenium.waitForPageToLoad(30000);,Nl w|t0}51Testing软件测试网3j(e]|/[s{:[?T!I[QXN0AfterZ6V/M#o q0public void tearDown() throws Exception {J$?3[EqwQm0selenium.stop();51Testing软件测试网!VpR1u$Fh0pv}_Oj z%~*e5_9q0}51Testing软件测试网#bKO-I9i5L4.eclipse新建工程新建package名称为text.package;新建class为ClsTest工程属性-Java build path-Add liarbry,添加Junit4。Pu;p4X2Q3d3k-y6PB0Add external JARS,把selenium-server-standalone-2.25.0.jar、51Testing软件测试网(k4yJ0v_*Zmbselenium-java-2.25.0.jar添加进来51Testing软件测试网oe:y*E{(^l将之前的脚本复制到ClsTest.Java中]T$Cv0{*Bj_.g05.启动rc51Testing软件测试网_%?M6G?RCmd进入到selenium-server-standalone-2.25.0.jar所在目录51Testing软件测试网8X}%v?t#y]输入Java–jar selenium-server-standalone-2.25.0.jar启动后cmd窗口不能关闭否则就是停止了51Testing软件测试网5mB%N I CKxVD可以写个批处理来运行rc server(可以使用Java–jar selenium-server-standalone-2.25.0.jar–interactive来交互式启动rc server)