steeltomato / jmeter-amf

AMF Plugin for JMeter
http://code.kennethjhill.com/jmeter-amf
Apache License 2.0
37 stars 37 forks source link

have deserialized AMF/HTTP request as response #37

Open zhukovm opened 9 years ago

zhukovm commented 9 years ago

Hi steeltomato! is it possible to have deserialized AMF/HTTP request as response? i want to store in a variable data, like this plugin does: https://code.google.com/p/jmeter-amf-visualizer/

current situation: 1. if i put response into a variable in AMF request, it would be meaningless like:

<ActionMessage>
  <version>3</version>
  <headers/>
  <bodies>
    <MessageBody>
      <targetURI>/3/onResult</targetURI>
      <responseURI></responseURI>
    </MessageBody>
  </bodies>
</ActionMessage>

2. text response representations does'nt have any structure and contains a lot of strange symbols, so it's extremly hard to find any data is it.

maciejfranek commented 9 years ago

Hi,

Some time ago I worked with JMeter+AMF and I had same problem. I made fork of steeltomato`s project and improve slightly UI. Among other changes I added two new views into View Results Tree:

You may try plugin located here: https://github.com/maciejfranek/jmeter-amf/blob/master/dist-jar/jmeter-amf-1.5.jar

You also may try build project yourself: https://github.com/maciejfranek/jmeter-amf

Regards

zhukovm commented 9 years ago

thanks! but with your library (v1.5) i get errors like

WARN  - jmeter.gui.action.Load: Missing jar file java.lang.NoClassDefFoundError: org/apache/jmeter/gui/util/JTextScrollPane
...
 jmeter.protocol.amf.resources.AmfResourceManager: ERROR! Resource string not found: [amf_request] java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key amf_request
...
and a lot of others

so, 1.does it have any additional requirements? i use jmeter 2.8. (`cause i was not able to record amf samplers with 2.12 & steeltomato libs v 1.4) 2 if i'm not mistaken, you just added additional views to view results tree. it's not an issue; i need to have deserialized AMF as response of AMF request/

maciejfranek commented 9 years ago

I use it with JMeter 2.12. I also use flex libraries located here: https://github.com/maciejfranek/jmeter-amf/tree/master/flex-jars

zhukovm commented 9 years ago

hi again! i'm trying to make my own plugin with Intellij Idea.

  1. i made project, placed steeltomato's plugin sources inside and it compiles, jmeter can be launched, BUT i can't see AMF samples in it(like custom sources are not compiled with other code).
  2. i did like it was said in steeltomato's instruction: changed search_paths=, and log shows INFO - jmeter.JMeter: Adding to classpath and loader: D:\Programming\JmeterSamplerReNamer\jmeter\out\production\protocol\org\apache\jmeter\protocol\amf

BUT i can't see AMF samples in it(like custom sources are not compiled with other code). is it nessesary to do dome other actions?

maciejfranek, steeltomato, you had to do it earlier, maybe you can help me again=)