2

I need to do a performance test for JNLP accessible application.

I used WireShark and see that the jnlp generates only TCP traffic.

I read all the post related with jnlp perf testing and I tried with Apache JMeter + UbikLoadPack Java Serialization plugin but jmeter does not capture the traffic.

Is it my only option capture the TCP traffic and work with that ?

Regards, Jaime

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
  • 1
    JNLP isn't a protocol like TCP. It s really nothing more than the format of a file. All the traffic is conducted over HTTP or FTP or whatever you define for the URLs in the JNLP file. Hard to see why you would be concerned about performance. Unclear what you're asking. – user207421 Mar 29 '18 at 22:56

1 Answers1

1

If traffic is HTTP(s), as per documentation of UbikLoadPack bundle, You need to follow the instructions of paragraphs:

1/Add JMeter certificate authority to the cacerts file used by Java:

See in documentation "Configuring Application for HTTPS" (Pages 7/8). This will allow your application to work when using JMeter as proxy if traffic is HTTPS

Steps are the following:

  • Start JMeter
  • Use File > Templates... Menu item, then select "Recording" Template and click Create Recording Template

  • Start HTTP(S) Test Script Recorder by clicking on Start Button Start Recording

  • JMeter will generate a Certificate Authority in 2 formats in jmeter/bin folder:

    • ApacheJMeterTemporaryRootCA.crt
    • ApacheJMeterTemporaryRootCA.usr
  • Find cacerts file used by your system, it should be in JAVA_HOME/jre/lib/security/cacerts
  • Run:

keytool -keystore cacerts -importcert -alias jmeter_ca -file <path to jmeter>/bin/ApacheJMeterTemporaryRootCA.crt

  • keystore password is usually "changeit"
  • enter "yes" for "Trust this certificate?" question

References:

2/To set JMeter as proxy of JNLP:

  • Open the Java Control Panel

Java Control Panel

  • Click Network Settings. The Network Settings dialog box opens.

  • Select Use proxy server, enter the proxy server name (localhost), and port number (8888 for JMeter).

Proxy Configuration

  • Click Advanced and check "Use same proxy server for all protocols":

Use same proxy for all protocols - Click Apply - Restart your application again

See reference documentation:

If it’s not HTTP, the plugin does not support it.

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116