`
aerchi
  • 浏览: 425401 次
  • 性别: Icon_minigender_1
  • 来自: 昆明
文章分类
社区版块
存档分类
最新评论

Watij 在WINDOWS 7 能使用吗?

 
阅读更多
Are you using the old api or the new WebSpec api? WebSpec works fineonWin7X 64.


Two solutions. Best solution, switch to WebSpec API as the old version
of Watij (3.2.1) is being replaced with WebSpec.

Alternative solution, run in 32-bit mode. I have not tried it but two
thoughts come to mind. The first is that Java has a switch (-D32 I
think) to make 64-bit Java run in 32 bit mode. This might trick Watij
into using the 64-bit DLL. The other option is to create a shortcut
and set it to run in 32-bit mode (might be called Compatibility mode).
If you run things from the shortcut it should be totally 32 bit and
work fine. From the command line you can use the RUNAS.EXE to set the
mode.



Watij (the old API) works fine onWin764bit, too. Just make sure to
use a 32bit java version. (Otherwise a 64bit jni dll is missing)


Hi,
I'm facing same problem. I installed Watij (webspec_1.0.1_beta)
today on Windows7. Wrote following code

@Test
public void testRun()
{
Spec spec = new Spec().safari();
spec.open("http://www.google.com");
spec.find("input").with("name=='q'").set("value='Watij'");
spec.find("input").with("type=='button'").with("value=='Google
Search'").click();
//check results
spec.find("a").with("href=='http://watij.com/'").shouldExist();
}

but it throws exception of

java.lang.ExceptionInInitializerError
Caused by: com.jniwrapper.LibraryNotFoundException: Cannot find
JNIWrapper native library (jniwrap64.dll)

I tried few things but no use. I'm not sure what's missing.

Any direction is appreciated,
Thanks,
Anu

On Sep 22, 11:35pm, chribuhhh <chribu...@googlemail.com> wrote:



Brian Knorr
View profile
More optionsNov 7 2010, 8:20am
Yes for the WebSpec API on windows 64 you have to use 32 bit java sdk.

The old Watij api works with IE on Windows. Watij's new WebSpec api
works with IE and Mozilla on Windows, Safari and Mozilla on Mac, and
Mozilla on Linux. For Windows7(64bit) make sure you are using a
32bit Java SDK. On Mac you just have to pass in -d32 in your VM args
to force 32bit Java execution.

On Nov 8, 1:13pm, Anamika T


I have used Watij with IE7 and IE8. No problems at all. It does not
work on x64 systems however.






分享到:
评论

相关推荐

    Auto-Testing PPT (Watij)

    To learn one of Auto-Testing framework in java

    \watij_release_3.2.1.zip

    一个基于java的web应用测试工具,开源的。

    淘宝自动发货源代码,用到了spring2 和 hibernate3 还有watij

    先安装watij launchWatijBeanShell.bat 然后, 使用ant AutoMain 就可以了 。还有需要你在IE上登录淘宝账号。 压缩包大于20MB 发不上去了。 只发源码吧。用到了spring2 和 hibernate3 还有watij

    watij-dsl:Watij 浏览器自动化 dsl

    在新的 Eclipse 应用程序中创建一个新项目 创建一个扩展名为 *.watij 的文件(您可以复制/粘贴下面的示例) 单击“Start Watij”按钮开始解释。 browser = require Firefox; browser .goto...

    Watij - Web Application Testing in Java-开源

    Watij(发音为wattage)代表Java中的Web应用程序测试。 基于Watir的简单性并借助Java的强大功能,Watij通过真实的浏览器http://groups.google.com/group/watij自动执行Web应用程序的功能测试。

    java文集

    Java正则表达式 批量上传--采集 (多个文件夹) The Agile Way hibernate mapping文件中的标记详解:关系标记 ANT 安装使用及build.xml文档模板 inverse和cascade在关联更新中的作用 hibernate ...

    watgui-开源

    Web应用程序测试GUI程序开发为以与用户使用watij Java API使用Internet Explorer相同的方式测试Web应用程序

    Wreb应用系统的自动化测试解决75-案 (2010年)

    功能方面的自动化测试主要采用关键字驱动的web系统测试框架watij来实现,而性能测试的自动化则利用分布式的测试工具Tsung自动化测试不能完全取代人工测试,只有在保证软件质量的前提下,进行自动化测试才有意义。

    AutoeXplorer:非程序员的开源自动Web浏览。-开源

    我们是面向非程序员的开源,免费使用的自动化网络浏览器。 只需单击一个按钮即可自动执行平常的Web任务,并在需要时进行回放。 安排在您外出时播放,或在上班时准备好播放。 我们支持所有主要的Web浏览器,包括Fire...

    Hanno Model Based Web Testing Framework-开源

    Hanno是Java中基于模型的测试自动化框架,用于Web应用程序的动态探索性测试。 它基于Apache Commons SCXML和Watij构建。

Global site tag (gtag.js) - Google Analytics