This file contains 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
// This is a string | |
var str = "demo"; | |
print(str); | |
var num =23; | |
print(num); | |
int num2 = 24; | |
/** |
This file contains 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
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
This file contains 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
@Test | |
fun clickButtonToSayHello() | |
{ | |
launchActivity(myActivity) | |
onView(withId(R.id.greet_button)).perform(click()) | |
onView(withText("Hello Steve!")).check(matches(isDisplayed())) | |
} |
This file contains 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
Attribute | Seattle | Dallas | |
---|---|---|---|
Cost of living | Seattle so expensive | Every thing in dallas is way cheaper | |
Industries | Hightech | Services and hightech | |
Weather | Very mild | Very hot | |
Roads | Many single lines and getting very congested | So many freaking highways and internal roads have 4 lanes! |
This file contains 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
nfo: --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"Android Emulator","deviceOrientation":"portrait","platformVersion":"5.1","platformName":"Android","app":"/Users/smalugu/code/gdm-android-investorapp/app/build/outputs/apk/investorapp-2.1.0-1-AutomationEnv-debug.apk","host":"localhost","port":4723,"name":"android investor favorite tests @p0 should be able to see and click bid details"}} | |
info: Client User-Agent string: admc/wd/0.4.0 | |
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : deviceOrientation, host, port, name | |
info: [debug] No appActivity desired capability or server param. Parsing from apk. | |
info: [debug] No appPackage desired capability or server param. Parsing from apk. | |
info: [debug] Using local app from desired caps: /Users/smalugu/code/gdm-android-investorapp/app/build/outputs/apk/investorapp-2.1.0-1-AutomationEnv-debug.apk | |
info: [debug] Creating new appium session e63c4 |
This file contains 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
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(); | |
} |
This file contains 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
@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()); |
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
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 |
NewerOlder