并行测试执行詹金斯 [英] Parallel Test Execution Jenkins

查看:375
本文介绍了并行测试执行詹金斯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我使用詹金斯运行一些自动化的测试。

I have some automated tests that I'm running using Jenkins.

我已经詹金斯连接到我的GitSwarm从我的分支拉code,然后exectutes它。

I've Jenkins connected to my GitSwarm which pulls the code from my branch and then exectutes it.

我已经安装了并行测试作业执行插件詹金斯。

I have installed the "Parallel Test Job Execution Plugin" for Jenkins.

在插件我所指定的测试分3批运行

In the plugin I have specified the tests to run in 3 batches

还有什么我应该指定?我没想到我会,因为我连接到GitSwarm运行code。控制台输出似乎另有声明!

Is there anything else I should specify? I didn't think I would have to since I'm connecting to GitSwarm to run the code. The console output seems to state otherwise !

大厦工作区C:\\詹金斯\\ \\工作GIT_DVT \\ workspace下

Building in workspace 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

任何帮助将大大AP preciated,它似乎是一个简单的方法有,所以希望并行运行它唯一的一个小错误的测试。

Any help would be greatly appreciated, it does seem like an easy way to have tests running parallel so hopefully its only a small error.

推荐答案

我想你误会插件:

这插件添加新的构建,可以让你轻松地执行在平行单独的作业定义的测试。这是通过詹金斯看最后运行,分割测试成大致相等大小的多个单位的测试执行时间,然后并行执行它们来实现的。

This plugin adds a new builder that lets you easily execute tests defined in a separate job in parallel. This is achieved by having Jenkins look at the test execution time of the last run, split tests into multiple units of roughly equal size, then execute them in parallel.

您有做定义一个新的工作运行是由这个插件叫做测试。 (

You have do define a new job to run the tests which is called by this plugin. (source)

但是,我想...

您可以在不同的方式实现这一目标:

You can achieve this on different ways:


  • 使用href=\"http://testng.org/doc/documentation-main.html#parallel-tests\" rel=\"nofollow\"> TestNG的结果并行关键词的您可以定义测试套件,并说他们应该如何执行。

  • 创建一个新的工作这需要测试运行为参数,并通过插件(你需要一个新的工作,并有詹金斯的开销)
  • 叫它
  • 使用招聘DSL插件流水线插件(您必须重新创建作业定义)

  • Use the parallel keyword of TestNG
    You can define test suites and say how they should be executed.
  • Create a new job which takes the test to run as parameter and call it via the plugin (You need a new job and have the overhead of Jenkins)
  • Use the parallel keyword of the Job DSL Plugin or Pipeline Plugin (You have to recreate the job definition)

这篇关于并行测试执行詹金斯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