This file contains hidden or 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
# Enable on-screen indicators of taps, swipes and scroll actions. | |
./platform-tools/adb shell settings put system show_touches 1 | |
./platform-tools/adb shell settings put system pointer_location 1 | |
# (*OPTIONAL for Detox users*) Restart adb in root mode (i.e. allow root access to the emulator). | |
# Detox may need this in order to be able to install apps on the emulator in a way more | |
# stable than using "adb install path/to/app.apk". | |
# If you wish to use Detox and avoid that nevertheless, apply the "--force-adb-install" argument | |
# to your "detox test" commands. | |
# See https://github.com/wix/Detox/blob/master/docs/APIRef.DetoxCLI.md#test for more info. |
This file contains hidden or 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
# Download test butler | |
curl -f -o ~/test-butler-2.2.1.apk https://repo1.maven.org/maven2/com/linkedin/testbutler/test-butler-app/2.2.1/test-butler-app-2.2.1.apk | |
# Install test butler | |
./platform-tools/adb install ~/test-butler-2.2.1.apk | |
# Launch the test butler background service!!! | |
./platform-tools/adb shell am startservice com.linkedin.android.testbutler/com.linkedin.android.testbutler.ButlerService | |
# Check that the service is indeed running... Expected output is: |
This file contains hidden or 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
@RunWith(AndroidJUnit4.class) | |
@LargeTest | |
public class DetoxTest { | |
@Rule | |
public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class, false, false); | |
@Test | |
public void runDetoxTests() { | |
// This is optional - in case you've decided to integrate TestButler | |
// See https://github.com/wix/Detox/blob/master/docs/Introduction.Android.md#8-test-butler-support-optional |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import os | |
import sys | |
import signal | |
import datetime | |
def log(text): | |
now=datetime.datetime.now().strftime("%H:%M:%S.%f") | |
print("@"+now+" <"+ANDROID_SERIAL+"> " + text) |
OlderNewer