Skip to content

Instantly share code, notes, and snippets.

@AaronMT
Created December 12, 2024 15:36
Show Gist options
  • Select an option

  • Save AaronMT/ed7964a1cdd5138e68444e0a72fbe62b to your computer and use it in GitHub Desktop.

Select an option

Save AaronMT/ed7964a1cdd5138e68444e0a72fbe62b to your computer and use it in GitHub Desktop.
Robo Script (Pre-Crawl launch w/Nimbus)
[
{
"crawlStage": "pre_crawl",
"actions": [
{
"eventType": "ADB_SHELL_COMMAND",
"command": "am start -n org.mozilla.fenix.debug/.App -a android.intent.action.MAIN -c android.intent.category.LAUNCHER --esn nimbus-cli --ei version 1 --ez reset-db true --es experiments \"{\\\"data\\\":[{\\\"schemaVersion\\\":\\\"1.12.0\\\",\\\"slug\\\":\\\"android-menutoolbar-nightly-rollout\\\",\\\"id\\\":\\\"android-menutoolbar-nightly-rollout\\\",\\\"arguments\\\":{},\\\"application\\\":\\\"org.mozilla.fenix\\\",\\\"appName\\\":\\\"fenix\\\",\\\"appId\\\":\\\"org.mozilla.fenix\\\",\\\"channel\\\":\\\"developer\\\",\\\"userFacingName\\\":\\\"Android Menu+Toolbar Nightly Rollout\\\",\\\"userFacingDescription\\\":\\\"Enable the new menu in Firefox Android Nightly.\\\",\\\"isEnrollmentPaused\\\":false,\\\"isRollout\\\":true,\\\"bucketConfig\\\":{\\\"randomizationUnit\\\":\\\"nimbus_id\\\",\\\"namespace\\\":\\\"fenix-menu-redesign-navigation-toolbar-nightly-no_targeting-rollout-1\\\",\\\"start\\\":0,\\\"count\\\":10000,\\\"total\\\":10000},\\\"featureIds\\\":[\\\"menu-redesign\\\",\\\"navigation-toolbar\\\"],\\\"probeSets\\\":[],\\\"outcomes\\\":[{\\\"slug\\\":\\\"awesomebar\\\",\\\"priority\\\":\\\"secondary\\\"},{\\\"slug\\\":\\\"default-browser\\\",\\\"priority\\\":\\\"secondary\\\"},{\\\"slug\\\":\\\"pocket\\\",\\\"priority\\\":\\\"secondary\\\"},{\\\"slug\\\":\\\"sponsored_tiles\\\",\\\"priority\\\":\\\"secondary\\\"}],\\\"branches\\\":[{\\\"slug\\\":\\\"menu-navbar-on\\\",\\\"ratio\\\":100,\\\"feature\\\":{\\\"featureId\\\":\\\"this-is-included-for-mobile-pre-96-support\\\",\\\"enabled\\\":false,\\\"value\\\":{}},\\\"features\\\":[{\\\"featureId\\\":\\\"menu-redesign\\\",\\\"enabled\\\":true,\\\"value\\\":{\\\"enabled\\\":true}},{\\\"featureId\\\":\\\"navigation-toolbar\\\",\\\"enabled\\\":true,\\\"value\\\":{\\\"enabled\\\":true}}]}],\\\"targeting\\\":\\\"true\\\",\\\"startDate\\\":\\\"2024-11-26\\\",\\\"enrollmentEndDate\\\":null,\\\"endDate\\\":null,\\\"proposedDuration\\\":28,\\\"proposedEnrollment\\\":7,\\\"referenceBranch\\\":\\\"menu-navbar-on\\\",\\\"featureValidationOptOut\\\":false,\\\"localizations\\\":null,\\\"locales\\\":null,\\\"publishedDate\\\":\\\"2024-11-26T19:00:17.545179Z\\\",\\\"isFirefoxLabsOptIn\\\":false,\\\"firefoxLabsTitle\\\":null,\\\"firefoxLabsDescription\\\":null}]}\" --ez log-state true"
}
]
},
{
"crawlStage": "crawl",
"contextDescriptor": {
"condition": "app_under_test_shown"
},
"actions": [
{
"eventType": "VIEW_CLICKED",
"elementDescriptors": [
{
"resourceId": "android:id/button2"
}
],
"optional": true
},
{
"eventType": "ADB_SHELL_COMMAND",
"command": "am start -a android.intent.action.VIEW -d 'fenix-dev://home'"
},
{
"eventType": "VIEW_CLICKED",
"elementDescriptors": [
{
"contentDescription": "More options"
}
],
"optional": true
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment