robotframework - How do I tell robot-server to reset the test fixture when I use ride with Plone? -


i'm trying write first robot test; i'd use ride advertized in http://developer.plone.org/reference_manuals/external/plone.app.robotframework/happy.html#install-robot-tools

i added

initialization =     import os     os.environ['path'] = os.environ['path'] + os.pathsep + '${buildout:directory}/bin' 

to [robot] section make possible run tests clicking "start" in ride.

it works, second time run tests still see content created first test run.

how tell robot-server go just-initialized state?

easily (and should throw me pool not documenting yet in plone.app.robotframework's documentation – i thought ride difficult running until works on wxpython 2.9).

in ride

  1. select run-tab
  2. change execution profile custom script
  3. click browse select bin/robot buildout script run tests

click start.

technically bin/robot shortcut bin/pybot --listener plone.app.robotframework.robotlistener (i keep repeating bin/, because it's important plone.app.robotframework available in sys.path). robot framework listener -interface specified in robot framework user guide.

our listener calls bin/robot-server (using xml-rpc) before every test testsetup-methods current test layer , after every test testteardown-methods. resets fixture , isolates functional tests.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -