나는 안드로이드 애플리케이션을 자동화하려고합니다. 테스트를 시작할 때 디버그 창에서 환경을 전환하려고합니다. 환경을 전환하는 동안 응용 프로그램이 닫히고 특정 환경에 대한 새 인스턴스가 열립니다. 응용 프로그램을 닫을 때 테스트에 실패합니다.안드로이드 에스프레소 테스트에서 교환 환경
이 오류를 얻기 : 이유 :. 프로세스가 충돌 '계측 실행이에 인해 실패' ''
스크립트가 실패하고 새 응용 프로그램이나는 안드로이드 애플리케이션을 자동화하려고합니다. 테스트를 시작할 때 디버그 창에서 환경을 전환하려고합니다. 환경을 전환하는 동안 응용 프로그램이 닫히고 특정 환경에 대한 새 인스턴스가 열립니다. 응용 프로그램을 닫을 때 테스트에 실패합니다.안드로이드 에스프레소 테스트에서 교환 환경
이 오류를 얻기 : 이유 :. 프로세스가 충돌 '계측 실행이에 인해 실패' ''
스크립트가 실패하고 새 응용 프로그램이을 열 때까지 당신은 사용할 필요가 기다리지 않는 방법이 있나요 Uiautomator를 사용하여 환경을 전환 한 다음 에스프레소 단계를 실행하십시오. 자세한 내용은 참조 표시를 위해
https://developer.android.com/topic/libraries/testing-support-library/index.html#UIAutomator
The UI Automator testing framework provides a set of APIs to build UI tests that perform interactions on user apps and system apps. The UI Automator APIs allows you to perform operations such as opening the Settings menu or the app launcher in a test device. The UI Automator testing framework is well-suited for writing black box-style automated tests, where the test code does not rely on internal implementation details of the target app.