{"id":20447216,"url":"https://github.com/stfalcon-studio/stfalconfixturer-android","last_synced_at":"2025-06-10T22:34:52.899Z","repository":{"id":77717484,"uuid":"155727695","full_name":"stfalcon-studio/StfalconFixturer-android","owner":"stfalcon-studio","description":" Utility for developers and QAs what helps minimize time wasting on writing the same data for testing over and over again. Made by Stfalcon ","archived":false,"fork":false,"pushed_at":"2021-02-15T15:52:27.000Z","size":151,"stargazers_count":30,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-21T00:44:51.396Z","etag":null,"topics":["android","autofill","autofixture","fixtures","java","kotlin","qa","utility"],"latest_commit_sha":null,"homepage":"https://stfalcon.com","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stfalcon-studio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-11-01T14:28:36.000Z","updated_at":"2025-04-15T10:22:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"670a97bb-ed4b-41df-89e8-80044d20afc3","html_url":"https://github.com/stfalcon-studio/StfalconFixturer-android","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stfalcon-studio%2FStfalconFixturer-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stfalcon-studio%2FStfalconFixturer-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stfalcon-studio%2FStfalconFixturer-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stfalcon-studio%2FStfalconFixturer-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stfalcon-studio","download_url":"https://codeload.github.com/stfalcon-studio/StfalconFixturer-android/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stfalcon-studio%2FStfalconFixturer-android/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259164671,"owners_count":22815403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","autofill","autofixture","fixtures","java","kotlin","qa","utility"],"created_at":"2024-11-15T10:25:14.124Z","updated_at":"2025-06-10T22:34:52.876Z","avatar_url":"https://github.com/stfalcon-studio.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stfalcon Fixturer\n\nA Utility for developers and QAs which helps minimize time wasting on writing the same data for testing over and over again.\nYou can write fixture in XML one time and use it for build testing. The library can autofill EditText with your fixture data.\n\n### Who we are\nNeed iOS and Android apps, MVP development or prototyping? Contact us via info@stfalcon.com. We develop software since 2009, and we're known experts in this field. Check out our [portfolio](https://stfalcon.com/en/portfolio) and see more libraries from [stfalcon-studio](https://stfalcon.com/en/opensource).\n\n### Download\n\n1. Add jitpack to the root build.gradle file of your project at the end of repositories.\n```\nallprojects {\n  repositories {\n    ...\n    maven { url 'https://jitpack.io' }\n  }\n}\n```\n2. Add the dependency\n```\ndependencies {\n  ...\n  implementation \"com.github.stfalcon-studio:StfalconFixturer-android:[last_version]\"\n}  \n```\n[![](https://jitpack.io/v/stfalcon-studio/StfalconFixturer-android.svg)](https://jitpack.io/#stfalcon-studio/StfalconFixturer-android)\n\nWhere the `latest_version` is the value from JitPack.io.\n\n### Usage\n\nCreate xml file in raw directory of app resources.\nExample:\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cfixtures\u003e\n    \u003cfixture tag=\"email\" group=\"account\"\u003e\n        \u003citem\u003euser1@user.com\u003c/item\u003e\n        \u003citem\u003euser2@user.com\u003c/item\u003e\n        \u003citem\u003etest@test.com\u003c/item\u003e\n    \u003c/fixture\u003e\n    \u003cfixture tag=\"password\" group=\"account\"\u003e\n        \u003citem\u003eqwerty123\u003c/item\u003e\n        \u003citem\u003eqwertyQWE\u003c/item\u003e\n        \u003citem\u003e11111111\u003c/item\u003e\n    \u003c/fixture\u003e\n    \u003cfixture tag=\"name\"\u003e\n        \u003citem\u003eJohn\u003c/item\u003e\n        \u003citem\u003eJulia\u003c/item\u003e\n        \u003citem\u003eBobby\u003c/item\u003e\n    \u003c/fixture\u003e\n    \u003cfixture tag=\"address\"\u003e\n        \u003citem\u003e108 Greenwich Street, 4/F\u003c/item\u003e\n        \u003citem\u003e156 William Street\u003c/item\u003e\n        \u003citem\u003eProskurivska Street, 11\u003c/item\u003e\n    \u003c/fixture\u003e\n\u003c/fixtures\u003e\n```\nAll `fixture` require `tag` attribute. This tag will be used for binding input fields to fixture.\nAlso you can put some fixtures in groups. For example `email` and `password` can be marked as group `account`. This two fixtures must have the same item count. And in this case where we will select one fixture from group, it will automatically put data to all bound EditTexts to the same grouped fixtures.\n\nTo initialize library you have to add this line to your Application `onCreate` method:  \n```kotlin\nclass SampleApplication : Application() {\n\n    override fun onCreate() {\n        super.onCreate()\n        StfalconFixturer.init(this, R.raw.fixtures)\n    }\n}\n```\nFirst parameter it's your Application context.\nSecond - resource ID of you fixtures XML file.\nThe default behavior is Fixturer works only for debug builds. But if you want to change this behavior you can pass Boolean flag as third parameter.\n\nAfter that you can bind your EditTexts to the fixtures in your activity(fragment) classes.\n\nKotlin:\n```kotlin\nloginEmailEt.setFixtureTag(\"email\")\n```\nJava:\n```java\nStfalconFixturer.get().bindEditText(loginEmailEt, \"email\")\n```\nWhere `loginEmailEt` is EditText and \"email\" is tag of the fixture.\n\nRun your application and look on magic :) You can call fixtures dialog by triple tap on bound to fixture EditText.\n\n![](https://i.imgur.com/zrdQYM2.gif)\n\n![](https://i.imgur.com/cl6FDA6.gif)\n\nTake a look at the [sample project](sample) for more information\n\n### License\n\n```\nCopyright 2018 stfalcon.com\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n[sample]: \u003chttps://github.com/stfalcon-studio/StfalconFixturer-android/tree/master/sample\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstfalcon-studio%2Fstfalconfixturer-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstfalcon-studio%2Fstfalconfixturer-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstfalcon-studio%2Fstfalconfixturer-android/lists"}