Cucumber, Ruby, Gherkin…no lexer issue and the fix

One of the famous “problems” when you get Cucumber running, is to have a gherkin error.
Digged a lot for a solution, and found that the matter comes from a precompiled package of gherkin.
BAsed on the facts, to be able to have a working cucumber framework, you should have devkit and force a clean install ( with compiling ) of the gherkin.

Remember to use proper devkit for your ruby version.

ATM, been playing with ruby 2.1 and devkit mingw64-32 biti.
Commands to have gherkin working , if you get errors when trying cucumber ( after bundle install, of course! )

gem uninstall gherkin --force
( should see something like
Successfully uninstalled gherkin-2.12.2
Successfully uninstalled gherkin-2.12.2-x86-mingw32

gem install gherkin --platform ruby ( -- platform is mandatory! )
Fetching: gherkin-2.12.2.gem (100%)
Temporarily enhancing PATH to include DevKit…
Building native extensions. This could take a while…


That ( and shoulda wait for some ) would make your gherkin lexer work properly.

That should help you get rid of the
C:/Ruby21/lib/ruby/2.1.0/i386-mingw32. Reverting to Ruby lexer.
WARNING: cannot load such file -- 2.1/gherkin_lexer_en
Couldn't load 2.1/gherkin_lexer_en
The $LOAD_PATH was:

So long!

The troubling messages:
No lexer was found for en (cannot load such file — gherkin/lexer/en). Supported languages are listed in gherkin/i18n.js
on. (Gherkin::I18n::LexerNotFound)
C:/Ruby21/lib/ruby/gems/2.1.0/gems/gherkin-2.12.2-x86-mingw32/lib/gherkin/i18n.rb:108:in `rescue in lexer’

Posted in Articles, QA | Tagged , , , , , , | Comments Off on Cucumber, Ruby, Gherkin…no lexer issue and the fix

RTC2014 – Romanian Testing conference – Cluj – initial

REEA RTC2014So… what’s all about RTC2014?
Based on the numbers out there in the virtual space, 400 attendees, 22 speakers and 9 countries been there.
Location: Cluj Napoca, 15-16 May 2014 – Hotel Grand.
What:A event for testers, split in two days, first day for a bundle of conferences, and the second day for a workshop.
Reea was a Gold Sponsor to this event.

So, Continue reading

Posted in Articles, Diverse, Main, Personal, Romania | Tagged , , , , , | Comments Off on RTC2014 – Romanian Testing conference – Cluj – initial

Tricks: Edit webpage inline using Javascript

wallpaperOf course, all is temporary, it’s like using a WYSIWYG html editor, for current page.
But’s fun to play with, and maybe raise virals 🙂 even they are fake
How to?
In only three steps, that’s all about chaning content of the page, INLINE:
1: Go to your desired page, using firefox or chrome ( i did use the latest )
2: Clear the address bar (URL ) and paste the below code there:
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
– For fast copy-pasters: type it carefully, note the javascript: in front of “document”. should be there! in some browsers, when you paste it, the “javascript:” goes away.
– Note: You can use JS console also, to play the js code in, also.
3: Edit inline 🙂 like in a wysiwyg html editor. Sample here:

4: Have fun and don’t mock too much on sites 😉

Posted in Articles, Diverse, Firefox, Fun | Tagged , , , | Comments Off on Tricks: Edit webpage inline using Javascript

How-To: Post JSon from Ruby with custom headers.

Ruby_logo-300x300YEah, I had encounter that during my cucumber test suites, when i wanted to create a custom request, that implied a custom header parameter to be sent.
Puzzling or not, the Watir Webdriver does not do such, plain browser request are sent… so api testing kind of harder to simulate through web browser calls.
BUT! Always is a way
And here’s one:
Instead of doing Browser.goto, to use Ruby Net::Http… can make it. And that can be doable fast, using def methods.

So, here is a comprehensive example of using Ruby and Net::HTTP to POST some JSON with a custom header and looking at the response body:

require 'net/http'
net ="", 8081)
request ="/some/url/here")
request.set_form_data({"a_named_field" => some_object.to_json})
request.add_field("X-API-KEY", "some api key or custom field")
net.set_debug_output $stdout #useful to see the raw messages going over the wire
net.read_timeout = 10
net.open_timeout = 10
response = net.start do |http|
puts response.code
puts response.read_body

Another approach, based on same approach, using a lib for ease the calls:
Read more here: – Worth Reading!

Posted in Articles, QA | Tagged , , , , , | Comments Off on How-To: Post JSon from Ruby with custom headers.

Network Engineering Technologies, Inc. (NET) Unveils New Website

NewswireToday – /newswire/ – Middleton, WI, United States, 03/17/2008 – Company??s New Web Site Offers a Modern Design and Comprehensive Information on its Solutions and Services.

Network Engineering Technologies, Inc. (NET), a consultant and integrator of IT infrastructures nationwide, is pleased to announce the launch of its new web site on the heels of its 15-year anniversary. NET??s new web site is part of a modernization effort that is being made across multiple communications platforms.

??We??re committed to providing a web site that is not only user-friendly, but provides a depth and breadth of knowledge of our services that our previous site did not,? explained Gary Czubak, NET??s Executive Vice President and General Manager. ??Our rebranding efforts include updating and modernizing our current website and collateral pieces to create a cohesive presentation of our broad technology management capabilities.?

NET partnered with Madison, WI based Clotho Business Solutions to design and deploy the web site in under 2 months. Clotho was able to provide NET with a fully functioning, custom content management system that gives NET the flexibility and scalability that was desired. ??We wanted a web site that could grow and evolve with our business,? stated Mr. Czubak. ??We have created the framework that communicates our capabilities and represents our methodology used to deliver best-in-class project management and network infrastructure services and solutions. From the feedback we have received thus far from our clientele, we believe we are achieving our immediate objectives.?

About Network Engineering Technologies (NET)

Network Engineering Technologies (, founded in 1993, is a leading, turnkey consultant and integrator of scalable network infrastructure services and support. Offering complete end-to-end solutions from dedicated project management, equipment installation, testing and 24/7/365 service, NET is the partner of choice for Fortune 1000 enterprises in the retail, financial and hospitality industries.

Posted in Articles, Main | 2 Comments