我已经记录了一些与windmill的交互,当我点击save时,我得到了以下(python)脚本:
# Generated by the windmill services transformer
from windmill.authoring import WindmillTestClient
def test_recordingSuite0():
client = WindmillTestClient(__name__)
client.type(text=u'Hello World', id=u'lst-ib')
client.click(link=u'Hello world program - Wikipedia, the free encyclopedia')
client.waits.forPageLoad(timeout=u'20000')现在我一点也不知道如何运行它。最后,我需要一个脚本,用它我可以同时运行100个测试。
但是,如果我运行一个测试,并且很容易将其与python并行化。但是现在我不能运行这个简单的测试。
我希望有人能帮助我:)。
发布于 2011-12-11 16:07:15
您只需将windmill的输出脚本粘贴到名为*.py的文件中,然后执行以下命令即可运行
windmill chrome test=./[directory containing your *.py files] http://www.google.com您还可以直接指定测试文件的名称。
如果您想并行运行脚本,那么您可以在不同的终端中执行这些命令。到目前为止,这只适用于chrome。如果有多个实例打开,Firefox就会报错。
https://stackoverflow.com/questions/8459892
复制相似问题