`
huangqinqin
  • 浏览: 359667 次
  • 性别: Icon_minigender_2
  • 来自: 福州
社区版块
存档分类
最新评论

Run MonkeyTalk Scripts via Ant in Windows

 
阅读更多

  Run MonkeyTalk Scripts via Ant in Windows

 

安装Ant

务必确保pcWindows)上安装了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.jarjruby.jarjython.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.jarcopyxxx\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包。

 

注意:6adb值为:"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目录下(且与图6TestSuitMain.mts同一目录)。

4 运行cmd启动终端,执行cd  xxx (xxxbuild.xml所在目录)

5 再执行ant  mySuite (mySuite为图6targetname)。如下图所示:

 

8

  • 大小: 21.6 KB
  • 大小: 61.1 KB
  • 大小: 65.5 KB
  • 大小: 18.3 KB
  • 大小: 30.2 KB
  • 大小: 42.4 KB
  • 大小: 37.4 KB
  • 大小: 45.8 KB
分享到:
评论

相关推荐

    Run C# scripts from the .NET CLI..zip

    Run C# scripts from the .NET CLI.

    run-scripts:一口气依次运行多个npm脚本

    $ npm run command1 && npm run command2 && npm run command3 您可以运行: $ run-scripts command1 command2 command3 如果您不希望在全局范围内安装模块,则可以执行以下操作: $ npm install --save-dev run-...

    Windows 脚本大全

    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 ...

    Windows script

    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 ...

    LuaForWindows_v5.1.4

    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 ...

    RUNScripts.exe

    批量导出、导入SQL表、存储过程、触发器、视图,修正了特殊字符导出的错误。 导出数据表可只导出表结构或者连同数据一起导出。

    Python库 | ci-scripts-1.15.3.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:ci-scripts-1.15.3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    mysql_scripts MySQL必知必会脚本

    该脚本是《MySQL必知必会》的脚本。配合本书使用。用于生成示例数据库。当然,该脚本中也有创建表、创建约束的一些例子。可以参考学习。

    PHP CLI: Create Command Line Interface Scripts with PHP

    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 ...

    Manning.Windows.PowerShell.in.Action

    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....

    lora训练ui界面工具应用SD-Scripts项目源码

    一个用于Kohya的SD-Scripts的一组Python训练脚本。SD-Scripts是一个用于训练模型的项目,它使用了一个基于pyside6的用户界面(UI),以便更流畅地进行模型训练的过程。 SD-Scripts项目该项目提供了一些用于训练模型的...

    替代Windows的runas的好工具Lsrunas

    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 ...

    Pro SAP Scripts, Smartforms, and Data Migration

    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

    How to Use Live Scripts in MATLAB.zip

    network-scripts.zip

    network-scripts.zip 弹性网卡

    mastering-perl-scripts.zip

    mastering-perl-scripts.zip mastering-perl-scripts.zip

    Oracle DBA 常用Scripts

    Oracle DBA 常用Scripts(CHM)

    解决 visdom的Downloading scripts问题

    解决执行 python -m visdom.server 时,出现 Downloading scripts, this may take a little while 的问题

    vm安装macos补丁_unlock-all-v111

    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 ...

    batch_scripts:Windows 批处理脚本

    Windows 批处理脚本Windows 批处理脚本的动物园我已经用单独的自述文件将它们分成了自己的文件夹。 享受!

Global site tag (gtag.js) - Google Analytics