- 博客(35)
- 资源 (26)
- 收藏
- 关注
原创 swift-控制语句测试题答案
第一次作答(2014.7.30)/*1*/for n in 1...5 { println(n)}for n in ["gog","name","sex"]{ println(n)}for (index,value) in [1:"sdf",2:"sdd"]{ println(index)}for chars in "n
2014-07-30 22:37:59 1499
原创 swift-集合测试题答案
第一次作答(2014.7.28)/*1*/var dict:Dictionary = [1:"name",2:"age",3:"sex"]var dict1 = [1:"class",2:"company",3:"address"]/*2*/dict.count/*3*/dict[4] = "salary"dict.updateValue("hobby", forKe
2014-07-29 00:13:01 2057
原创 swift-数组测试题答案
/*数组的三种定义方式*/var floatList:Array = [1.0,2.0,3.0]var floatList1 = [1.2,3.2,3.4]var floatList2:Float[] = [1.2,3.4,3.4]/*添加单个元素或者合并两个数组*/floatListfloatList+=1.2floatList+=floatList2/*取单个、多
2014-07-27 23:03:39 1874
原创 appium之java API(2)
TouchActionAppiumDriver的辅助类,主要针对手势操作,比如滑动、长按、拖动等。TouchAction的原理是讲一系列的动作放在一个链条中,然后将该链条传递给服务器。服务器接受到该链条后,解析各个动作,逐个执行。press(WebElement el)在控件上执行press操作。press(int x, int y)在坐
2014-07-22 19:49:55 2959
原创 Appium之java API
AppiumDrivergetAppStrings()默认系统语言对应的Strings.xml文件内的数据。driver.getAppStrings(String language)查找某一个语言环境对应的字符串文件Strings.xml内数据sendKeyEvent(int key)按下某个键,具体哪个键由key值决定,ke
2014-07-22 18:55:35 6394
原创 Selenium之偷懒教程
进来一直停留在基础理论知识的学习中,觉得太乏味,就写了一个网页自动化的demo:自动写日报。省的以后自己打开网页写啦。直接上代码:自动填写日报DEMOimport java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFound
2014-07-22 15:04:20 2415
原创 bootstrap之UpdateStrings
UpdateStringspackage io.appium.android.bootstrap.handler;import io.appium.android.bootstrap.AndroidCommand;import io.appium.android.bootstrap.AndroidCommandResult;import io.appium.android.bo
2014-07-20 11:10:50 1804
原创 bootstrap之DumpWindowHierarchy
DumpWindowHierarchypackage io.appium.android.bootstrap.handler;import android.os.Environment;import com.android.uiautomator.core.UiDevice;import io.appium.android.bootstrap.AndroidCommand;i
2014-07-19 17:38:50 4849 1
原创 bootstrap之PressKeyCode&&LongPressKeyCode
PressKeyCodepackage io.appium.android.bootstrap.handler;import com.android.uiautomator.core.UiDevice;import io.appium.android.bootstrap.AndroidCommand;import io.appium.android.bootstrap.Andr
2014-07-19 17:22:43 2966 1
原创 bootstrap之Wake&&PressBack&&TakeScreenshot&&OpenNotification
Wakepackage io.appium.android.bootstrap.handler;import android.os.RemoteException;import com.android.uiautomator.core.UiDevice;import io.appium.android.bootstrap.AndroidCommand;import io.ap
2014-07-19 17:07:17 2024
原创 bootstrap之ScrollTo
ScrollTopackage io.appium.android.bootstrap.handler;import com.android.uiautomator.core.UiObject;import com.android.uiautomator.core.UiObjectNotFoundException;import com.android.uiautomato
2014-07-19 16:56:52 3416
原创 bootstrap之GetName&&GetAttribute&&GetDeviceSize&&GetSize&&GetLocation&&GetDataDir
GetNamepackage io.appium.android.bootstrap.handler;import com.android.uiautomator.core.UiObjectNotFoundException;import io.appium.android.bootstrap.*;import org.json.JSONException;/** * T
2014-07-19 16:28:29 2333
原创 bootstrap之鼠标操作
TouchLongClickpackage io.appium.android.bootstrap.handler;import android.os.SystemClock;import com.android.uiautomator.common.ReflectionUtils;import com.android.uiautomator.core.UiObjectNotFound
2014-07-19 15:43:15 4687
原创 bootstrap之Drag
Dragpackage io.appium.android.bootstrap.handler;import com.android.uiautomator.core.UiDevice;import com.android.uiautomator.core.UiObjectNotFoundException;import io.appium.android.bootstrap.
2014-07-18 17:22:44 3556
原创 bootstrap之Flick
Flickpackage io.appium.android.bootstrap.handler;import com.android.uiautomator.core.UiDevice;import io.appium.android.bootstrap.*;import io.appium.android.bootstrap.exceptions.InvalidCoordi
2014-07-18 16:39:14 2209
原创 bootstrap之Swipe
Swipe我定义为滑动,但它字面的意思又不是,事件的形式类似于小时候拿着一块石头片,朝水面飞过去,如果你手法可以那么就是swipe走的路线,如果你手法不行,接触水面的时候就没再飞起来那就会被人嘲笑的。package io.appium.android.bootstrap.handler;import com.android.uiautomator.core.UiDevi
2014-07-18 15:21:45 3486
原创 bootstrap之Orientation
Orientation调整屏幕方向的操作。package io.appium.android.bootstrap.handler;import android.os.RemoteException;import com.android.uiautomator.core.UiDevice;import io.appium.android.bootstrap.*;
2014-07-18 14:48:16 2967
原创 bootstrap之WaitForIdle&&Clear
(上篇文章写完才发现,说好的按顺序但是回头一看完全不是按顺序的)明明WaitForIdle才是第一个。哎,老了,后脑勺不行了。WaitForIdlepackage io.appium.android.bootstrap.handler;import com.android.uiautomator.core.UiDevice;import io.appium.andro
2014-07-18 10:53:28 2977
原创 bootstrap之Click事件
上一篇文章中讲了bootstrap的工作流程,这篇文章来研究一下bootstrap可以接受哪些指令(从源码的角度来看,由于appium的项目现在还处在持续更新中,所以有的指令已经实现,某些或许未来会实现,从源码来看的好处是你知道以后或许未来appium能做到哪些功能)。在bootstrap项目中的io.appium.android.bootstrap.handler包中的类都是对应的相
2014-07-18 10:13:47 11316 1
原创 mac上安装node
命令行模式下直接执行ruby -e "$(curl -fsSkL https://raw.github.com/Homebrew/homebrew/go/install)"
2014-07-13 22:34:40 1279
翻译 Swift语言官方文档翻译(4)-Basic Operators
Basic Operators操作符是一种检查、操作、组合值的特殊的符号或短语。比如将两个值相加(let i = 1 + 2)的加号(+)。更复杂的比如逻辑与(&&)、自增(++i:表示给i加上一个1后返回)。Swift支持大多数标准C的操作符,而且为了消除错误增加了一些功能。赋值操作符(=)
2014-07-04 11:24:08 1572
原创 Error starting command: monkey --port 12345 卡死的问题
Error starting command: monkey --port 12345 com.android.ddmlib.ShellCommandUnresponsiveException
2014-07-04 09:53:44 5364
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人