嘿,我正在嘗試在 JMeter 中進行移動測驗,我已按照本指南的每一步進行操作,并且錄制作業正常。問題是我必須在本機應用程式中進行記錄,當我嘗試登錄時,我收到以下錯誤訊息:
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
我不知道該怎么做
uj5u.com熱心網友回復:
為什么您要問我們而不是“本指南”的作者?
這些“每一步”還沒有完成,您還需要“遵循”幾個“每一步”
在應用清單的應用部分添加以下條目:
android:networkSecurityConfig="@xml/network_security_config將
network_security_config.xml檔案添加到您的應用程式資源檔案夾并復制以下代碼:<?xml version="1.0" encoding="utf-8"?> <network-security-config> <debug-overrides> <trust-anchors> <!-- Trust user added CAs while debuggable only --> <certificates src="user" /> </trust-anchors> </debug-overrides> </network-security-config>在除錯模式下重新編譯您的應用程式:
gradlew assembleDebug使用上一步中的除錯 .apk 替換您嘗試錄制的應用
你現在應該可以錄音了
更多資訊:
- 安卓網路安全配置
- 為代理錄制配置 Android 設備
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/372018.html
上一篇:Javascript"${status}"==500||${status}=="undefined"在while控制器中失敗
