コード例 #1
0
 def __init__(self):
     self.info = Information()
     self.game_name = self.info.get_config("App_Name", "game_name")
     if self.game_name == "com.youzu.test.qa":
         pass
     else:
         pass
コード例 #2
0
 def __init__(self):
     self.info = Information()
     self.my_andriod_poco = MyPocoObject()
     self.eg = EntryGame()
     self.phone_name = self.info.get_phone_name()
     self.use_name = self.info.get_config("Account_Number", "YzTest2")
     self.game_name = self.info.get_config("App_Name", "game_name")
     # 获取设备型号
     self.high = self.info.get_config("Phone_Model", "high")
     self.medium = self.info.get_config("Phone_Model", "medium")
     self.low = self.info.get_config("Phone_Model", "low")
     self.test = self.info.get_config("Phone_Model", "test")
     self.high_touch_x = self.info.get_config("Coordinate", "high_start_x")
     self.high_touch_y = self.info.get_config("Coordinate", "high_start_y")
     self.medium_touch_x = self.info.get_config("Coordinate", "medium_start_x")
     self.medium_touch_y = self.info.get_config("Coordinate", "medium_start_y")
     self.low_touch_x = self.info.get_config("Coordinate", "low_start_x")
     self.low_touch_y = self.info.get_config("Coordinate", "low_start_y")
     self.test_touch_x = self.info.get_config("Coordinate", "test_start_x")
     self.test_touch_y = self.info.get_config("Coordinate", "test_start_y")
     self.high_end_x = self.info.get_config("Coordinate", "high_end_x")
     self.high_end_y = self.info.get_config("Coordinate", "high_end_y")
     self.medium_end_x = self.info.get_config("Coordinate", "medium_end_x")
     self.medium_end_y = self.info.get_config("Coordinate", "medium_end_y")
     self.low_end_x = self.info.get_config("Coordinate", "low_end_x")
     self.low_end_y = self.info.get_config("Coordinate", "low_end_y")
     self.test_end_x = self.info.get_config("Coordinate", "test_end_x")
     self.test_end_y = self.info.get_config("Coordinate", "test_end_y")
     self.game_name = self.info.get_config("App_Name", "game_name")
コード例 #3
0
 def __init__(self):
     """
     在if、elif结构中初始化对象
     """
     self.info = Information()
     self.my_poco = MyPocoObject()
     self.game_name = self.info.get_config("App_Name", "game_name")
     if self.game_name == "com.youzu.test.qa":
         self.rgss2 = ResourceGmSs2()
     else:
         pass
コード例 #4
0
 def __init__(self):
     """
     初始化点击类、信息类、性能类
     """
     self.my_poco = MyPocoObject()
     self.info = Information()
     self.xn = YzTest2Performance()
     self.eg = EntryGame()
     self.fg = Fight()
     self.rg = ResourceGm()
     self.na = NewAccount()
     self.sp = Protocol()
     self.mrc = MyRunCase()
コード例 #5
0
    def __init__(self):

        self.info = Information()
        self.uw = UnexpectedWin()
        self.poco = None
コード例 #6
0
    def __init__(self):

        self.info = Information()
        self.game_name = self.info.get_config("App_Name", "game_name")
        self.sever_poco = self.info.get_config("Sever_poco", self.game_name)
コード例 #7
0
 def __init__(self):
     self.info = Information()
コード例 #8
0
 def __init__(self):
     self.info = Information()
     self.my_poco = MyPocoObject()
     self.uw = UnexpectedWinSs2()
コード例 #9
0
 def __init__(self):
     self.info = Information()
     self.my_poco = MyPocoObject()
コード例 #10
0
 def __init__(self):
     self.info = Information()
     self.game_name = self.info.get_config("App_Name", "game_name")
コード例 #11
0
 def __init__(self):
     self.info = Information()
     self.rg = ResourceGm()
     self.my_poco = MyPocoObject()
     self.game_name = self.info.get_config("App_Name", "game_name")
コード例 #12
0
 def __init__(self):
     self.info = Information()
     self.my_poco = MyPocoObject()
     self.game_name = self.info.get_config("App_Name", "game_name")
     self.poco = StdPoco()
     self.my_poco.set_poco(self.poco)