顯示具有 測試工具 標籤的文章。 顯示所有文章
顯示具有 測試工具 標籤的文章。 顯示所有文章

星期四, 4月 23, 2020

[Eggplant] 透過命令行的runscript指令來執行suite的測試

在透過EPF撰寫完相關的suite後,在不同主機上執行suite,就不用再開EPF了。
只要透過runscript指令即可呼叫。

首先先安裝runscript指令(這樣就免除需要執行完整的路徑)


Important: For Mac installations of Eggplant Functional version 18.0 and later, the path to call the runscript command has changed to /Applications/Eggplant.app/Contents/MacOS/runscript

Eggplat->Perference->Run,接著按install runscript in /usr/local/bin即可


[Eggplant] 使用shell指令執行Java Jar

測試如何shell執行java包出的jar檔應用,並把執行結果取出。

測試一般jar檔執行

MacBook-Pro-8:eggplant_cmd bigd$ java -cp JarDemo.jar com.test.jardemo.TestJar "Hello World" "Ken"

輸入參數0:Hello World

輸入參數1:Ken


//存放shell輸出的東西
set destinationFile to "/Users/bigd/Downloads/shellOutput.txt"

//Users/bigd/Downloads/eggplant_cmd
shell "java -cp /Users/bigd/Downloads/eggplant_cmd/JarDemo.jar com.test.jardemo.TestJar 'Hello World' 'Ken' >"  & destinationFile

put file destinationFile into shellOutput
//LogSuccess file destinationFile
log shellOutput

//砍掉檔案
delete file destinationFile



參考

星期四, 3月 27, 2014

[測試工具] Browserstack 雲端測試平台

做web專案需要使用不同的作業系統與瀏覽器來組合測試,
現在可以透過browser stack來快速完成我們的需求:D 

Live, Web-Based Browser Testing

Instant access to all desktop and mobile browsers.
Say goodbye to your setup of virtual machines and devices.

http://www.browserstack.com/

不過免費帳號只有二十分鐘的試用限制!! 殘念

其他你感興趣的文章

Related Posts with Thumbnails