正在尝试在jmeter和xmpp服务器之间创建连接

正在尝试在jmeter和xmpp服务器之间创建连接,jmeter,xmpp,Jmeter,Xmpp,正在尝试创建连接,但显示错误。下面是Beanshell取样器代码 import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.ConnectionListener; import org.jivesoftware.smack.tcp.XMPPTCPConnection; import org.jivesoftware.smack.tcp.XMPPTCPConnectionConfigu

正在尝试创建连接,但显示错误。下面是Beanshell取样器代码

import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.ConnectionListener;

import org.jivesoftware.smack.tcp.XMPPTCPConnection;
import org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration;
import org.jivesoftware.smack.SASLAuthentication;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.XMPPException.XMPPErrorException;

String jabberId = "admin";
String jabberPass = "12345";


String SERVER_ADDRESS = "xxx.xxx.xxx.xxx";
int    PORT =  5222;  // or any other port

String ServiceName = "Smack";

SASLAuthentication.blacklistSASLMechanism("DIGEST-MD5");
SASLAuthentication.unBlacklistSASLMechanism("PLAIN");

    XMPPTCPConnectionConfiguration config  =  XMPPTCPConnectionConfiguration.builder()
        .setCompressionEnabled(false)
           .setHost(SERVER_ADDRESS)
           .setServiceName(ServiceName)
           .setPort(DEFAULT_PORT)
        .setSecurityMode(ConnectionConfiguration.SecurityMode.disabled)
           .setSendPresence(true)
         .setDebuggerEnabled(true)
           .build();

   XMPPTCPConnection con = new XMPPTCPConnection(config);

   int REPLY_TIMEOUT = 50000;  // 50 seconds, but can be shorter
   con.setPacketReplyTimeout(REPLY_TIMEOUT);
    //con = getConnection();
con.connect();
//con.login(jabberId,jabberPass);
下面是错误

Response code: 500 Response message:
org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval
In file: inline evaluation of: ``public XMPPConnection doConnect(String userName,String password) {         XMPPConne . . . '' Encountered "( xxx.xxx .xxx" at line 7, column 60.

请告诉我有什么问题。或者给我正确的代码将jmeter连接到xmpp服务器

你能更具体地说明你的目标吗?我的目标是对xmpp服务器进行压力测试。连接到xmpp服务器。2.由用户3登录。加入聊天室。4.发送聊天信息。就这样。如果您有.jmx,它会更好。