Welcome To User Friendly Software Technical concepts

This Blog contains information of various technical concepts,The concepts are precise,informative with examples.visitors can easily understand the concepts of different technical related subjects like software Testing concepts , practice questions on sql And JMeter(Open source automation tool ) for Performance testing of an web application and about selenium tool used for functional testing of an web application

Wednesday, December 15, 2010

JMeter:Csv Method

Purpose of CSV Method?

The scenerios where there will be unique login ids for users to login in to the application.For example one need to load test with many user logging at a time in to the application .For this kind of scenerios one needs to go with csv method that is comma seperated variables method.

Follow Four Steps for above scenerio using csv method.

step1:
Testplan->thread group->Define no of users with ramp up period

step2:
    Thread group->samplers->Http request
  •    Mention the url in path:http://www.abc.com of Http request page
  • Add name and variables
For example
Names                        variables
user                          ${username}
password                ${password}

Before defining the variables create a csv file and save in Bin folder of JMeter downloaded files

The format of  csv file  is shown below
username   password
kevi                 ccc
richard          ddd 
tex                   eee

  • select post method
  • server name:local host

After adding Http request
Step3:
Thread group->config elements->csv data set config

The following things should define  in csv data set config page.

Name :give the csv sheet file name (For ex :abc.csv)
File encoding:Leave blank
variable names:username,password

                              (As defined in csv file)
Delimeter: ,
Allow quoted data
?:False
Recycle on Eof?:True
stop thead on EOF?:False
sharing mode:All threads

Step4:
Add listerns to thread group

In view tree listner click request  there you can see Url,username and password.

please see the screenshots for your reference


 




Note :Clear all your  temporary files if your tool is unable to read variables from the CSV file

No comments:

Post a Comment

You Can Post Your Comment Here