jmeterutils.html
来自「测试工具jmeter可用来进行性能测试」· HTML 代码 · 共 1,242 行 · 第 1/5 页
HTML
1,242 行
If the resource is not found, a warning is logged
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key in the resource file
<DT><B>Returns:</B><DD>the resource string if the key is found; otherwise, return
"[res_key="+key+"]"</DL>
</DD>
</DL>
<HR>
<A NAME="getResString(java.lang.String, java.lang.String)"><!-- --></A><H3>
getResString</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getResString</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key,
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> defaultValue)</PRE>
<DL>
<DD><B>Deprecated.</B> <I>Only intended for use in development; use
getResString(String) normally</I>
<P>
<DD>Gets the resource string for this key.
If the resource is not found, a warning is logged
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the key in the resource file<DD><CODE>defaultValue</CODE> - -
the default value
<DT><B>Returns:</B><DD>the resource string if the key is found; otherwise, return the
default</DL>
</DD>
</DL>
<HR>
<A NAME="getJMeterProperties()"><!-- --></A><H3>
getJMeterProperties</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> <B>getJMeterProperties</B>()</PRE>
<DL>
<DD>This gets the currently defined appProperties. It can only be called
after the <A HREF="../../../../org/apache/jmeter/util/JMeterUtils.html#getProperties(java.lang.String)"><CODE>getProperties(String)</CODE></A> method is called.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The JMeterProperties value</DL>
</DD>
</DL>
<HR>
<A NAME="getImage(java.lang.String)"><!-- --></A><H3>
getImage</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/ImageIcon.html" title="class or interface in javax.swing">ImageIcon</A> <B>getImage</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE>
<DL>
<DD>This looks for the requested image in the classpath under
org.apache.jmeter.images. <name>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Description of Parameter
<DT><B>Returns:</B><DD>The Image value</DL>
</DD>
</DL>
<HR>
<A NAME="getImage(java.lang.String, java.lang.String)"><!-- --></A><H3>
getImage</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/ImageIcon.html" title="class or interface in javax.swing">ImageIcon</A> <B>getImage</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name,
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> description)</PRE>
<DL>
<DD>This looks for the requested image in the classpath under
org.apache.jmeter.images. <name>, and also sets the description
of the image, which is useful if the icon is going to be placed
on the clipboard.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the image<DD><CODE>description</CODE> - the description of the image
<DT><B>Returns:</B><DD>The Image value</DL>
</DD>
</DL>
<HR>
<A NAME="getResourceFileAsText(java.lang.String)"><!-- --></A><H3>
getResourceFileAsText</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getResourceFileAsText</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getTimers(java.util.Properties)"><!-- --></A><H3>
getTimers</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html" title="class or interface in java.util">Vector</A> <B>getTimers</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> properties)</PRE>
<DL>
<DD>Creates the vector of Timers plugins.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>properties</CODE> - Description of Parameter
<DT><B>Returns:</B><DD>The Timers value</DL>
</DD>
</DL>
<HR>
<A NAME="getVisualizers(java.util.Properties)"><!-- --></A><H3>
getVisualizers</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html" title="class or interface in java.util">Vector</A> <B>getVisualizers</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> properties)</PRE>
<DL>
<DD>Creates the vector of visualizer plugins.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>properties</CODE> - Description of Parameter
<DT><B>Returns:</B><DD>The Visualizers value</DL>
</DD>
</DL>
<HR>
<A NAME="getControllers(java.util.Properties)"><!-- --></A><H3>
getControllers</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html" title="class or interface in java.util">Vector</A> <B>getControllers</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> properties)</PRE>
<DL>
<DD>Creates a vector of SampleController plugins.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>properties</CODE> - The properties with information about the samplers
<DT><B>Returns:</B><DD>The Controllers value</DL>
</DD>
</DL>
<HR>
<A NAME="getTestSamples(java.util.Properties, java.lang.String)"><!-- --></A><H3>
getTestSamples</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] <B>getTestSamples</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> properties,
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE>
<DL>
<DD>Create a string of class names for a particular SamplerController
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>properties</CODE> - The properties with info about the samples.<DD><CODE>name</CODE> - The name of the sampler controller.
<DT><B>Returns:</B><DD>The TestSamples value</DL>
</DD>
</DL>
<HR>
<A NAME="getXMLParser()"><!-- --></A><H3>
getXMLParser</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/XMLReader.html" title="class or interface in org.xml.sax">XMLReader</A> <B>getXMLParser</B>()</PRE>
<DL>
<DD>Create an instance of an org.xml.sax.Parser based on the default props.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The XMLParser value</DL>
</DD>
</DL>
<HR>
<A NAME="getAlias(java.util.Properties)"><!-- --></A><H3>
getAlias</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Hashtable.html" title="class or interface in java.util">Hashtable</A> <B>getAlias</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> properties)</PRE>
<DL>
<DD>Creates the vector of alias strings.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>properties</CODE> - Description of Parameter
<DT><B>Returns:</B><DD>The Alias value</DL>
</DD>
</DL>
<HR>
<A NAME="getVector(java.util.Properties, java.lang.String)"><!-- --></A><H3>
getVector</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html" title="class or interface in java.util">Vector</A> <B>getVector</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> properties,
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE>
<DL>
<DD>Creates a vector of strings for all the properties that start with a
common prefix.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>properties</CODE> - Description of Parameter<DD><CODE>name</CODE> - Description of Parameter
<DT><B>Returns:</B><DD>The Vector value</DL>
</DD>
</DL>
<HR>
<A NAME="getHashtable(java.util.Properties, java.lang.String)"><!-- --></A><H3>
getHashtable</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Hashtable.html" title="class or interface in java.util">Hashtable</A> <B>getHashtable</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A> properties,
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE>
<DL>
<DD>Creates a table of strings for all the properties that start with a
common prefix.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>properties</CODE> - Description of Parameter<DD><CODE>name</CODE> - Description of Parameter
<DT><B>Returns:</B><DD>The Hashtable value</DL
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?