简体   繁体   English

如何在Python中导出Selenium IDE Test Suite?

[英]How to export Selenium IDE Test Suite in Python?

I know how to export Test case in python from Selenium IDE. 我知道如何从Selenium IDE导出python中的测试用例。 But I wonder Is it possible to export Test Suite in python? 但我想知道是否可以在python中导出Test Suite?

This is not supported in the core Selenium IDE itself (yet), but this add-on will let you export all the test cases in a suite in one go: 核心Selenium IDE本身(尚未)支持此功能,但此附加组件允许您一次性导出套件中的所有测试用例:

You can export Selenium IDE Test Suite in Python like the following steps: 您可以像以下步骤一样在Python中导出Selenium IDE Test Suite:

  1. Record the series of actions to test which you would like to export from the Selenium IDE. 记录要测试您要从Selenium IDE导出的一系列操作。 This is the "test suite" in which actions that evoke certain behaviors are saved by Selenium to repeat on command. 这是“测试套件”,其中唤起某些行为的动作由Selenium保存以重复命令。
  2. In the menu bar, click "Options," then "Format," then "Python." 在菜单栏中,单击“选项”,然后单击“格式”,再单击“Python”。
  3. Save the test under the name "test one," and then save the Python test suite as "test_one.py". 将测试保存在名称“test one”下,然后将Python测试套件保存为“test_one.py”。 The Python script will represent the actions in test suite in Python code. Python脚本将代表Python代码中测试套件中的操作。

Read more : http://www.ehow.com/how_12188004_export-python-test-suite-selenium.html 阅读更多: http//www.ehow.com/how_12188004_export-python-test-suite-selenium.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM