Posts

Showing posts from September, 2015

How to use a value between two different threads in Jmeter

Image
How to use a value between two different threads: Let us see how we can use the extracted value in one thread can be used in a different thread: As shown below we have Two threads (Thread Group – 1 and Thread Group -2). Under Thread Group -1 we have a HTTP Request where we extracted Request_Id and Session_Id. In our example we will use the same Ids in Thread Group -2 We have BeanShell PostProcessor to log the output of the variables in the output log. The Lines in the both BeanShell is as below: log.info("Request Id in Thread 1 = " + "${Request_Id}"); log.info("Session Id in Thread 1 = " + "${Session_Id}"); Now if we run the Script we get the below output: As we see the values of both the IDs are not passed to Thread Group-2. Now we will add few lines in the BeanShell PostProcessor as below and run again: ${__setProperty(Request_Id,"${Request_Id}")}; ${__setProperty(Session_Id,"${Session_Id}")};

Tuning JDBC Data Sources Connection Pool in WebLogic

Image
Tuning JDBC Data Sources Connection Pool in WebLogic: While we are Load testing Web services with our application deployed on WebLogic Server Version: 10.3.6.0 most of transactions started failing and when checked in the logs we found the below exception: ####<28.08.2015 17:32:54 MSK> <Info> <Common> <server.com> <clust1> <[ACTIVE] ExecuteThread: '50' for queue: 'weblogic.kernel.Default (self-tuning)'> <internal> <BEA1-17FBAA30098FE2C54C98> <> <1439904774589> <BEA-000627> <Reached maximum capacity of pool "AppDataSource", making "0" new resource instances instead of "1".> ####<28.08.2015 17:32:54 MSK> <Error> <server.com> <clust1> <[ACTIVE] ExecuteThread: '82' for queue: 'weblogic.kernel.Default (self-tuning)'> <guest> <> <> <1439904774589> <BEA-000000> <ERROR wf - WfSubscriberSysJMSB

Running Load Test in Jmeter for Webservices

Image
Once we have completed the scripting for required flows. We need to design a scenario according to the NFRs and execute the test in Jmeter to obtain results for our Load test. Let us see how this can be achieved in Jmeter for the previously webservices with 4 threads to be Load tested. Creation of the Scenario file and defining them in the Thread group: Let us create a Scenario.csv file with below details and save it. sc0=0_DataFolder:1_NumberOfThreads:2_RampUp_sec:3_LoopCount:4_Duration_sec:5_StartUpDelay_sec:6_UserThinkTime_ms:7_Throughput_spm sc1=SC1_1USR:1:30:1:36000:0:1000:2.5 sc2=SC2_5USR:1:30:1:36000:60:1000:1.67 sc3=SC3_1USR:1:30:1:36000:120:1000:1.2 sc4=SC4_5USR:1:30:1:36000:240:1000:5.1 The above file is a csv file which has details of the following: 0_DataFolder : where the xml files and csv files required are kept 1_NumberOfThreads : Defines the number of users. 2_RampUp_sec : value for the Ramp-up Period (in Sec). 3_LoopCount : value for LoopCo