Re: Invoking local file

2018-08-10 Thread ZK
Hi,
the problem is in the path to your json file

Try this with the HTTP Sampler:

Protocol = file
Server Name or IP = /// 
Method = GET 
Path = E:\Krishna\apache-jmeter-4.0\apache-jmeter-4.0\bin\SampleJson.json 

Implementation  <- meaning empty field (maybe under 'advanced tab')




ZK




--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Query on capturing the session id from cookie manager

2018-08-09 Thread ZK
Hi,
try:
Id=(.+?);





ZK



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Query on capturing the session id from cookie manager

2018-08-09 Thread ZK
Hi,
try:
Id=(.+?);




ZK



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: using the same user for all iterations

2018-06-21 Thread ZK
hi,

you could set the user name like this when you login:

user000${__threadNum}



ZK



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Click on a Link

2018-05-18 Thread ZK
Hi,
the id is encoded with curly brackets:
ACCESS_TYPE=TEAM_ACCESS_VALUE&id=%7B170529FC-DDC4-C764-6B35-0F189B9F4FF6%7D 

unencoded=:
ACCESS_TYPE=TEAM_ACCESS_VALUE&id={170529FC-DDC4-C764-6B35-0F189B9F4FF6} 

If you want the regEx to get the id with the curly brackets:
id=(.+)

If you dont want the curly brackets, this is the regEx:
id=%7B(.+?)%7D



ZK



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: URL extracting from JMeter in Real time

2017-11-08 Thread ZK
#access_token=(.+)



ZK



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to read full data from a txt file by using Beanshell script

2017-09-27 Thread ZK
Hi, 

this would do it: 

import org.apache.jmeter.util.JMeterUtils; 
String fileContents = new File('./nameOfFileToRead.txt').getText('UTF-8'); 
vars.put("your_fileContentsVariableName",fileContents); 
println(fileContents); 

Use a JSR223 Sampler with the language set to groovey 

This script assumes the 'nameOfFileToRead.txt' is in your jmeter bin folder 

ZK



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to read full data from a txt file by using Beanshell script

2017-09-27 Thread ZK
Hi,

this would do it:

import org.apache.jmeter.util.JMeterUtils;
String fileContents = new File('./nameOfFileToRead.txt').getText('UTF-8');
vars.put("your_fileContentsVariableName",fileContents);
println(fileContents);

Use a JSR223 Sampler with the language set to groovey

This script assumes the 'nameOfFileToRead.txt' is in your jmeter bin folder

ZK



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



RE: Connect to Microsoft Sharepoint

2017-09-14 Thread ZK
Hi,

One option would be (I am not a programmer):

Add a 'User Defined Variables' (Add>Config Element>User Defined Variables)
to your thread Group with the variable:
name = responseTime
value = 0

Add a JSR223 PostProcessor (Add>Post Processor>JSR223 PostProcessor) as a
child of the request that is looping
Set the language of this PostProcessor to 'java' and use the following
script:

overallTime = Long.parseLong(vars.get("responseTime"));
long currentResponseTime=prev.getTime();
totalTime = overallTime + currentResponseTime;
vars.put("responseTime", ""+totalTime);

You should remove the values mentioned in my previous posts from the Name
field in the 'Request checking file has been uploaded '

After the While Controller add a 'Debug Sampler' with this in the name
field:
ThreadNum = ${__threadNum} - Loop Number = ${loopCounter} -
OverallResponseTime = ${responseTime} 


So your test plan would look something like this:

Test Plan
+Thread Group
++User Defined Variables
++While Controller
+++Counter
+++Request checking file has been uploaded
JSR223 PostProcessor
++Debug Sampler


let me know how it goes

ZK





--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



RE: Connect to Microsoft Sharepoint

2017-09-14 Thread ZK
Hi,
you could add a 'Counter' config element inside your while controller

+While Controller
++Counter
++Request checking file has been uploaded


To configure the Counter config element:
start = 1
increment = 1
Reference Name = loopCounter
Track counter independently for each user = checked

Then as mentioned in my previous reply, the Request Sampler Name for the
sampler contained in the While condition could be some thing like:
HTTP Request - wait for file to be uploaded -  Thread number =
${__threadNum} - Loop Number = ${loopCounter}


ZK






--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



RE: Connect to Microsoft Sharepoint

2017-09-14 Thread ZK
Hi,
1 option would be to add:
${__threadNum}

to the Request Sampler Name for the sampler contained in the While condition
loop

<http://www.jmeter-archive.org/file/t254617/Capture.jpg> 




ZK



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Passing values from regular expression

2017-06-22 Thread ZK
Hi,
I am not 100% sure what you mean but I think you are looking for something
like this:

Variable: FareReferenceId 
Reg Exp:  
Template: $1$$2$ 
Match No. ${Count} 


Variable: Timeinbound 
Reg Exp: input type="radio" name="timeinbound${FareReferenceId_g1}" value=""
id="(.+?)" optid
Template: $1$$2$ 
Match No. 1 


ZK




--
View this message in context: 
http://www.jmeter-archive.org/Passing-values-from-regular-expression-tp5725892p5725900.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Error while running in non GUI mode : "Could not open MeTypeLoad.jmx file"

2017-06-16 Thread ZK
Hi,
where is your jmeter test stored?

try:
jmeter -n -t C:\path\to\your\test\metypeload.jmx -l
C:\path\to\your\test\results.jtl


ZK



