Posts in category: testing


Author:

danclaudiupop@gmail.com

Description:

Functional tests with lettuce and django test client

     When running a functional test, you fire up “browser” and do the "same" actions as a real user (or API client). There are different “browsers” for testing your applications, some of them are real, like selenium and some of them are less real, like django test client. Depending on the context, each of them has its pros and cons. - django test client is very fast, since you don’t need a browser engine, ...

Post by Danu created on: Feb 01, 2013Read more


Author:

danclaudiupop@gmail.com

Description:

Testing registration scenario against django with lettuce and selenium webdriver

Installation The best way to “understand” is by following a good example, so we prepared a sample project which uses django-registration library in order to have a simple, generic user-registration application for our tests. To play with it, just create a new virtualenv and checkout the sample project on Github. The only dependencies are django, selenium, nose and django-registration, so a simple pip install -r requirements.txt inside your virtualenv will be enough.   Settings webdriver ...

Post by Danu created on: Jan 14, 2013Read more


Author:

ram.constantinescu@gmail.com

Description:

Book review: Explore it! by Elisabeth Hendrickson

     There are many ways to test a software product. There are many methodologies that could help in testing that software product, so that the final release contains as less bugs as possible. We are not at the point where we could say that we have found the solution for bug free applications. But we are at the point where we know that in order to avoid buggy, hard to use, no precise scope ...

Post by Ramona created on: Jan 07, 2013Read more


Author:

ram.constantinescu@gmail.com

Description:

Running python tests with GhostDriver in Travis CI

Selenium is great by itself, but its API grows every day - it’s not obvious anymore whether to use “type” or “typeKeys”.  So Google has come up with a new API - WebDriver - which is integrated within Selenium 2.0. Rather than being a JavaScript application running within the browser, WebDriver uses whichever mechanism is most appropriate to control the browser - for Firefox, it’s an extension; for IE, WebDriver makes use of IE's Automation controls ...

Post by Ramona created on: Feb 18, 2013Read more


Author:

danclaudiupop@gmail.com

Description:

Testing your django app with webtest

     I’ve been watching both presentations that Carl Meyer held at Pycon 2012/13 and I highly recommend them if you want a deep dive into writing tests with django. They outline some very good principles for writing effective and maintainable tests. They also highlight a suite of test utilities and frameworks which help you in writing better tests. Among the others, Webtest caught my attention via django-webtest for writing integration/functional tests.      Why you ...

Post by Danu created on: Apr 25, 2013Read more


Author:

ram.constantinescu@gmail.com

Description:

Writing automated tests with Django&Selenium

     Getting our Selenium tests to run faster can be complicated at times, because there are a number of factors to be taken into consideration. Debugging these tests is time consuming and the end result is almost always the same one - a large part of the tests needs to be refactored.       Luckily, for projects implemented with Django, we have the possibility to explore a wide range of testing solutions, backed ...

Post by Ramona created on: Apr 25, 2013Read more