­
誰說QA不會CODING

[Cucumber] 如何用 rakefile 重跑 Cucumber Fail 的 Features ???

凌晨12:42
[Cucumber] 如何用 rakefile 重跑 Cucumber Fail 的 Features ??? 這週被指派 一個任務, 希望能將 Cucumber Fail 的 features 重跑, 但是要怎麼做到呢??? 後來想了一下 Ruby 其實有一個強大的功能 rakefile ,  它其實像是 c 的 make 和 java 的 ant 一樣, 是用來編譯代碼的. 但奇怪的是, Ruby 根本不需要編譯, 為什麼還需要 Rake ?  與其說 Rake 是一個代碼構建工具,不如說 Rake 是一個任務管理工具. 更詳細的說明可以參考這篇 : [Ruby] Ruby的頭號Gem:Rake 此外, 若去查 cucumber -h , 你會發現其實 Cucumber 已經有支援 rerun 的功能 : Use --format rerun --out rerun.txt to write...

Read More...

誰說QA不會CODING

[Calabash] How to run calabash android with cucumber only

凌晨12:33
[Calabash] How to run calabash android with cucumber only Today, my colleague ask me a question : How to run calabash android just use cucumber??? And I dig the source code and found there is a way to execute by cucumber export ADB_DEVICE_ARG=004401115636660 #this is device_id export APP_PATH=$(ls -t built/*.apk) #this is to query apk file export TEST_APP_PATH=$(ls -t test_servers/*.apk) #this is to query...

Read More...