Login Form






Lost Password?
No account yet? Register
Home arrow Forums
ECharts
Welcome, Guest
Re:sample test for use w/ LoadRunner? (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Re:sample test for use w/ LoadRunner?
#456
Russell Roy (User)
Junior Boarder
Posts: 39
graphgraph
User Offline Click here to see the profile of this user
sample test for use w/ LoadRunner? 3 Months, 2 Weeks ago  
I'd like to use KitCAT to do some load testing. I see that there is a LoadRunner class in KitCAT for doing this. I understand the basic usage of the properties input file:

$ java org.echarts.test.sip.LoadRunner
org.echarts.test.sip.LoadRunner <propertyFileName>
Property file should have the following entries
TestCase - fully qualified method name of the JUnit test case
TestRate - test frequency
MaxIterations - Maximum # of iterations
$

The part that's not so clear is how to create the caller and callee uri's on-the-fly within the test case to go along w/ the load driver. We need unique uri's for concurrent test instances and reuse uri's for successive iterations within the same test instance.

I read in the paper "KitCAT - A _frame_work for Converged Application Testing" that this facility was used for load testing of CallVantage. Perhaps someone would be willing share a simple basic call example test case from there which demonstrates the dynamic endpt generation idiom.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#457
Tom Smith (Admin)
Admin
Posts: 72
graphgraph
User Online Now Click here to see the profile of this user
Re:sample test for use w/ LoadRunner? 3 Months, 1 Week ago  
Russ,

Sorry for the late response. One pattern that has worked for us is to name the agents in a test case _base_d on a counter:
Code: :

 SIPAgent caller createAgent("caller-"+currentCount); SIPAgent callee createAgent("callee-"+currentCount);



The counter can be an AtomicInteger static field in the class containing the test case, which gets incremented in the constructor of that class:
Code: :

 static AtomicInteger counter = new AtomicInteger(0); int currentCount; ... public MyTestCaseClass throws Exception {   ...   currentCount counter.getAndIncrement();   ... } ...



Would this meet your needs?
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/06/03 18:40 By yotommy. Reason: code formatting
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Copyright © 2006-2009 echarts.org