--
View this message in context: 
http://www.jmeter-archive.org/Error-while-running-in-non-GUI-mode-Could-not-open-MeTypeLoad-jmx-file-tp5725846p5725847.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Using regex in inbuilt function __Random

2017-04-12 Thread ZK
you could just use some like:

temp = vars.get("yourVariableStr1");
temp = temp+vars.get("yourVariableStr2");

vars.put("yourConcatenatedVariableStr",temp);


ZK



--
View this message in context: 
http://www.jmeter-archive.org/Using-regex-in-inbuilt-function-Random-tp5725448p5725451.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Using regex in inbuilt function __Random

2017-04-12 Thread ZK
Hi,
useing this code in a beanshell preprocessor will achieve what you want

It will output a string made up of 4 characters, 3 numbers and 2 characters
to a variable called singleStr

// Generates a  4 character random string
import java.util.Random;

chars = "ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
int string_length = 4;
randomstring ="";
for (int i=0; ihttp://www.jmeter-archive.org/Using-regex-in-inbuilt-function-Random-tp5725448p5725449.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to skip particular set of requests with jmeter

2017-02-08 Thread ZK
Hi,
you could try using an IF controller as a parent to your HTTP Sampler with
something along these lines:

("${YourURL}".indexOf("uniquePatternInYourUrl") >= 0)




ZK





--
View this message in context: 
http://jmeter.512774.n5.nabble.com/How-to-skip-particular-set-of-requests-with-jmeter-tp5725225p5725226.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: JMeter: Not replaying SSO/SAML Login Page

2016-10-27 Thread ZK
Hi,
try manually logging into your application and inspect the
requests/responses with tools such as Firebug or Fiddler
You should be able to see what values are being passed and do any
correlation accordingly


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/JMeter-Not-replaying-SSO-SAML-Login-Page-tp5724920p5724921.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Unique parameter selection in CSV files

2016-09-20 Thread ZK
Hi,
one solution would be to split your csv file, so that:
csv 1 contains values 1-20
csv 2 contains values 21-40

rename the csv files to:
csv_1.csv
csv_2.csv

in the filename parameter for the CSV Data Config:
path/to/your/csv/folder/csv_${threadNum}.csv


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Unique-parameter-selection-in-CSV-files-tp5724790p5724794.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Getting the thread number from a Beanshell post processor

2016-07-26 Thread ZK
Hi All,
thanks for the clarification, it makes sense to me now

ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Getting-the-thread-number-from-a-Beanshell-post-processor-tp5724544p5724550.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Getting the thread number from a Beanshell post processor

2016-07-25 Thread ZK
Hi,
for debugging purposes, I would like to get the current thread number using
a beanshell post processor.

the code I am using is:
print("Thread Number = "+ctx.getThreadNum());

However, when i am running the test with 1 thread, the above code outputs:
Thread Number = 0

when running with 3 threads the output is:
Thread Number = 0
Thread Number = 1
Thread Number = 2

This isn't a problem for me, but I would like to clarify if this is the
correct output, as I would expect to see:
Thread Number = 1
Thread Number = 2
Thread Number = 3


ZK




--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Getting-the-thread-number-from-a-Beanshell-post-processor-tp5724544.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Analysing the View Result Tree Listener

2016-06-28 Thread ZK
Hi,
your problem is you are not signing in to your application
You should add an assertion to the 'sign in' sampler to check the user has
actually signed in
for example is the 'sign out' link there after the user signs in?

Also...
some of your variables have not been set :
VIEWSTATE = ${viewState}

You should check your Regular Expressions are correct

I would advise adding a Debug Sampler to the end of your test script and
checking your values there (within the View Results Tree)


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Analysing-the-View-Result-Tree-Listener-tp5713858p5724416.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: ASP.NET Login Problems

2016-03-14 Thread ZK
hi,
do you have the 'Encode' checkbox ticked for the _viewstate POST parameter 

If you do, untick it


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/ASP-NET-Login-Problems-tp5723931p5723933.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Want to use same value from csv in all iterataions

2016-03-02 Thread ZK
Hi,
1 option would be:
you could name the csv files like:
keyword_1.csv
keyword_2.csv
etc.

On your CSV Data set Config enter the filename of the csv as:
keyword_${__threadNum}.csv

You can have your different search terms for each user separate this way.
You would need a separate csv for each thread (user)

ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Want-to-use-same-value-from-csv-in-all-iterataions-tp5723846p5723847.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: postprocessor beanshelll problem

2016-02-04 Thread ZK
Hi,

not sure, but as you say it works on windows but not on linux, it could be
due to the file separator you are using.

Try this:
f = new
FileOutputStream(FileServer.getFileServer().getBaseDir()+System.getProperty("file.separator")+"wynik.csv",
true); 




ZK






--
View this message in context: 
http://jmeter.512774.n5.nabble.com/postprocessor-beanshelll-problem-tp5723738p5723739.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Response Code

2016-02-04 Thread ZK
String code = prev.getResponseCode(); 


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Response-Code-tp5723733p5723737.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Beanshell Preprocessor repeating header as test runs.

2016-01-26 Thread ZK
Hi,
try:

import org.apache.jmeter.protocol.http.control.Header;

sampler.getHeaderManager().removeHeaderNamed("Authorization");

sampler.getHeaderManager().add(new Header("Authorization","Bearer
b2f963c5d0ec61dad1f3844f4f25c66"));




ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Beanshell-Preprocessor-repeating-header-as-test-runs-tp5723669p5723670.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Out of Memory Error in JMeter during Endurance testing

2016-01-21 Thread ZK
Hi,
I cannot see your screen shots, however; How much RAM do you have available
on your PC?

I edit these 2 lines in the jmeter.bat

set HEAP=-Xms512m -Xmx512m
set NEW=-XX:NewSize=128m -XX:MaxNewSize=128m

to set 4 Gig for jmeter:

set HEAP=-Xms4g -Xmx4g
set NEW=-XX:NewSize=4g -XX:MaxNewSize=4g


You should also disable all listeners when running in GUI mode
See:
jmeter-best-practices
<http://docs.blazemeter.com/customer/portal/articles/1932776-jmeter-best-practices>
  



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Out-of-Memory-Error-in-JMeter-during-Endurance-testing-tp5723656p5723657.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Random function not working correctly

2015-11-24 Thread ZK
thank you!!


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Random-function-not-working-correctly-tp5723489p5723491.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Random function not working correctly

2015-11-24 Thread ZK
Hi,
I think there is an issue with the Random function as it never references
the MAXIMUM value set for the function correctly.

in order to reproduce this, I reference the random function in the name of
the Debug Sampler:
View Results Tree
Thread Group
+Debug Sampler - ${__Random(1,4,randomNumber)}
+Debug Sampler -  ${randomNumber}

The View Results tree shows the random number generated is either: 1 or 2 or
3 but NEVER 4


Regards,
ZK





--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Random-function-not-working-correctly-tp5723489.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Response data issue in Jmeter

2015-09-01 Thread ZK
Hi,
there appears to be a number of issues with your test plan

I will outline a couple of the biggest issues:

1: Your Login Thread group has no response assertions, so you cannot be sure
you are actually logged into the site. You should add a response assertion
for a response that indicates you are logged in

for example:

LOGIN (thread group)
+ VISIT LOGIN
+ 2 /centramedAnalytics/j_spring_security_check   <- This is where you
login
++Response Assertion 
(Patterns to Test > ADD>Invalid Username / Password) (Pattern Matching Rules
NOT = checked)


<http://jmeter.512774.n5.nabble.com/file/n5723141/ra.jpg> 


2. You have different Thread groups (VISIT BY REASON REPORT, VISIT BY
AUDITOR REPORT, etc.)
If this is how you are going to structure your test plan, EACH of these
Thread groups needs to have their own LOGIN request before any other
requests




HTH,
ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Response-data-issue-in-Jmeter-tp5723140p5723141.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Log in page results always Success, when i give invalid credential

2015-08-13 Thread ZK
Hi,
can I ask how are you able to bypass the Captcha used for the login?


ZK






--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Log-in-page-results-always-Success-when-i-give-invalid-credential-tp5723005p5723013.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Log in page results always Success, when i give invalid credential

2015-08-11 Thread ZK
Hi,
Add a response assertion after your login request to check you are 'really'
logged in

I suspect all subsequent requests get redirected to the login page... look
at the 'View Results Tree' Listener to check for this

(also you have the problem of a Captcha to deal with... this would cause
your login to fail if entered incorrectly)

ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Log-in-page-results-always-Success-when-i-give-invalid-credential-tp5723005p5723008.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: JMeter showing wrong thread count in distributed testing.

2015-08-11 Thread ZK
Hi,
you have a thread group with 25 users/threads
you have 2 slaves

2 x 25 = 50



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/JMeter-showing-wrong-thread-count-in-distributed-testing-tp5723002p5723006.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Problem loading XML

2015-07-15 Thread ZK
Did you restart jmeter after installing the plugins?


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Problem-loading-XML-tp5722816p5722821.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Not able to handle generated device token.

2015-05-26 Thread ZK
Hi,
try this:

"device_token"[^:]+:(.+?),"platform"



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Not-able-to-handle-generated-device-token-tp5722512p5722516.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to get dynamic parameters from a response

2015-05-19 Thread ZK
hi,
you should take a look at the 'Regular Expression Extractor' post processor


http://community.blazemeter.com/knowledgebase/articles/65150-using-regex-regular-expression-extractor-with-jm
<http://community.blazemeter.com/knowledgebase/articles/65150-using-regex-regular-expression-extractor-with-jm>
  


http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor
<http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor>
  



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/How-to-get-dynamic-parameters-from-a-response-tp5722481p5722482.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to increase numbers of thread dynamicly

2015-05-06 Thread ZK
Hi,
you should probably have a look at these jmeter plugins:

http://jmeter-plugins.org/wiki/UltimateThreadGroup/
<http://jmeter-plugins.org/wiki/UltimateThreadGroup/>  





ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/How-to-increase-numbers-of-thread-dynamicly-tp5722362p5722366.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: regEx - Extracting multiple occurances

2015-04-27 Thread ZK
Hi,
within your Regular expression extractor set the 'Match No.' to:
-1


Try this as your Regular Expression:


([0-9]+\/[0-9]+\/[0-9]+)\s+?[\d]+?:[\d]+?\s+\w+\s+\d+\s+[^~]+?
 




ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/regEx-Extracting-multiple-occurances-tp5722324p5722325.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Fail a sampler through beanshell Postprocessor

2015-04-21 Thread ZK
Hi,
using a 'beanshell assertion'

try:
Failure=true;
FailureMessage= "Test FAILED";
print(FailureMessage);


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Fail-a-sampler-through-beanshell-Postprocessor-tp5722290p5722292.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: title

2015-04-15 Thread ZK
Hi,
a 'Once Only Controller' with an 'If Controller" would work

Test Plan
+Thread Group
++Once Only Controller
+++If Controller  Condition="${__threadNum}" == "1"





ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/title-tp5722247p5722251.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: RegEx pattern

2015-04-13 Thread ZK
Hi,
try:
"j_id1:javax\.faces\.ViewState:0">http://jmeter.512774.n5.nabble.com/RegEx-pattern-tp5722209p5722212.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Scripting a new-user signup

2015-04-02 Thread ZK
Hi,
Add a 'View Results Tree' Listener to your test

Edit>Add>Listener>View Results Tree



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Scripting-a-new-user-signup-tp5722068p5722073.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: what is the use of assertion

2014-10-09 Thread ZK
Hi,
Assertions let you check the response you receive are the correct expected
responses

See here:
http://blazemeter.com/blog/how-use-jmeter-assertions-3-easy-steps

ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/what-is-the-use-of-assertion-tp5721177p5721178.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How can configure jmeter to jenkins - Please provide steps.

2014-08-12 Thread ZK
Hi,
have a look at this:
http://jmeter.512774.n5.nabble.com/Jmeter-tests-from-Hudson-td4901509.html
<http://jmeter.512774.n5.nabble.com/Jmeter-tests-from-Hudson-td4901509.html>  



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/How-can-configure-jmeter-to-jenkins-Please-provide-steps-tp5720808p5720810.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: In non-GUI mode How to execute specific test cases in test plan

2014-07-22 Thread ZK
Hi,
You could achieve this with some 'IF controllers'
+
Jmeter properties function (see  here
<http://jmeter-tips.blogspot.com.tr/2010/01/tip-4-using-jmeter-properties.html> 
for some ideas)

Then you could launch your test like:
jmeter -n -t D:\TestScripts\script.jmx -JdoDB=TRUE




ZK




--
View this message in context: 
http://jmeter.512774.n5.nabble.com/In-non-GUI-mode-How-to-execute-specific-test-cases-in-test-plan-tp5720639p5720640.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Assertions on Variables from Regular Expressions

2014-07-14 Thread ZK
Hi,

1:
this will give you the last value for the Variable "var"

${__V(var_${var_matchNr})}



2:
There are many ways to achieve this:
 In a response assertion
 Using a Post Processor
 If logic controllers

You need to be more specific about your requirements


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Assertions-on-Variables-from-Regular-Expressions-tp5720531p5720553.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: __V function not working as I'd expect it to

2014-06-20 Thread ZK
Hi,
looks correct, are you sure you have a value assigned to ${JobPartID_1}
As if it is empty it can just display JobPartID_1


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/V-function-not-working-as-I-d-expect-it-to-tp5720301p5720302.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to reference thread group name in JMeter?

2014-06-10 Thread ZK
Hi,

Try:
${__machineName} - ${__BeanShell(ctx.getThreadGroup().getName())} 


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/How-to-reference-thread-group-name-in-JMeter-tp3201934p5720248.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Jmeter - Cannot extract a value from hte "response data"

2014-06-05 Thread ZK
Hi,
set a default value for your regular expression extractor:
default value:= NOT_FOUND

After the sampler where you are trying to extract the value, add a debug
sampler and check the value of pRutaRemota variable

This should assist you in troubleshooting your problem


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Re-Jmeter-Cannot-extract-a-value-from-hte-response-data-tp5720196p5720201.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: log HTTP request on error

2014-06-02 Thread ZK
HI,

try this:
log.error("ERROR URL="+prev.getUrlAsString());


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/log-HTTP-request-on-error-tp5720158p5720160.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Distributed Setup. Different scenario on one system

2014-05-21 Thread ZK
|Hi,
In your test have an 'If Controller'
Use the __machineName
<http://jmeter.apache.org/usermanual/functions.html#__machineName>  
variable

the If condition should be :
"${__machineName}" == "NameOfSpecificServer"

Within the IF Controller add the tests for the one machine



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Distributed-Setup-Different-scenario-on-one-system-tp5720094p5720096.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



RE: Regarding scheduler in Jmeter

2014-05-06 Thread ZK
Hi,
the settings on your Thread group controller:
'Action to be taken after sampler error'

Determines what happens if a sampler error occurs, either because the sample
itself failed or an assertion failed. The possible choices are:

Continue - ignore the error and continue with the test
Start Next Loop - ignore the error, start next loop and continue with the
test
Stop Thread - current thread exits
Stop Test - the entire test is stopped at the end of any current samples.
Stop Test Now - the entire test is stopped abruptly. Any current samplers
are interrupted if possible


Is this setting set to 'Continue' ?


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Regarding-scheduler-in-Jmeter-tp5719975p5719991.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Add Users Dynamically : Stress Test

2014-04-29 Thread ZK
Hi,
you should have a look at:
http://jmeter-plugins.org/wiki/SteppingThreadGroup/
<http://jmeter-plugins.org/wiki/SteppingThreadGroup/>  

http://jmeter-plugins.org/wiki/UltimateThreadGroup/
<http://jmeter-plugins.org/wiki/UltimateThreadGroup/>  



ZK





--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Add-Users-Dynamically-Stress-Test-tp5719918p5719919.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Obtaining & Using SignalR "ConnectionToken" variable ?

2014-04-11 Thread ZK
regEx should be
"ConnectionToken":"(.+?)" 



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Obtaining-Using-SignalR-ConnectionToken-variable-tp5719773p5719805.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Obtaining & Using SignalR "ConnectionToken" variable ?

2014-04-10 Thread ZK
Hi,
looks like your regular expression is wrong

You say the response you get is:
{ 
:   "Url":"/service/signalr", 
:  
"ConnectionToken":"6ZItz2DFf4LSZTX-GrkUJrZht5HL2SWZdAEyvqGoJGzgGjGQh84I52kCAXv0tiNDYVfwH8hS1DOSRTScei7ePL9x9cryopcT9ux0cmSv_QZFaCsS0",
 
:   "ConnectionId":"9be06f9a-6cca-46b3-ab90-7d74e66dd485", 
:   "KeepAliveTimeout":20.0, 
:   "DisconnectTimeout":30.0, 
:   "TryWebSockets":false, 
:   "WebSocketServerUrl":null, 
:   "ProtocolVersion":"1.2" 
} 

it should be something like:
"ConnectionToken":"(.+?)"


Also add a 'Default Value' to the Regular Expression Extractor:
NOT_FOUND
This will help you troubleshoot the issue

Also:
Add a Debug Sampler after the HTTP Request with the regEx extractor
(Add>Samplers>Debug Sampler)
Add a 'View Results Tree' (Add>Listeners>View Results Tree)

Adding those components will assist in your troubleshooting


Test Plan
-View Results Tree
-Thread Group
--HTTP Request
---Regular Expression Extractor
--Debug Sampler

Run Your test
Select/Click 'View Results Tree' Component in the Test Plan
Select/Click 'Debug Sampler' result within the 'View Result Tree' output



ZK








--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Obtaining-Using-SignalR-ConnectionToken-variable-tp5719773p5719795.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Obtaining & Using SignalR "ConnectionToken" variable ?

2014-04-10 Thread ZK
Hi,
is the Regular Expression Extractor Reference Name for the ConnectionToken

connectionToken
or 
ConnectionToken

?


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Obtaining-Using-SignalR-ConnectionToken-variable-tp5719773p5719793.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Obtaining & Using SignalR "ConnectionToken" variable ?

2014-04-10 Thread ZK
Hi,
syntax should have curly brackets:

 ${connectionToken}



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Obtaining-Using-SignalR-ConnectionToken-variable-tp5719773p5719788.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: variable within csv

2014-04-10 Thread ZK
Hi,
I would remove the ${RANDNUM} from the CSV
and in the PAth for the HTTP Sampler:

${SUBPAGE}?period=${__Random(1,5,)}

The Example above for the Random Function has '1' as the minimum value and
'5' as the maximum value for the random number

The Function is detailed here:
http://jmeter.apache.org/usermanual/functions.html#__Random
  



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/variable-within-csv-tp5719780p5719782.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Obtaining & Using SignalR "ConnectionToken" variable ?

2014-04-09 Thread ZK
Hi,
You can't extract the value and use it in the same HTTP request, you need a
separate request after the regEx extractor

you need 2 HTTP requests... 1 with the regEx extractor as a child the
2nd HTTP request with the extracted variable value:

-HTTP Request 1
--Regular Expression Extractor (extract connectionToken)
-HTTP Request 2 (with ${connectionToken} Variable)



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Obtaining-Using-SignalR-ConnectionToken-variable-tp5719773p5719774.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: A few basic queries...

2014-03-29 Thread ZK
Hi,
For point 1 just add a Counter config element to the root of your thread
group with reference name = myLoopCounter

Then rename the Get Interfaces sampler to:
Get Interfaces - loop = ${myLoopCounter}



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/A-few-basic-queries-tp5719703p5719709.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: I can not get the parameter in my jmx script

2014-03-24 Thread ZK
where.the name of your csv file?
I dont see a file extension (csv, txt, etc) such as:
/home/MSDOMAIN1/dtian/Data/stock.csv



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/I-can-not-get-the-parameter-in-my-jmx-script-tp5719674p5719675.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Is it possible to connect to and query a database to use data in an HTTP request in JMeter?

2014-03-21 Thread ZK
Hi,

you could group your JDBC requests inside a 'Transaction Controller' (Logic
Controllers) and ensure the 'Generate Parent Sample' checkbox is ticked

That would tidy things up for you


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Is-it-possible-to-connect-to-and-query-a-database-to-use-data-in-an-HTTP-request-in-JMeter-tp5719644p5719662.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Is it possible to connect to and query a database to use data in an HTTP request in JMeter?

2014-03-21 Thread ZK
Hi,

//I seem to have resolved this by adding a Debug post processor and noticing
the variable is actually set to 'LOCATION_CODE_1' rather than
'LOCATION_CODE'. 

//If I substitute ${LOCATION_CODE_1} into my HTTP sampler it seems to work.   

//Any ideas why this is the case? 

sorry my bad, that's the correct syntax!!

Not sure about the separate select statements in 1 JDBC request sampler (I
don't do so much DB testing)
could you not just have 2 JDBC request samplers for the 2 separate
statements?

ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Is-it-possible-to-connect-to-and-query-a-database-to-use-data-in-an-HTTP-request-in-JMeter-tp5719644p5719656.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Is it possible to connect to and query a database to use data in an HTTP request in JMeter?

2014-03-20 Thread ZK
Hi,
in the 'Variable names' field (near the bottom of the sampler)
just type:
locationCode

this can then be referenced using ${locationCode} in your HTTP Sampler



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Is-it-possible-to-connect-to-and-query-a-database-to-use-data-in-an-HTTP-request-in-JMeter-tp5719644p5719650.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Is it possible to connect to and query a database to use data in an HTTP request in JMeter?

2014-03-20 Thread ZK
Hi,
yes it is possible:

- Connect to an Oracle or SQL Server database 
JDBC_Connection_Configuration
<http://jmeter.apache.org/usermanual/component_reference.html#JDBC_Connection_Configuration>
  

- Run a SQL query to extract some data 
JDBC_Request
<http://jmeter.apache.org/usermanual/component_reference.html#JDBC_Request>  
Store the SELECT variables into the Variable Names field
Varaible Names: yourVar1, yourVar2

- Use that data in an HTTP request 
in the normal way ${yourVar1} ${yourVar2}



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Is-it-possible-to-connect-to-and-query-a-database-to-use-data-in-an-HTTP-request-in-JMeter-tp5719644p5719646.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: JMeter with HTTP REST - Possible to send a unique value within my XML file for each test?

2014-03-18 Thread ZK
Hi,
I think you should look at the  Regular Expression Extractor
<http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor>
  

You wouldn't need to save the response to file, just extract the value you
want out of the response and use that value in your next http request


Response file... 

Test

Regular Expression:
(.+?)


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/JMeter-with-HTTP-REST-Possible-to-send-a-unique-value-within-my-XML-file-for-each-test-tp5719604p5719624.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: JMeter with HTTP REST - Possible to send a unique value within my XML file for each test?

2014-03-17 Thread ZK
Hi,
that couls easily be achieved using a Counter config element:
http://jmeter.apache.org/usermanual/component_reference.html#Counter
<http://jmeter.apache.org/usermanual/component_reference.html#Counter>  

So if the counter 'Reference Name' = myCounter

Jones${myCounter}


Or you could use a random number:

Jones${__Random(1,99)}


ZK






--
View this message in context: 
http://jmeter.512774.n5.nabble.com/JMeter-with-HTTP-REST-Possible-to-send-a-unique-value-within-my-XML-file-for-each-test-tp5719604p5719608.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: JMeter with HTTP REST - Possible to send a unique value within my XML file for each test?

2014-03-17 Thread ZK
Hi,
you should take a look at the  CSV Data Set Config
<http://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config>
  

It will let you have an external file with differing values which can be
read and inserted into you requests

Here's an example on how to use:
http://ivetetecedor.com/how-to-use-a-csv-file-with-jmeter/


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/JMeter-with-HTTP-REST-Possible-to-send-a-unique-value-within-my-XML-file-for-each-test-tp5719604p5719605.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



RE: Display User Variable in Results

2014-03-12 Thread ZK
Hi,
its not possible to chart counters in jmeter but could be done easily in
Excel


Another possibility would be to have a ramp up for your test i.e (10 seconds
before each thread starts (this is because you need time for the last thread
to end): so if you are running with 10 threads, have a ramp up of 100
seconds)

In your regEx extractor have the refernceName as:
RespondingMachine_${__threadNum}

then have a beanshell post processor to output to the console (or you could
change it to write to an external file)with something like:

import org.apache.jmeter.threads.JMeterContextService;
import org.apache.jmeter.samplers.*;
import org.apache.jmeter.control.*;

currentVar= "RespondingMachine_"+${__threadNum}+"_matchNr";
totalThreads=JMeterContextService.getTotalThreads();

if (${__threadNum} == totalThreads){ // this is to check if it is the last
thread, hence the reason for the ramp up at the start of the test (not
perfect I know)
int totalMatchNr;
int i;
for (i = 1; i <= totalThreads; i++) {
totalMatchNr=totalMatchNr+Integer.decode(vars.get(currentVar));
 }
print("Number Of Matches = "+totalMatchNr);
}


Maybe someone knows of a more elegant solution to determine if the test has
ended
Just some ideas for you anyway!

HTH

ZK




--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Display-User-Variable-in-Results-tp5719555p5719570.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Display User Variable in Results

2014-03-12 Thread ZK
Hi,
one possibility is: you could just use a debug sampler after the regular
expression extractor
this would list all the values you want to review

If you set the 'Match No.' of the Regular Expression Extractor to be -1
there will be a variable named: 'RespondingMachine_MatchNr', this would
inform you of how many matches your regEx has found

Alternately you could write some beanshell code and output the variables to
the console


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Display-User-Variable-in-Results-tp5719555p5719559.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: sending a parameter in the GET request

2014-02-20 Thread ZK
Hi,
try:
/socket.io/1/websocket/${webSessionId}



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/sending-a-parameter-in-the-GET-request-tp5719379p5719385.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Need help in intSum function

2014-02-17 Thread ZK
hi,
you don't need to define the function, just put:
 ${__intSum(${publicCollectionId},2,test)} in the VALUE of the 'Send
Parameters With the Request' field

i.e.:
Send Parameters With the Request
Name: yourParameterName
Value: ${__intSum(${publicCollectionId},2,test)}

or 
Name:${__intSum(${publicCollectionId},2)}  if you don't need to store the
result into a variable ${test}



ZK






--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Need-help-in-intSum-function-tp5719365p5719367.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Need help to write regular expression

2014-02-17 Thread ZK
groups.+?(\d+)



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Need-help-to-write-regular-expression-tp5719305p5719366.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Need help to write regular expression

2014-02-17 Thread ZK
Hi,
No it is not to do with the extra spaces before the word groups

I suspect the response you posted not the format of the response you are
getting
could you check and repost the response where the regEx is not working

(All three examples should work for you)

ZK 



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Need-help-to-write-regular-expression-tp5719305p5719361.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Need help to write regular expression

2014-02-11 Thread ZK
Hi,
try:
groups: (.+?),

or

groups: ([\d]+),


or

groups: ([\d]+)


All the above will work



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Need-help-to-write-regular-expression-tp5719305p5719320.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Need help to write regular expression

2014-02-10 Thread ZK
Hi,
try:
group_owner:([\d]+)



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Need-help-to-write-regular-expression-tp5719305p5719308.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: get the request and response content for creating custom per thread log

2014-01-29 Thread ZK
Hi,

log.warn (prev.getUrlAsString());


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/get-the-request-and-response-content-for-creating-custom-per-thread-log-tp5719206p5719223.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Thread group Loop count: How can I tell in which round am I?

2014-01-29 Thread ZK
Hi,
just add a  counter
<http://jmeter.apache.org/usermanual/component_reference.html#Counter>  to
your thread group and reference the variable of that counter to find the
loop count


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Thread-group-Loop-count-How-can-I-tell-in-which-round-am-I-tp5719210p5719218.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: HTTPS IIS COMPRESSION and JMeter

2014-01-23 Thread ZK
Hi,
2 useful resources for checking your requests:

Blazemeter chrome extension
<https://chrome.google.com/webstore/detail/blazemeter-the-load-testi/mbopgmdnpcbohhpnfglgohlbhfongabi?hl=en>
  
You can record your tests quickly with this extension


Fiddler <http://fiddler2.com/>  
Fiddler allows you to check what traffic is being sent when you make your
requests within a browser


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/HTTPS-IIS-COMPRESSION-and-JMeter-tp5719160p5719168.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to use different CSV for each thread using jmeter

2014-01-23 Thread ZK
Hi,
when you read in the csv try this as the file name:
user${__threadNum}.csv


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/How-to-use-different-CSV-for-each-thread-using-jmeter-tp5719135p5719157.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: What does mean by "Thread Name" and "Sample Time" columns?

2013-12-19 Thread ZK
Hi,
you shoiuld read:
http://jmeter.apache.org/usermanual/component_reference.html#Aggregate_Report
<http://jmeter.apache.org/usermanual/component_reference.html#Aggregate_Report> 
 

ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/What-does-mean-by-Thread-Name-and-Sample-Time-columns-tp5580075p5718907.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Extracting value from web page Source Code using JMeter

2013-11-27 Thread ZK
Hi,
you would need to use a Post Processor:
Regular Expression  Extractor

This Regular Expression would extract the SessionId:

'SessionId': '(\d+?)',


So in the Regular Expression Extractor the settings would be:
Reference Name:
sessionId

Regular Expression:
'SessionId': '(\d+?)',

Template:
$1$

Match No.:
1
Default Value:
NOT_FOUND




ZK





--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Extracting-value-from-web-page-Source-Code-using-JMeter-tp5718772p5718773.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to Send a URL-encoded JSON string with Jmeter

2013-11-25 Thread ZK
Hi,
are you really sure you need to do this?

maybe try recording your test with something like badboy then export to
jmeter:
http://www.badboy.com.au/

See if that gives you some pointers



ZK





--
View this message in context: 
http://jmeter.512774.n5.nabble.com/How-to-Send-a-URL-encoded-JSON-string-with-Jmeter-tp5718731p5718754.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: For the same scenario and Ramp-up period, increasing Concurrent Users make increase the Throughput

2013-11-14 Thread ZK
Hi,
throughput is essentially "hits per second" to your site, so the more
concurrent users the more "hits per second" 
You can correlate this from your results:
test 2 has 30 users, and test 3 has 60 users (double the amount of test 2)
as such your throughput has doubled (approximately)

after adding more users you should see this trend continuing until you start
to hit bottlenecks with your site
Try starting with 10 users, then 50, then 100,then 150 etc

Once throughput doesn't increase in an expected manner and other indicators;
such as average response times start to increase, you are beginning to
identify the current load your site can handle.
However, it may be due to available bandwidth for your jmeter load injector,
so you should consider distributed testing, or monitor cpu, memory usage on
your application/web servers to help pinpoint any issues


HTH

ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/For-the-same-scenario-and-Ramp-up-period-increasing-Concurrent-Users-make-increase-the-Throughput-tp5718678p5718684.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Counting loops through a CSV file

2013-11-13 Thread ZK
Adding to Flavios suggestion, you could try:


${csv_field_value}_${__threadNum()}_${__machineName()}_${__time("hh:mm:ss",today)}



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Counting-loops-through-a-CSV-file-tp5718669p5718675.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Play back the recorded script and no actions are failed however the data DOENS"T update

2013-11-13 Thread ZK
Hi,
you have no Response Assertions in script, so you need to add then to ensure
you are getting the correct responses.

Also some parameters are probably dynamic and change each time you run the
test, I cant be sure as your test cannot be ran outside your organisation.
For example:
Content.css: v parameter

You need to extract these values using a regular express post processor
before using the value in subsequent requests


Try to re record the test and check which values/parameters have changed

ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Play-back-the-recorded-script-and-no-actions-are-failed-however-the-data-DOENS-T-update-tp5718671p5718674.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Reset variable created by jmeter

2013-11-11 Thread ZK
Hi,
it works for me

do you get any errors?
Did you end the line with a semi-colon?


vars.put("RESPEXT_g0","newValue");


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Reset-variable-created-by-jmeter-tp5718662p5718663.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Validate XML element and attribute values in HTTP response

2013-10-31 Thread ZK
Hi,
there are quite a few ways to achieve this using Assertions, such as:
Response Assertion
XPath Assertion

You could extract values with Post Processors such as:
Regular Expression Extractor
XPath Extractor

and once extracted, use a Beanshell post processor to validate length etc
Or write a regular expression to validate the result

There are many ways to achieve what you want



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Validate-XML-element-and-attribute-values-in-HTTP-response-tp5718599p5718600.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Login count when executing JMeter scripts

2013-10-30 Thread ZK
Hi,
are you using the cookie manager?
if so; try checking the "clear cookies each iteration'


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Login-count-when-executing-JMeter-scripts-tp5718583p5718590.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: wher can i find JTL tab in my web interface?

2013-10-29 Thread ZK
Hi,
jmeter doesn't have a JTL Tab


see:
http://jmeter.512774.n5.nabble.com/What-is-the-procedure-to-open-a-jtl-file-in-Jmeter-td518141.html
<http://jmeter.512774.n5.nabble.com/What-is-the-procedure-to-open-a-jtl-file-in-Jmeter-td518141.html>
  



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/wher-can-i-find-JTL-tab-in-my-web-interface-tp5718561p5718580.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: data share in distributed test

2013-10-29 Thread ZK
I assumed (incorrectly) that the CSV would be local to to the jmeter instance
on each test injector

ie.: ./CSV/csvFile

Would this have a negative impact on performance?



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/data-share-in-distributed-test-tp5718569p5718577.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: data share in distributed test

2013-10-29 Thread ZK
Hi,
would it not be easier to have 2 different yyfile files?

the 1 on the master only having UserA data
the 1 on the slave only having UserB data


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/data-share-in-distributed-test-tp5718569p5718572.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: run jmeter in command mode from jenkins does not work

2013-10-22 Thread ZK
Hi,
have you edited the jmeter.properties file (jmeter\bin\jmeter.properties) to
output the results as XML?

jmeter.save.saveservice.output_format=xml


ZK





--
View this message in context: 
http://jmeter.512774.n5.nabble.com/run-jmeter-in-command-mode-from-jenkins-does-not-work-tp5718492p5718507.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: How to run Multiple HTTP samplers inside the IF controller

2013-10-07 Thread ZK
Hi,
seems your If condition is incorrect:

should be something like:
 if controller ("${reservationCode}" != "NULL" && "${serviceId}" != "NULL"
&& "${code}" != "NULL")

ZK
 



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/How-to-run-Multiple-HTTP-samplers-inside-the-IF-controller-tp5718288p5718365.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Creating 5000 users with simmilar user name

2013-09-25 Thread ZK
If it was for distributed testing then I would keep it simple (as Flavio
described) using something like:
userName_${__MachineName}_${counter}


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Creating-5000-users-with-simmilar-user-name-tp5718195p5718241.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Creating 5000 users with simmilar user name

2013-09-23 Thread ZK
Hi,
try adding a "counter" to your test and create a new user with:
userName${counter}


ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Creating-5000-users-with-simmilar-user-name-tp5718195p5718223.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Is it possible to get assertion failure message and store it in a variable?

2013-09-13 Thread ZK
Hey Deepak,

That works!!
Thank you very much!!

:)

ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Is-it-possible-to-get-assertion-failure-message-and-store-it-in-a-variable-tp5718151p5718165.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Is it possible to get assertion failure message and store it in a variable?

2013-09-12 Thread ZK
Hi,
Is it possible to get "assertion failure message" and store it in a variable
using beanshell?
I am getting nowhere with this, I have tried but can't get it to work

Is it possible using:
http://jmeter.apache.org/api/org/apache/jmeter/assertions/AssertionResult.html
<http://jmeter.apache.org/api/org/apache/jmeter/assertions/AssertionResult.html>
  

Does anyone know the correct syntax for getFailureMessage()   ?

TIA
ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Is-it-possible-to-get-assertion-failure-message-and-store-it-in-a-variable-tp5718151.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: Facing an issue in a script.

2013-01-17 Thread ZK
hi,
when I test I don't get an email with the client Id or Password

however; when the test calls Invitation Acceptance2 with this URL:

http://beta.m-spectrum.com/m-SpectrumWebApp/ManageUser/InvitationAcceptance.aspx?Mail=NOT_FOUND%3d&PR=True

the above request is REdirected to:
http://beta.m-spectrum.com/CongratulationPage.aspx?Mail=gGMV0JnMy8cNWNDiUP7V8ALMFsOQ3ATnHbGBK57IKnA=&PassWord=yZaDxh2JBvjcFO5Eb7X6vw==&Device=Windows%20Mobile


So it appears to me the URL (whether correct or incorrect) is being
rewritten with hard-coded values on the REdirect

You need to speak to your DEVS about this



ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Facing-an-issue-in-a-script-tp5715820p5715840.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: regular expression extractor problem

2013-01-17 Thread ZK
Hi,
1 thing I notice is your Regular Expression is not correct
Try:
{"access_token":"(.+?)"




ZK



--
View this message in context: 
http://jmeter.512774.n5.nabble.com/regular-expression-extractor-problem-tp5715833p5715834.html
Sent from the JMeter - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



  1   2   3   >