將Jenkins的測試結果整合到Testlink
1. Testlink 中新增custom field。
2. 用例中custom field中加入該用例對應測試類名和方法名,格式:com.example.demo.TestUrl#prodApi。
3. Jenkins中安裝Testlink Plugin,安裝后在“管理Jenkins”->“組態設定”->“TestLink Installation”中填入你的Testlink資料。
URL:http://localhost/testlink-1.9.9/lib/api/xmlrpc/v1/xmlrpc.php
Developer Key:在Testlink的“My Settings”->“API interface”中,“Generate a new key”。
4. Jenkins的專案設定中,“新增建置后步驟”選擇“Invoke Testlink”,然后在“TestLink Configuration”中填入Testlink中對應的資料。然后“Result Seeking Strategy”->“add strategy”選擇“JUnit method name”并填入對應資料(“Include Pattern”填入“**/TEST-*.xml”)。
5. 構建項目,完成后應該見到Testlink有相應的執行結果。
posted on 2014-06-30 17:59 順其自然EVO 閱讀(3020) 評論(0) 編輯 收藏 所屬分類: selenium and watir webdrivers 自動化測試學習