-
Notifications
You must be signed in to change notification settings - Fork 288
ParameterComparisonTable
凝雨 edited this page Jul 12, 2018
·
1 revision
Java类型 | paramType | paramValue |
---|---|---|
int | int | 1 |
int[] | int[] | [1, 2] |
double | double | 1.2 |
double[] | double[] | [1.2, 1.3] |
short | short | 1 |
short[] | short[] | [1, 2] |
float | float | 1.2 |
float[] | float[] | [1.2, 1.3] |
long | long | 1 |
long[] | long[] | [1, 2] |
byte | byte | 字节 |
byte[] | byte[] | 字节 |
boolean | boolean | true false |
boolean[] | boolean[] | [true, false] |
char | char | A,如果字符过长取值为:"STR".charAt(0) |
char[] | char[] | [A, B] |
java.lang.String | java.lang.String String string |
"foo" foo |
java.lang.String[] | java.lang.String[] String[] string[] |
["foo1", "foo2"] |
java.lang.Integer | java.lang.Integer Integer integer |
1 |
java.lang.Integer[] | java.lang.Integer[] Integer[] integer[] |
[1, 2] |
java.lang.Double | java.lang.Double Double |
1.2 |
java.lang.Double[] | java.lang.Double[] Double[] |
[1.2, 1.3] |
java.lang.Short | java.lang.Short Short |
1 |
java.lang.Short[] | java.lang.Short[] Short[] |
[1, 2] |
java.lang.Long | java.lang.Long Long |
1 |
java.lang.Long[] | java.lang.Long[] Long[] |
[1, 2] |
java.lang.Float | java.lang.Float Float |
1.2 |
java.lang.Float[] | java.lang.Float[] Float[] |
[1.2, 1.3] |
java.lang.Byte | java.lang.Byte Byte |
字节 |
java.lang.Byte[] | java.lang.Byte[] Byte[] |
字节 |
java.lang.Boolean | java.lang.Boolean Boolean |
true false |
java.lang.Boolean[] | java.lang.Boolean[] Boolean[] |
[true, false] |
JavaBean | com.your.package.BeanName | {"att1":"foo","att2":"foo2"} |
JavaBean[] | com.your.package.BeanName | [{"att1":"foo"}, {"att1":"foo2"}] |
java.util.Map以及子类 | java.util.Map以及子类 | {"att1":"foo","att2":"foo2"} |
java.util.Map<String,JavaBean> | java.util.Map | {"keyName":{"att1":"foo"}} |
java.util.HashMap<Object,Object> | java.util.HashMap | {"keyName":{"att1":"foo"}} |
java.util.Collection以及子类 | java.util.Collection以及子类 | ["a","b"] |
java.util.List<String> | java.util.List | ["a", "b"] |
java.util.List<JavaBean> | java.util.List | [{"att1":"foo1"}, {"att1":"foo2"}] |
java.util.List<Map<Object, JavaBean>> | java.util.List | [{"keyName1":{"att1":"foo1"}}, {"keyName2":{"att1":"foo1"}}] |
java.util.List<Long> | java.util.List | [1, 2, 3] |
java.util.ArrayList<Object> | java.util.ArrayList | ["foo" , 1, true] |
ps. paramValue可使用jmeter函数,例如:{"att1":"foo-${__RandomString(5,12345,ids)}"}
- Getting Started
- Communication
- Information