DISQUS

The Disqus Blog: Testing Django Applications

  • Simon Law · 1 year ago
    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)
  • Devin · 1 year ago
    Yep. That's certainly the next step.
  • Wap Advertising · 1 year ago
    The database is clearly defined. Great.
  • FirstClown · 1 year ago
    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!
  • Devin · 1 year ago
    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.
  • Luke Hoersten · 1 year ago
    Pretty awesome! Maybe I missed it but how are you creating the charts at the end? Google Charts API?
  • Devin · 1 year ago
    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.
  • Russell Keith-Magee · 1 year ago
    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.
  • Devin · 1 year ago
    Oh no rush. Certainly not important with the 1.0 push going on.
  • Graham · 1 year ago
    keep up the good work
  • Mike Patch Tool · 11 months ago
    I wonder If I can use disqus with my iphone device?
  • zstock · 1 year ago
    Hi Daniel,
    Is there a way to post to Disqus using a blackberry?
  • Rob Loach · 1 year ago
    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.
  • Regis · 1 year ago
    Excellent news!
  • bhalchander · 1 year ago
    Testing.. disqus...
  • enricodesimone · 1 year ago
    Interventismo e mercato regolato: e' contraddizione tra emergenza e libero mercato
  • Italian Restaurant · 10 months ago
    Thats good to hear ! Thanks for the hardwork ! Keep it up
  • Vlad Zablotskyy · 1 year ago
    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.
  • Daniel Ha · 1 year ago
    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.
  • Vlad Zablotskyy · 1 year ago
    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.
  • Daniel Ha · 1 year ago
    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.
  • Vlad Zablotskyy · 1 year ago
    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.
  • Daniel Ha · 1 year ago
    It's in my profile - daniel@disqus.com