jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject [jmeter] branch master updated: Add options in tests
Date Wed, 02 Oct 2019 19:57:43 GMT
This is an automated email from the ASF dual-hosted git repository.

pmouawad pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 92e39d6  Add options in tests
92e39d6 is described below

commit 92e39d6145b5d6ccbc842bf37b28d7402efed536
Author: pmouawad <p.mouawad@ubik-ingenierie.com>
AuthorDate: Wed Oct 2 21:57:35 2019 +0200

    Add options in tests
---
 .../src/test/java/org/apache/jmeter/curl/BasicCurlParserTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/protocol/http/src/test/java/org/apache/jmeter/curl/BasicCurlParserTest.java
b/src/protocol/http/src/test/java/org/apache/jmeter/curl/BasicCurlParserTest.java
index b4c3f6c..2b3ae8b 100644
--- a/src/protocol/http/src/test/java/org/apache/jmeter/curl/BasicCurlParserTest.java
+++ b/src/protocol/http/src/test/java/org/apache/jmeter/curl/BasicCurlParserTest.java
@@ -333,7 +333,7 @@ public class BasicCurlParserTest {
     }
     @Test
     public void testDataUrlEncodeOneParameterWithName() {
-        String cmdLine = "curl 'https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_submit/action_page.php'
"
+        String cmdLine = "curl -s 'https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_submit/action_page.php'
"
                 + "-H 'cache-control: no-cache' --data-urlencode 'value=é' ";
         BasicCurlParser basicCurlParser = new BasicCurlParser();
         BasicCurlParser.Request request = basicCurlParser.parse(cmdLine);
@@ -343,7 +343,7 @@ public class BasicCurlParserTest {
 
     @Test
     public void testDataUrlEncodeMoreThanOneParameters() {
-        String cmdLine = "curl 'https://postman-echo.com/post' -H 'Content-Type: application/x-www-form-urlencoded'"
+        String cmdLine = "curl -v 'https://postman-echo.com/post' -H 'Content-Type: application/x-www-form-urlencoded'"
                 + " -H 'cache-control: no-cache' --data-urlencode 'foo1=!!!&foo2=???'";
         BasicCurlParser basicCurlParser = new BasicCurlParser();
         BasicCurlParser.Request request = basicCurlParser.parse(cmdLine);


Mime
View raw message