在Sahi中运行多个脚本

时间:2011-06-16 07:03:17

标签: scripting sahi

我希望按顺序逐个运行所有脚本。我已经创建了一个套件文件并在套件中包含了脚本。当我运行套件时,脚本在多个浏览器中并行运行。我想在一个浏览器中一个接一个地运行它们。

1 个答案:

答案 0 :(得分:0)

您可以通过更改ant目标中的线程从单个浏览器运行套件文件。

<target name="runbrowsertests">

        <sahi suite="../userdata/scripts/demo/demo.suite" 
            browserType="firefox" 
            baseurl="http://sahi.co.in/demo/" 
            sahihost="localhost" 
            sahiport="9999" 
            failureproperty="sahi.failed" 
            haltonfailure="false" 
            threads="1"
            >
            <report type="html" />
        </sahi>
    </target>

如果仍然无效,请编辑browser_types.xml(点击仪表板上的“配置”链接)。对于要运行测试的浏览器,将<capacity>更改为1。重启Sahi。

相关问题