Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 16 2022 01:20

    dependabot[bot] on maven

    (compare)

  • Dec 16 2022 01:20
    dependabot[bot] closed #9
  • Dec 16 2022 01:20

    dependabot[bot] on maven

    (compare)

  • Dec 16 2022 01:20
    dependabot[bot] commented #9
  • Dec 16 2022 01:20
    dependabot[bot] closed #8
  • Dec 16 2022 01:20
    dependabot[bot] labeled #11
  • Dec 16 2022 01:20
    dependabot[bot] commented #8
  • Dec 16 2022 01:20
    dependabot[bot] opened #11
  • Dec 16 2022 01:20
    dependabot[bot] labeled #10
  • Dec 16 2022 01:20

    dependabot[bot] on maven

    Bump spring-beans in /ngrinder-… (compare)

  • Dec 16 2022 01:20
    dependabot[bot] opened #10
  • Dec 16 2022 01:20

    dependabot[bot] on maven

    Bump spring-beans in /ngrinder-… (compare)

  • Mar 31 2022 18:56
    dependabot[bot] labeled #9
  • Mar 31 2022 18:56
    dependabot[bot] opened #9
  • Mar 31 2022 18:56

    dependabot[bot] on maven

    Bump spring-beans in /ngrinder-… (compare)

  • Mar 31 2022 18:55
    dependabot[bot] labeled #8
  • Mar 31 2022 18:55
    dependabot[bot] opened #8
  • Mar 31 2022 18:55

    dependabot[bot] on maven

    Bump spring-beans from 4.1.1.RE… (compare)

  • May 12 2021 00:18
    dependabot[bot] labeled #7
  • May 12 2021 00:18
    dependabot[bot] opened #7
Sendil Sadasivam
@senthilsivam_twitter
i am unable to build ngrinder from the code base using maven pom.xml
seems lack of authorization for my peer machine.. i am trying it from AWS VPC
please guide me to resolve this issue
geunwoo son
@songeunwoo
hi~
Sendil Sadasivam
@senthilsivam_twitter
Thank You.. will do it now..
Sendil Sadasivam
@senthilsivam_twitter
Thanks a lot it worked..
geunwoo son
@songeunwoo
You're welcome.
I hope you have good performance test. ^^
Sendil Sadasivam
@senthilsivam_twitter
yes ngrinder made things much simpler
aizaimenghuangu
@aizaimenghuangu
我说中文有人能听懂吗?
:smile:
JunHo Yoon
@junoyoon
Please use English here
aizaimenghuangu
@aizaimenghuangu
sorry
ngrinder test results need to be optimized
JunHo Yoon
@junoyoon
Could u post this on the issue list? It's better place for new req.
aizaimenghuangu
@aizaimenghuangu
Test result is not intuitive, multiple test results cannot be compared
OK
Sendil
@Senthilsivam41
Hi All, I am unable to run the Groovy Script Sample as i am getting the following error..
2016-08-09 05:16:14,870 INFO starting, will do 10 runs
2016-08-09 05:16:14,870 INFO Start time is 1470719774869 ms since Epoch
2016-08-09 05:16:14,877 ERROR org.junit.runners.model.TestClass.getAnnotatedFieldValues(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List;
java.lang.NoSuchMethodError: org.junit.runners.model.TestClass.getAnnotatedFieldValues(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List;
at net.grinder.scriptengine.groovy.junit.GrinderRunner.withRules(GrinderRunner.java:251) ~[ngrinder-groovy-3.4.jar:na]
at net.grinder.scriptengine.groovy.junit.GrinderRunner.methodBlock(GrinderRunner.java:236) ~[ngrinder-groovy-3.4.jar:na]
at net.grinder.scriptengine.groovy.junit.GrinderRunner.run(GrinderRunner.java:170) ~[ngrinder-groovy-3.4.jar:na]
at net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyWorkerRunnable.run(GroovyScriptEngine.java:147) ~[ngrinder-groovy-3.4.jar:na]
at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:118) ~[grinder-core-3.9.1.jar:na]
Please do the needful
looks like JUnit Version mismatch.. but i am not sure where i can fix this issue..
JunHo Yoon
@junoyoon
Yes
Ngrinder is only compatible with junit 4.8
So see your pom.xml and exclude junit wrong dependency
Sendil
@Senthilsivam41
ok sure.. i will check
Sendil
@Senthilsivam41
Thanks JunHo Yoon... it fixed the issue with Junit compilation error..
For Groovy scripts, where i need to copy the spring-context.xml file.. because it is not picking from lib folder
Sendil
@Senthilsivam41
i figured out this issue.. thanks
geunwoo son
@songeunwoo
have a nice day~^^
JunHo Yoon
@junoyoon
Good
Sendil
@Senthilsivam41
I am facing issue with the groovy script on NGrinder.. after resolving all the issues with my spring-executable-jar.. now it is failing at the groovy script itself

Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at net.grinder.util.weave.j2se6.ASMTransformerFactory.create(ASMTransformerFactory.java:119)
at net.grinder.util.weave.j2se6.DCRWeaver.<init>(DCRWeaver.java:70)
at net.grinder.engine.process.dcr.DCRContextImplementation.<init>(DCRContextImplementation.java:112)
at net.grinder.engine.process.dcr.DCRContextImplementation.create(DCRContextImplementation.java:89)
at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:290)
at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87)
at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:60)

