Ant TestNG Webdriver環境搭建

2021-07-11 18:42:38 字數 1512 閱讀 7464

ant

2、解壓

3、配置環境變數

使用

專案根目錄建立build.xml

將專案使用的jar包,拷貝到libs資料夾下

<?xml version="1.0" encoding="utf-8"?>

basedir="."

default="regression"

name="automation test">

name="base.dir"

value="."/>

name="testng.output.dir"

value="$/test-output"/>

name="3rd.lib.dir"

value="$/libs"/>

name="testng.file"

value="testng.xml"/>

resource="testngtasks">

location="$/testng.jar"/>

classpath>

taskdef>

name="clean">

dir="$/bin"/>

target>

name="compile"

depends="clean">

dir="$/libs"/>

dir="$/bin"/>

srcdir="$/src"

destdir="$/bin"

classpathref="classes"

includeantruntime="off"

debug="on"

debuglevel="lines,vars,source"/>

target>

id="classes">

dir="$"

includes="*jar"/>

dir="$"

includes="*zip"/>

location="$/bin"/>

path>

name="regression"

depends="compile">

outputdir="$"

classpathref="classes"

delegatecommandsystemproperties="true">

dir="$"

includes="$"/>

testng>

target>

project>

執行前提:專案根目錄下配置好了testng.xml

進入專案根目錄,執行命令ant,即可

github pages Jekyll環境搭建

通過jekyll可以搭建 簡單理解成網頁生成規則,就是通過配置能自動幫你生成靜態網頁的東西。如何配置,請看 首先要更新ruby,系統倉庫裡最新的是1.9.3,而jekyll要求 2.0 最終版本資訊 ruby v ruby 2.3.3p222 2016 11 21 revision 56859 x8...

iOS WebDriverAgent 環境搭建

webdriveragent是facebook 在去年的 seleniumconf 大會上推出了一款新的ios移動測試框架。當時的推文申明,還只支援模擬器,不過在今年4月更新的版本中,官方宣稱支援真機測試了,大家可以檢視官方github 的介紹 下面摘錄一段官方對於webdriveragent的介紹...

pytorch tensorflow環境搭建

整個環境搭建鏈結 anaconda cuda 步驟一 安裝anaconda 作用是建立虛擬環境,避免各個環境受版本不同的影響 步驟二 cuda安裝 顯示卡廠商nvidia運算平台 sudo bash cuda 9.0.176 384.81 linux run此處是很長的說明 do you accep...