簡體   English   中英

並行測試執行詹金斯

[英]Parallel Test Execution Jenkins

我有一些正在使用Jenkins運行的自動化測試。

我將Jenkins連接到我的GitSwarm,它從我的分支中提取代碼,然后將其執行。

我已經為Jenkins安裝了“並行測試作業執行插件”。

在插件中,我指定了要分三批運行的測試

截圖

還有什么我應該指定的嗎? 我認為我不必這樣做,因為我正在連接到GitSwarm來運行代碼。 控制台輸出似乎表明否則!

在工作空間C:\\ Jenkins \\ jobs \\ GIT_DVT \\ workspace中構建

git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
git.exe config remote.origin.url https://.../VMAX_UNISPHERE/stoage_mgmt.git # timeout=10
Fetching upstream changes from https://.../VMAX_UNISPHERE/stoage_mgmt.git
git.exe --version # timeout=10
using .gitcredentials to set credentials
git.exe config --local credential.username reganc3 # timeout=10
git.exe config --local credential.helper store --file=\"C:\Users\ADMINI~1\AppData\Local\Temp\2\git5891789764540509525.credentials\" # timeout=10
git.exe -c core.askpass=true fetch --tags --progress https://.../VMAX_UNISPHERE/stoage_mgmt.git +refs/heads/*:refs/remotes/origin/*
git.exe config --local --remove-section credential # timeout=10
git.exe rev-parse "origin/Uni_360_1.0^{commit}" # timeout=10
Checking out Revision 08df9a379e14d8a634e4533d962f5919f755ae67 (origin/Uni_360_1.0)
git.exe config core.sparsecheckout # timeout=10
git.exe checkout -f 08df9a379e14d8a634e4533d962f5919f755ae67
git.exe rev-list 08df9a379e14d8a634e4533d962f5919f755ae67 # timeout=10
No record available, so executing everything in one place
[parameterized-trigger] Current build has no parameters.
ERROR: Build aborted. No projects to trigger. Check your configuration!
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: C:\jenkins\jobs\GIT_DVT\workspace\unisphere360\target\surefire-reports\
Did not find any matching files.
Finished: FAILURE

任何幫助將不勝感激,這似乎是使測試並行運行的一種簡便方法,因此希望它只是一個很小的錯誤。

我認為您誤解了插件:

該插件添加了一個新的構建器,使您可以輕松地並行執行在單獨作業中定義的測試。 這是通過讓詹金斯查看上一次運行的測試執行時間,將測試分為大小大致相等的多個單元然后並行執行來實現的。

您確實定義了一個新作業來運行此插件調用的測試。 來源

但是我要 ...

您可以通過不同的方式實現這一目標:

  • 使用TestNG的parallel關鍵字
    您可以定義測試套件並說出應如何執行。
  • 創建一個新測試,將測試作為參數運行,並通過插件調用它(您需要一個新工作,並且需要詹金斯管理)
  • 使用Job DSL插件管道插件的parallel關鍵字(您必須重新創建作業定義)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM