Comment #3 on issue 825 by [email protected]: Public API for generating executable test cases
http://code.google.com/p/robotframework/issues/detail?id=825

This API could enlarge the way RF can be used. I would like the API to be even more high level than what Peke is suggesting.

Mainly: API that allows the use of robot libraries and log generation without having to use RF test data syntax.

Some situations where this could allow new ways to use RF:
- Model based testing
- Executable Sequence diagrams
- Pure Python tests with all the things you can do in Python
- Testing with Python REPL
- Other exiting SUTs that require very exotic DSL:s for efficient testing
- Executable Robot Logs (if randomness is used in tests than it is very good idea that the logs with the concrete values are executable)

It would be very cool if I could do something like this in a nose test:

from robot import RF

class SomeTestSuite(RF.TestSuite):

   def test_something(self):
          selenium = RF.import_library('SeleniumLibrary')
          selenium.open_browser()
          selenium.input_text("foo", "bar")
          selenium.click_button("button")

and the execution of it would produce RF style logs...

Reply via email to