DISQUS

Community Page on DISQUS

what is this?

DISQUS Blog

The official Disqus forum. This is the place to receive beta support and offer suggestions.
Jump to original thread »
Author

Testing Django Applications

Started by Daniel Ha · 4 months ago

So I’ve been here at Disqus for a month or so now. The biggest project on my plate had been testing. Because of the breadth of the Disqus software, my testing has to cover several different approaches to the platform.
unit testing - using plain python unittests from the unittest module.

view testing - using Django’s test [...] ... Continue reading »

24 comments

  • The other piece of the puzzle here is to have a network of Selenium servers. And a Python module that does this. Then, you can say:

    def setUp(self):
        self.start_test_server('0.0.0.0', 8000)
        self.selenium = SeleniumCluster(browser="*pifirefox", os="windows xp", port=8000)
  • Yep. That's certainly the next step.
  • This is great! This is a great way to keep the development database clean while using a test database for the Selenium tests. I've been running into this recently too as I build up my test suite. It's always hard to not "mess up" the database and cause Selenium headaches on the tests.

    I'm definitely downloading this and using it. Thanks!
  • Yeah. When I sat down to start writing Selenium tests, I figured that would happen. Even if you're careful, it's just a matter of time before something goes wrong and you're in there manually fixing the database.

    So when I saw this ticket on Django's trac, I figured that might actually be a better way to spend my time than being extremely careful and praying.

    Turned out not that hard. A few python threading issues asside. I certainly feel better knowing that our Selenium tests won't go haywire and require a bunch of time to fix.
  • Pretty awesome! Maybe I missed it but how are you creating the charts at the end? Google Charts API?
  • Yes. We're using the Google Charts API for graphing some stuff to visualize internally. It's our pulse of what's happening when it's happening.
  • Thanks for the contribution, Devin! Let me assure you that adding live testserver support is on my radar as something to add to Django's native testing services.

    I've only had a chance to take a cursory glance at the patch you submitted, but on the surface, it looks good.
    I won't get a chance to merge it into trunk before v1.0, but with any luck I will get it into the next release cycle.
  • Oh no rush. Certainly not important with the 1.0 push going on.
  • Hi Daniel,
    Is there a way to post to Disqus using a blackberry?
  • You can make replies to posts through email, and since you can reply to emails on a blackberry, the answer is yes. Just reply to the notification that was sent to you.
  • keep up the good work
  • Excellent news!
  • Testing.. disqus...
  • Interventismo e mercato regolato: e' contraddizione tra emergenza e libero mercato
  • It's all good, but it will be better if you come to http://awaystuff.com and write a couple of useful reviews. It's a site about the low-quality products nobody should buy. Thanks!
  • The database is clearly defined. Great.
  • The programming is rather clean. Good job.
  • I wonder If I can use disqus with my iphone device?
  • Hi Guys,

    I just noticed something interesting on my blog. Disqus happened to be the first plugin I installed, and the only one so far. The FF status bar is showing "www.google-analitycs.com"..... while I have no such code installed on my blog.

    I would love some sort of explanation.
  • Disqus uses GA for analytics. Many websites and widgets do. It allows
    us to better measure usage without having to analyze our own server
    logs. There is no personal data involved.

    Do you have any other questions about it? Email me.
  • Daniel,

    I am aware many use GA. In fact I use it on my sites and blogs.... But
    I keep it on my blog and on my site. I find it strange that your GA
    measures things on my blog.
  • No. We're measuring Disqus hits. It has little to do with your site -
    only that the hits are coming from your site.

    We can measure the same without GA, like any 3rd party application/
    widget. GA just makes it easier.
  • Daniel,

    I would love to e-mail you. However I am not privileged to your e-mail
    address. I just wrote a post why I am leaving Disqus at
    http://sageblogger.com/ - if you care that is.
  • It's in my profile - daniel@disqus.com

Add New Comment

Returning? Login