MTT PRocess

T with error 1
[fpxshyy@bogon rc]$ sudo yum install xfig
[sudo] password for fpxshyy:
已加载插件:axelget, fastestmirror, langpacks
repomd.xml | 951 B 00:00:00
update adobe-linux-x86_64 metadata successfully
repomd.xml | 3.6 kB 00:00:00
base/group | 729 kB 00:00:01
base/primary | 2.5 MB 00:00:02
base/primary_db | 5.3 MB 00:00:11
update base metadata successfully
epel/x86_64/metalink | 5.6 kB 00:00:00
repomd.xml | 4.3 kB 00:00:00
epel/group | 1.3 MB 00:00:05
epel/updateinfo | 523 kB 00:00:00
epel/primary | 2.7 MB 00:00:05
epel/primary_db | 4.0 MB 00:00:05
update epel metadata successfully
repomd.xml | 3.4 kB 00:00:00
update extras metadata successfully
repomd.xml | 3.4 kB 00:00:00
updates/prestodelta | 365 kB 00:00:01
updates/primary | 2.0 MB 00:00:02
updates/primary_db | 3.9 MB 00:00:03
update updates metadata successfully
adobe-linux-x86_64 | 951 B 00:00:00
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/3): base/7/x86_64/group_gz | 155 kB 00:00:00
(2/3): epel/x86_64/group_gz | 169 kB 00:00:01
(3/3): extras/7/x86_64/primary_db | 117 kB 00:00:02
adobe-linux-x86_64/primary | 1.2 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* epel: mirrors.opencas.cn
* extras: mirrors.yun-idc.com
* updates: mirrors.yun-idc.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 xfig.x86_64.0.3.2.5-44.c.el7 将被 安装
--> 正在处理依赖关系 xfig-common = 3.2.5-44.c.el7,它被软件包 xfig-3.2.5-44.c.el7.x86_64 需要
--> 正在检查事务
---> 软件包 xfig-common.x86_64.0.3.2.5-44.c.el7 将被 安装
--> 正在处理依赖关系 transfig >= 1:3.2.5,它被软件包 xfig-common-3.2.5-44.c.el7.x86_64 需要
--> 正在检查事务
---> 软件包 transfig.x86_64.1.3.2.5d-13.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

============================================================================================================================================
Package 架构 版本 源 大小
============================================================================================================================================
正在安装:
xfig x86_64 3.2.5-44.c.el7 epel 532 k
为依赖而安装:
transfig x86_64 1:3.2.5d-13.el7 base 285 k
xfig-common x86_64 3.2.5-44.c.el7 epel 4.8 M

事务概要
============================================================================================================================================
安装 1 软件包 (+2 依赖软件包)

总下载量:5.6 M
安装大小:15 M
Is this ok [y/d/N]: y
Downloading packages:
xfig-3.2.5-44.c.el7.x86_64.rpm | 532 kB 00:00:02
xfig-common-3.2.5-44.c.el7.x86_64.rpm | 4.8 MB 00:00:07
transfig-3.2.5d-13.el7.x86_64.rpm | 285 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : 1:transfig-3.2.5d-13.el7.x86_64 1/3
正在安装 : xfig-3.2.5-44.c.el7.x86_64 2/3
正在安装 : xfig-common-3.2.5-44.c.el7.x86_64 3/3
验证中 : 1:transfig-3.2.5d-13.el7.x86_64 1/3
验证中 : xfig-3.2.5-44.c.el7.x86_64 2/3
验证中 : xfig-common-3.2.5-44.c.el7.x86_64 3/3

已安装:
xfig.x86_64 0:3.2.5-44.c.el7

作为依赖被安装:
transfig.x86_64 1:3.2.5d-13.el7 xfig-common.x86_64 0:3.2.5-44.c.el7

