Android Testing - Getting Started with Espresso 2.0
Vložit
- čas přidán 21. 08. 2024
- In this video we cover how to set up your Android Studio environment to use Espresso 2.0. We talk about matchers, assertions and how to use them. We also demonstrate a simple TDD (Test Driven Development Method) implementation for the first test. At the end of this screencast you should be able to set up your Android Application with the Espresso Testing framework.
For more videos see www.caster.io or this CZcams channel: / @donnfelkeryt
You just saved my tomorrow.
I am waiting for more advanced examples :)
Great stuff! I'm just starting with Espresso and this is exactly what I needed!
+Martin Stefan Can continue test possible in android espresso?
Also in case of error can we implement error collector?
This is great ***** tons of useful information here.
I will like to remote control with TeamViewer an Android TV box. The problem that I have is there is a popup on the Android TV that ask to push a button to allow the remote control. Does Espresso can look for the popup window and click on the Allow button for me ?
Thank you! Nicely explained :)
Hey, nice video, but there is a problem that I'm facing with setting up the androidTest directory. Android studio doesn't recognize it as a test directory, and upon running a sample test, it reports 'no tests were found.' I also have a 'test' directory with unit test cases in it, but i did change the build artifact to Android Instrumentation Tests. The test directory is being detected properly.
Thank you very much, good lesson
Great tutorial
Great tutorial thanks
Thanks, very useful.
where can i download the app for testing?
Thank you.
@donnfelker How to simulate the clicking of the application icon on the home screen? I do not want to run Activity Rule because I have more than one launchable Activity. I have 3 icons, actually. One for each Activity.
Can continue test possible in android espresso?
Also in case of error can we implement error collector?
Please help me for the same.
thank you
Hi, i am new to android app testing. I have ready developed app (no source code) just APK. Can i use Espresso to test UI? If not any other tool?
Thanks for the video. It was very helpfull. :)
Is there some source code somewhere? The app that is being tested is not being showed up
No. This video is very old and I’m not sure the code would even compile with the modern tooling anymore.
why did you stop uploading more videos?
could you show me code in class MainActivity and NavigationDrawerFragment?
Hi Donn, is it possible to run Espresso tests without app development source code? I have a release apk file which i want to test with Espresso test. Is it possible to write it? if yes, can you give some pointers or github link please?
Check this link out: stackoverflow.com/a/18064368
Can you please explain from where you copied the androidTestCompile and pasted it in dependencies..
google.github.io/android-testing-support-library/docs/espresso/setup/index.html
@@Jackty89 404 error: File not found
very useful so I hava just subscribed chanel :)
+Thanh Tran Hey Thanh just wondering where did you get ActivityRule.java? I cant find it on Jake's account
how to do that on a fragment?
Please show Twitter login WebView Espresso example? Thanks
Can you give us the link for activity rule, i found the link is not valid anymore
+Haonan Zhao add androidTestCompile 'com.android.support.test:rules:0.4' to your depdencies; afterwards you can use the ActivityTestRule imported from the JUnit Rules
+Haonan Zhao gist.github.com/JakeWharton/1c2f2cadab2ddd97f9fb
Yay! for Jake Wharton. His code is now part of the repository. "This test rule is now in the 'test-rules' support repository. Use that one!" Sad for us because this excellent tutorial is missing its key feature.
I found a clone of the ActivityRule.java file, but I cannot get it to work. "Cannot resolve symbol InstrumentationRegistry"
I still don't understand the real life purpose of testing. :(
So you don't release something with bugs lol
VaNkWiShA something with less bugs.
I work in a company that every new release, we need to run the same test. This allows me to do it automatic, which is faster and more consistent.
I work as Software Tester, and believe, there is meaning why to make testing manual or automatic
Manual testing is usually for finding new bugs. Automation testing is for testing previous and new requirements automatically so we don't test non stop. Usually a dev doesn't have time to test extensively his code. That's what a tester is for.
For a small application (i.e. school homework), you don't need a tester. But when you deal with thousand of files, this can be time consuming and it is best to catch bugs before the customers experience them.
cheet sheet in prezi:-prezi.com/piqd29upzrii