Docs Help

Terms, Icons, and Labels

Many classes have shortcut names used when creating (instantiating) a class with a configuration object. The shortcut name is referred to as an alias (or xtype if the class extends Ext.Component). The alias/xtype is listed next to the class name of applicable classes for quick reference.

Access Levels

Framework classes or their members may be specified as private or protected. Else, the class / member is public. Public, protected, and private are access descriptors used to convey how and when the class or class member should be used.

Member Types

Member Syntax

Below is an example class member that we can disect to show the syntax of a class member (the lookupComponent method as viewed from the Ext.button.Button class in this case).

lookupComponent ( item ) : Ext.Component
protected

Called when a raw config object is added to this container either during initialization of the items config, or when new items are added), or {@link #insert inserted.

This method converts the passed object into an instanced child component.

This may be overridden in subclasses when special processing needs to be applied to child creation.

Parameters

item :  Object

The config object being added.

Returns
Ext.Component

The component to be added.

Let's look at each part of the member row:

Member Flags

The API documentation uses a number of flags to further commnicate the class member's function and intent. The label may be represented by a text label, an abbreviation, or an icon.

Class Icons

- Indicates a framework class

- A singleton framework class. *See the singleton flag for more information

- A component-type framework class (any class within the Ext JS framework that extends Ext.Component)

- Indicates that the class, member, or guide is new in the currently viewed version

Member Icons

- Indicates a class member of type config

- Indicates a class member of type property

- Indicates a class member of type method

- Indicates a class member of type event

- Indicates a class member of type theme variable

- Indicates a class member of type theme mixin

- Indicates that the class, member, or guide is new in the currently viewed version

Class Member Quick-Nav Menu

Just below the class name on an API doc page is a row of buttons corresponding to the types of members owned by the current class. Each button shows a count of members by type (this count is updated as filters are applied). Clicking the button will navigate you to that member section. Hovering over the member-type button will reveal a popup menu of all members of that type for quick navigation.

Getter and Setter Methods

Getting and setter methods that correlate to a class config option will show up in the methods section as well as in the configs section of both the API doc and the member-type menus just beneath the config they work with. The getter and setter method documentation will be found in the config row for easy reference.

History Bar

Your page history is kept in localstorage and displayed (using the available real estate) just below the top title bar. By default, the only search results shown are the pages matching the product / version you're currently viewing. You can expand what is displayed by clicking on the button on the right-hand side of the history bar and choosing the "All" radio option. This will show all recent pages in the history bar for all products / versions.

Within the history config menu you will also see a listing of your recent page visits. The results are filtered by the "Current Product / Version" and "All" radio options. Clicking on the button will clear the history bar as well as the history kept in local storage.

If "All" is selected in the history config menu the checkbox option for "Show product details in the history bar" will be enabled. When checked, the product/version for each historic page will show alongside the page name in the history bar. Hovering the cursor over the page names in the history bar will also show the product/version as a tooltip.

Search and Filters

Both API docs and guides can be searched for using the search field at the top of the page.

On API doc pages there is also a filter input field that filters the member rows using the filter string. In addition to filtering by string you can filter the class members by access level and inheritance. This is done using the checkboxes at the top of the page. Note that filtering out private members also filters the API class navigation tree.

Clicking on an empty search field will show your last 10 searches for quick navigation.

API Doc Class Metadata

Each API doc page (with the exception of Javascript primitives pages) has a menu view of metadata relating to that class. This metadata view will have one or more of the following:

Expanding and Collapsing Examples and Class Members

Runnable examples (Fiddles) are expanded on a page by default. You can collapse and expand example code blocks individually using the arrow on the top-left of the code block. You can also toggle the collapse state of all examples using the toggle button on the top-right of the page. The toggle-all state will be remembered between page loads.

Class members are collapsed on a page by default. You can expand and collapse members using the arrow icon on the left of the member row or globally using the expand / collapse all toggle button top-right.

Desktop -vs- Mobile View

Viewing the docs on narrower screens or browsers will result in a view optimized for a smaller form factor. The primary differences between the desktop and "mobile" view are:

Viewing the Class Source

The class source can be viewed by clicking on the class name at the top of an API doc page. The source for class members can be viewed by clicking on the "view source" link on the right-hand side of the member row.

Sencha Test 1.0.3

Guides
API
top

安装和配置

Sencha Test 包含2个应用程序: Sencha Studio (GUI界面工具) 和 stc (命令行界面工具). 本文介绍安装流程,为开始测试做好准备! 可以阅读 Sencha Test 概述 获得更多产品信息.

开始之前, 我们先看一下支持的浏览器, 平台, 和 Sencha 框架. 然后再介绍安装流程.

支持的平台

操作系统

  • Windows (Win 7+)
  • Mac OS X
  • Linux 32-bit / 64-bit

浏览器

  • 桌面端: Internet Explorer 8-11, Edge, Chrome, Firefox, Safari, Opera
  • 移动端 (平板 和 手机): Chrome, Safari, Internet Explorer, Firefox

Sencha 框架

  • Ext JS 4.2+
  • Sencha Touch 2.1+

Sencha 工具

Sencha Test 支持和 Sencha Cmd 6.0.2 或更高版本 (推荐 6.1.0) 一起使用,不过这是可选的. Sencha Cmd 的集成可以被禁用,即使你正在使用 Sencha Cmd.

其它 JavaScript 库 和 框架

你可以把 Sencha Test 用于任何基于javascript的应用程序或web页面, 然而, Sencha Test 包括自己版本的 Jasmine 和 Istanbul, 可能会与包含了其它版本的页面有冲突。此外,Sencha Test 使用"ST"全局对象作为其命名空间。

Installation

先从 这里 下载 zip 压缩包.

解压

  1. 解压压缩文件.
  2. stc.zip 是Sencha Test 命令行工具的 zip 压缩包.
  3. Sencha Studio 的安装文件也有了.

安装 Sencha Studio

  1. 打开安装程序.
  2. 点击 "Next" 开始安装.
  3. 接受许可协议并继续(选择“I accept the agreement”, 点击"Next").
  4. 选择安装路径 (如果要更换默认安装路径的话),然后点击 "Next".
  5. (Windows) 检查复选框 “Create a Start Menu folder” 和 “Create shortcuts for all users” (可选),然后点击 "Next".
  6. 安装完毕. 点击 "Finish" 关闭安装界面.
  7. 启动 Sencha Studio.

安装 STC

  1. 如果要执行 stc 命令, 你需要装有 Node.js 4.2.1 或更高版本.
  2. Node.js 必须添加到 PATH 环境变量中.
  3. stc.zip 拷贝出来.
  4. 解压 "stc.zip" 到合适的目录下 (比如 "C:\Program Files\"). zip 包含了一个 "stc" 顶层文件夹.
  5. (Linux/Mac) 在解压后的目录底下 运行 chmod +x stc.
  6. 把目录(比如 "C:\Program Files\stc")添加到 PATH 环境变量.

在 Mac 上修改 PATH 环境变量的话, 你需要修改~/.bash_profile,修改为:

export PATH="/path/to/stc:$PATH"

许可证激活流程

试用许可 (30 天免费)

如果你是首次使用产品, 按照以下步骤可以下载一个试用许可证:

  1. 在初始界面上, 点击 Get Started.

  2. 输入邮箱地址,用于下载 Sencha Test 试用许可.

  3. 点击 Start Trial.

  4. 等待 "Activating License" 对话框完成.

  5. 激活成功后即可使用 Sencha Test.

购买许可 (非试用)

如果你购买了 Sencha Test 许可,而且没有试用许可:

  1. 在初始界面上, 点击 Get Started.

  2. 输入邮箱地址和你的激活码.

  3. 点击 Activate.

  4. 等待 "Activating License" 对话框完成.

  5. 激活成功后即可使用 Sencha Test.

购买许可 (试用后激活)

如果你购买了 Sencha Test 许可,并且你有一个正在使用的或者已过期的试用许可:

  1. 在设置界面上导航到 License 标签页. 试用许可的信息可以在这个界面上看到.

  2. 点击 Activate.

  3. 输入邮件里的激活码. 如果你没有收到邮件,请联系你公司里购买此产品的人.

  4. 点击 Activate

  5. 等待 "Activating License" 对话框完成.

  6. 现在的许可变成了 "Purchase".

成功试用 (离线)

如果你初次使用此产品,而且无法下载使用许可,请按照下面的步骤获得一个离线许可:

  1. 在初始界面上, 点击 Get Started.

  2. 点击 Offline License.

  3. 输入之前用于下载 Sencha Test 的邮箱地址.

  4. 点击 Request Trial

  5. 离线许可信息被复制到了剪贴板上.

  6. 粘贴信息到邮件中,检查无误后, 把邮件发送到 activations@sencha.com

  7. 一旦 Sencha 收到信息,许可证文件会通过邮件形式回复给你.

  8. 点击 Open License File ,然后选择 Sencha 发给你的许可证文件.

  9. 点击 Open.

  10. 许可证验证通过后,你会看到试用许可已激活. 继续试用 Sencha Test 吧.

购买许可 (离线试用后激活)

如果你购买了 Sencha Test 许可,并且你有一个正在使用的或者已过期的试用许可:

  1. 在设置界面上导航到 License 标签页. 试用许可的信息可以在这个界面上看到.

  2. 点击 Activate

  3. 输入邮件里的激活码. 如果你没有收到邮件,请联系你公司里购买此产品的人.

  4. 点击 Request Activation

  5. 离线许可信息被复制到了剪贴板上.

  6. 粘贴信息到邮件中,检查无误后, 把邮件发送到 activations@sencha.com

  7. 一旦 Sencha 收到信息,许可证文件会通过邮件形式回复给你.

  8. 点击 Open License File, 然后选择 Sencha 发给你的许可证文件..

  9. 点击 Open.

  10. 许可证验证通过后,你会看到试用许可已激活. 继续试用 Sencha Test 吧.

卸载 Sencha Test

  1. 打开 "Sencha Test" 安装目录 (比如, Windows 系统的 "C:\Program Files", 或者 Mac 系统的 "Applications" ).
  2. 双击 “uninstall” 图标.
  3. (Windows) 如果出现了 "用户账户控制" 对话框,点击 "是" .
  4. 点击 "Next".
  5. Sencha Studio 已被移除.
  6. 点击 "Finish" 关闭卸载界面.

下一步

下载 Sencha Studio 和 stc 已经安装好了, 你可以 入门 写一些测试了! 如果你有更多问题, 或 bug 报告, 请访问 Sencha Test 论坛.

Sencha Test 1.0.3

Ext JS
Sencha Test
Cmd
GXT
IDE Plugins
Sencha Inspector
Architect
Touch
Web Application Manager

Sencha Test

Sencha Test

Cmd

Cmd

GXT

4.x 3.x

IDE Plugins

IDE Plugins

Sencha Inspector

Sencha Inspector

Web Application Manager

Web Application Manager