简体   繁体   中英

ConversionException in running a Jmeter jmx file with Ultimate thread group in Intellij maven

Facing the below issue in running Ultimate thread group jmx in intellij maven (please note, for normal thread group jmx file, there is no issue. And in pom file also the required dependencies are added, which i believe is the ctg(custom thread group) one) . I am getting this error for that jmx execution alone -

missing class Conversion Exception: required-type-ListedHashTree converter-type-ScriptWrapperConverter

What needs to be changed now to make it executable in intellij . I am using mvn commands to trigger the jmx

I think you need to add the following dependency to your project classpath:

jmeter-plugins-casutg

Something like:

<dependency>
    <groupId>kg.apc</groupId>
    <artifactId>jmeter-plugins-casutg</artifactId>
    <version>2.10</version>
</dependency>

You may find Five Ways To Launch a JMeter Test without Using the JMeter GUI article and jmeter-from-code repository for some examples.

I had found the solution to this. Apart from adding it to the dependency,

You need to add this also to the jmeter extensions in the pom.xml

                <jmeterExtensions>
                    <artifact>kg.apc:jmeter-plugins-casutg:2.8</artifact>
                </jmeterExtensions>

My script started running after this change in pom.xml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM