Ejemplo n.º 1
0
 def setUp(self):
     print 'xml_file_path#'+ROOTPATH
     print 'TestModelName#', modelname
     logPath = modelname+'/test_textview29'
     device=rMonkeyRunner(logPath)
     device.clearAppData("com.dragon.android.pandaspacze")
     device.startActivity("com.dragon.android.pandaspazce/com.dragon.android.pandaspace.main.MainActivity")  
     device.sleep(2.0)
Ejemplo n.º 2
0
 def test_TextView44(self):
     print 'xml_file_path#'+ROOTPATH
     print 'TestModelName#', filename
     logPath = modelname+'/test_TextView44'
     device=rMonkeyRunner(logPath)
     device.clearAppData("com.dragon.android.pandaspace")
     device.startActivity("com.dragon.android.pandaspace/com.dragon.android.pandaspace.main.MainActivity")
     device.sleep(2.0)
     device.click(UIELEMENT.TEXT, "第一层5", 0)
     device.sleep(2.0)
Ejemplo n.º 3
0
 def setUp(self):
     print 'xml_file_path#' + ROOTPATH
     print 'TestModelName#', modelname
     logPath = modelname + '/test_textview29'
     device = rMonkeyRunner(logPath)
     device.clearAppData("com.dragon.android.pandaspacze")
     device.startActivity(
         "com.dragon.android.pandaspazce/com.dragon.android.pandaspace.main.MainActivity"
     )
     device.sleep(2.0)
Ejemplo n.º 4
0
 def test_TextView44(self):
     print 'xml_file_path#' + ROOTPATH
     print 'TestModelName#', filename
     logPath = modelname + '/test_TextView44'
     device = rMonkeyRunner(logPath)
     device.clearAppData("com.dragon.android.pandaspace")
     device.startActivity(
         "com.dragon.android.pandaspace/com.dragon.android.pandaspace.main.MainActivity"
     )
     device.sleep(2.0)
     device.click(UIELEMENT.TEXT, "第一层5", 0)
     device.sleep(2.0)
Ejemplo n.º 5
0
# -*- coding: utf-8 -*-

import os,sys
sys.path.append(r'E:\realMonkey')
from automatormonkey.monkeyrunnercore.MonkeyRunner import rMonkeyRunner
from automatormonkey.monkeyrunnercore.info.Enum import *
#
device=rMonkeyRunner(__file__)

FLAG.SCREENSHOT=True
device.startActivity('com.nd.android.u.oap.nd/com.nd.android.u.cloud.activity.SplashActivity')
device.sleep(5.0)
device.click(UIELEMENT.TEXT,'设置')
device.click(UIELEMENT.TEXT,'个人主页')
Ejemplo n.º 6
0
import math
import thread
import time
import hashlib
import ssl
from Queue import Queue
import threading
from threading import Thread
from automatormonkey.monkeyrunnercore.MonkeyRunner import rMonkeyRunner
from automatormonkey.monkeyrunnercore.info.Enum import *

reload(sys)
sys.setdefaultencoding('utf8')
type = sys.getfilesystemencoding()
deviceName = '1'
device = rMonkeyRunner(__file__, deviceName)
FLAG.SCREENSHOT = False

DBName = 'db_news1'
DB_HOST = '101.200.74.101'
DB_USER = '******'
DB_PWD = 'Com.5hito91.com'
DB_PORT = 3306
path = 'D://Sessions.txt'
startPath = 'D://start.txt'
start = 0
if os.path.exists(path):
    os.remove(path)
if os.path.exists(startPath):
    f = open(startPath, 'r')
    start = int(f.read())
Ejemplo n.º 7
0
# -*- coding: utf-8 -*-
import os, sys
sys.path.append(r'E:\CI_realMonkey')
from automatormonkey.monkeyrunnercore.MonkeyRunner import rMonkeyRunner
from automatormonkey.monkeyrunnercore.info.Enum import *
device = rMonkeyRunner(__file__)
FLAG.SCREENSHOT = False
device.screenIsLock()
device.press('KEYCODE_HOME')
device.click(UIELEMENT.CLASSNAME, 'android.widget.TextView', 11)
device.click(UIELEMENT.TEXT, '91助手', 0)
Ejemplo n.º 8
0
# -*- coding: utf-8 -*-

import os, sys

sys.path.append(r"E:\realMonkey")  # this is your realMonkey path on pc
from automatormonkey.monkeyrunnercore.MonkeyRunner import rMonkeyRunner
from automatormonkey.monkeyrunnercore.info.Enum import *

#
deviceName = ["1"]  # choice your devices
device = rMonkeyRunner(__file__, deviceName)

device.press("KEYCODE_HOME")
device.sleep(4.0)
device.click(UIELEMENT.TEXT, "电话")