testing

now browsing by tag

 
 

Taking a screenshot using Protractor and Selenium WebDriver

Here we learn to use Protractor with Selenium WebDriver providing the functionality to take screenshots. Update: Andrew Batz has kindly put together an NPM-installable package with the code in this article. Click here to check it out or download it using npm install screenshot-protractor As I work with SPAs (SingleRead More

Django Unit Testing with Mocks

Unit tests shouldn’t be treated like lesser code. It should be as clean as possible and don’t ever hesitate when it comes to refactoring the unit test code. It can save you a lot of trouble in the long run.

Why Proper Terminology in the Software/Web Dev Industry Matters

Terminology and jargon are part of any field and industry. They enable us to communicate with a common vocabulary which makes it quicker for us to get to the matter at hand. The nice thing about our industry is that people without computer science degrees, such as myself, can getRead More

follow_redirects

follow_redirects I wrote a small utility tool for following HTTP redirects. Needed it for testing the redirects from a desktop site to a mobile site and for testing redirections when using URL shortening services. Came in handy and let me learn how to use the Python Requests library which isRead More

Alternatives to Acceptance Testing

Alternatives to Acceptance Testing I like the goal of eliminating defects while you’re writing code rather than fix bugs later on. When it comes to testing, my goal is to eliminate defects. At least the ones that matter. (Netscape 4.01 users, you’re on your own.) And I’d much rather prevent defects than findRead More

End to end tests posing as unit tests

I’ve been reading the excellent book The Art of Agile Development, I started to think more about why Test Driven Development is important and how it affects how you write code. Using some of the 20%/practice group time we have at work, I started to review my own code to see if I’mRead More