how to import http test script to jmeter from RPT

2019-08-10 20:23发布

问题:

is it possible to convert to jmx the http test scenarios prepared in RPT, and exported to some intermediate fomat, by using some free tool?

回答1:

There is no obvious RPT to JMeter converter, however you can get at least test "skeleton" using JMeter's recording functionality.

  1. Configure JMeter's HTTP(S) Test Script Recorder and start JMeter proxy. The easiest way to get "good" working configuration is using JMeter Template feature

    • launch JMeter
    • from the top menu click File -> Templates -> Recording -> Create
    • select Workbench -> HTTP(S) Test Script Recorder
    • Click "Start" button

  1. Configure RPT to use host running JMeter as a proxy. In order to do so:

    • Right click at "Connection" object in Test Contents
    • Add -> Proxy
    • Provide host running JMeter and port 8888 as "Host" and "Port"

  1. Start your load test (better with 1 virtual user and 1 iteration) in the RPT
  2. JMeter should be recording the requests.


回答2:

There does not appear to be any tool to do so.

Maybe you can give more details on the RPT script format by showing a sample, this would give some ideas.