Run MonkeyTalk Scripts via Ant in Windows
一安装Ant
务必确保pc(Windows)上安装了jdk,并配置好系统环境变量。
1进入网站:http://mirror.bit.edu.cn/apache//ant/binaries/apache-ant-1.8.4-bin.zip下载ant。
2 解压缩到G:\huangqin\Tools\apache-ant-1.8.4-bin 目录下。如下图所示:
图1
3 在系统环境变量中新建一个名为“ANT_HOME”的系统变量,并设置其值为上述ant解压后所在的目录(G:\huangqin\Tools\apache-ant-1.8.4-bin\apache-ant-1.8.4)。如下图所示:
图2
4 将上述ANT_HOME目录下的bin目录追加到系统环境变量Path中。如下图所示:
图3
5 在终端运行cmd命令,输入ant,回车。如出现下图所示,则表示ant安装且配置成功。
图4
6 安装Ant附属包(如junit.jar、jruby.jar、jython.jar、 js.jar等)
进入Ant_HOME所在目录,执行ant -f fetch.xml -Ddest=[option],其中
Option为以下任意值:
- system - store in Ant's lib directory (Recommended)
- user - store in the user's home directory
- optional - store in Ant's source code lib/optional directory, used if building Ant source code
图5
二配置build.xml文件
1 在Ant中安装Monkeytalk Ant library。
将xxx\monkeytalk-latest-win32\monkeytalk\ant目录下的monkeytalk-ant-xxx.jar包 copy到xxx\apache-ant-1.8.4-bin\apache-ant-1.8.4\lib中。
2创建build.xml文件(随便在某个目录创建,最好存放在Eclipse中相应的app目录下)。
图6
上图中xmlns:monkeytalk="antlib:com.gorillalogic.monkeytalk.ant" 为加载monkeytalk-ant-xxx.jar包。
注意:图6中adb的值为:"G:/huangqin/Tools/sdk/platform-tools/adb.exe",官方给的值是:"G:/huangqin/Tools/sdk/platform-tools/adb",若设为官方值,执行ant mySuite时则会Build Failed,如下图所示:
图7
3 将build.xml拷贝到MonkeyTalk Project目录下(且与图6中TestSuitMain.mts同一目录)。
4 运行cmd启动终端,执行cd xxx (xxx:build.xml所在目录)。
5 再执行ant mySuite (mySuite为图6中target的name值)。如下图所示:
图8
相关推荐
Run C# scripts from the .NET CLI.
$ npm run command1 && npm run command2 && npm run command3 您可以运行: $ run-scripts command1 command2 command3 如果您不希望在全局范围内安装模块,则可以执行以下操作: $ npm install --save-dev run-...
The scripts included in this help file are likely to appear in the forthcoming System Administration Scripting Guide, which will ship as part of the Windows .NET Server Resource Kit. In the Scripting ...
Most of the scripts are designed to run with either Windows 2000, Windows XP, or Windows .NET Server. Scripts that are not designed to run on all these platforms include a brief note indicating which ...
LfW contains everything you need to write, run and debug Lua scripts on Windows. A wide variety of libraries and examples are included that are ready to use with Microsoft Windows. LfW runs on ...
批量导出、导入SQL表、存储过程、触发器、视图,修正了特殊字符导出的错误。 导出数据表可只导出表结构或者连同数据一起导出。
资源分类:Python库 所属语言:Python 资源全名:ci-scripts-1.15.3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
该脚本是《MySQL必知必会》的脚本。配合本书使用。用于生成示例数据库。当然,该脚本中也有创建表、创建约束的一些例子。可以参考学习。
Enjoy the benefits of writing CLI scripts in PHP: Save money by redeploying existing skills, not learning new ones. Save time and increase productivity by using a high-level language. Make money by ...
It shows you how to build scripts and utilities to automate system tasks or create powerful system management tools to handle the day-to-day tasks that drive a Windows administrator's life....
一个用于Kohya的SD-Scripts的一组Python训练脚本。SD-Scripts是一个用于训练模型的项目,它使用了一个基于pyside6的用户界面(UI),以便更流畅地进行模型训练的过程。 SD-Scripts项目该项目提供了一些用于训练模型的...
LSrunas can be used in scripts. Parameters: ----------- /user: specifies the username /password: specifies the password /domain: specifies the domain /command: specifies the command to execute and ...
The present book Pro SAP Scripts, Smart forms, and Data Migration, is a sequel to our earlier book SAP ABAP—Hands-On Test Projects with Business Scenarios. It is perceived by enterprises or ...
How to Use Live Scripts in MATLAB.zip
network-scripts.zip 弹性网卡
mastering-perl-scripts.zip mastering-perl-scripts.zip
Oracle DBA 常用Scripts(CHM)
解决执行 python -m visdom.server 时,出现 Downloading scripts, this may take a little while 的问题
In all cases the unlocker can be run without the scripts but you would need to carry out additional actions which the scripts encapsulate for you especially on ESXi. If you want to run the unlocker ...
Windows 批处理脚本Windows 批处理脚本的动物园我已经用单独的自述文件将它们分成了自己的文件夹。 享受!