1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +08:00

Reverts test code in commit ea68f68d

This commit is contained in:
LmeSzinc
2024-06-28 03:19:37 +08:00
parent 58bfbe011d
commit 12bd302deb
23 changed files with 67 additions and 329 deletions

View File

@@ -173,8 +173,8 @@ class Benchmark(DaemonBase, CampaignUI):
def get_test_methods(self) -> t.Tuple[t.Tuple[str], t.Tuple[str]]:
device = self.config.Benchmark_DeviceType
# device == 'emulator'
screenshot = ['DroidCast_raw']
click = ['ADB', 'uiautomator2', 'minitouch', 'MaaTouch']
screenshot = ['ADB', 'ADB_nc', 'uiautomator2', 'aScreenCap', 'aScreenCap_nc', 'DroidCast', 'DroidCast_raw']
click = ['ADB', 'uiautomator2', 'minitouch']
def remove(*args):
return [l for l in screenshot if l not in args]
@@ -205,8 +205,8 @@ class Benchmark(DaemonBase, CampaignUI):
def run(self):
self.config.override(Emulator_ScreenshotMethod='ADB')
self.device.uninstall_minicap()
# self.ui_goto_campaign()
# self.campaign_set_chapter('7-2')
self.ui_goto_campaign()
self.campaign_set_chapter('7-2')
logger.attr('DeviceType', self.config.Benchmark_DeviceType)
logger.attr('TestScene', self.config.Benchmark_TestScene)

View File

@@ -7,7 +7,6 @@ from module.map.map_operation import FLEET_PREPARATION, MAP_PREPARATION
class AzurLaneDaemon(DaemonBase, CampaignBase):
def run(self):
self.config.override(Emotion_Mode='ignore')
while 1:
self.device.screenshot()
@@ -62,8 +61,6 @@ class AzurLaneDaemon(DaemonBase, CampaignBase):
# End
# No end condition, stop it manually.
if self.handle_popup_confirm():
continue
return True