Wednesday, April 15, 2020

JMeter : OS Process sampler : Run OS commands and 3rd-party programs on local and remote machines



to invoke Notepad on Windows and open the JMeter readme in it, configure the OS Process Sampler as the following:



  • Command: notepad.exe
  • Working Directory: C:\Windows\System32
  • Command Parameter: C:\apache-jmeter-2.13\pradeep.txt




JMeter: jp@gc - Set Variables Action (Plugin) : Add local variables inside thread group.



https://www.blazemeter.com/blog/introducing-the-set-variables-action-component-in-jmeter/

Install plugin:



Add a test plan as shown below to validate the variables action plugin functionality.


here
number = 1111111111111111111111111111111
h

here number is override by 222222222222222222222222222




now i have used number variable again and name = pradeep
number = 33333333333333333333333333333
name = pradeep



if we delete number here, it will retain from previous then
number = 222222222222222222222222



JMeter : Dummy sampler : for Post Processors verification in Offline mode. (Mock request and Response)


https://www.blazemeter.com/blog/jmeters-dummy-sampler-the-ultimate-guide/

Add dummy sampler plugin

Add Thread Group, Dummy sampler.



Add Request Data
Mainly Response Data -(we use Post processor to validate )


Add JSON Extractor Post processor




Execute:


Add Debug Sampler to capture variable values

 Execute:

name = Seatle






JMeter: Redirect Automatically , Follow Redirects: measure URL Redirection ?


https://www.youtube.com/watch?v=DciZ7uqsh0k&list=PLJ9A48W0kpRIC_2PUr3b4ulb3ajrKgiGT&index=5


if we open http://www.google.co.in      it redirects to https://www.google.co.in  site.

Redirect Automatically , Follow Redirects are mutually exclusive. We can select either of these,

Redirect Automatically : Hit url and redirection is captured in single request.


Follow Redirects : Captures http://www.google.co.in as one request and redirection to https://www.google.co.in as another request.







in View Results in Table : Select Child Samples


JMeter : Bolt (Network Protocol) : Neo4J Graphical Database performance testing.

https://dev.to/qainsights/performance-testing-neo4j-database-using-bolt-protocol-in-apache-jmeter-1oa9

Using Bolt we can do load testing for Neo4J Graphical database.

Prerequiest: Download Community edition Neo4J  Zip , run the batch file.  Create a dummy graphical data.


Add Thread Group,
    Bolt Connection Configuration:
    Bolt Request
Listener : View Result Tree







Execute :


Cypher : Query Language for Graph database (Neo4J) : https://www.opencypher.org/







Cyper Query language

Neo4j: Desktop application 600MB, Graphical Connected Database



Nodes,

Edges,

Properties

JMeter Simple Controller

  Simple Controller is just a  container  for user request.