1 Star 0 Fork 2

ruida/airtest-smoke

forked from hardy/airtest-smoke 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
air_settings.py 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
hardy.huang 提交于 2023-07-26 17:49 . update
# -*- coding: utf-8 -*-
# @Author: Hardy
# @Time: 2023/2/13 15:22
# @File: air_settings.py
# @Software: PyCharm
import os
import time
class AirSettings(object):
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
AIR_BASE = os.path.join(BASE_DIR, 'air_test')
# 手游配置
AIR_ANDROID = os.path.join(AIR_BASE, 'android')
LOG_DIR = os.path.join(AIR_ANDROID, 'logs')
SRC_DIR = os.path.join(AIR_ANDROID, 'src')
CASE_DATA = os.path.join(SRC_DIR, 'case_data')
CASE = os.path.join(AIR_ANDROID, 'cases')
ANDROID_RESULT = os.path.join(AIR_ANDROID, 'result')
ADB_PORT = 5555
PACKAGE = 'com.demo'
ACTIVITY = 'com.demo.GameStartActivity'
OCR = 'http://10.86.1.38/api/v1/ocr'
STOP_GAME = 'http://api-xxx.com/v1/servo/stop'
@classmethod
def ocr_body(cls, base, thresh):
bd = {
"image": base,
"thresh": thresh
}
return bd
@classmethod
def time_now(cls):
return time.strftime('%Y%m%d%H%M%S')
@classmethod
def stop_game_body(cls, user, gid, biz):
bd = {
"app_userid": user,
"gid": gid,
"app_biz_type": int(biz)
}
return bd
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/heruida/airtest-smoke.git
git@gitee.com:heruida/airtest-smoke.git
heruida
airtest-smoke
airtest-smoke
master

搜索帮助