AUTOMATED UI TESTER FOR ADOBE® ACTIONSCRIPT® (英语原文)

2023-12-11 13:38

本文主要是介绍AUTOMATED UI TESTER FOR ADOBE® ACTIONSCRIPT® (英语原文),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 AUTOMATED UI TESTER FOR ADOBE® ACTIONSCRIPT® 

USER GUIDE 

Last Updated 30 May 2012 t

Adobe Systems Inc. 

 

___________________________________________________________

                                                                          《Automated UI Tester》中文翻译——水桥月

 

Contents 

Introduction ............................................................................................................................................................................................ 3 

How to set up Genie ........................................................................................................................................................................... 3 

Ensuring that Genie has been set up successfully ....................................................................................................................................... 4 

Various components of Genie ......................................................................................................................................................... 5 

GenieID ..................................................................................................................................................................................................... 5 

Genie Features Overview ................................................................................................................................................................... 5 

Detailed Description of Features .................................................................................................................................................... 6 

Genie user interface ................................................................................................................................................................................................. 6 

Genie menu ............................................................................................................................................................................................................ 6 

Connect to SWF drop-down menu ................................................................................................................................................................ 7 

Working with Genie View ................................................................................................................................................................................. 7 

Genie context menu .......................................................................................................................................................................................... 12 

Different Genie status icons ................................................................................................................................................................................ 14 

Script recording and playback ........................................................................................................................................................................... 14 

Set up a script project ....................................................................................................................................................................................... 14 

Script recording in Genie ................................................................................................................................................................................. 15 

Script playback using Genie ........................................................................................................................................................................... 16 

Genie Test Suite ....................................................................................................................................................................................................... 18 

Recording SWF Applications ..........................................................................................................................................................19 

Recording mouse actions .................................................................................................................................................................................... 19 

Click action is performed but nothing happens ..................................................................................................................................... 19 

Recording keyboard actions ............................................................................................................................................................................... 19 

Command-line usage of Executor ............................................................................................................................................................... 20 

Accessing command-line parameters passed to the Genie script ................................................................................................... 21 

Running Genie steps without extending the Java class from your Genie script ........................................................................... 21 

User-exposed methods for validation and generic use .......................................................................................................................... 22 

Generic component methods ........................................................................................................................................................................ 22 

Automatic Synchronization ............................................................................................................................................................................ 23 

Specific Component Methods ........................................................................................................................................................................ 23 

Script Methods ..................................................................................................................................................................................................... 24 

Genie Helper class ............................................................................................................................................................................................. 24 

Global variables in scripts ............................................................................................................................................................................... 25 

UI Functions ............................................................................................................................................................................................................... 26 

Usage of UI functions ....................................................................................................................................................................................... 27 

Logging ....................................................................................................................................................................................................................... 28 

Script logs .............................................................................................................................................................................................................. 28 

Disabling script logging ................................................................................................................................................................................... 29 

Adding custom steps in a script log ............................................................................................................................................................ 29 

Assertion steps in a Genie script ................................................................................................................................................................... 30 

Multi-SWF recording and playback ................................................................................................................................................................. 30 

Extending GenieID at run time .......................................................................................................................................................................... 30 

Genie Locator ............................................................................................................................................................................................................ 31 

Capturing Flash events for validation ............................................................................................................................................................. 33 

Image-based validations ...................................................................................................................................................................................... 33 

Component image shown is not the correct component image ...................................................................................................... 34 

UIImage.findImage method fails to find the image .............................................................................................................................. 34 

Dispatching events on a covering layer ......................................................................................................................................................... 34 

Special usage scenario for getValueOfDisplayObject() ........................................................................................................................... 35 

Support for a SWF application having non-English characters ........................................................................................................... 35 

Java Documentation for Genie ......................................................................................................................................................36 Automated UI Tester for Adobe® ActionScript® 

Introduction 

Automated UI Tester for Adobe® ActionScript® is code named as Genie. 

Automated UI Tester is a Flash/Flex automation tool that can record user actions on a SWF file and play them back with high fidelity. With other automation tools, automating Flash applications requires instrumenting them to run inside a wrapper application; but with Genie, it just requires a configuration file and Flash Player. So with Genie, users can automate their production builds easily. Genie currently works on Windows and on Mac OS X. 

How to set up Genie 

Follow these steps to set up the Genie environment. You can run Genie with a debug version of Flash Player: 

1. Install the debug version of Flash Player (depending on your testing needs) from: http://www.adobe.com/support/flashplayer/downloads.html Install the appropriate version of Flash Player for your operating system and web browser. 

2. JDK version 1.5 is required (Recommended is JDK 1.5 Release 22) for compiling recorded Genie scripts and your other Java development needs. (You just require JRE in case you already have compiled Script classes.) The JDK can be downloaded from: 

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html 

3. Install the Eclipse IDE for Java Developers, version 3.5.0 or above, for writing scripts. The latest version of Eclipse can be downloaded from: 

http://www.eclipse.org/downloads/ 

4. Get the latest build of Genie.zip provided to you; copy the ZIP file to any location on your disk and extract it. 

Note: In subsequent pages, <GeniePath> will refer to the location where you have unzipped the Genie.zip file. 

5. Copy GeniePlugin.jar from <GeniePath>\GeniePlugin\GeniePlugin.jar to the plug-in folder of your Eclipse installation folder. For example: D:\Eclipse\Plugins 

