2017-07-24 39 views
0

我的任務是運行使用VSTS Build在Jenkins Build中創建的HP-UFT測試腳本,然後自動傳遞測試腳本並將測試結果附加到Test Hub中創建的相關測試用例中。 步驟我跟隨: -如何使用構建和發佈定義在Test Manager/Hub內運行自動化測試?

1. Download the Private Agent(Windows) and create a Build Definition using Jenkins Template. 
2.Create a Jenkins Connection(Jenkins is on my Local)using Service Endpoint, Add the following Tasks in the Build Definition. 
1.Queue Jenkins Job    2.Download Artifacts 3.Publish Artifacts 
4.Publish Test Results 
3.Queue the Build using Default Agent Queue,and Build got succeeded. 
Hence I am able to integrate Jenkins with VSTS. Now Next Task is to associate this Build with a particular Test Case in Test Hub and attach the screenshots there and automatically pass/fail the Script based on Build Status. 

我下面在https://www.visualstudio.com/en-us/docs/test/continuous-testing/run-automated-tests-from-test-hub

enter image description here 提到的步驟請注意: - 我的測試不是基於Visual Studio和更確切地說,它這是使用運行自動化測試案例HP工具稱爲UFT。

enter image description here

enter image description here

+0

如果使用Unified Functional Testing擴展進行測試,結果如何? –

+0

@ starain-MSFT我正在執行https://github.com/hpsa/ADM-TFS-Extension/wiki/Unified-Functional-Testing-(UFT)-TFS-Extension中提到的步驟 我被困在錯誤消息: - 「找不到具有以下功能的代理程序:UFT_LAUNCHER」 –

+0

您是否重新啓動構建代理? unpack.ps1應該添加UFT_LAUNCHER環境變量。 –

回答

0

您提供的鏈接是使用微軟自帶工具的文件;在這種情況下它不會幫助你。

惠普在Marketplace上提供了適用於VSTS的UFT測試工具,該工具將允許您運行UFT測試腳本。不過,如果這些任務與VSTS測試案例相互作用,我會非常驚訝。我確信可以用UFT的測試結果來更新VSTS中的測試用例,但我對UFT平臺不太熟悉,不知道如何實現。

+0

我安裝了UFT擴展,並嘗試在構建中添加2個任務: - 發佈工件放置,從文件系統運行UFT測試。 我越來越低排隊構建時出現錯誤: 「找不到具有以下功能的代理:UFT_LAUNCHER」 –

+0

我嘗試了創建發佈定義的備用方法,我正在關注該博客: - visualstudio.com/en-us/docs/test/continuous-testing/...在最後,當我點擊使用發佈環境的自動化測試來運行測試時,我在使用選項運行測試時被卡住了 我正在將識別測試的值看作0,如上面的屏幕截圖所示。 –

相關問題