寫第一個UI Test - iT 邦幫忙 - iThome
文章推薦指數: 80 %
Android X 提供了 ActivityScenario 這個API 來啟動和驅動Activity 的生命週期以 ... { val activityScenario = launch(MainActivity::class.java) return activityScenario } ... 第11屆iT邦幫忙鐵人賽 DAY 23 0 自我挑戰組 Andr
延伸文章資訊
- 1ActivityScenario | Android Developers
ActivityScenario provides APIs to start and drive an Activity's lifecycle state for testing. It w...
- 2androidx.test.core.app.ActivityScenario.onActivity java code ...
Use {@link ActivityScenario to launch and get access to the activity. * {@link ActivityScenario#o...
- 3ActivityScenario.ActivityAction | Android 开发者 | Android ...
Example: ActivityScenario<MyActivity> scenario = ActivityScenario.launch(MyActivity.class); scen...
- 4android-test/ActivityScenario.java at master - GitHub
destroy(); // Moves the activity state to State.DESTROYED. *. * After: * try(ActivityScenario<My...
- 5Test your app's activities | Android Developers
ActivityScenario is a cross-platform API that you can use in local unit tests and on-device integ...