Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90FA117E5E for ; Thu, 21 May 2015 13:55:04 +0000 (UTC) Received: (qmail 32964 invoked by uid 500); 21 May 2015 13:55:03 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 32907 invoked by uid 500); 21 May 2015 13:55:03 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 32896 invoked by uid 99); 21 May 2015 13:55:03 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2015 13:55:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 36627C7381 for ; Thu, 21 May 2015 13:55:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.555 X-Spam-Level: X-Spam-Status: No, score=-0.555 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-1.108, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=theneura.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ZLxZF4lfsHYg for ; Thu, 21 May 2015 13:54:48 +0000 (UTC) Received: from homiemail-a115.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 8891C22F28 for ; Thu, 21 May 2015 13:54:48 +0000 (UTC) Received: from homiemail-a115.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a115.g.dreamhost.com (Postfix) with ESMTP id D0FD44E59 for ; Thu, 21 May 2015 06:54:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=theneura.com; h=from:to :references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=theneura.com; bh=BBMY 3Ob70vFHGAdGZiTDVV43L+0=; b=lWuKSbG/6x3VXIjcW1GiVAIhZmgJCdoFu6SS EMpx/JWiwMM3chjOlUA9k6PMgTDeKa/vlGBVJa+3TDEuVDAZHHP0Wn4HhukJAPvQ dJ/Bv9578gVN/AXeikEbTeknm8kk8Ei3ZLNkysDffTJxJeG+mACGeiBS8Gp3Cx5J osQz+O8= Received: from QAPC (bzq-79-182-201-15.red.bezeqint.net [79.182.201.15]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: erez@theneura.com) by homiemail-a115.g.dreamhost.com (Postfix) with ESMTPSA id 2DB544E40 for ; Thu, 21 May 2015 06:54:45 -0700 (PDT) From: "Erez Naim" To: "'JMeter Users List'" References: <002501d093c7$ea6ea880$bf4bf980$@theneura.com> <2E7A2575-48C8-4181-83E9-157A59B457C0@thebuckland.com> In-Reply-To: <2E7A2575-48C8-4181-83E9-157A59B457C0@thebuckland.com> Subject: RE: CI - Jenkins + Maven + Jmeter Date: Thu, 21 May 2015 16:54:39 +0300 Message-ID: <003e01d093cd$b02fb640$108f22c0$@theneura.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQGcKUTXMKUjqqG9gx1Nm9t8I+SKawE5xaNzneV6f5A= Content-Language: he Thanks Ramon can you elaborate more info how to do it inside Jenkins? I = just have to invoke Gradle? -----Original Message----- From: Ramon Buckland [mailto:ramon@thebuckland.com]=20 Sent: Thursday, May 21, 2015 4:30 PM To: JMeter Users List Subject: Re: CI - Jenkins + Maven + Jmeter Hi Erez, I created a gradle project long a go that walked through JMX tests..=20 and had Jenkins run the Gradle project. A similar thing could be done with Maven - but as you will see below. = This is VERY simple and effective. apply plugin: 'jmeter' <> <> <>/* <> * We expect a property for the environment - <> * <> * $ ./gradlew = -Penvironment=3DT1 jmeterRun <> * <> * Supported is T1, T2 and T3 <> = * An equivalent file is loaded as the JMeter Properties file:=20 <> * <> * src/test/jmeter/common/T1-environment.properties <> * <> */ <> <>task wrapper(type: Wrapper) { <> gradleVersion =3D '1.12' <>} <> <>buildscript { <> repositories { <> mavenCentral() <> } <> dependencies { <> classpath "com.github.kulya:jmeter-gradle-plugin:1.3.2-2.9" <> classpath 'org.codehaus.groovy:groovy-all:2.2.2' <> classpath "net.sourceforge.jtds:jtds:1.3.1=E2=80=9D // for database = connectivity=20 <> } <>} <> <>=09 <>jmeterRun.configure { <> <> jmeterPropertyFile =3D = file(file("src/test/jmeter/common/${environment}-environment.properties")= .absolutePath) <> <> reportPostfix =3D "-${environment}-jmeterRun-report.html" <> <> // if you omit jmeterTestFiles, the plugin will run ALL JMX Files. = but we don't want that <> jmeterTestFiles =3D [ <> // file("src/test/jmeter/systemx/SYS.X.DoSomePerfTest.jmx") <> = file("src/test/jmeter/systemy/SYS.Y.SimulateWidgetMovement.jmx"), <> file("src/test/jmeter/systemy/SYS.Y.E2EFullIntegTest.jmx"), <> file("src/test/jmeter/systemy/SYS.Y.MaxConnectLimit.jmx") <> ] <> <>} > On 21 May 2015, at 14:13, Erez Naim wrote: >=20 > Hey all guys and Jmeter Gurus!=20 > =20 > I am wonder if someone here succeeded in setting Jenkins work together = > with Jmeter and if so how did you do that, I've installed successfully = Jenkins and Maven as well as creating pom.xml file but somehow I cannot = integrate it together I have read a guide how to integrate it But I got = the following error: > =20 > A problem occurred while processing the request. Please check our bug = tracker to see if a similar problem has = already been reported. If it is already reported, please vote and put a = comment on it to let us gauge the impact of the problem. If you think = this is a new issue, please file a new issue. When you file an issue, = make sure to add the entire stack trace, along with the version of = Jenkins and relevant plugins. The users list = might be also useful in = understanding what has happened. >=20 > Stack trace >=20 > javax.servlet.ServletException: java.lang.RuntimeException: Failed to = instantiate class hudson.plugins.performance.PerformancePublisher from = {"parsers":{"glob":"**/*.jtl","kind":"hudson.plugins.performance.JMeterPa= rser$DescriptorImpl"},"modeOfThreshold":"true","errorUnstableThreshold":"= ","errorFailedThreshold":"","errorUnstableResponseTimeThreshold":"","rela= tiveUnstableThresholdNegative":"2","relativeUnstableThresholdPositive":"5= ","relativeFailedThresholdNegative":"2","relativeFailedThresholdPositive"= :"5","compareBuildPrevious":"false","nthBuildNumber":"","comparisonType":= "ART","modePerformancePerTestCase":true,"modeThroughput":false,"stapler-c= lass":"hudson.plugins.performance.PerformancePublisher","$class":"hudson.= plugins.performance.PerformancePublisher"} > at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) > at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) > at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249) > at = org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java= :53) > at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) > at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) > at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) > at org.kohsuke.stapler.Stapler.service(Stapler.java:238) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) > at = org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686) > at = org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHand= ler.java:1494) > at = hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:123) > at = hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114) > at = org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHand= ler.java:1482) > at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) > at = org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHand= ler.java:1482) > at = hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java= :84) > at = hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:7= 6) > at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171) > at = org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHand= ler.java:1482) > at = org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFil= ter.java:49) > at = org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHand= ler.java:1482) > at = hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java= :81) > at = org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHand= ler.java:1482) > at = org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadN= ameFilter.java:30) > at = org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHand= ler.java:1474) > at = org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499= ) > at = org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:= 137) > at = org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:53= 3) > at = org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.j= ava:231) > at = org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.j= ava:1086) > at = org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)= > at = org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.ja= va:193) > at = org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.ja= va:1020) > at = org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:= 135) > at = org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.jav= a:116) > at org.eclipse.jetty.server.Server.handle(Server.java:370) > at = org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHtt= pConnection.java:489) > at = org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConne= ction.java:960) > at = org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(Ab= stractHttpConnection.java:1021) > at = org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) > at = org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) > at = org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.j= ava:82) > at = org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoi= nt.java:668) > at = org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoin= t.java:52) > at = winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) > at = java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java= :1146) > at = java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav= a:615) > at java.lang.Thread.run(Thread.java:701) > Caused by: java.lang.RuntimeException: Failed to instantiate class = hudson.plugins.performance.PerformancePublisher from = {"parsers":{"glob":"**/*.jtl","kind":"hudson.plugins.performance.JMeterPa= rser$DescriptorImpl"},"modeOfThreshold":"true","errorUnstableThreshold":"= ","errorFailedThreshold":"","errorUnstableResponseTimeThreshold":"","rela= tiveUnstableThresholdNegative":"2","relativeUnstableThresholdPositive":"5= ","relativeFailedThresholdNegative":"2","relativeFailedThresholdPositive"= :"5","compareBuildPrevious":"false","nthBuildNumber":"","comparisonType":= "ART","modePerformancePerTestCase":true,"modeThroughput":false,"stapler-c= lass":"hudson.plugins.performance.PerformancePublisher","$class":"hudson.= plugins.performance.PerformancePublisher"} > at hudson.model.Descriptor.newInstance(Descriptor.java:579) > at = hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:929) > at = hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:903) > at = hudson.util.DescribableList.rebuildHetero(DescribableList.java:208) > at hudson.model.Project.submit(Project.java:236) > at hudson.model.Job.doConfigSubmit(Job.java:1206) > at = hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:788) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :57) > at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:622) > at = org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) > at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) > at = org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:= 96) > at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121) > at = org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java= :53) > at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) > anybody bump into this problem? > =20 > Do you what to do ? I am going nuts since there is no way for me to = set it up=E2=80=A6 any help would be appreciated! > =20 > Thanks!=20 > =20 > Erez Naim | QA Lead | = = = =20 >=20 >=20 >=20 > EL AL 2 Street | Herzliya > mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura > =20 > website | blog=20 > | twitter=20 > | map=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org For additional commands, e-mail: user-help@jmeter.apache.org