Re: Share Load to specific DB per specific Server IP

2018-08-24 Thread Deepak Shetty
Your question is not clear. Do you mean you recorded a script for
app.test.com where app.test.com internally makes calls to a database
cluster and now you want when you run the script , all calls must only goto
one specific IP ?
JMeter --> app.test.com --> DB ?
If so then this is something for you to configure on app.test.com , nothing
related to JMeter. JMeter cannot control what happens after the request is
sent. Usually the app allows this using something like a custom header or
cookie or parameter.

regards
deepak

On Fri, Aug 24, 2018 at 5:29 AM Prateek Dua  wrote:

> Hi,
>
> Is there any way in Jmeter to transfer Load to specific DB as per  Server
> IP / hostname defined in Http Request / Http Request defaults  ?
>
> Basically scenario I got to test is to generate load to a specific DB by
> hitting Application ( from recorded application flow) directly. Like
> Application Server is app.test.com & DB Ip is : 10.30.5.67
>
> So I need that all load from app.test.com should go to 10.30.5.67 directly
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


Re: Counter starting from threadNum?

2018-08-24 Thread Deepak Shetty
If I remember correctly some config elements are processed at configuration
time and so cant use items in their configuration that have values at
runtime. (Not verified for this particular case)
Likely you will have to use a normal counter and then combine it with the
threadnum at runtime

On Fri, Aug 24, 2018 at 6:56 AM Max Allan  wrote:

> Hello,
> I wanted a counter starting from threadNum * 1000, to be formatted with
> preceding zeroes to 6 digits.
> (Meaning I'll have 10 threads, each thread will query content IDs from
> 00x001 to 00x999)
> However, the counter element seems to not like having it's start value
> changed in different threads. My abbreviated test plan .jmx is below. When
> I run it on Windows or OSX in GUI or command line mode, I find that the
> counter starts from the same place for different threads.
> Sometimes it is always the same value (002000) sometimes it almost gets it
> right and only one thread duplicates the start value of another.
> Am I doing something wrong or is this a bug?
>
> (I've tried :
> using ${__threadNum} in the counter
> using a ${__jexl2(ctx.getThreadNum())} in the counter
> adding a beanshell element to set a variable "START" and using ${START} in
> the counter
> None of them worked, it just seems like counter doesn't like different
> Start values)
>
> Thanks,
> Max
>
>
> 
> 
>   
> 
>   false
>   false
> 
> 
>testname="Count" enabled="true">
>  elementType="LoopController" guiclass="LoopControlPanel"
> testclass="LoopController" testname="Loop Controller" enabled="true">
>   false
>   1
> 
> 10
> 0
>   
>   
>  testclass="CounterConfig" testname="Counter" enabled="true">
>   ${__jexl3(${__threadNum} *
> 1000,)}
>   99
>   1
>   TOTP
>   00
>   true
>name="CounterConfig.reset_on_tg_iteration">true
> 
> 
>  testclass="HTTPSamplerProxy" testname="TOTP : ${TOTP} " enabled="true">
>guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined
> Variables" enabled="true">
> 
>   
>   localhost
>   ${__jexl3(${__threadNum} *
> 1000,)}
> 
> 
>testclass="ResultCollector" testname="View Results Tree" enabled="true">
> false
> 
>   saveConfig
>   
> false
> true
> true
> true
> true
> true
>   
> 
>   
>   
> 
>   
> 
>   
> 
>


Counter starting from threadNum?

2018-08-24 Thread Max Allan
Hello,
I wanted a counter starting from threadNum * 1000, to be formatted with
preceding zeroes to 6 digits.
(Meaning I'll have 10 threads, each thread will query content IDs from
00x001 to 00x999)
However, the counter element seems to not like having it's start value
changed in different threads. My abbreviated test plan .jmx is below. When
I run it on Windows or OSX in GUI or command line mode, I find that the
counter starts from the same place for different threads.
Sometimes it is always the same value (002000) sometimes it almost gets it
right and only one thread duplicates the start value of another.
Am I doing something wrong or is this a bug?

(I've tried :
using ${__threadNum} in the counter
using a ${__jexl2(ctx.getThreadNum())} in the counter
adding a beanshell element to set a variable "START" and using ${START} in
the counter
None of them worked, it just seems like counter doesn't like different
Start values)

Thanks,
Max




  

  false
  false


  

  false
  1

10
0
  
  

  ${__jexl3(${__threadNum} *
1000,)}
  99
  1
  TOTP
  00
  true
  true



  

  
  localhost
  ${__jexl3(${__threadNum} *
1000,)}


  
false

  saveConfig
  
false
true
true
true
true
true
  

  
  

  

  



Re: http request defaults overriding http request post recording

2018-08-24 Thread Philippe Mouawad
You can use a variable host holding the IP and replace it with this value
${host}.

And use JMeter Search/ Replace feature that is much more powerful in
upcoming 5.0 that you can test in nightly build:

   - https://jmeter.apache.org/nightly.html


Regards

On Fri, Aug 24, 2018 at 3:00 PM Prateek Dua  wrote:

> Hi,
>
> Is there any way to override Server ip, protocol in http requests via http
> request defaults' details after script has been recorded ?
>
> Scenario: I have recorded a web app & all the requests have ip 10.70.3.63..
> And here case is that I have to test same web app against 2 more different
> IP 10.70.3.64 & 10.70.3.65 .
>
>
> So how can I easily handle this scenario ?
>
> --
>
>
> ::DISCLAIMER::
>
>
>
> 
>
>
>
>
>
> This message is intended only for the use of the addressee and may
> contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this message is not the
> intended recipient, or the employee or agent responsible for delivering
> the
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this e-mail in error, please notify us
> immediately by return e-mail and delete this e-mail and all attachments
> from your system.
>


-- 
Cordialement.
Philippe Mouawad.


http request defaults overriding http request post recording

2018-08-24 Thread Prateek Dua
Hi,

Is there any way to override Server ip, protocol in http requests via http
request defaults' details after script has been recorded ?

Scenario: I have recorded a web app & all the requests have ip 10.70.3.63..
And here case is that I have to test same web app against 2 more different
IP 10.70.3.64 & 10.70.3.65 .


So how can I easily handle this scenario ?

-- 


::DISCLAIMER::








This message is intended only for the use of the addressee and may 
contain information that is privileged, confidential and exempt from 
disclosure under applicable law. If the reader of this message is not the 
intended recipient, or the employee or agent responsible for delivering the 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this e-mail in error, please notify us 
immediately by return e-mail and delete this e-mail and all attachments 
from your system.


Share Load to specific DB per specific Server IP

2018-08-24 Thread Prateek Dua
Hi,

Is there any way in Jmeter to transfer Load to specific DB as per  Server
IP / hostname defined in Http Request / Http Request defaults  ?

Basically scenario I got to test is to generate load to a specific DB by
hitting Application ( from recorded application flow) directly. Like
Application Server is app.test.com & DB Ip is : 10.30.5.67

So I need that all load from app.test.com should go to 10.30.5.67 directly

-- 


::DISCLAIMER::








This message is intended only for the use of the addressee and may 
contain information that is privileged, confidential and exempt from 
disclosure under applicable law. If the reader of this message is not the 
intended recipient, or the employee or agent responsible for delivering the 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this e-mail in error, please notify us 
immediately by return e-mail and delete this e-mail and all attachments 
from your system.