Friday, October 31, 2014

Step by Step guide to installing Robot Framework

Robot framework has been a little tricky for most folks though now provides an installer for windows, but still it is best to know the detailed steps if you do not wish to use the Installer.

So let's get started -

Installing Robot framework - requires Python installation first as a pre-requisite.

All steps below for Windows OS (32/64 bit)

Step 1. Install Python version 2.7.8 
(supported Python version for Robot Framework version greater than 2.7)

https://www.python.org/downloads/
Installer Files:  python-2.7.8 - for 32 bit / python-2.7.8.amd64 - for 64 bit

Ex. Installed at c:\python27\

Update PATH environment variable for Python -

C:\Python27;C:\Python27\Scripts;C:\Python27\Tools\Scripts

**Verify Python installed and the path set
Run command:
cmd C:\>python -help
Lists python command line options


Step 2. Install setuptools 7.0
(Easily download, build, install, upgrade, and uninstall Python packages)

https://pypi.python.org/pypi/setuptools#installation-instructions
File: ez_setup.py

Run command :
cmd C:\>python ez_setup.py
.......
"Installed c:\python27\lib\site-packages\setuptools-7.0-py2.7.egg"

**Verify Setup Tools folder and files available -
setuptools-7.0-py2.7.egg file created under ..\lib\site-packages
C:\Python27\Scripts\easy_install2.7


Step 3. Install pip
(Python Package Manager)
https://pip.pypa.io/en/latest/installing.html

File: getpip.py

Run command :
c:\Python27>python get-pip.py
Downloading/unpacking pip
Installing collected packages: pip
Successfully installed pip
Cleaning up...

**Verify pip folder and files available -
C:\Python27\Lib\site-packages\pip
C:\Python27\Scripts\pip


NOW you can install ROBOT FRAMEWORK finally !

Option 1 - Install Robot framework using pip
https://pypi.python.org/pypi/robotframework

Run command :
C:\Python27\Scripts>pip install robotframework
Downloading/unpacking robotframework
.........
Successfully installed robotframework

**Verify pybot.bat created under C:\Python27\Scripts

** Verify Robot framework installed
C:\>pybot --version
Robot Framework 2.8.6 (Python 2.7.8 on win32)

Option 2 - Install Robot framework using the Windows installer
https://pypi.python.org/pypi/robotframework

Pre-requisite - Python installed
Installer Files: robotframework-2.8.6.win-amd64.exe  / robotframework-2.8.6.win32.exe

Option 3 - Use the Stand-alone Robot framework JAR package
Robot Framework is also available as a stand-alone robotframework.jar package.
This package contains Jython and thus requires only JVM as a dependency.

Maven Central -  http://search.maven.org/#search%7Cga%7C1%7Ca%3Arobotframework

Assumes java installed already
** Verify Java installed
cmd c:>java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)

Pre-requisite - Python installed

File: robotframework-2.8.6.jar

Run command:
cmd C:\dev\robotfx\jar>java -jar robotframework-2.8.6.jar

** Verify Robot framework installed ...

robotframework.jar - Robot Framework runner.
Usage: java -jar robotframework.jar [command] [options] [input(s)]


Hurray, you are NOW READY to use the Robot Framework for writing your tests !!

Photo Credit: https://www.flickr.com/photos/zedworks/

Thursday, September 11, 2014

Top 5 Agile project Myths – Smashed !


Catching a glimpse of a snake charmer on a busy Indian metropolis, is a big myth that many foreigners visiting India still cherish (wishful thinking you might say!). But the reality is that snake charming is illegal in India (India Wildlife Act) and has been for a number of years, although snake charmers do still exist and are now an ‘elusive’ sight. But the myth still exists and something similar is the case with the agile projects and the myths surrounding them.


If you take a look at the the annual state of agile surveys for last few years, they have been throwing similar results wrt 'Concerns' about Agile (read as Myths – see below Reference1), reflecting the dismal failure of the agile enthusiasts to be unable to bust the folk tales surrounding the agile projects delivery. This post hopes to therefore Smash the Top 5 agile project myths (popular faolke tales), with a pinch of sugar/salt (take your pick) for added flavour.


Source: Reference 1

Myth1– Agile projects do No Planning

The traditional projects have a Big plan upfront, and planning is highly visible, with a complete plethora of activities, draining the energy for a couple of weeks\months, and resulting in a sometimes scary GANTT chart.

But Agile projects instead focus on Continuous planning, and planning is therefore invisible!
Well you may ask how exactly that is achieved.  The answer lies in the 5 levels of agile planning (at multiple levels) which includes the following -
1.       Product vision plan
2.       Product roadmap plan
3.       Release plan
4.       Iteration (Sprint) plan
5.       Daily plan



