How to export a Selenium IDE test suite in Python?

I know how to export a test case in python from the Selenium IDE, but I'm interested. Is it possible to export a test suite in python?

+6
source share
2 answers

This is not supported in the main Selenium IDE (yet), but this add-on will allow you to export all test cases from the set at a time:

+3
source

You can export the Selenium IDE Test Suite to Python, for example, the following steps:

  • Record the sequence of steps to verify that you want to export from the Selenium IDE. This is a β€œtest suite” in which actions that trigger specific behaviors are saved by Selenium to repeat the command.
  • In the menu bar, click "Options", then "Format", then "Python".
  • Save the test under the name "test one", and then save the Python test package as "test_one.py". The Python script will represent the actions in the test suite in Python code.

More details: http://www.ehow.com/how_12188004_export-python-test-suite-selenium.html

-2
source

Source: https://habr.com/ru/post/957416/


All Articles