Java Code Examples for org.apache.jmeter.testelement.TestElement#getPropertyAsString()

The following examples show how to use org.apache.jmeter.testelement.TestElement#getPropertyAsString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 5 votes vote down vote up
/**
 * get methodArgs
 * @return the methodArgs
 */
public static final List<MethodArgument> getMethodArgs(TestElement element) {
    int paramsSize = element.getPropertyAsInt(FIELD_DUBBO_METHOD_ARGS_SIZE, 0);
    List<MethodArgument> list = new ArrayList<MethodArgument>();
    for (int i = 1; i <= paramsSize; i++) {
        String paramType = element.getPropertyAsString(FIELD_DUBBO_METHOD_ARGS + "_PARAM_TYPE" + i);
        String paramValue = element.getPropertyAsString(FIELD_DUBBO_METHOD_ARGS + "_PARAM_VALUE" + i);
        MethodArgument args = new MethodArgument(paramType, paramValue);
        list.add(args);
    }
    return list;
}
 
Example 2
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 5 votes vote down vote up
/**
 * get attachmentArgs
 * @return the attachmentArgs
 */
public static final List<MethodArgument> getAttachmentArgs(TestElement element) {
    int paramsSize = element.getPropertyAsInt(FIELD_DUBBO_ATTACHMENT_ARGS_SIZE, 0);
    List<MethodArgument> list = new ArrayList<MethodArgument>();
    for (int i = 1; i <= paramsSize; i++) {
        String paramType = element.getPropertyAsString(FIELD_DUBBO_ATTACHMENT_ARGS + "_KEY" + i);
        String paramValue = element.getPropertyAsString(FIELD_DUBBO_ATTACHMENT_ARGS + "_VALUE" + i);
        MethodArgument args = new MethodArgument(paramType, paramValue);
        list.add(args);
    }
    return list;
}
 
Example 3
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get method
 * @return the method
 */
public static final String getMethod(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_METHOD);
}
 
Example 4
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get connections
 * @return the group
 */
public static final String getConnections(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_CONNECTIONS, DEFAULT_CONNECTIONS);
}
 
Example 5
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get group
 * @return the group
 */
public static final String getGroup(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_GROUP, null);
}
 
Example 6
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get cluster
 * @return the cluster
 */
public static final String getCluster(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_CLUSTER, DEFAULT_CLUSTER);
}
 
Example 7
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get retries
 * @return the retries
 */
public static final String getRetries(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_RETRIES, DEFAULT_RETRIES);
}
 
Example 8
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get version
 * @return the version
 */
public static final String getVersion(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_VERSION, DEFAULT_VERSION);
}
 
Example 9
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get address
 * @return the address
 */
public static final String getAddress(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_ADDRESS);
}
 
Example 10
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get RPC protocol
 * @return the RPC protocol
 */
public static final String getRpcProtocol(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_RPC_PROTOCOL);
}
 
Example 11
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get ConfigCenter timeout
 * @return the timeout
 */
public static final String getConfigCenterTimeout(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_CONFIG_CENTER_TIMEOUT);
}
 
Example 12
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get Registry Protocol
 * @return the protocol
 */
public static final String getRegistryProtocol(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_REGISTRY_PROTOCOL);
}
 
Example 13
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get ConfigCenter password
 * @return the password
 */
public static final String getConfigCenterPassword(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_CONFIG_CENTER_PASSWORD);
}
 
Example 14
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get ConfigCenter username
 * @return the username
 */
public static final String getConfigCenterUserName(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_CONFIG_CENTER_USER_NAME);
}
 
Example 15
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get ConfigCenter namespace
 * @return the namespace
 */
public static final String getConfigCenterNamespace(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_CONFIG_CENTER_NAMESPACE);
}
 
Example 16
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get async
 * @return the async
 */
public static final String getAsync(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_ASYNC);
}
 
Example 17
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get ConfigCenter protocol
 * @return the protocol
 */
public static final String getConfigCenterProtocol(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_CONFIG_CENTER_PROTOCOL);
}
 
Example 18
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get Registry timeout
 * @return the timeout
 */
public static final String getRegistryTimeout(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_REGISTRY_TIMEOUT);
}
 
Example 19
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get Registry password
 * @return the password
 */
public static final String getRegistryPassword(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_REGISTRY_PASSWORD);
}
 
Example 20
Source File: Constants.java    From jmeter-plugins-for-apache-dubbo with Apache License 2.0 2 votes vote down vote up
/**
 * get Registry Group
 * @return the group
 */
public static final String getRegistryGroup(TestElement element) {
    return element.getPropertyAsString(FIELD_DUBBO_REGISTRY_GROUP);
}