Bug 62959

Summary: Ability to create an HTTP Request from a Curl command
Product: JMeter Reporter: UbikLoadPack support <support>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 5.0   
Target Milestone: JMETER_5.1   
Hardware: All   
OS: All   

Description UbikLoadPack support 2018-11-27 22:30:59 UTC
Hello,
As suggested in Bug 62870 by reporter, Postman has a feature to create a test from curl command.

This is interesting as FF or Chrome allow to export a URL call to a cURL command.

So we are creating this enhancement request and will propose a POC of it so that you can see if it can be interesting.

Regards
Comment 1 UbikLoadPack support 2018-11-27 23:02:21 UTC
See:

-https://github.com/apache/jmeter/pull/436
Comment 2 Philippe Mouawad 2018-12-19 09:55:06 UTC
pmouawad@apache.org
	
10:54 AM (2 minutes ago)
	
to commits
Author: pmouawad
Date: Wed Dec 19 09:54:42 2018
New Revision: 1849285

URL: http://svn.apache.org/viewvc?rev=1849285&view=rev
Log:
Bug 62959 - Ability to create a Test plan from a Curl command

Contributed by UbikLoadPack

This closes #436
Bugzilla Id: 62959

Added:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/curl/
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/curl/BasicCurlParser.java   (with props)
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/action/
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java   (with props)
    jmeter/trunk/test/src/org/apache/jmeter/curl/
    jmeter/trunk/test/src/org/apache/jmeter/curl/BasicCurlParserTest.java   (with props)
Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionNames.java
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/xdocs/changes.xml
Comment 3 Philippe Mouawad 2018-12-19 12:16:15 UTC
Author: pmouawad
Date: Wed Dec 19 12:15:24 2018
New Revision: 1849294

URL: http://svn.apache.org/viewvc?rev=1849294&view=rev
Log:
Bug 62959 - Ability to create a Test plan from a Curl command

Fix test failures due to missing french translation
order key alphabetically


Bugzilla Id: 62959

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
Comment 4 Philippe Mouawad 2019-02-06 10:35:40 UTC
Author: pmouawad
Date: Wed Feb  6 10:23:03 2019
New Revision: 1853058

URL: http://svn.apache.org/viewvc?rev=1853058&view=rev
Log:
Bug 62959 Ability to create an HTTP Request from a Curl command

Improvements:

- Allow updating Test Plan instead of creating a whole one
- Add a comment on HTTP Request saying it was created from cURL on date
Fixes:

- If !request.isCompressed, don't add gzip,deflate
Bugzilla Id: 62959

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_de.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java