I will describe again, what I want:
I have url <app>/plugin_splinter/tests
with checkboxes:
- chrome
- firefox
- test localhost:8000
- test production
- all webtests --or--
- webtest1 , - webtest2, ...
Then I want run webtests (splinter+selenium), navigate to different actions (and type or click).
But I need to open TESTING database, not the MAIN database.
At this time I have changed the architecture to use of Scheduler (which works well),
and I think, I will do following:
- appconfig.ini : test_IP : nnn.nnn.nnn.nnn
- <app>/plugin_splinter.py
if form.process().accepted:
# dynamically create a file models/_tests.py with something like: testDb=True
# schedule tests here
- in db.py I will open MAIN or TESTING datatabase based on: testDb and request.ip==test_IP.
I hope previous will work good for me.
But if somebody has better idea or some comment ....... ? --thanks in advance
Dne pondělí 18. července 2016 11:55:57 UTC+2 Mirek Zvolský napsal(a):