-
searchText(String text)
-
scrollUp/Down()
-
clickOnText(String text)
-
takeScreenshot()
-
waitForText(String text)
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
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 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
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; |
solo.unlockScreen()
: Unlock the screen if it is locked.getView(int id)
: Searches for the view with the specified ID in the current activity.clickOnView()
: Click on a view.assertCurrentActivity(text, Activity.class)
: Ensure that the current activity equals the second parameter.enterText()
: Enters a text.clickInRecyclerView()
: Click on an item of a recycler view and return it.clickOnImageButton()
: Click on an image button by index.clickOnScreen()
: Click on a certain point of the screen located by given coordenates.getCurrentActivity()
: Get current activity.waitForText(text)
: Waits for a text on the screen, default timeout 5 seconds.
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
http://www.w3schools.com/js | |
http://www.w3schools.com/jquery/ | |
http://api.jquery.com/ | |
http://www.html5canvastutorials.com/ | |
--> events: | |
$('#submit').click(function); | |
$("p").dblclick(function); | |
$("#id").change(function); | |
$(canvas).mousedown(function); |
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
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); | |
} | |
} | |
} |
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 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
# 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 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
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 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
- implementation "uk.co.chrisjenx:calligraphy:2.3.0" |
OlderNewer