Bug 60335 - Add a script for doing proxy recordings in non-gui mode
Summary: Add a script for doing proxy recordings in non-gui mode
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.1
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-03 09:56 UTC by Lars H
Modified: 2016-11-12 14:11 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars H 2016-11-03 09:56:22 UTC
I would like to be able to record a test plan using the proxy recorder without using the gui. 

My main use case would be in a CI pipeline, where an automated test (executed using some other tool) could trigger the interaction with the system under test, and automatically record a user session i jmeter. The recorded test plan would be used to validate that requests have not changed between runs, and serve as a base for updated load tests.

Now that https://bz.apache.org/bugzilla/show_bug.cgi?id=57305 has been fixed, it should be fairly easy to solve. I think it could be done in a fashion similar to bin/mirror-server.sh. 

The script could terminate and write the test plan on CTRL+C/SIGINT.

In order to facilitate things like variable substitution & response logging, I think it would make sense to be able to provide a test plan as input to the script (the script would then load this file before starting the recording)