-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38bd90d
commit b8b4b54
Showing
8 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Relax is a lightweight wrapper around Android's UI Automator library. It helps write clear and concise UI tests: | ||
|
||
```kotlin | ||
Relax.flow("com.example.myapp") { | ||
Relax("com.example.myapp") { | ||
pressHome() | ||
launch() | ||
inputText("[email protected]", "id/email") | ||
|
@@ -56,7 +56,7 @@ dependencies { | |
Relax allows you to build UI test flows as a sequence of actions: | ||
|
||
```kotlin | ||
Relax.flow("<your app's package name>") { | ||
Relax("<your app's package name>") { | ||
// Arbitrary actions | ||
} | ||
``` | ||
|
@@ -222,7 +222,7 @@ click("Purchase") | |
Ignoring all failures by default: | ||
```kotlin | ||
val config = FlowConfig(errorHandler = NoOpFlowErrorHandler) | ||
Relax.flow("id", config) { | ||
Relax("id", config) { | ||
// … | ||
} | ||
``` | ||
|
@@ -235,7 +235,7 @@ val errorHandler = object : FlowErrorHandler { | |
} | ||
} | ||
val config = FlowConfig(errorHandler = errorHandler) | ||
Relax.flow("id", config) { | ||
Relax("id", config) { | ||
// … | ||
} | ||
``` | ||
|
@@ -245,7 +245,7 @@ Relax.flow("id", config) { | |
Relax is a lightweight wrapper around UI Automator, therefore it's easy to leverage the full feature set of UI Automator. For example: | ||
|
||
```kotlin | ||
Relax.flow(/* … */) { | ||
Relax(/* … */) { | ||
if (!device.isScreenOn) device.wakeUp() | ||
launch() | ||
click("Next") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters