Saturday, December 18, 2010

SpecFlow 1.5 introducing Step Intellisense in VisualStudio

SpecFlow is aiming at providing pragmatic BDD for .NET.

SpecFlow 1.5 comes with Intellisense for step-completion in VisualStudio 2010:

image

When you are writing feature files, you get Intellisense after Given/When/Then/And/But keywords.
As usual you can trigger Intellisense with Ctrl-Space.

The feature is switched off by default. You have to enable it under Menu –> Tools –> Options then choose SpecFlow. In the Editor Settings set 'Enable Intellisense' to True:

image

SpecFlow can be downloaded from GitHub.
SpecFlow 1.5 comes with various improvements and fixes. The full changelog is here.

Keep your specs flowing!

Friday, December 17, 2010

SBB Developer Day 2010

Last Tuesday I was invited to give a Talk at the SBB Developer Day.

Here is my Prezi: Automated Testing: The Developers Viewpoint


The SBB Developer Day is a full day conference that SBB organizes for their IT staff. Most part of the day is organized in three parallel tracks. All together there were about 170 people attending the conference.

SBB.JPG
I really enjoyed the program of the conference and the other presentations. I found the quality and the experience of the conference very positive, which is remarkable for a pure "in-house" conference.

I had an interesting short conversation with @grabnerandi from Dynatrace about combining continuous performance testing. He had some very interesting ideas about the lower right quadrant of the Agile Testing Quadrants.
Andy gave a very interesting presentation about "The Top Performance Problems in modern Applications".

Wednesday, December 8, 2010

Rewrite It!

For a lot of projects a throw-away prototype would be the right thing to do... but people are very afraid of throwing away software.

This idea of throwing away your project can even be taken further than prototypes! TekPub has proven that, read it here:

It seems that TekPub has been completely rewritten two times since going into production about a year ago (and several times as spikes before and after going into production).

blankslate.jpg

This is the very realization of some interesting concepts:

 

Compare that to your corporate legacy enterprise project ... sure it can't be compared, but why? Couldn't a rewrite be more effective than the uncontrolled growth we all observe in legacy applications?

It would mean that you also have to keep your enterprise applications slick and lean. Why is that so hard in corporate IT?

The challenges in rewriting legacy enterprise application are probably the missing stakeholders, the missing original goals and the lost knowledge of the current teams. And those rewrites that are attempted often end up in a gigantic technically driven framework monstrosity... probably because that is easier to do than thinking about business value.

This seems to be an omnipresent pattern and leaves the sour question if corporate IT is really the place you want to be ... especially if you compare it to the seemingly challenging and adventurous parallel universe of web startups.

Sunday, November 28, 2010

Quotes of the Week: Domain Driven

quotes2.jpg

Domain Driven Design is impossible with a classic three layer architecture where DTOs are being shared across layers.

- Greg Young
DDD Exchange 2010



If everyone agrees that it's obviously correct:
  • that the system has layers
  • the one at the top is a website
  • the one at the bottom is a database
...then you probably don´t have much of a domain!
Note that adding an ORM layer does not magically create a domain!

 

Friday, November 19, 2010

Quick Note: Deliberate Discovery

BoyScratchingHead.jpg Interesting thoughts in Deliberate Discovery (and the matching blog-post) by Dan North:

  • Ignorance is the crucial constraint in software projects
  • Second-order ignorance: you are usually ignorant of how ignorant you are!
  • Embrace your ignorance
  • Optimize for learning, delivery will take care of itself
  • Get anything into production early
  • TDD might not be the best thing when you don't know what you are doing: Spike-and-stabilize - deferred test-driven testing
  •  

    ... I am awaiting the podcast.

    Wednesday, November 17, 2010

    Quick Tip: Demoing Selenium with Firefox on OSX

    innovation.jpg

    Whenever I prepare a presentation that contains a demo with Selenium for web automation, I am fighting with the same stumbling blocks again and again.


    Also see my post Quick Tip: Running Selenium on OS X Snow Leopard.

    Another thing is the offline-mode of Firefox: If you don't have internet connection during your presentation, selenium-server will start firefox, but firefox will drop into offline mode from which selenium cannot run its browser automation.

    Here is a way around this:

    1. Create a Firefox profile which will then be used by selenium:
  • Start Firefox with the profile manager: /Applications/Firefox.app/Contents/MacOS/firefox-bin -ProfileManager -no-remote
  • In the profile manager: Create a new profile. I called it 'selenium'. Remember the path to this profile directory that is displayed in the wizard. In my case the path is: /Users/jbandi/Library/Application\ Support/Firefox/Profiles/qd79pvsv.selenium
  • Then start the selenium server with the new profile:
    java -jar selenium-server.jar -firefoxProfileTemplate /Users/jbandi/Library/Application\ Support/Firefox/Profiles/qd79pvsv.selenium


  • 2. Configure the profile to not use offline mode:
  • Start Firefox with the selenium profile (i.e. by running selenium without internet connection).
  • Enter about:config in the location bar.
  • Create (right click) a new boolean preference network.manage-offline-status with the value false.


  • This worked for me with Firefox 3.6.12, Selenium 1.0.3 on OSX 10.6.5.
    There is a lot of info on the net about setting the preference toolkig.networkmanager.disable' to false. This did not work, I think this is only valid on Linux. Also the extension 'StayInOnlineMode' did not solve the problem.


    A trick for better demos with selenium is executing these commands on startup (in my case from java):
    selenium.getEval("window.moveTo(140, 25);");
    selenium.getEval("window.resizeTo(1000, 600);");
    selenium.setSpeed("1000");

    This places and resizes the automated browser window and slows down the automation, so that the audience can actually see what is going on.

    However I did not manage to bring the browser window automatically to the front, it always starts in the background and I have to bring it to front manually (any tip would be appreciated).

    Sunday, November 14, 2010

    Quotes of the Week: Downfall of Agile in the Real World

    quotes2.jpg

    Scrum is easy, as easy as explaining push-ups... the challenge is the practice!

    - rhundhausen,
    proscrumdev brussels



    I don't read agile books. They are a waste of time!

    Agile books out there are just people telling stories about stuff. Stories are great -- love to hear them. But I can't trust the authors of most of these books to tell honest stories and learn honest lessons from them. Instead they have a theme.

    The problem is, real life doesn't have a theme.

    - Agile Ruined my Life

     


    Agile development's primary tenants is to value people and interactions over processes and tools.

    The principle sponsors of the Agile 2010 conference are "Agile" tool vendors.

    Somehow, we've walked in a circle - yet again.

    - Scott Bellware, User Stories are Temporary

     

    Related Posts Plugin for WordPress, Blogger...