一、测试环境
Win 10
java version "1.8.0_181"
Appium v1.14.1(不能低于1.6.3)
selenium:3.141.0
测试设备:Android 5.1.1
Python:3.6
测试App:考研帮Android app V3.1.0
工程目录:
二、测试场景
启动APP
三、参考代码
desired_caps.py
from appium import webdriver
import yaml
import logging
import logging.config
import time
import os
from selenium.common.exceptions import NoSuchElementException
#日志格式输出定义好
CON_LOG = '../config/log.conf'
logging.config.fileConfig(CON_LOG)
logging = logging.getLogger()
# logging.basicConfig(level=logging.INFO,filename='run.log',
# format='%(asctime)s %(filename)s[line:%(lineno)d]%(levelname)s%(message)s')
def a