How to use selenium test against different browsers using LiveServerTestCase

2013-09-26 Thread Tianyi Wang
Hi guys, So follow the Django doc example, https://docs.djangoproject.com/en/dev/topics/testing/overview/#django.test.LiveServerTestCase In the example, the test only test against Firefox. How can I test against different browsers without duplicate the example code? Thanks Tianyi -- You rec

Re: How to use selenium test against different browsers using LiveServerTestCase

2013-09-26 Thread Rafael Durán Castañeda
Hi, I don´t know any out-of-the-box solution for this, but sure you can write your own test runner/suite, so any selenium test is run by multiple browsers (maybe just using settings to select the browser). However, if you are really concerned about testing on multiple browsers, multiples versio

Re: How to use selenium test against different browsers using LiveServerTestCase

2013-09-26 Thread Evan Leis
Alright, tested tried and True: The following code provides the ability to decorate tests so that a whole list of drivers is used... see the docs for examples... import functools def test_drivers(pool_name='drivers', target_attr='selenium'): """ Run tests with `target_attr` set to each

Re: How to use selenium test against different browsers using LiveServerTestCase

2013-09-26 Thread Arnold Krille
On Thu, 26 Sep 2013 09:46:43 -0700 (PDT) Tianyi Wang wrote: > So follow the Django doc example, > https://docs.djangoproject.com/en/dev/topics/testing/overview/#django.test.LiveServerTestCase > In the example, the test only test against Firefox. How can I test > against different browsers without

Re: How to use selenium test against different browsers using LiveServerTestCase

2013-09-27 Thread Tianyi Wang
Thanks for all your answers. On Thursday, 26 September 2013 17:46:43 UTC+1, Tianyi Wang wrote: > > Hi guys, > > So follow the Django doc example, > https://docs.djangoproject.com/en/dev/topics/testing/overview/#django.test.LiveServerTestCase > > In the example, the test only test against Firefox