【问题标题】:Selenium RC:How to launch Interactive testing with Multiple browsersSelenium RC:如何使用多个浏览器启动交互式测试
【发布时间】:2011-02-19 15:33:24
【问题描述】:

我想自动化这个场景。用户 A 将一个项目分配给用户 B,用户 B 会收到一条警报消息。为了做到这一点,我想用不同的帐户启动两个不同的浏览器来测试这种交互。有可能做到这一点吗?如果是,怎么做?

【问题讨论】:

    标签: ruby selenium selenium-rc


    【解决方案1】:

    我的示例代码中似乎已经回答了这个问题:http://stackoverflow.com/questions/213430/selenium-rc-run-tests-in-multiple-browsers-automatically。

    firefox = Selenium::SeleniumDriver.new("localhost", 4444, '*firefox', "http://localhost:3000", 10000)
    ie = Selenium::SeleniumDriver.new("localhost", 4444, '*iexpore', "http://localhost:3000", 10000)
    

    然后在不同的浏览器中运行命令。

    【讨论】:

    • 谢谢丹尼尔。这太明显了。
    猜你喜欢
    • 1970-01-01
    • 2010-09-17
    • 1970-01-01
    • 2011-01-07
    • 1970-01-01
    • 2013-06-24
    • 2014-10-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多