6. Copy the mm.cfg file from <GeniePath>\GenieLibrary\mm.cfg to the user folder. C:\Documents and Settings\testuser\ (For Windows XP) 

C:\Users\testuser\ (For Windows 7) 

/Users/testuser/ (For Mac Os X) 

7. Open mm.cfg and edit it to update the path to the file GenieLibrary.swf. You just need to add one line in mm.cfg, which will look like: 

PreloadSWF = <GeniePath>\GenieLibrary\GenieLibrary.swf 

8. Open the Global Security Settings panel topic in Flash Player Help: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.ht

这篇关于AUTOMATED UI TESTER FOR ADOBE® ACTIONSCRIPT® (英语原文)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/480877

相关文章

HarmonyOS学习(七)——UI(五)常用布局总结

自适应布局 1.1、线性布局(LinearLayout) 通过线性容器Row和Column实现线性布局。Column容器内的子组件按照垂直方向排列,Row组件中的子组件按照水平方向排列。 属性说明space通过space参数设置主轴上子组件的间距,达到各子组件在排列上的等间距效果alignItems设置子组件在交叉轴上的对齐方式,且在各类尺寸屏幕上表现一致,其中交叉轴为垂直时,取值为Vert

Golang GUI入门——andlabs ui

官方不提供gui标准库,只好寻求第三方库。 https://github.com/google/gxui 这个gui库是谷歌内部人员提供的,并不是谷歌官方出品,现在停止维护,只好作罢。 第三方gui库 找了好多,也比较了好多,最终决定使用的是还是 https://github.com/andlabs/ui 相信golang gui还会发展的更好,期待更优秀的gui库 由于andlabs

英语每日一段 195

Promising economic indicators won’t instantly reverse the lingering impact of hard times for millions of families, workplace culture expert Jessica Kriegel said. “Perception and reality are sometimes

移动UI:分类列表页、筛选页的设计揭秘。

移动UI的列表页设计需要考虑用户体验和界面美观性,以下是一些建议的设计要点: 1. 列表项的展示: 列表页应该清晰地展示各个列表项,包括标题、副标题、缩略图等内容,以便用户快速浏览和识别。可以使用卡片式布局或者简洁的列表布局。 2. 搜索和筛选: 如果列表项较多,应该提供搜索和筛选功能,方便用户查找感兴趣的内容。搜索框和筛选条件可以放置在页面顶部或者底部,以便用户方便操作。

UI自动化测试常见面试题

1、什么是UI自动化测试? UI自动化测试是一种通过模拟用户交互并自动执行UI操作的软件测试方法。它用于验证用户界面的功能和稳定性,以确保在不同的操作系统、浏览器和设备上的一致性。 2、UI自动化测试的优势和劣势是什么? 优势: 可以节省时间和成本,提高测试效率。 可以自动执行大量的重复测试任务,减少人为错误。 可以实现广泛的测试覆盖,包括不同的操作系统、浏览器和设备。 可以提供稳定

element-ui打包之后图标不显示,woff、ttf加载404

1、bug 起因 昨天在 vue 项目中编写 element-ui 的树形结构的表格,发现项目中无法生效,定位问题之后发现项目使用的 element-ui 的版本是 2.4.11 。看了官方最新版本是 2.15.14,然后得知 2.4.11 版本是不支持表格树形结构的。于是决定升级 element-ui 的版本,方便后续的开发。 升级之后本地简单的过了一遍系统功能,并没有发现有什么不妥,于

Unity(2022.3.41LTS) - UI详细介绍- Toggle(切换)

目录 零.简介 一、基本功能 二、属性和设置 三、使用方法 四、优化和注意事项 零.简介 在 Unity 中,Toggle 是一种常用的 UI 组件,用于表示一个布尔值的状态,类似于复选框。 一、基本功能 状态切换:Toggle 有两种状态,即选中和未选中。用户可以通过点击 Toggle 来切换其状态。关联变量:可以将 Toggle 的状态与一个布尔变量关联起来,以便

ssm微信小程序的英语学习激励系统论文源码调试讲解

2 关键技术介绍 2.1 SSM框架 开发信息管理系统的主流框架是SSM(Spring + Spring MVC + MyBatis),SSM框架web层使用Spring MVC框架,使传输前后端数据变得简单;对于业务层使用Spring作为轻量级控制反转和面向切面的容器框架;对于相关SQL操作,采用Mybatis作为持久层框架,对JDBC进行封装,使得数据库的底层面向开发者操作处于一种

Adobe After Effects的插件--------CC Particle World

CC Particle World是一个粒子效果器,用于在三维空间中生成和模拟各种粒子系统,包括火焰、雨、雪、爆炸、烟雾等等。它会自动随时间变化发射粒子。 本文部分参照 https://www.163.com/dy/article/IEJVDN760536FE6V.html 使用条件 使用该插件的图层需是2D图层。 我们新建一个纯色图层(也可以是其他类型图层),作为【效果控件载体图层】

Figma如何给设计的UI套样机

一、设计自己的UI 首先绘制自己的ui,根据自己的需求绘制: 二、在社区搜索需要适配的样机 1、打开社区网站 Figma社区 2、搜索样机 我们一iPhone 11为例: 3、用Figma打开样机 4、找到Place screen here这儿 三、将自己设计的UI适配过去 将自己的UI复制粘贴到Place screen here这儿就OK。 四、效果查看