Category: ruby
Testing From Trenches: Hostname Does Not Match The Server Certificate
learn testing, ruby, testing tool
TL;DR This post is solution how to handle error “Hostname Does Not Match The Server Certificate” in Ruby. Problem Every SSL certificate has, among other information, signed site domain name….
Reverting Ruby Hash So That Array Values Become Keys, And Keys become Values
TL;DR Dale Emery @dhemery ask this question on Twitter. I responded with Gist solution. The Problem Is there a canonical/idiomatic way in Ruby 2+ to invert a hash whose values are…
How To Expand Ruby Rspec Difference Output
TL;DR This one goes into howto category, for all the testers in the void and future me. Explains how to set size of rspec diff output which is small by…
Testing file system path with rspec
learn testing, rspec, ruby, testing tool
TL;DR Example of test that should be written by DEVELOPERS. This short post is about how ruby Dir class test proved that my heuristic about current folder feature was wrong….
How to test bad language detector
learn testing, ruby, testing tool
TL;DR This post will provide test strategy for bad language detector. Here is the context. You are testing application that has discussion feature. Every discussion has public visibility and only…
Time modeling
BBST Test Design, learn testing, ruby, Ruby on Rails
TL;DR When I test feature that involve time, depicted graph helps me to understand that feature. I found features that involve time tricky to test because time is abstract attribute…
Browser automatization for beginners
cucumber, learn testing, page object gem, programming, ruby, selenium-webdriver, testing tool, watir-webdriver
Writing time: 2 hours Learning time 3 – 6 months with 4h/day effort. TL;DR As I menthor excellent student to learn browser automation, I realized that I should share with…
Bottom up Heuristic
heuristic, rspec, ruby, testing tool
TL;DR This post is about heuristic that I discovered while I wrote rspec ruby test script. Heuristic can be applied in any situation when you investigate errors reported on file…
Randomize your test data
learn testing, ruby, testing tool
TL;DR This post is about one important testing method that should be automated, test data randomization. You should randomize test data in automated script because this will make your automated…