• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    使用 Ant 自動生成項目構建版本

    發布: 2008-6-19 18:03 | 作者: 不詳 | 來源: 測試時代編輯整理 | 查看: 171次 | 進入軟件測試論壇討論

    領測軟件測試網

                            
    <target name="uploadbuild" description="Upload build to an FTP server">
    <!-- Upload everything under the destination.dir to the FTP server. -->
    <ftp server="${ftp.hostname}" remotedir="/" userid="${ftp.username}" 
       password="${ftp.userpassword}" separator="\" verbose="yes" binary="yes">
    <fileset dir="${destination.dir}">
    <include name="**/*.*" />
    </fileset>
    </ftp>
    </target>
    			

  • 通知測試團隊

    最后,該過程將向測試人員發送電子郵件(如清單 13中所示),告知其開始測試。以下示例假定不會在 SMTP 服務器上進行身份驗證。



    清單 13. 向測試團隊發送電子郵件
                            
    <target name="notifyteam" description="Notify testing team of the new build">
    <!-- Read build information from the build.info file. -->
    <property file="${destination.dir}/build.info" />
    <!-- Send a mail to the testing team. -->
    <mail mailhost="${smtp.hostname}" mailport="${smtp.hostport}"
    subject="Test build #${build.number}" from="${smtp.from}" tolist="${smtp.tolist}"> <message>The build #${build.number} is now available for testing.</message> </mail> </target>

    如果您的 SMTP 服務器要求進行身份驗證,將需要下載 JavaMail .jar 文件。



  • 運行過程時的選項

    本部分將簡單描述運行構建過程時一些可用的選項。

    條件流

    上面所述的自動化過程并不施加任何控制任務流的條件。如果需要此類控制,可以使用允許某些任務中在出現錯誤時失敗的屬性。例如,wsInstallApp 任務具有用于此目的的 failonerror 屬性。

    使用條件是控制流的另一種方式。有關 Ant 中的條件的更多信息,請參見 Conditions task。Ant 還提供了依賴關系來在目標之間建立聯系,以確保執行目標序列得以執行。

    從 IDE 運行

    文章來源于領測軟件測試網 http://www.kjueaiud.com/


    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備10010545號-5
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>