+

nGrinder v3.4

any idea why it is throwing this error .. any import missing in my script ?
JunHo Yoon
@junoyoon
U seems that u e using some library which is compiled with jdk8 and recording it
Sendil
@Senthilsivam41
which library you meant it is my pom.xml file or the environment in which grinder console/agent is running..
JunHo Yoon
@junoyoon
Would u post your script?
Sendil
@Senthilsivam41

import static net.grinder.script.Grinder.grinder
import static org.junit.Assert.
import static org.hamcrest.Matchers.

import net.grinder.plugin.http.HTTPRequest
import net.grinder.plugin.http.HTTPPluginControl
import net.grinder.script.GTest
import net.grinder.script.Grinder
import net.grinder.scriptengine.groovy.junit.GrinderRunner
import net.grinder.scriptengine.groovy.junit.annotation.BeforeProcess
import net.grinder.scriptengine.groovy.junit.annotation.BeforeThread
import static net.grinder.util.GrinderUtils.* // You can use this if you're using nGrinder after 3.2.3
import org.junit.Before
import org.junit.BeforeClass
import org.junit.Test
import org.junit.runner.RunWith

import com.paypal.payment.store.loader.StoreValueGen

/**

  • A simple example using the HTTP plugin that shows the retrieval of a
  • single page via HTTP.
  • This script is automatically generated by ngrinder.
  • @author admin
    */
    @RunWith(GrinderRunner)
    class TestRunner {

    public static GTest test
    public static StoreValueGen svRequest
    public static String result

    @BeforeProcess
    public static void beforeProcess() {

     test = new GTest(1, "sv-lnp")
     grinder.logger.info("before process.");

    }

    @BeforeThread
    public void beforeThread() {

     svRequest = new StoreValueGen()
     test.record(svRequest, "test")
     grinder.statistics.delayReports=true;
     grinder.logger.info("before thread.");

    }

    @Before
    public void before() {

     grinder.logger.info("before thread. init ");

    }

    @Test
    public void test(){

     result = svRequest.invokeStoredValue();
     if (result != null) {
         grinder.logger.warn("Result found .. Successfully generate Stored Value", result); 
     } 

    }
    }

Sendil
@Senthilsivam41
i tried setting up ngrinder console and agent running oracle jvm rather open jdk jvm.. since i am compiling the code in oracle jvm.. even after this change i am getting the same error message
executable jar is built with spring framework.. so i added shade plugin to build this jar.. as the assembly jar plugin is not working as executable..
i mean the maven build
Sendil
@Senthilsivam41
Is there a problem to invoke Spring code from Groovy script ?
米阳
@MeYoung
hI all, when I validate script ,have some error.

2016-09-03 20:16:30,559 INFO The Grinder version 3.9.1
2016-09-03 20:16:30,566 INFO Java(TM) SE Runtime Environment 1.8.0_91-b14: Java HotSpot(TM) 64-Bit Server VM (25.91-b14, mixed mode) on Windows 10 amd64 10.0
2016-09-03 20:16:30,575 INFO time zone is CST (+0800)
2016-09-03 20:16:30,685 INFO worker process 0 of agent number 0
2016-09-03 20:16:30,721 INFO Instrumentation agents: byte code transforming instrumenter for Java; byte code transforming instrumenter for Java
2016-09-03 20:16:31,053 ERROR Script error - Error while initialize test runner
net.grinder.engine.common.EngineException: Error while initialize test runner
at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:71) ~[ngrinder-groovy-3.4.jar:na]
at net.grinder.scriptengine.groovy.GroovyScriptEngineService.createScriptEngine(GroovyScriptEngineService.java:109) ~[ngrinder-groovy-3.4.jar:na]
at net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(ScriptEngineContainer.java:105) ~[grinder-core-3.9.1.jar:na]
at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:330) ~[ngrinder-runtime-3.4.jar:na]
at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87) [grinder-core-3.9.1.jar:na]
at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:60) [grinder-core-3.9.1.jar:na]
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
${NGRINDER_HOME}\script\admin\TestRunner.groovy: 46: unexpected token: & @ line 46, column 23.
test = new GTest(1, "www.baidu.com")
^

1 error

at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:149) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:119) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:131) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:359) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:142) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:108) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:162) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:912) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:574) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:550) ~[groovy-all-2.2.1.jar:2.2.1]
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:527) ~[groovy-all-2.2.1.jar:2.2.1]
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279) ~[groovy-all-2.2.1.jar:2.2.1]
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258) ~[groovy-all-2.2.1.jar:2.2.1]
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:244) ~[groovy-all-2.2.1.jar:2.2.1]
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:185) ~[groovy-all-2.2.1.jar:2.2.1]
at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:62) ~[ngrinder-groovy-3.4.jar:na]
... 5 common frames omitted

2016-09-03 20:16:31,055 ERROR worker-bootstrap: Error running worker process
net.grinder.engine.common.EngineException: Error while initialize test runner
at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:71) ~[ngrinder-groovy-3.4.jar:na]
at net.grinder.scriptengine.groovy.GroovyScriptEngineService.cr

JunHo Yoon
@junoyoon
Hi.
@Senthilsivam41 actually it's the java rather than groovy.
So.. there is not much constraints on running spring lib in ngrinder.
One thing I suspect is.. the use of instrumentation library. Could you post all the dependencies which u used?
@MeYoung please post your script.