Source: Reference 2
These 5 levels of continuous planning allows the agile projects to do continuous risk identification, assessment, and risk burn down via the daily scrum / scrum of scrums among others. The agile project teams are able to visualize these risks using the risk burn down charts, and able to highlight to the stakeholders about the potential upcoming pitfalls.

Myth 2 – Agile projects are Not Predictable and lack Transparency

The traditional projects typically provide an amazingly detailed Big GREEN cover report, with deep RED inside (aka. The Watermelon Report) for those who dare to dig deeper into a project health and find the darker side of reality.

But Agile projects provide Big Visible Dashboards on a real-time basis, which are visible to anyone who cares to look. The charts could include BIG Visible Burn Down charts, Release Burn up charts - showing possibilities of current state and the future trends, allowing trade off decisions to be made early in the project lifecycle. For teams looking at continuous improvements, the CFD (cumulative flow diagram) and other technical metrics indicating the project health and quality indicators complete the project dashboard, thus providing complete transparency and predictability.



Myth 3 –  Agile projects have No Architecture and lack design

The traditional projects typically follow a Big Design Upfront model (BDUF) resulting in the creation of Big Balls of Mud (BBM) and extremely high maintainability costs, primarily due to the high cost of change inherent in the muddy architecture.

But Agile projects tend to let the architecture evolve and follow the emergent design model. Since architecture is indeed the ‘hard to change stuff’, agile projects tend to have as little of that stuff, and take guidance from the enterprise architecture policies and the application architecture constraints.  The design spectrum diagram below highlights the BDUF to cowboy hacking approach and the agile projects fall in the middle.



Source: Reference3

The Ambysoft surveys indicate that 77% agile projects did perform high level initial architecture envisioning and are focussed on reducing technical debt more mercilessly, using the engineering practices like TDD, continuous refactoring and harvesting patterns for reuse.

Myth 4 –  Agile projects have No Documentation

The traditional projects produce Big Bulky Documentation (BBD) for every stage in the software life cycle, most of which is internal and tends to get stale quickly, smelling of wasted time and efforts.

But Agile projects tend to write just enough documentation which is fit for the purpose for the team/project needs. The agile documentation could take many forms and occur at multiple stages in the project lifecycle. The collaborative approach of the agile teams includes using - wiki’s /word doc / simple sticky notes/ big physical boards – to communicate and document lightly the project story including the technical design and requirements elicitation discussions.



Source: Reference 4


Myth 5 –  Agile projects have No engineering discipline

The traditional projects, which produce big balls of mud, have a tendency to end up forcing the technical excellence as a post release activity (“let’s clean up the code now that we have released to production” – is a common pattern).

But Agile projects always pay continuous attention to technical excellence, since agile teams know that a good design enhances agility and helps in the longer term maintenance. The agile teams accept change and have much simpler design thanks to the engineering practices, like following team coding standards, having collective code ownership, writing unit tests, practising continuous Integration and doing pair programming, while following test driven development.


Source: Reference 5

The Ambysoft surveys clearly indicate that the agile teams follow high engineering discipline, since     - 72 % - write unit tests, 55% have coding standards, 58% do CI,  47% do refactoring,  38% do TDD


....and so the search continues for the elusive snake charmer. Let me know if you have seen one recently...

References:
  1. 8th Annual State of Agile Survey
  2. Mike Cohn, Agile Estimating and Planning, Informit, 2009
  3. IBM Evolutionary Architecture and emergent design
  4. Agile Modelling
  5. Agilitrix
  6. AmbySoft Surveys
  7. Photo credit




Sunday, June 1, 2014

Mr. Product Manager: Are you ready for the brave new Agile world ?

This was an interesting question, which got me thinking to rant out on the state of product managers in the Scrum India meetup in 2011.

The fact is that after couple of years later, I still see that the product management is not ready and not ready to embrace the new world. So here's my wake up call again for them (from my archives) and possibly make atleast some of them embrace the new agile world now. You can hear my rant (pecha kucha style) in the video below. Feel free to drop me a note on your experiences.

Thursday, May 22, 2014

Agile Balanced Scorecard - Does it exist ?

It is indeed a difficult question to answer!  The "Agile" Balanced Scorecard may or may not exist today (the literature published is pretty scant on this), but if you are looking for developing this scorecard or modifying your existing Balanced Scorecard for your organization, then you may want to watch my video below in the Agile India Kerala 2013 conference titled - Balanced Scorecard for the Agile Enterprise

Hope you enjoy the video, and leave me any feedback \ comments.




ShareThis