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 liveservertestcase opens browser on localhost:port, should give list of ports use in order avoid this port in use errors:

    ./manage.py test --liveserver=localhost:8082,8090-8100,9000-9200,7041 
  • probably, creating , truncating database tables liveservertestcases cause tests fail (the behavior can changed though)

also see:


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -