誰說QA不會CODING

[Cucumber] How to write test cases by Chinese

凌晨12:50
故事是這樣開始的… 前一陣子, 團隊裡面的成員們, 正在為一段 story acceptance critira 的描述進行辯論, 後來得到兩個選項 : A: Then the results page displayed B: Then I should see results page 當大家正在針對上面這兩個選項進行辯論的過程中, 突然間有一個成員舉手了, 說 : 請問一下, 如果 scenario 用中文來寫, 會如何來描述??? 這個問題真的敲醒我, 對ㄝ, 中文的話要怎麼表達這個句子. A : 那麼結果頁面成功顯示 B : 那麼我能夠看見結果顯示成功 於是我開始反查 cucumber 裡面有沒有類似的作法, 結果發現 cucumber 在約兩個月 ( 10 月左右) 前提供了 i18n (多國語系) 的支援, 範例可以在這找到 : ../cucumber-2.4.0/examples/i18n/.. 於是, 小弟我就寫一個 API 測試的範例來說明吧 : Steps:...

Read More...

誰說QA不會CODING

[Ruby] How to type Japanese on ruby console

下午2:40
How to type Japanese on ruby console Prepare To check the current ruby version by rbenv : rbenv versions Todo First you have to install readline by homebrew : brew install readline Reinstall Ruby Version, assume your current version is 2.3.1 CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline)" rbenv install 2.3.1 Now, you can go to irb and type Japanese :) Reference MAC OS ruby console 無法輸入中文 https://ruby-china.org/wiki/rbenv-guide p.p1...

Read More...

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

誰說QA不會CODING

[Calabash] How To Cook Calabash @ 極客窩

凌晨2:49
First time public sharing @ 極客窩. 第一次社外分享 Calabash, 有點緊張... 希望能對這個世界有點幫助 :) [Video] [Slide] https://goo.gl/8CJTiU ...

Read More...

agile

[Test] 如何讓你的自動化測試結果被團隊看見 - How to Make Your Test Automation Efforts Visible to Everyone on the Team

凌晨2:16
如何讓自己的自動化測試結果被團隊看見 最近讀到一篇文章在討論 如何讓你的自動化測試結果被團隊看見 (How to Make Your Test Automation Efforts Visible to Everyone on the Team), 覺得蠻有趣的, 所以來寫篇心得吧 :) 文章裡面提到許多的論點, 都能夠引起自己心裡的共鳴. 在作者的專案中, 他覺得自己的測試和自動化測試很不容易被團隊發現, 似乎沒有人在意測試結果這件事, 直到要出版的前一刻才會被重視. 然後突然間, 整個團隊中的成員就會開始討論, 為什麼這些需求沒有 PASS? 為什麼有些需求沒有被驗證到? 更很有趣的是作者也發現不是只有他一個人有這種感覺 (謎之音 : 應該是幹過 QA 的人都知道這檔事). 事實上, 作者在 webinar 也上面發問過一個問題 : 'How visible are your current testing and automation efforts to everyone in the organization? (你現在的組織內有多少人在做測試及自動化的工作?) 有趣的結論是 :  43.5% answered “Somewhat visible.” 26.5% answered...

Read More...

誰說QA不會CODING

[Calabash] How to add android system log into calabash-android test scenarios

晚上11:25
How to add android system log into calabash-android test scenarios Add follow adb command into app_life_cycle_hook.rb file, and the system log will log into file for each scenarios Before do |scenario| `#{adb_command} logcat -c` # clears logcat output #Start Test Server start_test_server_in_background end After do |scenario| `#{adb_command} logcat -v time 2>&1 -d > $REPORT_PATH/sys_log.txt` # dumps log in time format to file and exits embed('sys_log.txt',...

Read More...

誰說QA不會CODING

[Cucumber] 有趣的 Cucumber 論點

晚上11:33
一開始在打臉 BDD 但是結尾的結論蠻中肯的, 就來引用一下摟 [圖片引用至 醒醒吧少年,只用CUCUMBER不能帮助你BDD ] 总结一下 BDD不是工具,而是一套流程和一系列实践。它需要团队成员的通力合作,可以帮助整个团队更好的理解业务,理解软件。 Cucumber作为支持BDD的一种工具,不单单是自动化测试工具。在解决了Cucumber的一些问题后,团队可以更加有效的使用。 Cucumber,Concordion和Guage各有不同,选择一款适合团队自身需要的工具,也能保证团队顺利运作,少走弯路。 [Reference] 醒醒吧少年,只用CUCUMBER不能帮助你BDD ...

Read More...

autotest

[Test] 從 QA 來看工程生產力 - From QA to engineering productivity

晚上11:12
從 QA 來看工程生產力 這幾天在 Google Testing Blog 上面看到一篇文章在探討從 QA 到工程的生產力, From QA to Engineering Productivity 頗有趣的, 只好來寫個心得. 在 Google 創建初期時, 是由一小群工程師組成, 其中包含建置, 測試和出版. 但隨者用戶的增加及產品成長, 工程師們開始專注於下面的角色: Test Engineers (TEs) – tested new products and systems integration Release Engineers (REs) – pushed bits into production Site Reliability Engineers (SREs) – managed systems and data centers 24x7. 文章中除了探討軟體品質的改善及這些角色在 Google 裡主要的職責, 也包含許多珍貴及重要的測試轉型經驗, 但關於 REs 跟 SREs 的分享,...

Read More...

誰說QA不會CODING

[Cucumber] 如何寫出好的 Cucumber 測試

凌晨1:04
這週在網路上面讀到一篇 Write Great Cucumber Test, 看完挺有感觸的, 剛好自己這兩三個月都在用 Cucumber 寫 Acceptance Test. 趁這個機會就來做個 Summary 吧, 重點分成三個部分: Feature file Step Definitions file Configuration - 寫 Feature 檔 Feature 檔幫助非專業的 stackholders 使用並了解整個測試, 透過這份文件, 可以用協同合作的方式與測試人員及整個團隊搭起橋樑. 基於這個理由, 寫出一份好的 feature 檔無非是幫助整個團隊更有效率地使用 BDD 的方式來進行合作. 下面這些建議及標準, 可以幫助我們寫出好的 Cucumber feature 檔: OrganizationFeature files can live at the root of the /features directory. However, features can be grouped in a subfolder if they describe a...

Read More...