Skip to content

Instantly share code, notes, and snippets.

View prolificcoder's full-sized avatar

Satyajit Malugu prolificcoder

  • SoFi
  • Raleigh
View GitHub Profile
@prolificcoder
prolificcoder / gist:6816185
Created October 3, 2013 20:00
crashlytics causing adt to crash
Process: eclipse [2604]
Path: /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse
Identifier: org.eclipse.eclipse
Version: 3.8 (3.8)
Code Type: X86-64 (Native)
Parent Process: launchd [248]
User ID: 501
Date/Time: 2013-10-03 12:55:44.942 -0700
OS Version: Mac OS X 10.8.5 (12F37)
[~/code/appium]$ node bin/appium.js *[master][1.9.3-p125]
info: Welcome to Appium v0.10.4 (REV fa1f063018c5c173eddfbf8fbdb7c58d860c4db2)
info: Appium REST http interface listener started on 0.0.0.0:4723
info - socket.io started
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"browserName":"iOS","device":"iPhone Simulator","platform":"Mac","version":"7.0","app":"/Users/malugus/code/appium/sample-code/apps/TestApp/build/Release-iphonesimulator/TestApp.app","javascriptEnabled":true}}
info: Using local app from desiredCaps: /Users/malugus/code/appium/sample-code/apps/TestApp/build/Release-iphonesimulator/TestApp.app
info: Creating new appium session 02df75d2-14c7-4b80-a0f6-f27ea7ec79a8
info: Removing any remaining instruments sockets
info: Cleaned up instruments socket /tmp/instruments_sock
@prolificcoder
prolificcoder / error
Created February 29, 2016 18:57
Gulp e2e test is not passing
Satyajits-iMac:appium-ios-driver malugus$ DEVICE=ios92 gulp e2e-test
[21:50:20] Using gulpfile ~/Code/appium-ios-driver/gulpfile.js
[21:50:20] Starting 'transpile'...
[21:50:26] Finished 'transpile' after 5.99 s
[21:50:26] Starting 'e2e-test'...
capabilities
1) should contain server details
@prolificcoder
prolificcoder / appium.log
Created March 14, 2016 23:04
appium log for scroll down in android
[HTTP] --> POST /wd/hub/session
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"Android Emulator","deviceOrientation":"portrait","platformVersion":"5.1","platformName":"Android","app":"/Users/smalugu/code/gdm-an...
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] deviceName: 'Android Emulator'
[Appium] deviceOrientation: 'portrait'
[Appium] platformVersion: '5.1'
[Appium] platformName: 'Android'
[Appium] app: '/Users/smalugu/code/gdm-android-investorapp/app/build/outputs/apk/investorapp-2.1.0-1-AutomationEnv-debug.apk'
[Appium] host: 'localhost'
enterPins: function (driver) {
return driver
.elementById(screens.pinScreen.title)
.should.eventually.exist
.elementsById(screens.numpad.key1).last()
.click()
.elementsById(screens.numpad.key2).last()
.click()
.then(function() {
//In android system alert comes after our custom alert and vice-versa in iOS
@prolificcoder
prolificcoder / gist:ebd82081b47640a3cae2
Created December 10, 2014 23:36
tombstone file for crash
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'generic_x86/sdk_google_phone_x86/generic_x86:5.0.1/LSX66B/1630668:eng/test-keys'
Revision: '0'
ABI: 'x86'
pid: 1999, tid: 2396, name: Thread-175 >>> com.godaddy.mobile.android <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xa2557fcc
eax a2558520 ebx aa215598 ecx a25584b0 edx 00000000
esi a25584d0 edi 00000001
xcs 00000073 xds 0000007b xes 0000007b xfs 00000107 xss 0000007b
eip a8dd0398 ebp a2558498 esp a2557fd0 flags 00210282
https://www.youtube.com/watch?v=vSdKZqJ73a8
https://docs.google.com/presentation/d/1E-8p41-3NZSZAFgAreSTTovNm0yZoRIA7byj0lQtqq8
https://firebase.google.com/docs/test-lab/
https://github.com/googlesamples/android-testing/tree/master/ui/espresso
https://google.github.io/android-testing-support-library/docs/index.html
https://firebase-community.slack.com
https://realm.io/news/chiu-ki-chan-advanced-android-espresso-testing
https://github.com/chiuki/espresso-samples
http://www.vogella.com/tutorials/AndroidTestingEspresso/article.html
public class MyFragment extends Fragment implements AppBarLayout.OnOffsetChangedListener {
//..... other code here
//Initialize appbar
private AppBarLayout appbar;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//.,.
appbar = (AppBarLayout) mainView.findViewById(R.id.appbar);
}
// Set the content descriptions based on the offset math
@Test
public void parallaxToolbarTest() {
//Go to the screen to perform the swipe action
//Verify that image is indeed collapsed
onView(withId(R.id.appbarLayout)).check(matches(withContentDescription(expandedImageContentDescription)));
//perform is sequential so click and swipeUp = drag up gesture
onView(withId(R.id.appbarLayout)).perform(click(), swipeUp());
public static String findChildElementCDByIndex(int index) {
BySelector messagesListSelector = By.desc("ListView Recycler");
uiDevice.wait(Until.hasObject(messagesListSelector),6000);
UiObject2 messageList = uiDevice.findObject(messagesListSelector);
messageList.getChildren().get(index).getContentDescription();
}