-
searchText(String text)
-
scrollUp/Down()
-
clickOnText(String text)
-
takeScreenshot()
-
waitForText(String text)
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
package com.davidmiguel.taxsystem; | |
import junit.framework.Test; | |
import junit.framework.TestSuite; | |
public class AllTests { | |
public static Test suite() { | |
TestSuite suite = new TestSuite(AllTests.class.getName()); | |
suite.addTest(TestSuite.createTest(ExampleTest.class, "testXXX")); | |
// Add here more test cases... |
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
package com.davidmiguel.taxsystem; | |
import android.support.v7.widget.RecyclerView; | |
import android.test.ActivityInstrumentationTestCase2; | |
import android.widget.EditText; | |
import android.widget.TextView; | |
import com.davidmiguel.taxsystem.activities.AddEmployee; | |
import com.davidmiguel.taxsystem.activities.EmployeesList; | |
import com.robotium.solo.Solo; |
I hereby claim:
- I am davidmigloz on github.
- I am davidmigloz (https://keybase.io/davidmigloz) on keybase.
- I have a public key ASCQIqmO1aqtnSwVM3bPP5b1xOkAyXkcCTtIFlrmSG5x9wo
To claim this, I am signing this object:
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://apple.stackexchange.com/a/313670/248730 | |
sqlite3 ~/Library/Safari/History.db 'select datetime(visit_time+978307200, "unixepoch", "localtime"),title from history_visits ORDER BY visit_time desc LIMIT 30;' |
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 VmTest { | |
public static void main(String[] args) { | |
RuntimeMXBean runtimeMxBean = ManagementFactory.getRuntimeMXBean(); | |
List<String> arguments = runtimeMxBean.getInputArguments(); | |
for (String arg : arguments) { | |
System.out.println("Arg: " + arg); | |
} | |
} | |
} |
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
E/AndroidRuntime: FATAL EXCEPTION: main | |
Process: com.example, PID: 23914 | |
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.MainActivity}: android.view.InflateException: Binary XML file line #17 in com.example:layout/abc_screen_simple: Binary XML file line #17 in com.example:layout/abc_screen_simple: Error inflating class androidx.appcompat.widget.FitWindowsLinearLayout | |
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270) | |
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409) | |
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) | |
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) | |
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) | |
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) | |
at android.os.Handler.dispatchMessage(Hand |
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
- implementation "uk.co.chrisjenx:calligraphy:2.3.0" |
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 uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper | |
// ... | |
override fun attachBaseContext(newBase: Context) { | |
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase)) | |
} |
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 uk.co.chrisjenx.calligraphy.CalligraphyConfig; | |
// ... | |
private fun initCustomFonts() { | |
CalligraphyConfig.initDefault(CalligraphyConfig.Builder() | |
.setDefaultFontPath("fonts/Roboto-RobotoRegular.ttf") | |
.setFontAttrId(R.attr.fontPath) | |
.build() | |
) |
OlderNewer