add all scripts except for wordpress
This commit is contained in:
parent
0e10ea8738
commit
59993a8e2e
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,50 @@
|
|||
# bug reproduction script for bug #112 of Phonograph
|
||||
# This one requires two songs in the music folder
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
import uiautomator2 as u2
|
||||
|
||||
|
||||
def wait(seconds=2):
|
||||
for i in range(0, seconds):
|
||||
print("wait 1 second ..")
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
avd_serial = sys.argv[1]
|
||||
d = u2.connect(avd_serial)
|
||||
|
||||
d.app_start("com.kabouzeid.gramophone.debug")
|
||||
wait()
|
||||
|
||||
current_app = d.app_current()
|
||||
print(current_app)
|
||||
while True:
|
||||
if current_app['package'] == "com.kabouzeid.gramophone.debug":
|
||||
break
|
||||
#d.app_start("org.odk.collect.android")
|
||||
time.sleep(2)
|
||||
wait()
|
||||
|
||||
out = d(text="GET STARTED").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="SHUFFLE ALL").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
while True:
|
||||
d.service("uiautomator").stop()
|
||||
time.sleep(2)
|
||||
out = d.service("uiautomator").running()
|
||||
if not out:
|
||||
print("DISCONNECT UIAUTOMATOR2 SUCCESS")
|
||||
break
|
||||
time.sleep(2)
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
# bug reproduction script for bug #114 of Scarlet-Notes
|
||||
# This one requires two songs in the music folder
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
import uiautomator2 as u2
|
||||
|
||||
|
||||
def wait(seconds=2):
|
||||
for i in range(0, seconds):
|
||||
print("wait 1 second ..")
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
avd_serial = sys.argv[1]
|
||||
d = u2.connect(avd_serial)
|
||||
|
||||
d.app_start("com.kabouzeid.gramophone.debug")
|
||||
wait()
|
||||
|
||||
current_app = d.app_current()
|
||||
print(current_app)
|
||||
while True:
|
||||
if current_app['package'] == "com.kabouzeid.gramophone.debug":
|
||||
break
|
||||
#d.app_start("org.odk.collect.android")
|
||||
time.sleep(2)
|
||||
wait()
|
||||
|
||||
out = d(text="GET STARTED").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="SHUFFLE ALL").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
while True:
|
||||
d.service("uiautomator").stop()
|
||||
time.sleep(2)
|
||||
out = d.service("uiautomator").running()
|
||||
if not out:
|
||||
print("DISCONNECT UIAUTOMATOR2 SUCCESS")
|
||||
break
|
||||
time.sleep(2)
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
# bug reproduction script for bug #745 of Omni-Notes
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
import uiautomator2 as u2
|
||||
|
||||
|
||||
def wait(seconds=2):
|
||||
for i in range(0, seconds):
|
||||
print("wait 1 second ..")
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
avd_serial = sys.argv[1]
|
||||
d = u2.connect(avd_serial)
|
||||
|
||||
d.app_start("it.feio.android.omninotes")
|
||||
wait()
|
||||
|
||||
current_app = d.app_current()
|
||||
print(current_app)
|
||||
while True:
|
||||
if current_app['package'] == "it.feio.android.omninotes":
|
||||
break
|
||||
#d.app_start("org.odk.collect.android")
|
||||
time.sleep(2)
|
||||
wait()
|
||||
|
||||
out = d(resourceId="it.feio.android.omninotes:id/fab_expand_menu_button").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="it.feio.android.omninotes:id/fab_note").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="Content").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="it.feio.android.omninotes:id/menu_attachment").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="Camera").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="com.android.camera2:id/shutter_button").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="com.android.camera2:id/done_button").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(description="Navigate up").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="it.feio.android.omninotes:id/root").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="it.feio.android.omninotes:id/gridview_item_picture").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
while True:
|
||||
d.service("uiautomator").stop()
|
||||
time.sleep(2)
|
||||
out = d.service("uiautomator").running()
|
||||
if not out:
|
||||
print("DISCONNECT UIAUTOMATOR2 SUCCESS")
|
||||
break
|
||||
time.sleep(2)
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
# bug reproduction script for bug #2198 of attendee
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
import uiautomator2 as u2
|
||||
|
||||
|
||||
def wait(seconds=2):
|
||||
for i in range(0, seconds):
|
||||
print("wait 1 second ..")
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
avd_serial = sys.argv[1]
|
||||
d = u2.connect(avd_serial)
|
||||
|
||||
d.app_start("com.eventyay.attendee")
|
||||
wait()
|
||||
|
||||
current_app = d.app_current()
|
||||
print(current_app)
|
||||
while True:
|
||||
if current_app['package'] == "com.eventyay.attendee":
|
||||
break
|
||||
#d.app_start("org.odk.collect.android")
|
||||
time.sleep(2)
|
||||
wait()
|
||||
|
||||
out = d(text="Skip").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="Skip for now").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="com.eventyay.attendee:id/searchFragment").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="Anything").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
while True:
|
||||
d.service("uiautomator").stop()
|
||||
time.sleep(2)
|
||||
out = d.service("uiautomator").running()
|
||||
if not out:
|
||||
print("DISCONNECT UIAUTOMATOR2 SUCCESS")
|
||||
break
|
||||
time.sleep(2)
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
# bug reproduction script for bug #67 of openlauncher
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
import uiautomator2 as u2
|
||||
|
||||
|
||||
def wait(seconds=2):
|
||||
for i in range(0, seconds):
|
||||
print("wait 1 second ..")
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
avd_serial = sys.argv[1]
|
||||
d = u2.connect(avd_serial)
|
||||
|
||||
d.app_start("com.benny.openlauncher")
|
||||
wait()
|
||||
|
||||
current_app = d.app_current()
|
||||
print(current_app)
|
||||
while True:
|
||||
if current_app['package'] == "com.benny.openlauncher":
|
||||
break
|
||||
#d.app_start("org.odk.collect.android")
|
||||
time.sleep(2)
|
||||
wait()
|
||||
|
||||
out = d(text="SKIP").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
d.swipe(0.0, 0.5, 0.5, 0.5)
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="com.benny.openlauncher:id/minBar").child(index="6").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
while True:
|
||||
d.service("uiautomator").stop()
|
||||
time.sleep(2)
|
||||
out = d.service("uiautomator").running()
|
||||
if not out:
|
||||
print("DISCONNECT UIAUTOMATOR2 SUCCESS")
|
||||
break
|
||||
time.sleep(2)
|
||||
|
|
@ -0,0 +1,140 @@
|
|||
# bug reproduction script for bug #637 of osmeditor
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
import uiautomator2 as u2
|
||||
|
||||
|
||||
def wait(seconds=2):
|
||||
for i in range(0, seconds):
|
||||
print("wait 1 second ..")
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
avd_serial = sys.argv[1]
|
||||
d = u2.connect(avd_serial)
|
||||
|
||||
d.app_start("de.blau.android")
|
||||
wait()
|
||||
|
||||
current_app = d.app_current()
|
||||
print(current_app)
|
||||
while True:
|
||||
if current_app['package'] == "de.blau.android":
|
||||
break
|
||||
#d.app_start("org.odk.collect.android")
|
||||
time.sleep(2)
|
||||
wait()
|
||||
|
||||
out = d(text="OKAY").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="de.blau.android:id/location_current").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="LOAD").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait(10)
|
||||
|
||||
out = d(resourceId="de.blau.android:id/menu_config").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
for x in range(2):
|
||||
out = d(resourceId="de.blau.android:id/list").swipe("up", steps=10)
|
||||
if out:
|
||||
print("SUCCESS")
|
||||
wait(1)
|
||||
|
||||
out = d(text="Validator preferences").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
for x in range(6):
|
||||
out = d(resourceId="de.blau.android:id/listViewResurvey").child(index="0").child(index="0").child(text="amenity").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="DELETE").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="name").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="DELETE").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="opening_hours").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="DELETE").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="wheelchair").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="DELETE").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="de.blau.android:id/listViewResurvey").child(index="0").child(index="0").child(
|
||||
text="shop").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="de.blau.android:id/resurvey_value").set_text("*")
|
||||
if out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="de.blau.android:id/display").set_text("0")
|
||||
if out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="SAVE").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="DONE").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
d.press("back")
|
||||
print("SUCCESS")
|
||||
|
||||
while True:
|
||||
d.service("uiautomator").stop()
|
||||
time.sleep(2)
|
||||
out = d.service("uiautomator").running()
|
||||
if not out:
|
||||
print("DISCONNECT UIAUTOMATOR2 SUCCESS")
|
||||
break
|
||||
time.sleep(2)
|
||||
|
|
@ -0,0 +1,124 @@
|
|||
# bug reproduction script for bug #114 of Scarlet-Notes
|
||||
# This one requires two songs in the music folder
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
import uiautomator2 as u2
|
||||
|
||||
|
||||
def wait(seconds=2):
|
||||
for i in range(0, seconds):
|
||||
print("wait 1 second ..")
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
avd_serial = sys.argv[1]
|
||||
d = u2.connect(avd_serial)
|
||||
|
||||
d.app_start("com.bijoysingh.quicknote")
|
||||
wait()
|
||||
|
||||
current_app = d.app_current()
|
||||
print(current_app)
|
||||
while True:
|
||||
if current_app['package'] == "com.bijoysingh.quicknote":
|
||||
break
|
||||
#d.app_start("org.odk.collect.android")
|
||||
time.sleep(2)
|
||||
wait()
|
||||
|
||||
out = d(resourceId="com.bijoysingh.quicknote:id/lithoBottomToolbar").child(index="0").child(index="1").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="Add Notebook").set_text("myBook")
|
||||
if out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
d.press("enter")
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="myBook").click()
|
||||
if out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
|
||||
out = d(resourceId="com.bijoysingh.quicknote:id/lithoBottomToolbar", index="2").child(index="0").child(index="3").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="Add Heading…").set_text("Note1")
|
||||
if out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
d.press("back")
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
d.press("back")
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="com.bijoysingh.quicknote:id/lithoBottomToolbar", index="2").child(index="0").child(index="3").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="Add Heading…").set_text("Note2")
|
||||
if out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
d.press("back")
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
d.press("back")
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="Note1").long_click()
|
||||
if out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
d.press("back")
|
||||
wait()
|
||||
|
||||
out = d(text="Lock Note").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="com.bijoysingh.quicknote:id/lithoBottomToolbar", index="2").child(index="0").child(index="0").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(text="Locked").click()
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
out = d(resourceId="com.bijoysingh.quicknote:id/lithoPreBottomToolbar", index="1").click(offset=(0.05, 0.5))
|
||||
if not out:
|
||||
print("SUCCESS")
|
||||
wait()
|
||||
|
||||
while True:
|
||||
d.service("uiautomator").stop()
|
||||
time.sleep(2)
|
||||
out = d.service("uiautomator").running()
|
||||
if not out:
|
||||
print("DISCONNECT UIAUTOMATOR2 SUCCESS")
|
||||
break
|
||||
time.sleep(2)
|
||||
Loading…
Reference in New Issue