我正在尝试在远程机器 (macOS sierraO) 上运行 Jmeter 测试。我配置了 jp@gc - Chrome Driver Config
并成功连接到从机,但每次尝试运行时都会出现以下错误:
Starting ChromeDriver 73.0.3683.20 (XXXXXXX) on port XXXX
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Mar 08, 2019 12:12:35 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Using local port: XXXXXX
2019-03-08 13:04:39.171 java[10402:23852395] IMKInputSession [0x7f8bcbaaf740 presentFunctionRowItemTextInputViewWithEndpoint:completionHandler:] : [self textInputContext]=0x7f8bcbb578f0 *NO* NSRemoteViewController to client, NSError=Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 0 was invalidated from this process." UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}, com.apple.inputmethod.EmojiFunctionRowItem
我知道这与安全考虑有关,但我找不到解决我的用例的方法。
我的用例是: 我正在使用以下方式运行jmeter测试:
- 直接从Jmeter 5.1运行远程服务器
- 使用java-maven-plugin项目运行
如果您有任何想法如何配置chromeDriver在远程服务器上运行,将不胜感激。