Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JMX Converter issue - java.lang.IllegalArgumentException: Problem loading XML from:'xxx\yyy\zzz\SDPUIPerformanceSuite.jmx'. #230

Closed
Shashy1508 opened this issue Oct 12, 2023 · 2 comments

Comments

@Shashy1508
Copy link

Cause:
CannotResolveClassException: com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig

Detail:com.thoughtworks.xstream.converters.ConversionException:
---- Debugging information ----
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message :
first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:66)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jmeter.save.ScriptWrapper
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[3]/com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig
line number : 98
version : 1.21

I am trying to convert the jmx using the command "java -jar jmdsl.jar jmx2dsl SDPUIPerformanceSuite.jmx"
I have plugins jar downloaded and placed in lib/ext in jmeter , it runs perfectly in jmeter GUI but while trying to convert the JMX to DSL using the above mentioned command get the said error.I understand this is an external plugin and am not able to understand what I need to do so this org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter class can work with jmx2dsl jar .Pls provide necessary guidance in resolving this issue.

@rabelenda
Copy link
Contributor

Hello, thank you for bringing this to attention!

Yes, it seems that you are using Selenium WebDriver plugin in your test plan, and the jmdsl.jar does not include such classes so it doesn't know how to convert them. If you add the required jars to the java command you should be able to convert the test plan (using test element wrappers).

Here we provide a solution for a similar scenario.

This should provide a funcional, but not optimal conversion. If you are interested on a more optimal conversion, maybe you can provide an example of the test plan you are trying to convert and we can discuss ideas on the expected conversion, and how jmx2dsl could convert them.

Regards

@Shashy1508
Copy link
Author

Shashy1508 commented Oct 16, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants