Tuesday, June 5, 2012

Jenkins and Jmeter Integration (PART 1)

There are several posts which are already present. I am not creating this post with reference to any of the posts available over internet. Jenkins + Jmeter integration is quite simple, am use this execution by using "Ant" in the below steps
  1. Environmental set up
  2. Configuration set up
  3. Invoking Jmeter from Jenkins which also includes publishing the results at Jenkins
We will discuss each one in phase wise and with initial set/minimal configurations for ease of the understanding how to do achieve this configuration. First we will look at the environment set up, and in the part 2 we will see next 2 steps

Environmental set up:Three things which are most important for this integration is "Ant", "Jmeter", "Jenkins". All the below configuration were subjected to Windows OS.

ANT:Download the ant from apache, and set the path till "bin" folder i.e is

Jmeter:Download the Jmeter and set the path till Bin folder, i.e

Jenkins:Download Jenkins from the Jenkins site, and deploy it. You can either deploy in the tomecat etc server or run the command from the command line
Java –jar Jenkins.war

This will deploy automatically, since Jenkins uses embedded servlet container called winstone with in it. Note: If the Jenkins deployment is done with the above steps then Jenkins have to be started always using the above command or after the first installation you can set as windows service.

NOTE: All the above were still depend on Java, make sure that java is installed and set up correctly.

    Tuesday, May 29, 2012

    Jmeter - OS Sampler :

    Jmeter has released version 2.7 with some of the great features and enhancements/improvements in JMS and Web services samplers and with new sampler "OS Sampler". For the reference please go through the below link

    Rather than taking about all enhancements let us see about the new sampler "OS Sampler"
    OS sampler uses the command line command called "DIG" which is an inbuild tool as apackage with most of the linux packages, some of them were listed below.
    1. Bind Tools (Gentoo)
    2. Bind-utils (Red Hat and Fedora)
    3. Dnsutils (debian)

      DIG is usually used to dig/get the information of DNS servers, mail servers, IP address etc.


    Monday, December 28, 2009

    Look YourSelf in Mirror

    Hello Readers,
    This is my last post in this year. I Wish you a happy Christmas and New Year Celebrations.

    When I looked at myself in mirror thought "Ho man, One more year is over in my life and what have you done"? This Question started running in my mind in the beginning of December and still continues... Then i started collecting the good and bad things that i have done in this year and also what is the difference that i made in past years compared to this year.
    Ans : I wasted one more year as usual. But always it teaches me a lesson.

    Good things (off course its only for me :)
    1. When i received mail from the person, whom i doesn't know(Martin Havlat) that "my rights to forum has been updated to Moderator" . This mail really boosted my for doing some thing from out of the box.
    2. Lots of appreciations from Manager, Leads, Colleagues etc. off course from my side as well.
    3. Implementing TestLink in my Company. ( this was the toughest job that i have done in my career till now)
    3. Rest of things are normal, this are only special things that i can share.

    Bad things,
    Obviously I dont want to discuss but still,
    1. Implementation of TestLink in my company was so delayed for 'N' number of reasons which i can not discuss and i also feel for it.
    2. Most of the time i felt i should have done many things in a better way.

    You may think why i made this post. There is a reason.

    "Mirror is like two sides of a coin,
    You never knew the go0d and bad Until you realize by seeing it"

    I releasized when i saw in mirror my self and thought of the question "Ho man, One more year is over in my life and what have you done" if this doesn't come to my mind i would never knew whats is happened in the past or this year.

    I am happy for what i did but i also made few great things that i had not done in my past this is what made me difference from the past to current year(2009)

    i am moving a head with more passionate for what i do for coming year.

    Please If your more passionate



    Wednesday, March 4, 2009

    Working with TestLink

    i was excited working on it, i really felt good but, there are also disadvantages/factors that has to be considered and in fact i learnt few things/lessons in implementing (not yet implemented decision left for management) When I started taking this task, we knew that it is hard to implement this, but for the long run this is good, Problem is for a project that have 40000+ test cases which will be really hard to dump into testlink. So if testlink is implemented in a new projects i think this can be fit.

    As for my observations these were the Hurdles/disadvantages as for our project is concerned regarding implementing the Testlink tool.

    1. In order to migrate our test cases completely to Test Link, which takes a lot of time, though the import functionality is given, these can be done only via XML(including custom fields). 2. This restricts only to Pass, fail or blocked status are only available as for as test cases execution/while generating Results.

    Advantages :
    1. Easy in tracking test cases(search with keyword, test case id, version etc)
    2. We can add our custom fields to test cases.
    3. Allocating the work either test case creation/execution/preparing any kind of documents is easy
    4. when a test cases is updated the previous version also can be tracked
    5. We can generate results build wise
    6. Test plans are created for builds and work allocations can be done.
    7. Report, is one of the awesome functionality present in the Test link, it generates reports in desired format like HTML/ CSV /Excel and more over the art of reports is based on the results from the test case executions that were allocated build wise/individual resources/test plan with pass/failed percentage and this can also be generated in graphs.
    8. And the above all is done on the privileges based which is an art of the testlink and i liked this feature much

    This post is made not to use testlink or neither to implement the tool. I wrote this post since we could learn before implemnting the tools a few lessons and i learnt the following lessons
    1. Regardless the features of the tool, we need to look how far is this feasible to the project
    2. Environment and process also has to be considered as well
    3. Time is main factor in implementing such tools in such huge project etc.....

    Off course all the above mentioned lessons were heard that while implementing any kind of tool we need to consider the above points, but today i experienced those lessons and enjoyed in doing such work.

    Update: Atleaset we started to implement for one of the project. yet, there are many challenges to come.

    Sunday, December 28, 2008

    Testing an Application without documents

    I have taken the Stefan's dashboard just to show how the exploratory testing can be done, as recently i met a person(tester) as our conversion went as follows

    Tester : Do you know anything about Win Runner, QTP
    TesterWorld(ME) : They are automational tools used for checkinging the functionality
    Tester : That answer any one can say who are in testing field. Tell me are you manual / automation tester.

    Our conversation went top to the hill, as he argued that Automation will re place manual testing, I got annoyed with his reasonless argument and I just asked a simple question. Can you test any appliccation that has no functionality/specification document).Tester : No, i cant test. how can we test with out any of the documents.

    This was the answer he gave me, i really pitty for most of the people who are not skilled testers and still acts as if they are senior QA, etc. So this post is for those people who are really intrested and passionate about testing.

    I have taken the Stefans Dash board as it really looks great and made me exciting while i was testing for this post, (http://abouttesting.blogspot.com/2008/06/testing-dashboard.html) . This made me really exciting while seeing the sample screen shot in the above mentioned post and i downloaded the file with out reading the whole post

    First thought regarding the Dashboard :
    when I unzipped it, i found a html file, excel sheet, two images, and one sample screen shot. I opened the HTML file AND FOUND no values are getting populated in dashboard, I was shocked why is this not getting opened, i thought some of the files must have been deleted intensionally.

    Second thought regarding the dashboard :
    After some time later, again i went into the folder and opened the html File in notepad, unfortunately i am poor at programming languages but i gussed the path that was given in html file, that excel sheet has to be placed in C drive and then immediately i did that and again i opened the html file. Hurray it got opened. Offcourse the path can also be changed to as desired location and can be given in the notepad, inorder to make the dashboard to be worked.

    Third thought regarding the dashboard :
    So i tried in doing couple of changes, just by status to pass to fail, changing version and adding comments everythings seems to be cool and working fine, then i used some of diffrent scenarios.
    Sceanrio 1
    Steps to reproduce:
    1. Open the "autteststatus.html" file, and click on the change status button
    2. In the comments give as 'test' and try to save a java script error is populated.

    Scenario 2
    Steps to reproduce:
    1. Open the "autteststatus.html" file, and click on the change status button
    2. Now give the word in double quotes in comments column and save, you can observe that comments column is saved, now again click on the change button you can observe that, there is no data present for the changes you done previously

    Scenario 3
    Steps to reproduce:
    1. Open the "autteststatus.html" file, and click on the change status button
    2. Enter the comments column with html tags like test and save you can find that it is saved and displayed as bold. Now again click on the change button, now ive the name in html tags like and save, changes were saved successfully but text i changed is not visible, now click on change button then you can find that text is present as given but it is not visible after we savee save.

    Scenario 4:
    Steps to reproduce:
    1. Open the "autteststatus.xls" file, and click on the change status button
    2. Give the comments as 'test' note the costumer and version no. now open the html file and observe that starting quote is misssing in the column.
    These were some of the scenarios Please be passioante about the work you do, that will make you rich and wealthy.