Monday, September 27, 2010

Disk Usage on a Remote host: Enable X11 Forwarding for ssh and run x11 application

Lately I was in the of analyze analyze disk space on a remote server, when you are on *nix you can do such things quite easliy.
ssh into your remote host and Enable ForwardX11
  1. For  enabling it for sshd (ssh deamon):
    •   sudo vi /etc/ssh/sshd_config 
    • and modify X11Forwarding no to X11Forwarding yes
  2. Restart sshd:
    • sudo /etc/init.d/ssh 
  3. Exit from current session
  4. ssh into remote host again with -X flag
    • ssh -X username@hostname
  5. Run your application in my case $ baobab
Disk Usage Utility
Have Look at JDiskReport for a cross platform app.
For Macs Edit  sshd_config  located in /etc
  1. sudo vim /etc/sshd_config 
  2. ssh to your mac
  3. Run the app $ java -jar jdiskreport-1.3.2.jar 
JDiskReport


Ruby IRB Auto Completion and Highlight - Linux

Install wirble

laptop:~$ sudo gem install wirble
Successfully installed wirble-0.1.3
1 gem installed
Installing ri documentation for wirble-0.1.3...
Installing RDoc documentation for wirble-0.1.3...

vim ~/.irbrc
Put the following in this file:

require "rubygems"
require "wirble"
Wirble.init
Wirble.colorize

IRB.conf[:AUTO_INDENT] = true
IRB.conf[:USE_READLINE] = true
IRB.conf[:LOAD_MODULES] = [] unless IRB.conf.key?(:LOAD_MODULES)
unless IRB.conf[:LOAD_MODULES].include?('irb/completion')
IRB.conf[:LOAD_MODULES] << 'irb/completion'
end


type
:wq

Thats it on irb prompt use tab for auto completion

Example:

Install random_data

laptop:~$ sudo gem install random_data
Successfully installed random_data-1.5.1
1 gem installed
Installing ri documentation for random_data-1.5.1...
Installing RDoc documentation for random_data-1.5.1...

-laptop:~$ irb
>> require 'rubygems'
=> false
>> require 'random_data'
=> true
>> Random.al
Random.allocate Random.alphanumeric
>> Random.alphanumeric 11
=> "w1KbPVLzE2l"

Sunday, September 6, 2009

It is Fixed, or Just Fixed

The first thing you tell a Tester is "How to write Test Cases", Then you tell him how to write the Better one, and How can you make them Effective. Then you throw IEEE guide lines on Tester to make even Lengthy. Even the gurus have told us what is a good Test Case.

And Once I follow all these guide lines (not matter I want to follow or not) and find some Bug then you kill me by Telling me how to write bugs and how to report bugs how to use the Bug Tracking system and how to use it Effectively. Even the gurus have told us about writing Effective Bug reports.

And few Sr Tester/ Test Manager believes, always write how to replicate the bug and If you can't replicate its not a Bug.

Asking the tester to follow this (instead of letting him Test) is done in the Name of Communication. Communication with Developers, communication with Product owners and Communication with rest of the Team. And then there comes the advocacy part.

Once I have spent this much time on ( things helping ) Testing, I follow the guide lines for creating Test Case, I follow the Guide Line of Bug Reporting and I advocate my Bug well. Then the developer acknowledge the bug and submits it patch and changes the State in the Bug Tracking System (or an Email thread) and puts his comments. "It is Fixed" or Just "Fixed".

Ohh Come on, I deserve more then that, show some courtesy You ask me to write and write and your response is "Fixed". You think I don't need to know

What was causing the Bug?
How have you fixed it?
What other Areas might have effected with the fix?
(during the earlier cycles of Testing) You don't want me to tell that you have been real Lame in deploying the application (For Testing) you haven't updated the config file you haven't deployed all components, you were using wrong code from wrong Source Code Tag.
You don't want me to tell you can't use regular Expression to handle Input fields.
Or there was a logical Error, You were Assuming it is to be done some other way (and I wan't to know the other way)
......

Knowing the application help me a lot to Test it, What was causing it help me a lot to Understand the Bug Pattern and Help to find similar things in other parts of the Application. What you have done to fix it Help me a lot to investigate Impact of the Fix and How can I make sure it hasn't effected any other area...

Why Test Managers Keep Telling his Testers How to write Test Case/Bug Report and Its dos and don't. Why Can't They Developers to shade some light on the Bug and Its fix.

Why Development Manager Can't Tell developers to write few lines when changing the state of the Bug.

Why It is just "Fixed"?

BTW, you can avoid all this, but for that you need to have good relations with developers you can get all that information on Informal communication channels.

Monday, June 15, 2009

Google Test Automation Conference 2009 - Zurich, Switzerland

Google Testing Blog: Google Test Automation Conference 2009 - Zurich, Switzerland

The word is out, We will be having my all time favorite conference i.e GTAC on October 21 and 22 at the Google offices in Zurich, Switzerland.

I am sure this time we gonna create some noise on twitter with #gtac.

Thursday, June 11, 2009

Selnium On Rails- by Eric Smith

Eric Smith the current maintainer of Selenium On Rails delivered a presentation on it at Scotland on Rails.
I found it pretty informative and loved it's integration with rails. As a selenium RC user I like to have more control over the entire configuration but its not the easiest thing to do with RC.

On the other hand if you are using Rails, Selenium on Rails is the easiest way to have Automated Acceptance tests.

Check out the video (this and rest of the videos of Scotland On Rails are hosted by engine yard).

Monday, April 20, 2009

I can't avoid it any longer Oracle Anonces to Acquire Sun

I have avoided to use Oracle's apps for long long time, But can't do that any more.

Its all done Oracle have Oracle announced it has entered into an agreement to acquire Sun Microsystems (Sun)


Now there is no escape at least for me to use Oracle.

For details see.
Oracle buys Sun Microsystems; tries to become the Apple of the enterprise

Or visit http://www.oracle.com/sun/index.html
http://www.sun.com/aboutsun/media/presskits/2009-0420/index.jsp