Пример #1
0
import requests
from bs4 import BeautifulSoup
import os
import sys
import uiautomator2 as u2
import subprocess
from log import logger as loger
import threading
import re,sys
import random
from atexit import register
from Common_Public import Common as co
from Common_Public import Signal_List as SL
from Common_Public import Signal_Common as SC
action = ["check_sn_status","upgrade_udisk_package","check slience package download and install","reboot and check version","install old package"]
package = co.Install_Package()
adb_sn  = co.ADB_SN()
prepare_ui = co.Prepare_Ui()
check_message = co.Check_message()
platform_information = co.Platform_Information()
logger = loger.Current_Module()
retry_times = 5

class hu_common(object):
    def __init__(self):
        pass

    def check_sn_status(self):
        '''
        function:check device status
        :return: sn serial number
Пример #2
0
 def __init__(self, fun):
     self.serial_child = co.Serial()
     # self.serial_child.set_serialport()
     # self.ser = serial.Serial(self.serial_child.get_serialport(), self.serial_child.get_serial_baudrate())
     package = co.Install_Package()
     self.fun = fun