testing - How to run test in parallel using Selenium(LiveServerTestCase) in django project? -
here problem:
i have class inherited liveservertestcase. class imitate users(client) work - go site, filling fields, add files. need imitate multi users work need run class(function) in parallel.
is there ways that, using standard python's things threads, processes , selenium-2? if not, please write simple example of suggestion.
thanks!
personally, distinguish functional (system) django tests , performance/load/multi-user tests based on tools multi-mechanize or locust.
here's can try though.
nose can run tests in parallel (see django_nose). but, may have several problems this:
as far every
liveservertestcaseopens browser onlocalhost:port, should give list of ports use in order avoidthis port in useerrors:./manage.py test --liveserver=localhost:8082,8090-8100,9000-9200,7041probably, creating , truncating database tables
liveservertestcasescause tests fail (the behavior can changed though)
also see:
Comments
Post a Comment