}
else
{
openedWindow = this.window.open(url, windowName, windowFeatures, replaceFlag);
}
LOG.debug("window.open call intercepted; window ID (which you can use withselectWindow()) is \"" + windowName + "\"");
if (windowName!=null) {
openedWindow["seleniumWindowName"] = windowName;
}
if(openedWindow != null)
{
selenium.browserbot.openedWindows[windowName] = openedWindow;
return openedWindow;
}
return null;
};
這樣您就能開始WEB自動化了。
ANT的腳本主要以JAVA編譯和JunitReport的Task為主:
<!-- target: compile Compile all test cases. --> <target name="compile" depends="init-test"> <javac srcdir="${src-dir}" destdir="${out-dir}"> <classpath refid="classpath.all" /> </javac> </target> <!-- target: test run the unit test --> <target name="test" depends="init-test"> <junit fork="yes" printsummary="on" maxmemory="100m"> <classpath refid="classpath.all" /> <formatter type="xml" /> <batchtest todir="${junit-xml-dir}"> <fileset dir="${out-dir}"> <include name="**/AllTest*.class" /> <exclude name="**/*$*.class" /> </fileset>
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/
領測軟件測試網最新更新
關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved 北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備2023014753號-2 技術支持和業務聯系:info@testage.com.cn 電話:010-51297073 老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月
|