https://github.com/soarcn/formfiller
Android helper library to populate form fields with a predefined data set
https://github.com/soarcn/formfiller
android form formfiller testing
Last synced: 10 months ago
JSON representation
Android helper library to populate form fields with a predefined data set
- Host: GitHub
- URL: https://github.com/soarcn/formfiller
- Owner: soarcn
- License: apache-2.0
- Created: 2020-07-18T13:07:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-19T07:41:53.000Z (almost 6 years ago)
- Last Synced: 2025-04-03T11:43:49.827Z (about 1 year ago)
- Topics: android, form, formfiller, testing
- Language: Kotlin
- Homepage:
- Size: 1.25 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
FormFiller
=========

Android helper library to populate form fields with predefined data set

Usage
=======
```kotlin
class DemoApp : Application() {
override fun onCreate() {
super.onCreate()
// Enable FormFiller for debug builds only
if (BuildConfig.DEBUG) {
FormFiller.Builder(this)
// Fill the form by pressing f key from external keyboard
.keyCode(KeyEvent.KEYCODE_F)
// Fill the form by double tapping on ui
.doubleTap()
.scenario {
id(R.id.username, "username")
id(R.id.password, "password")
}
.build()
}
}
}
```
Advanced usage
=======
Define different data-set and switch between them inside the app
```kotlin
FormFiller.Builder(this)
.doubleTap()
// Enable scenario switcher and open ui by long pressing with 2 fingers on ui
.enableScenariosSwitcher()
.scenario {
id(R.id.username, "username")
id(R.id.password, "password")
}
.scenario("Unhappy") {
id(R.id.username, "wrong")
id(R.id.password, "wrong")
}
.build()
```
```kotlin
//select edittext by tag name
tag("username") {
//manipulate edit text
it.setText(Random.toString())
}
```
Download
=====
```groovy
implementation 'com.cocosw:formfiller:1.0'
```