From 9809d4479ff8ee81e5d31d7edfb00edf53c8d706 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Thu, 10 Apr 2014 19:48:24 -0400 Subject: [PATCH] Update cn docs --- docs/cn/README.md | 21 ++++++++++----------- docs/cn/{hybird.cn.md => hybrid.cn.md} | 0 docs/cn/mobile_methods.cn.md | 2 +- docs/cn/running-on-linux.cn.md | 4 ++-- docs/cn/running-on-osx.cn.md | 4 ++-- docs/cn/running-on-windows.cn.md | 4 ++-- docs/cn/running-tests.cn.md | 2 +- docs/cn/touch-actions.cn.md | 2 +- docs/cn/troubleshooting.cn.md | 2 +- 9 files changed, 20 insertions(+), 21 deletions(-) rename docs/cn/{hybird.cn.md => hybrid.cn.md} (100%) diff --git a/docs/cn/README.md b/docs/cn/README.md index 5415002a1..16f229dd5 100644 --- a/docs/cn/README.md +++ b/docs/cn/README.md @@ -45,15 +45,15 @@ Appium最终开启了跨平台原生移动自动化的可能. * Mac OS X 10.7 or higher, 10.8.4 recommended * XCode >= 4.6.3 * Apple Developer Tools (iPhone simulator SDK, command line tools) -* [Ensure you read our documentation on setting yourself up for iOS testing!](https://github.com/appium/appium/blob/master/docs/cn/running-on-osx.cn.md#ios) +* [Ensure you read our documentation on setting yourself up for iOS testing!](running-on-osx.cn#ios) ### android依赖 * [Android SDK](http://developer.android.com) API >= 17 (Additional features require 18) * Appium支持OS X上的Android, Linux和Windows上的beta支持.确保你通过如下的指示来配置你需要运行测试的不同系统的环境 - * [linux](https://github.com/appium/appium/blob/master/docs/cn/running-on-linux.cn.md) - * [osx](https://github.com/appium/appium/blob/master/docs/cn/running-on-osx.cn.md#android) - * [windows](https://github.com/appium/appium/blob/master/docs/cn/running-on-windows.cn.md) + * [linux](running-on-linux.cn) + * [osx](running-on-osx.cn#android) + * [windows](running-on-windows.cn) ### FirefoxOS Requirements @@ -76,16 +76,15 @@ Appium最终开启了跨平台原生移动自动化的可能. ## 为Appium编写测试 我们支持 [Selenium WebDriver JSON Wire Protocol](https://github.com/appium/appium/wiki/JSON-Wire-Protocol:-Supported-Methods) 的一个子集 -首先还需要指定特定移动平台相关的 [desired capabilities](https://github.com/appium/appium/blob/master/docs/cn/caps.cn.md) 来通过appium运行你的测试 +首先还需要指定特定移动平台相关的 [desired capabilities](caps.cn) 来通过appium运行你的测试 你可以通过 [WebDriver](https://code.google.com/p/selenium/wiki/JsonWireProtocol) 的元素定位策略的一个子集来定位元素 -更多信息请参考 [finding elements](https://github.com/appium/appium/blob/master/docs/cn/finding-elements.cn.md) +更多信息请参考 [finding elements](finding-elements.cn) -我们也对 JSON Wire Protocol for [automating mobile gestures](https://github.com/appium/appium/blob/master/docs/cn/gestures.cn.md) 做了一些扩展以支持像 tap, flick, 和 swipe 这样的动作(松开,按压,滑动等手机手势) +我们也对 JSON Wire Protocol for [automating mobile gestures](gestures.cn) 做了一些扩展以支持像 tap, flick, 和 swipe 这样的动作(松开,按压,滑动等手机手势) -你也可以在混合模式下自动化你的用HTML5构建的Web页面 [hybrid app -guide](https://github.com/appium/appium/blob/master/docs/cn/hybrid.cn.md) +你也可以在混合模式下自动化你的用HTML5构建的Web页面 [hybrid app guide](hybrid.cn) 这个代码地址包含了 [很多不同语言的测试例子](https://github.com/appium/appium/tree/master/sample-code/examples/node)! @@ -110,7 +109,7 @@ FirefoxOS的支持依赖一个基于Gecko平台并且兼容WebDriver的自动化 ## 其他项目的授权和灵感来源 -[Credits](https://github.com/appium/appium/blob/master/docs/cn/credits.cn.md) +[Credits](credits.cn) ## 邮件列表 @@ -118,7 +117,7 @@ FirefoxOS的支持依赖一个基于Gecko平台并且兼容WebDriver的自动化 ## 问题定位 -我们增加了一个 [问题定位指南](https://github.com/appium/appium/blob/master/docs/cn/troubleshooting.cn.md). +我们增加了一个 [问题定位指南](troubleshooting.cn). 如果你遇到一些问题,请看下这个问的那个.它包含了一些常见的错误说明,以及在无法解决的情况如何和社区联系 diff --git a/docs/cn/hybird.cn.md b/docs/cn/hybrid.cn.md similarity index 100% rename from docs/cn/hybird.cn.md rename to docs/cn/hybrid.cn.md diff --git a/docs/cn/mobile_methods.cn.md b/docs/cn/mobile_methods.cn.md index c306d152c..2390a05bc 100644 --- a/docs/cn/mobile_methods.cn.md +++ b/docs/cn/mobile_methods.cn.md @@ -54,7 +54,7 @@ Java Java -[MobileFindJavaTest.java](./../sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/MobileFindJavaTest.java) +[MobileFindJavaTest.java](https://github.com/appium/appium/blob/master/sample-code/examples/java/junit/src/test/java/com/saucelabs/appium/MobileFindJavaTest.java) Ruby + [appium_lib gem](https://github.com/appium/ruby_lib) diff --git a/docs/cn/running-on-linux.cn.md b/docs/cn/running-on-linux.cn.md index 33ecc6baf..05e8b1ce1 100644 --- a/docs/cn/running-on-linux.cn.md +++ b/docs/cn/running-on-linux.cn.md @@ -28,11 +28,11 @@ title: 在 Linux 上运行 Appium node . -你可以在 [server documentation](https://github.com/appium/appium/blob/master/docs/cn/server-args.cn.md) 找到所有的命令行参数。 +你可以在 [server documentation](server-args.cn) 找到所有的命令行参数。 # 备注 * There exists a hardware accelerated emulator for android, it has it's own limitations. For more information you can check out this - Android 有一些硬件加速的模拟器,这些模拟器有自己的限制。你可以在 [page](https://github.com/appium/appium/blob/master/docs/cn/android-hax-emulator.cn.md) 找到更多的信息。 + Android 有一些硬件加速的模拟器,这些模拟器有自己的限制。你可以在 [page](android-hax-emulator.cn) 找到更多的信息。 * 确保你使用的 AVD 里面的 `config.ini` 有这条指令 `hw.battery=yes`。 diff --git a/docs/cn/running-on-osx.cn.md b/docs/cn/running-on-osx.cn.md index 141bc7490..1179f45e9 100644 --- a/docs/cn/running-on-osx.cn.md +++ b/docs/cn/running-on-osx.cn.md @@ -33,7 +33,7 @@ Appium 使用苹果提供的 `instruments` 来启动 iOS 模拟器,默认它 * 确保你已经安装了 [Android SDK installed](http://developer.android.com/sdk/index.html)。 * 确保你安装的 Android SDK API 大于等于 17。你可以运行 Android SDK 管理器(`android`) 然后在额外的包里选择你要安装的 API。 -* 确保你安装了 `ant`。 我们用 Ant 来构建 Appium 的 bootstrap jar 和 测试程序。Mac OS X Mavericks (小牛)已经不预装 `ant` 了, 你可以去[官网]((http://ant.apache.org/bindownload.cgi))下载。你可以用 `homebrew` 安装。 +* 确保你安装了 `ant`。 我们用 Ant 来构建 Appium 的 bootstrap jar 和 测试程序。Mac OS X Mavericks (小牛)已经不预装 `ant` 了, 你可以去[官网](http://ant.apache.org/bindownload.cgi)下载。你可以用 `homebrew` 安装。 * 确保你配置好了`$ANDROID_HOME`,并指向你的 Android SDK 目录。比如你的把 Android SDK 解压到 `/usr/local/adt/`, 那你就要将如下添加到你的 `.bashrc` 或 `.zshrc` 或 `.bash_profile` 等 shell 配置文件中去: export ANDROID_HOME="/usr/local/adt/sdk" @@ -42,4 +42,4 @@ Appium 使用苹果提供的 `instruments` 来启动 iOS 模拟器,默认它 我们需要 Maven 来支持 Selendroid, 借助 Selendroid, Appium 可以在低于 4.2 的 Android 版本里运行。 * 确保你的 AVD 已经配置好了最新的 Android 版本 (一个可以运行的 UIAutomator)(至少 4.1 )。你可以使用 Android SDK tool 来创建 AVD。 别忘记给 AVD 起个好记的名字,下次你可以用它来启动模拟器并在模拟器上运行测试。 * 确保你使用的 AVD 里面的 `config.ini` 有这条指令 `hw.battery=yes`。 -* Android 有一些硬件加速的模拟器,这些模拟器有自己的限制。你可以在 [page](https://github.com/appium/appium/blob/master/docs/cn/android-hax-emulator.cn.md) 找到更多的信息。 +* Android 有一些硬件加速的模拟器,这些模拟器有自己的限制。你可以在 [page](android-hax-emulator.cn) 找到更多的信息。 diff --git a/docs/cn/running-on-windows.cn.md b/docs/cn/running-on-windows.cn.md index 0145f4476..e0edb3534 100644 --- a/docs/cn/running-on-windows.cn.md +++ b/docs/cn/running-on-windows.cn.md @@ -14,7 +14,7 @@ title: 在windows上运行appium # 开始安装 -1. 安装nodejs(http://nodejs.org/download/)(0.8版本及以上), 通过官方的安装程序来安装。 +1. 安装[nodejs](http://nodejs.org/download/) 0.8版本及以上, 通过官方的安装程序来安装。 2. 安装android的sdk包,(http://developer.android.com/sdk/index.html), 运行依赖sdk中的'android'工具。并确保你安装了Level17或以上的版本api。设置`ANDROID_HOME`系统变量为你的Android SDK路径,并把tools platform-tools两个目录加入到系统的Path路径里。因为这里面包含有一些执行命令 @@ -41,7 +41,7 @@ title: 在windows上运行appium # 备注 * 你必须带上--no-reset和--full-reset标记,以用于windows上的android -* 有一个硬件加速模拟器用于android,但是它有自己的一些限制,如果你想了解更多,请参考[页面](https://github.com/appium/appium/blob/master/docs/cn/android-hax-emulator.cn.md) +* 有一个硬件加速模拟器用于android,但是它有自己的一些限制,如果你想了解更多,请参考[页面](android-hax-emulator.cn) * 确保在你的AVD的`config.ini`中有一个配置项为`hw.battery=yes` diff --git a/docs/cn/running-tests.cn.md b/docs/cn/running-tests.cn.md index 16346b6ea..601066f72 100644 --- a/docs/cn/running-tests.cn.md +++ b/docs/cn/running-tests.cn.md @@ -88,7 +88,7 @@ title: 執行測試 用Appium測試你的app (Android 設備 < 4.2, 以及混合app測試) ----- -低於4.2版本的Android設備 (API Level 17) 沒有安裝Google 的[用戶界面自動化框架/UiAutomator framework](developer.android.com/tools/help/uiautomator/index.html).下面的範例是早期Appium在這些設備上的測試方法。對於早期的設備以及使用混合模式(webview-based)製作的apps, Appium 包含了另一種自動化測試後端[Selendroid](http://selendroid.io/). +低於4.2版本的Android設備 (API Level 17) 沒有安裝Google 的[用戶界面自動化框架/UiAutomator framework](http://developer.android.com/tools/help/uiautomator/index.html).下面的範例是早期Appium在這些設備上的測試方法。對於早期的設備以及使用混合模式(webview-based)製作的apps, Appium 包含了另一種自動化測試後端[Selendroid](http://selendroid.io/). 要使用Selendroid, 只需要在之前提到的環境參數上稍作修改即可,把'Android' 換成 'Selendroid': diff --git a/docs/cn/touch-actions.cn.md b/docs/cn/touch-actions.cn.md index 288e88b2c..94832192f 100644 --- a/docs/cn/touch-actions.cn.md +++ b/docs/cn/touch-actions.cn.md @@ -41,4 +41,4 @@ wd.execute_script("mobile: longClick",{ "touchCount": 1, "x": 0, "y": 300, "elem * long press (长按) * single tap (单击) -其他手势通过 "Alternative access method" 支持,参见 [自动化手机手势](gestures.cn.md) +其他手势通过 "Alternative access method" 支持,参见 [自动化手机手势](gestures.cn) diff --git a/docs/cn/troubleshooting.cn.md b/docs/cn/troubleshooting.cn.md index 4c3efb826..d349fe06e 100644 --- a/docs/cn/troubleshooting.cn.md +++ b/docs/cn/troubleshooting.cn.md @@ -10,7 +10,7 @@ Appium 故障调试 ## 一般问题 -* 确保你是根据 [README](https://github.com/appium/appium/blob/master/docs/cn/README.md) 里面的入门指南按部就班的。 +* 确保你是根据 [README](README) 里面的入门指南按部就班的。 * 确保你的系统配置好了(比如, xCode 是最新的,Android SDK 安装好了, `ANDROID_HOME` 配置好了,参照 [setup instructions](https://github.com/appium/appium/blob/master/docs/running-on-osx.md) ). * 确保你应用的路径正确。