ASF Bugzilla – Attachment 37721 Details for
Bug 65109
jmeter cli command create infinity folders of report
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add markup for placeholders
0001-Add-markup-for-placeholders-in-commands.patch (text/plain), 20.56 KB, created by
Felix Schumacher
on 2021-01-27 18:42:56 UTC
(
hide
)
Description:
Add markup for placeholders
Filename:
MIME Type:
Creator:
Felix Schumacher
Created:
2021-01-27 18:42:56 UTC
Size:
20.56 KB
patch
obsolete
>From 07aa4c0dc587ac8e35d27476b9c64fd5b8d4404e Mon Sep 17 00:00:00 2001 >From: Felix Schumacher <felix.schumacher@internetallee.de> >Date: Wed, 27 Jan 2021 19:37:42 +0100 >Subject: [PATCH] Add markup for placeholders in commands > >--- > xdocs/css/new-style.css | 7 +++ > xdocs/css/style.css | 6 +++ > xdocs/stylesheets/site_printable.vsl | 6 +++ > xdocs/stylesheets/website-style.xsl | 4 ++ > xdocs/usermanual/curl.xml | 56 +++++++++++------------ > xdocs/usermanual/generating-dashboard.xml | 16 +++---- > xdocs/usermanual/get-started.xml | 40 ++++++++-------- > 7 files changed, 79 insertions(+), 56 deletions(-) > >diff --git a/xdocs/css/new-style.css b/xdocs/css/new-style.css >index 3df19e2002..08a04b1fb7 100644 >--- a/xdocs/css/new-style.css >+++ b/xdocs/css/new-style.css >@@ -428,6 +428,13 @@ table { > background-color: white; > } > >+.placeholder { >+ font-style: italic; >+ font-weight: normal; >+ text-decoration-line: underline; >+ text-decoration-style: dashed; >+} >+ > @media screen and (max-width: 1000px) { > .nav { > width: 100%; >diff --git a/xdocs/css/style.css b/xdocs/css/style.css >index 9bc97e1310..174b8361df 100644 >--- a/xdocs/css/style.css >+++ b/xdocs/css/style.css >@@ -48,3 +48,9 @@ a[name]:hover:after{ > .guimenuitem { > font-style: italic; > } >+ >+.placeholder { >+ font-style: italic; >+ font-weight: bold; >+ color: darkgreen; >+} >diff --git a/xdocs/stylesheets/site_printable.vsl b/xdocs/stylesheets/site_printable.vsl >index 5ce2f54f96..372c5642c9 100644 >--- a/xdocs/stylesheets/site_printable.vsl >+++ b/xdocs/stylesheets/site_printable.vsl >@@ -339,6 +339,8 @@ Contributed by $id.getAttributeValue("name") <$id.getAttributeValue("mail")&g > #guimenuitem ($node) > #elseif ($node.getName().equals("description")) > #description ($node) >+#elseif ($node.getName().equals("placeholder")) >+#placeholder ($node) > #else > #outputTag($node) > #runloop($node) >@@ -370,6 +372,10 @@ Contributed by $id.getAttributeValue("name") <$id.getAttributeValue("mail")&g > </$tag.getName()>## > #end > >+#macro (placeholder $node) >+<span class="placeholder">#runloop($node)</span>## >+#end >+ > #macro (menuchoice $items) > <span class="menuchoice"> > #foreach ($item in $items.getChildren("guimenuitem"))#guimenuitem($item)#if ($foreach.hasNext) → #end#end >diff --git a/xdocs/stylesheets/website-style.xsl b/xdocs/stylesheets/website-style.xsl >index b44ee85781..992d6752ef 100644 >--- a/xdocs/stylesheets/website-style.xsl >+++ b/xdocs/stylesheets/website-style.xsl >@@ -689,4 +689,8 @@ > </span> > </xsl:template> > >+ <xsl:template match="placeholder"> >+ <span class="placeholder"><xsl:apply-templates /></span> >+ </xsl:template> >+ > </xsl:stylesheet> >diff --git a/xdocs/usermanual/curl.xml b/xdocs/usermanual/curl.xml >index 8968028dda..768e508f80 100644 >--- a/xdocs/usermanual/curl.xml >+++ b/xdocs/usermanual/curl.xml >@@ -55,15 +55,15 @@ Create a Test Plan From a cURL Command > <subsection name="§-num;.2 Curl options supported" anchor="curl_options"> > > <dl> >- <dt><code>-H</code>, <code>--header <header></code></dt> >+ <dt><code>-H</code>, <code>--header <placeholder>header</placeholder></code></dt> > <dd>Extra header to use when getting a web page.</dd> >- <dt><code>-X</code>, <code>--request <command></code></dt> >+ <dt><code>-X</code>, <code>--request <placeholder>command</placeholder></code></dt> > <dd>Specifies a custom request method to use when communicating with the HTTP server.</dd> > <dt><code>--compressed</code></dt> > <dd>Request a compressed response using one of the algorithms curl supports, and return the uncompressed document.</dd> >- <dt><code>-A</code>, <code>--user-agent <agent string></code></dt> >+ <dt><code>-A</code>, <code>--user-agent <placeholder>agent string</placeholder></code></dt> > <dd>Specify the User-Agent string to send to the HTTP server.</dd> >- <dt><code>-b</code>, <code>--cookie <name=data></code></dt> >+ <dt><code>-b</code>, <code>--cookie <placeholder>name=data</placeholder></code></dt> > <dd>Pass the data to the HTTP server as a cookie.</dd> > <dt><code>-d</code> and friends</dt> > <dd><p>Sending data via POST request</p> >@@ -72,17 +72,17 @@ Create a Test Plan From a cURL Command > separating '<code>&</code>' character. Thus, using '<code>-d name=daniel -d skill=lousy</code>' would generate a POST > chunk that looks like '<code>name=daniel&skill=lousy</code>'.</p> > <dl> >- <dt><code>-d</code>, <code>--data <data></code>, <code>--data-ascii <data></code></dt> >+ <dt><code>-d</code>, <code>--data <placeholder>data</placeholder></code>, <code>--data-ascii <placeholder>data</placeholder></code></dt> > <dd>use <code>@</code> to upload a file</dd> >- <dt><code>--data-raw <data></code>gt;</dt> >+ <dt><code>--data-raw <placeholder>data</placeholder></code></dt> > <dd></dd> >- <dt><code>--data-raw <data></code></dt> >+ <dt><code>--data-raw <placeholder>data</placeholder></code></dt> > <dd>This posts data exactly as specified with no extra processing whatsoever. > If you start the data with the character <code>@,</code> the rest should be a filename.</dd> >- <dt><code>--data-raw <data></code>ta></dt> >+ <dt><code>--data-raw <placeholder>data</placeholder></code></dt> > <dd>This posts data, similar to the other <code>--data</code> options with the exception that this performs > URL-encoding.</dd> >- <dt><code>--data-raw <data></code></dt> >+ <dt><code>--data-raw <placeholder>data</placeholder></code></dt> > <dd>This posts data similarly to <code>--data</code> but without the special interpretation > of the <code>@</code> character.</dd> > </dl> >@@ -91,13 +91,13 @@ Create a Test Plan From a cURL Command > <dd> > <p>This lets curl emulate a filled-in form in which a user has pressed the submit button.</p> > <dl> >- <dt><code>-F</code>, <code>--form <name=content></code></dt> >+ <dt><code>-F</code>, <code>--form <placeholder>name=content</placeholder></code></dt> > <dd>use <code>@</code> to upload a file</dd> >- <dt><code>--form-string <name=content></code></dt> >+ <dt><code>--form-string <placeholder>name=content</placeholder></code></dt> > <dd></dd> > </dl> > </dd> >- <dt><code>-u</code>, --user <user:password ></dt> >+ <dt><code>-u</code>, --user <placeholder>user:password </placeholder></dt> > <dd>Specify user and password to use for server authentication.</dd> > <dt><code>--basic</code>, <code>--digest</code></dt> > <dd>Tells curl to use HTTP authentication.</dd> >@@ -105,35 +105,35 @@ Create a Test Plan From a cURL Command > <dd> > <p>Tells curl to use the specified client certificate file when getting a file with HTTPS</p> > <dl> >- <dt><code>--cacert <CA certificate></code></dt> >- <dt><code>--capath <CA certificate directory></code></dt> >- <dt><code>--ciphers <list of ciphers></code></dt> >+ <dt><code>--cacert <placeholder>CA certificate</placeholder></code></dt> >+ <dt><code>--capath <placeholder>CA certificate directory</placeholder></code></dt> >+ <dt><code>--ciphers <placeholder>list of ciphers</placeholder></code></dt> > <dt><code>--cert-status</code></dt> >- <dt><code>--cert-type <type></code></dt> >+ <dt><code>--cert-type <placeholder>type</placeholder></code></dt> > </dl> > </dd> > <dt><code>-G</code>, <code>--get</code></dt> > <dd>put the post data in the URL and use get to replace post.</dd> > <dt><code>--no-keepalive</code></dt> > <dd>Disables the use of keepalive messages on the TCP connection.</dd> >- <dt><code>-e</code>, <code>--referer <URL></code></dt> >+ <dt><code>-e</code>, <code>--referer <placeholder>URL</placeholder></code></dt> > <dd>Sends the <em>Referer Page</em> information to the HTTP server.</dd> > <dt><code>-L</code>, <code>--location</code></dt> > <dd>If the server reports that the requested page has moved to a different location > this option will make curl redo the request on the new place.</dd> > <dt><code>-i</code>, <code>--include</code></dt> > <dd>Include the HTTP-header in the output.</dd> >- <dt><code>--connect-timeout <seconds></code></dt> >+ <dt><code>--connect-timeout <placeholder>seconds</placeholder></code></dt> > <dd>Maximum time in seconds that the connection to the server may take.</dd> >- <dt><code>--keepalive-time <seconds></code></dt> >+ <dt><code>--keepalive-time <placeholder>seconds</placeholder></code></dt> > <dd>This option sets the time a connection needs to remain idle before sending keepalive probes > and the time between individual keepalive probes.</dd> >- <dt><code>-m</code>, <code>--max-time <seconds></code></dt> >+ <dt><code>-m</code>, <code>--max-time <placeholder>seconds</placeholder></code></dt> > <dd>Maximum time in seconds that you allow the whole operation to take.</dd> >- <dt><code>-x</code>, <code>--proxy <[protocol://][user:password@]proxyhost[:port]></code></dt> >+ <dt><code>-x</code>, <code>--proxy <placeholder>[protocol://][user:password@]proxyhost[:port]</placeholder></code></dt> > <dd>Use the specified HTTP proxy. If the port number is not specified, > it is assumed at port <code>1080</code>.</dd> >- <dt><code>-U</code>, <code>--proxy-user <user:password></code></dt> >+ <dt><code>-U</code>, <code>--proxy-user <placeholder>user:password</placeholder></code></dt> > <dd>Specify user and password to use for proxy authentication.</dd> > <dt><code>-k</code>, <code>--insecure</code></dt> > <dd>This option explicitly allows curl to perform <em>insecure</em> SSL connections and transfers.</dd> >@@ -141,19 +141,19 @@ Create a Test Plan From a cURL Command > <dd>When used, it disables all internal HTTP decoding of content or transfer encodings and instead makes them passed on unaltered,raw.</dd> > <dt><code>-I</code>, <code>--head</code></dt> > <dd>Fetch the HTTP-header only. HTTP-servers feature the method <code>HEAD</code> which this uses to get nothing but the header of a document.</dd> >- <dt><code>--interface <name></code></dt> >+ <dt><code>--interface <placeholder>name</placeholder></code></dt> > <dd>Perform an operation using a specified interface. You can enter interface name, IP address or host name.</dd> > <dt><code>--proxy-ntlm</code>/<code>--proxy-negotiate</code></dt> > <dd>Tells curl to use HTTP BASIC/NTLM/Digest authentication when communicating with the given proxy.</dd> >- <dt><code>--dns-servers <addresses></code></dt> >+ <dt><code>--dns-servers <placeholder>addresses</placeholder></code></dt> > <dd>Resolve host name over DOH.</dd> >- <dt><code>--resolve <host:port:address></code></dt> >+ <dt><code>--resolve <placeholder>host:port:address</placeholder></code></dt> > <dd>Provide a custom address for a specific host and port pair.</dd> >- <dt><code>--limit-rate <speed></code></dt> >+ <dt><code>--limit-rate <placeholder>speed</placeholder></code></dt> > <dd>Specify the maximum transfer rate you want curl to use.</dd> >- <dt><code>--max-redirs <num></code></dt> >+ <dt><code>--max-redirs <placeholder>num</placeholder></code></dt> > <dd>Set maximum number of redirections which may be followed.</dd> >- <dt><code>--noproxy <no-proxy-list></code></dt> >+ <dt><code>--noproxy <placeholder>no-proxy-list</placeholder></code></dt> > <dd>Comma-separated list of hosts which do not use a proxy, if one is specified.</dd> > </dl> > >diff --git a/xdocs/usermanual/generating-dashboard.xml b/xdocs/usermanual/generating-dashboard.xml >index 9a50b6b4c2..ada547a517 100644 >--- a/xdocs/usermanual/generating-dashboard.xml >+++ b/xdocs/usermanual/generating-dashboard.xml >@@ -279,14 +279,14 @@ jmeter.save.saveservice.timestamp_format = ms > <subsection name="§-num;.2.3.2 Specific properties" anchor="specific_graph_properties"> > <p> > Specific graph properties must use the prefix: >- <source>jmeter.reportgenerator.graph.<graph_id>.property</source> >+ <source>jmeter.reportgenerator.graph.<placeholder>graph_id</placeholder>.property</source> > The name of the property will be mapped using camel case > transformation and the matching method of the class will be > called with the property value as argument. > </p> > <p> > E.g.: >- <source>jmeter.reportgenerator.graph.<graph_id>.property.set_granularity=150</source> >+ <source>jmeter.reportgenerator.graph.<placeholder>graph_id</placeholder>.property.set_granularity=150</source> > induces the call of the method <code>setGranularity(150)</code> on the > instance of the graph. > </p> >@@ -332,7 +332,7 @@ jmeter.save.saveservice.timestamp_format = ms > <subsection name="§-num;.2.4.2 Specific properties" anchor="specific_export_properties"> > <p> > Specific exporter properties must use the prefix >- <source>jmeter.reportgenerator.exporter.<exporter_id>.property</source> >+ <source>jmeter.reportgenerator.exporter.<placeholder>exporter_id</placeholder>.property</source> > </p> > <properties> > <property name="output_dir" required="No"> >@@ -352,7 +352,7 @@ jmeter.save.saveservice.timestamp_format = ms > Graph properties allow exporters to overwrite some graph data. > <br /> > They must use the prefix: >- <source>jmeter.reportgenerator.exporter.<exporter_id>.graph_options.<graph_id></source> >+ <source>jmeter.reportgenerator.exporter.<placeholder>exporter_id</placeholder>.graph_options.<placeholder>graph_id</placeholder></source> > </p> > <properties> > <property name="minX" required="No">Sets the minimum >@@ -587,14 +587,14 @@ jmeter.reportgenerator.exporter.html.filters_only_sample_series=true > <subsection name="§-num;.3.1 Generation from an existing sample CSV log file" anchor="report_only"> > <p> > Use the following command: >- <source>jmeter -g <log file> -o <Path to output folder></source> >+ <source>jmeter -g <placeholder>log file</placeholder> -o <placeholder>Path to output folder</placeholder></source> > </p> > </subsection> > > <subsection name="§-num;.3.2 Generation after load test" anchor="report_after_load_test"> > <p> > Use the following command: >- <source>jmeter -n -t <test JMX file> -l <test log file> -e -o <Path to output folder></source> >+ <source>jmeter -n -t <placeholder>test JMX file</placeholder> -l <placeholder>test log file</placeholder> -e -o <placeholder>Path to output folder</placeholder></source> > </p> > </subsection> > </subsection> >@@ -742,9 +742,9 @@ jmeter.reportgenerator.exporter.html.filters_only_sample_series=true > by settings their properties in the user.properties file. > <br /> > They must use the id prefix <code>custom_</code>: >- <source>jmeter.reportgenerator.graph.custom_<your_graph_name_id>.property.<your_option_name></source> >+ <source>jmeter.reportgenerator.graph.custom_<placeholder>your_graph_name_id</placeholder>.property.<placeholder>your_option_name</placeholder></source> > To specify that this graph is a customized one : >- <source>jmeter.reportgenerator.graph.custom_<your_graph_name_id>.classname=org.apache.jmeter.report.processor.graph.impl.CustomGraphConsumer</source> >+ <source>jmeter.reportgenerator.graph.custom_<placeholder>your_graph_name_id</placeholder>.classname=org.apache.jmeter.report.processor.graph.impl.CustomGraphConsumer</source> > </p> > <properties> > <property name="set_X_Axis" required="Yes">Sets the X axis name of the graph.</property> >diff --git a/xdocs/usermanual/get-started.xml b/xdocs/usermanual/get-started.xml >index 1265d8392e..7752deda25 100644 >--- a/xdocs/usermanual/get-started.xml >+++ b/xdocs/usermanual/get-started.xml >@@ -748,59 +748,59 @@ These are shown below.</p> > print usage information and exit > -v, --version > print the version information and exit >- -p, --propfile <argument> >+ -p, --propfile <placeholder>argument</placeholder> > the jmeter property file to use >- -q, --addprop <argument> >+ -q, --addprop <placeholder>argument</placeholder> > additional JMeter property file(s) >- -t, --testfile <argument> >+ -t, --testfile <placeholder>argument</placeholder> > the jmeter test(.jmx) file to run >- -l, --logfile <argument> >+ -l, --logfile <placeholder>argument</placeholder> > the file to log samples to >- -i, --jmeterlogconf <argument> >+ -i, --jmeterlogconf <placeholder>argument</placeholder> > jmeter logging configuration file (log4j2.xml) >- -j, --jmeterlogfile <argument> >+ -j, --jmeterlogfile <placeholder>argument</placeholder> > jmeter run log file (jmeter.log) > -n, --nongui > run JMeter in nongui mode > -s, --server > run the JMeter server >- -H, --proxyHost <argument> >+ -H, --proxyHost <placeholder>argument</placeholder> > Set a proxy server for JMeter to use >- -P, --proxyPort <argument> >+ -P, --proxyPort <placeholder>argument</placeholder> > Set proxy server port for JMeter to use >- -N, --nonProxyHosts <argument> >+ -N, --nonProxyHosts <placeholder>argument</placeholder> > Set nonproxy host list (e.g. *.apache.org|localhost) >- -u, --username <argument> >+ -u, --username <placeholder>argument</placeholder> > Set username for proxy server that JMeter is to use >- -a, --password <argument> >+ -a, --password <placeholder>argument</placeholder> > Set password for proxy server that JMeter is to use >- -J, --jmeterproperty <argument>=<value> >+ -J, --jmeterproperty <placeholder>argument</placeholder>=<placeholder>value</placeholder> > Define additional JMeter properties >- -G, --globalproperty <argument>=<value> >+ -G, --globalproperty <placeholder>argument</placeholder>=<placeholder>value</placeholder> > Define Global properties (sent to servers) > e.g. -Gport=123 > or -Gglobal.properties >- -D, --systemproperty <argument>=<value> >+ -D, --systemproperty <placeholder>argument</placeholder>=<placeholder>value</placeholder> > Define additional system properties >- -S, --systemPropertyFile <argument> >+ -S, --systemPropertyFile <placeholder>argument</placeholder> > additional system property file(s) > -f, --forceDeleteResultFile > force delete existing results files and web report folder if present before starting the test >- -L, --loglevel <argument>=<value> >+ -L, --loglevel <placeholder>argument</placeholder>=<placeholder>value</placeholder> > [category=]level e.g. jorphan=INFO, jmeter.util=DEBUG or com.example.foo=WARN > -r, --runremote > Start remote servers (as defined in remote_hosts) >- -R, --remotestart <argument> >+ -R, --remotestart <placeholder>argument</placeholder> > Start these remote servers (overrides remote_hosts) >- -d, --homedir <argument> >+ -d, --homedir <placeholder>argument</placeholder> > the jmeter home directory to use > -X, --remoteexit > Exit the remote servers at end of test (CLI mode) >- -g, --reportonly <argument> >+ -g, --reportonly <placeholder>argument</placeholder> > generate report dashboard only, from a test results file > -e, --reportatendofloadtests > generate report dashboard after load test >- -o, --reportoutputfolder <argument> >+ -o, --reportoutputfolder <placeholder>argument</placeholder> > output folder for report dashboard > </source> > <p> >-- >2.25.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 65109
: 37721