Posts

Showing posts from 2013

Selenium Works with Firefox IDE

Image
I started using selenium which is a tool which i can automate tests in a more easier way comparing to Jenking Jmeter way. In this method I have to install the FireFox plugin for selenium shown in figure 1.0 https://addons.mozilla.org/en-US/firefox/addon/selenium-expert-selenium-ide/?src=search Figure 1.0 Install the plugin which will output a windows like this under the tools menu shown in figure 2.0. Figure 2.0 Now what you can do is, click the record button which is in the right top corner of the window. Do the actions you want to record in your test plan. It will record in actions and when your activitiees are finished, just stop the recording and you can run the test easily. Also you can see the output in visual format, if you entered a value in your recording, they will appear in the test as well. And special features of this is that you can export your test into different formats such as Java codes, Python or HTML etc.

How to use Performance Plugin in Jenkins

Assumptions:    Jenkins has been installed.                         Jmeter has been downloaded and ready to run.                         Maven is installed in the machine. Step 1 : Install Performance Plug-in in Jenkins. Initially we have to install the Jenkins plug-in because it is a useful tool to read the .jtl files which will be the output of the test plans we are going to create. URL : https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin You can see it in Jenkins. Manage Jenkins --> Manage Plug-ins --> Available (tab) . Under that you will find this plug-in. Check it in and install. After installing , it will appear in Installed (tab). That concludes installing Performance plug-in in jenkins. Step 2: Creating a test plan. The easiest way to create a test plan for your own web application is to record an action you do in th...

Working with Jenkins and jmeter together,

First we need maven installed and jmeter and also Jenkins. Using GIT will be helpful. What I have used with the GIT. Run the Jenkins and create a job inside. I will attach the links to create the job and work it out. How to run JMeter tests with Maven http://ribblescode.wordpress.com/2012/04/16/how-to-run-jmeter-tests-with-maven/ How to automate JMeter tests with Maven and Jenkins (Hudson) http://ribblescode.wordpress.com/2012/04/16/how-to-automate-jmeter-tests-with-maven-and-jenkins-hudson-8/ I have used the Git Plugin , HTML Publisher plugin and Performance plugin. Git plugin is being used for use of Git and Performance plugin is the most important because we can generate graphs and monitor the results in it. HTML publisher can be used for  publish  HTML reports of our results

Working with Jmeter Part 2

Image
For developing test plans we have used the tool Jmeter . We can download the Jmeter  binaries .zip file from the link. Extract the zip file and open the command prompt.. Direct to the folder where the apache jmeter bin is. We can run jmeter by typing “Jmeter”. It will open the Jmeter windows. Here you can add elements and create a test plan.. I’m attaching few youtube links which you can refer to learn how to create a test plan. Link 1: http://www.youtube.com/watch?v=8NLeq-QxkSw Then simply you can add how many users you need and when to run the plan.. And also by adding listeners like ”Results in a tree” and ”Results in a table” you can monitor the result 

Hi Hi Jenkins

Image
Jenkins is a tool which we can use to automate a build in our projetc. Say you want to check running some program and check the results, this tool can simply used to run it and if there are any output files being created, you can view them as well. Here I add the dashboard of the Jenkins. And you can add plugins to this and work with them as well. For my work ,I added the HTML publisher plugin so i can create HTML files for every test I run in Jenkins.I added the Performance Plugin  as well. Which can be used to check the jmeter test logs and put up graphs so we can have a Graphical view of the performance.

Working with Jmeter

Image
Good Morning fellas, It me again with another blog post. This time i'm going to introduce you another powerful tool which you can use to automate tests and view summarized results in a productive manner. First you got to download Jmeter from  http://jmeter.apache.org/download_jmeter.cgi  . Unzip the folder and locate where you prefer to work with. Go to the Command Prompt and Change directory to where the folder is and go in to the bin and type "jmeter" to launch, Which will open to the following window where you can configure a test plan and execute . We can add  HTTP Request to send requests to a selected website and we can monitor the results using Trees and Tables in Listener group.  Following test plan is for sending requests to www.google.com and www.yahoo.com. And a good advantage here is we can add multiple threads and multiple users so mainly we can do load testing and stress testing easily and check results. What I have shown is the table resul...

Saying hello to "Git Hub" ..

Image
Hi guys, let me introduce GIT- a server which is on the web where we can submit our open source projects so the other developers can use them later.GIT was created by Linus Torvalds. The language which has been used for this is Perl and C.  GIT is a Distributed Version Control System which you can use to maintain versions of your codebase. To use GIT, first you have to install it. I will tell how to do it in Windows 7 environment, Step 1: Download the very latest GIT preview.  http://msysgit.github.io/   Step 2: Install the GIT exe Step 3:After installing , go to the command prompt and type " git --version ".  If it shows the version you installed that means you are good to go with GIT  :) Then you need to configure your GIT  Then you have various type of commands to do cool features in the GIT. This is how it looked when I installed and entered my user name and email address 

TDD - Test Driven Development

Image
Hi guys I'm back. This was my hands on TDD experience. And it was really awesome topic when I got to know it.. Test Driven Development is basically runs on test cases. In traditional development methods, we design the system and then code it. Then only we check in to testing phase. And the issue in this is you exactly don't know what you developing. Which classes inside will be used for the system. There can be unused  methods in the code which will definitely effect on the efficiency of the system. BUT , when it comes to the TDD what happens is the requirements will be gathered and then few test cases will be created covering all the possibilities in the system. So the developer will implement the system step by step to pass the tests. The benefit of this method is that you can develop the system with less codes and only the needed parts. It will work efficiently. I wrote a simple FizzBuzz code and for that i have written a test case.. Check this out :) Comments...