完毕!
我执行下列语句,部分注释是因为不用执行,语句如下: class Super_Prework_001: name = ‘QQ浏览器验证页面刷新功能-Super_Prework_001’ def setup(self): package = "com.tencent.mtt" activity = "com.tencent.mtt.MainActivity" self.super = SuperappUtils(package, activity) self.driver = self.super.driver # command3 = " uninstall io.appium.settings" # ADBHelper().adb(command3) # self.driver.activate_app("com.android.settings") # x, y = ADBHelper().get_phone_size() # self.driver.swipe(x * 0.5, y * 0.91, x * 0.5, y * 0.46) # self.driver.find_element(AppiumBy.ANDROID_UIAUTOMATOR, &#39;new UiSelector().textContains("Apps")&#39;).click() time.sleep(3) # self.driver.find_element(AppiumBy.ANDROID_UIAUTOMATOR, &#39;new UiSelector().textContains("Launch manager")&#39;).click() # self.driver.find_element(AppiumBy.ANDROID_UIAUTOMATOR, &#39;new UiSelector().text("Search")&#39;).click() # self.driver.find_element(AppiumBy.ANDROID_UIAUTOMATOR, &#39;new UiSelector().text("Search")&#39;).send_keys(&#39;ui&#39;) text_selectors = [ "io.appium.uiautomator2.server", "io.appium.uiautomator2.server.test" ] for selector in text_selectors: # 获取当前文本元素的坐标 x1, y1 = self.super.get_location((AppiumBy.ANDROID_UIAUTOMATOR, f&#39;new UiSelector().text("{selector}")&#39;)) # 执行点击操作 self.driver.tap([(x1 + 650, y1 + 50)]) # 检查Auto-launch状态 if self.driver.find_elements(AppiumBy.ANDROID_UIAUTOMATOR, &#39;new UiSelector().text("Auto-launch")&#39;): time.sleep(3) else: self.driver.tap([(x1 + 650, y1 + 50)]) try: element = self.driver.find_element(By.ID, "com.huawei.systemmanager:id/switcher") if element.get_attribute("checked") == "false": x2, y2 = self.super.get_location((By.ID, &#39;com.huawei.systemmanager:id/switcher&#39;)) offset = 220 for click_count in range(3): current_y = y2 + (click_count * offset) self.driver.tap([(x2, current_y)]) time.sleep(1) else: print(f"元素状态正常无需开启") except Exception as e: print(f"处理过程中出错: {str(e)}") finally: self.driver.find_element(AppiumBy.ANDROID_UIAUTOMATOR, &#39;new UiSelector().text("OK")&#39;).click() def teststeps(self): STEP(1, &#39;前期准备工作&#39;) # def teardown(self): # try: # class_name = self.__class__.__name__ # self.super.capture_screenshot(class_name) # finally: # self.super.go_back(5) # self.super.gohome() # if hasattr(self, &#39;driver&#39;): # self.driver.quit() 请问为什么报错: >>> cases\Supperapp\Auper_Prework_001.py * QQ浏览器验证页面刷新功能-Super_Prework_001 command: adb -s 4TBBB25326100106 shell "getprop ro.product.model" command: adb -s 4TBBB25326100106 shell "getprop ro.build.version.release" 元素状态正常无需开启 Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\hytest\utils\runner.py", line 589, in _exec_cases signal.case_result(case) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\hytest\utils\signal.py", line 16, in _broadcast method(*arg,**kargs) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\hytest\utils\log.py", line 130, in case_result self.result[&#39;module_result&#39;][module_name][&#39;pass&#39;] += 1 KeyError: &#39;Super&#39; During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\hytest\run.py", line 144, in <module> exit(run()) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\hytest\run.py", line 125, in run result = Runner.run() File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\hytest\utils\runner.py", line 414, in run cls.execTest() File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\hytest\utils\runner.py", line 497, in execTest cls._exec_cases(meta) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\hytest\utils\runner.py", line 599, in _exec_cases signal.case_result(case) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\hytest\utils\signal.py", line 16, in _broadcast method(*arg,**kargs) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\hytest\utils\log.py", line 138, in case_result self.result[&#39;module_result&#39;][module_name][&#39;fail&#39;] += 1 KeyError: &#39;Super&#39; Warning: python -m hytest.run --suite Auper_Prework_001 failed Process finished with exit code 0
最新发布
09-27
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值