MonScoDocEssai/scotests/splinter
2020-12-26 00:11:55 +01:00
..
common.py New testing tools 2020-12-26 00:11:55 +01:00
conn_info.py New testing tools 2020-12-26 00:11:55 +01:00
README.md New testing tools 2020-12-26 00:11:55 +01:00
test-0.py New testing tools 2020-12-26 00:11:55 +01:00
test-intensive-changes.py New testing tools 2020-12-26 00:11:55 +01:00
test-jury.py New testing tools 2020-12-26 00:11:55 +01:00

Tests avec splinter (expérimental)

http://splinter.cobrateam.info/docs/tutorial.html

Installation de Splinter

apt-get install python-dev
apt-get install libxslt-dev
apt-get install libxml2-dev
apt-get install python-lxml python-cssselect


/opt/zope213/bin/easy_install zope.testbrowser
/opt/zope213/bin/easy_install cssselect
/opt/zope213/bin/easy_install splinter

J'ai du hacker _mechanize.py, ligne 218

vi +218 /opt/zope213/lib/python2.7/site-packages/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py

url = _rfc3986.urljoin(self._response.geturl()+'/', url)

(ajouter le + '/')

Essais:

/opt/zope213/bin/python common.py  

ne doit pas déclencher d'erreur.