04 2020 档案

摘要:1.自动化测时候,连接多台设备,需要单独启动一个appium server,也就意味着要多开cmd窗口;但是测试结束后,cmd窗口不会自动关闭; 2.当然可以通过“start /b”在后台运行;这种方法一个设备还可以;但是多个设备就会出问题; 3.清理appium的cmd窗口解决办法:运行前为app 阅读全文
posted @ 2020-04-28 16:05 breakcircle 阅读(414) 评论(0) 推荐(0)
摘要:import threading import os import sys class TestThread(threading.Thread): def __init__(self, func, args=()): super(TestThread, self).__init__() self.f 阅读全文
posted @ 2020-04-23 10:35 breakcircle 阅读(4507) 评论(0) 推荐(0)
摘要:结论:函数中使用mutiprocessing.Precess必须放在if __name__ == "__main__":下执行;如需要在函数中使用,建议使用threading; import multiprocessing as mp def job(a,d): print('aaaaa') if 阅读全文
posted @ 2020-04-23 10:23 breakcircle 阅读(532) 评论(0) 推荐(0)
摘要:1.安装 pip install django-celery pip install flower 2.部署RabbitMQ: 1.下载下载并安装erlang原因:RabbitMQ服务端代码是使用并发式语言Erlang编写的,安装Rabbit MQ的前提是安装Erlang。 1.下载地址:http: 阅读全文
posted @ 2020-04-23 10:13 breakcircle 阅读(743) 评论(2) 推荐(0)
摘要:1.报错”from kombu.async.timer import Entry, Timer as Schedule, to_timestamp, logger”, 这是因为在 python 3.7 中将 async 作为了关键字,所以当 py 文件中出现类似 from . import asyn 阅读全文
posted @ 2020-04-17 17:35 breakcircle 阅读(2064) 评论(4) 推荐(1)
摘要:d from django.shortcuts import render from django.http import request, response, HttpRequest, HttpResponse, JsonResponse from django.views.decorators. 阅读全文
posted @ 2020-04-17 09:47 breakcircle 阅读(442) 评论(0) 推荐(0)
摘要:Appium多进程操作安卓设备报错,可能出现只能正常某几个设备; 这是因为Appium中的systemPort端口被占用导致的;systemPort默认是8200~8299; 解决方法:在配置中添加systemPort参数,保证一个设备一个端口; desired_caps: app: F:\***. 阅读全文
posted @ 2020-04-15 09:08 breakcircle 阅读(574) 评论(0) 推荐(0)
摘要:start appium -p 5723 -bp 5724 -U shenju2019swmtest0001 -g F:\1.log --session-override -a 127.0.0.1 --command-timeout 600 -p 监听端口 -bp 设备和appium端口 -U -- 阅读全文
posted @ 2020-04-14 10:49 breakcircle 阅读(621) 评论(0) 推荐(0)
摘要:def send_cmd(cmd, encoding='utf-8'): ''' cmd发送命令 :param cmd:命令 :param encoding: 编码方式,默认utf-8,出现乱码用gbk :return: ''' res = subprocess.Popen(cmd, shell=T 阅读全文
posted @ 2020-04-10 15:07 breakcircle 阅读(1000) 评论(0) 推荐(0)