4

I've been working with django a lot. Now I have an app with JavaScript integrated which I want to test. What's your favorite way to integrate real-browser-tests in the django unittest environment? twill? selenium? windmill?

jmoritz
  • 312
  • 2
  • 11

2 Answers2

1

If you aren't already, you should be using nose for your basic unit-testing needs, along with the django-nose app.

Having done that, when you're ready to automate your actual browser testing you should grab alfajor, which is a very handy python wrapper around various libraries like selenium and windmill. Developers are actively working on integrating it as a django app in django_alfajor.

In terms of pure javascript unit tests though, there's a decent write-up here on StackOverflow on the different frameworks.

Community
  • 1
  • 1
Pewpewarrows
  • 823
  • 6
  • 13
  • After installing django-nose and django-nose-selenium, I've tried to make a very simple test with selenium. It seems there's a bug with my combination of browser/selenium rc :-( – jmoritz Oct 06 '10 at 11:53
0

A company I used to intern for Selenium for Javascript testing on server-side.

I think they use Django-Selenium.

Hope this helps...

Srikar Appalaraju
  • 71,928
  • 54
  • 216
  • 264
  • the google code page of django-selenium reads "activity: none". seems not to be maintained any longer. – jmoritz Oct 06 '10 at 11:54