原创 deviceconfig.yaml
- desc: test1 port: 4730 desired_caps: platformName: Android deviceName: 192.168.207.101:5555 appPacka
原创 ubuntu下安裝mysql和一些命令
1。檢查是否安裝mysql (base) joey@JoeySun:~$ dpkg -l|grep mysql 2。安裝mysql (base) joey@JoeySun:~$ sudo apt install mysql-server
原创 Anconda conda常用命令
1.創建環境 conda create -n envname python=3.6 2.激活環境 activate envname 3.安裝需要的package pip install numpy 或conda install numpy
原创 getDesiredCaps
from appium import webdriver import time import yaml from config.appiumServer import AppiumServer import os class Get
原创 multitest
#coding=utf-8 from appium import webdriver import subprocess from config.getDesiredCaps import GetDesiredCaps from con
原创 appiumServer
import socket import subprocess class AppiumServer(): # host = "127.0.0.1" # port = 4723 def checkPort(se
原创 獲取手機配置
轉載:http://www.mamicode.com/info-detail-2353176.html yaml管理配置 1.運行不同手機時候,desired_caps的參數配置肯定也是需要多個的,如何高效的管理多個desired_c
原创 Python 啓動多個 Appium server 進程後自動關閉
由於需要做多設備併發運行自動化用例,因此首先需要使用腳本啓動多個Appium server,代碼實現如下: import socket import subprocess class AppiumServer(): def
原创 test
#coding=utf-8 from appium import webdriver import subprocess desired_caps = {} desired_caps['platformName'] = 'Android
原创 uncaughtException: Cannot find module 'internal/util/types'
C:\Users\tianzhaodong>appium -a 127.0.0.1 -p 4723 error: uncaughtException: Cannot find module 'internal/util/types' da
原创 [Appium]測試自動化之獲取apk信息
一 新下載app 1. 獲取apk包名 1.下載apk到本地(比如D:\test\xxx.apk) 2.打開cmd,輸入指令aapt dump badging D:\test\xxx.apk(APK的全名,如手機淘寶.ap
原创 安裝Scrapy後 運行命令提示ModuleNotFoundError: No module named 'win32api'
scrapy bench2018-06-13 18:30:55 [scrapy.utils.log] INFO: Scrapy 1.5.0 started (bot: Test)2018-06-13 18:30:55 [scrapy.ut
原创 精通Python網絡爬蟲第四章 Urllib庫與URLError異常處理
rrrrrrrrr'r'r'r'r'r'r
原创 Python Error pytesseract: PermissionError: [WinError 5] Access is denied
from PIL import Image import pytesseract pytesseract.pytesseract.tesseract_cmd = "C:\\Program Files (x86)\\Tesseract-O