Author: gotcha
Date: Sun Feb 18 20:34:52 2007
New Revision: 39184
Modified:
kukit/kss.buildout/trunk/dotests.py
Log:
add generation of python tests from selenium html
Modified: kukit/kss.buildout/trunk/dotests.py
==============================================================================
--- kukit/kss.buildout/trunk/dotests.py (original)
+++ kukit/kss.buildout/trunk/dotests.py Sun Feb 18 20:34:52 2007
@@ -27,15 +27,23 @@
setupcmd = """wget -O- --http-user=admin --http-password=admin --post-data
add_input_name=demo&UPDATE_SUBMIT=Add
http://localhost:8080/+/AddSimpleContent.html"""
exitcode = subprocess.call(setupcmd.split())
-#start tests
+#create selenium tests
+kssdemotests = os.path.join(here, 'src', 'kss.demo', 'kss', 'demo', 'tests')
python = sys.executable
+creationDir = os.path.join(kssdemotests, 'selenium_tests')
+creationScript = os.path.join(creationDir, 'createpythontests.py')
+command = " ".join([python, creationScript])
+os.chdir(creationDir)
+exitcode = subprocess.call(command.split())
+print "creation exit code", exitcode
+os.chdir(here)
+#start tests
env = {
'SELENIUMBROWSER': seleniumbrowser,
'PYTHON': python,
}
zope_test = os.path.join(here, 'tests')
-kssdemotests = os.path.join(here, 'src', 'kss.demo', 'kss', 'demo', 'tests')
command = [zope_test, '--package-path', kssdemotests, 'kss.demo.tests',
'--test-file-pattern=^seltest', '--tests-pattern=selenium_tests']
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins