原创 Monkey

Monkey包括許多選項,它們大致分爲四大類:? 基本配置選項,如設置嘗試的事件數量。? 運行約束選項,如設置只對單獨的一個包進行測試。? 事件類型和頻率。? 調試選項。 在Monkey運行的時候,它生成事件,並把它們發給系統。同時,Mon

原创 appium

1.Launch cmd-appium2.Connect mobile phone or simulator3.假設我們的代碼放在目錄E:\PythonTest\AppiumClientPython 中。首先把 Appium-Python-

原创 Python

交互模式 >>100+200300 命令行 cal.py print('100+200')c:\>python cal.py300 Linux hello.py#!/usr/bin/env python3print('hello, w

原创 Git入門

一.安裝https://git-scm.com/downloads安裝完成後,在開始菜單裏找到“Git”->“Git Bash”,蹦出一個類似命令行窗口的東西,就說明Git安裝成功 二.設置:$ git config --global us

原创 shell

?通配一個字符ls *txt1.txt 2.txt ls [12].txt 通配任意一個1.txt 2.txt 重定向 > filename 清空>追加<反向重定向cat <1.txt ==cat 1.txt mail -s "

原创 adb

adb shell 獲取手機所有進程:顯示android模擬器上所有在執行的進程: db shell ps -xadb shell 獲取手機設備信息:1、設備基本信息:cat /system/build.prop | grep "produ

原创 Monkey

Monkey包括許多選項,它們大致分爲四大類:? 基本配置選項,如設置嘗試的事件數量。? 運行約束選項,如設置只對單獨的一個包進行測試。? 事件類型和頻率。? 調試選項。 在Monkey運行的時候,它生成事件,並把它們發給系統。同時,Mon

原创 adb

adb shell 獲取手機所有進程:顯示android模擬器上所有在執行的進程: db shell ps -xadb shell 獲取手機設備信息:1、設備基本信息:cat /system/build.prop | grep "produ

原创 appium operation

Appium定位元素的方法有很多,比如經常用的by_name、by_resource-id、by_classname 下面介紹下通過UI Automator方法來定位元素的方法,而且這些方法定位都比較準。 先假設我們通過UiAutomato

原创 Appium installation

Installation:1.JDK1)download JDK and install2)set variables:http://jingyan.baidu.com/article/d45ad148ba5ab169552b80d3.ht

原创 appium

1.Launch cmd-appium2.Connect mobile phone or simulator3.假設我們的代碼放在目錄E:\PythonTest\AppiumClientPython 中。首先把 Appium-Python-

原创 shell

?通配一個字符ls *txt1.txt 2.txt ls [12].txt 通配任意一個1.txt 2.txt 重定向 > filename 清空>追加<反向重定向cat <1.txt ==cat 1.txt mail -s "

原创 Robot Framework+Selenium2Library自動化測試安裝與使用指南

一.安裝Python2.7(因RIDE不支持python 3.x)1.https://www.python.org/download/releases/2.7.8/2.安裝 (e.g. D:\Python27)環境變量:計算機-屬性-高級系

原创 Python

交互模式 >>100+200300 命令行 cal.py print('100+200')c:\>python cal.py300 Linux hello.py#!/usr/bin/env python3print('hello, w

原创 Git入門

一.安裝https://git-scm.com/downloads安裝完成後,在開始菜單裏找到“Git”->“Git Bash”,蹦出一個類似命令行窗口的東西,就說明Git安裝成功 二.設置:$ git config --global us