Error in NonGUIDriver

58 views
Skip to first unread message

Agustin De Cesare

unread,
Nov 4, 2021, 10:52:22 AM11/4/21
to jmeter-plugins
I'm trying to run my jmeter test with maven but I get this error with the Directory Listing plugin

This is the full log:

Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'C:\Users\caravena\Desktop\QA_AUTOMATION_NEW\Repositories\Sancor_Portales\qa_can_webservices\jmeter-PerfTest\target\jmeter\testFiles\Template_PortalPOST.jmx'. ###### [INFO] Cause: ###### [INFO] CannotResolveClassException: com.blazemeter.jmeter.DirectoryListingConfig ###### [INFO] ###### [INFO] Detail:com.thoughtworks.xstream.converters.ConversionException: ###### [INFO] ---- Debugging information ---- ###### [INFO] cause-exception : com.thoughtworks.xstream.converters.ConversionException ###### [INFO] cause-message : ###### [INFO] first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:66) ###### [INFO] class : org.apache.jmeter.save.ScriptWrapper ###### [INFO] required-type : org.apache.jmeter.save.ScriptWrapper ###### [INFO] converter-type : org.apache.jmeter.save.ScriptWrapperConverter ###### [INFO] path : /jmeterTestPlan/hashTree/hashTree/hashTree[6]/com.blazemeter.jmeter.DirectoryListingConfig ###### [INFO] line number : 176 ###### [INFO] version : 5.4.1 ###### [INFO] ------------------------------- ###### [INFO] An error occurred: Error in NonGUIDriver Problem loading XML from:'C:\Users\caravena\Desktop\QA_AUTOMATION_NEW\Repositories\Sancor_Portales\qa_can_webservices\jmeter-PerfTest\target\jmeter\testFiles\Template_PortalPOST.jmx'. ###### [INFO] Cause: ###### [INFO] CannotResolveClassException: com.blazemeter.jmeter.DirectoryListingConfig ###### [INFO] ###### [INFO] Detail:com.thoughtworks.xstream.converters.ConversionException: ###### [INFO] ---- Debugging information ---- ###### [INFO] cause-exception : com.thoughtworks.xstream.converters.ConversionException ###### [INFO] cause-message : ###### [INFO] first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:66) ###### [INFO] class : org.apache.jmeter.save.ScriptWrapper ###### [INFO] required-type : org.apache.jmeter.save.ScriptWrapper ###### [INFO] converter-type : org.apache.jmeter.save.ScriptWrapperConverter ###### [INFO] path : /jmeterTestPlan/hashTree/hashTree/hashTree[6]/com.blazemeter.jmeter.DirectoryListingConfig ###### [INFO] line number : 176 ###### [INFO] version : 5.4.1 ###### [INFO] ------------------------------- ###### [INFO] ------------------------------------------------------------------------ ###### [INFO] BUILD FAILURE ###### [INFO] ------------------------------------------------------------------------ ###### [INFO] Total time: 01:54 min ###### [INFO] Finished at: 2021-11-04T11:23:40-03:00 ###### [INFO] ------------------------------------------------------------------------ ###### [ERROR] Failed to execute goal com.lazerycode.jmeter:jmeter-maven-plugin:3.5.0:jmeter (tests) on project jmeter-PerfTest: Test failed with exit code:1 -> [Help 1] ###### [ERROR] ###### [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. ###### [ERROR] Re-run Maven using the -X switch to enable full debug logging. ###### [ERROR] ###### [ERROR] For more information about the errors and possible solutions, please read the following articles: ###### [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException ###### [INFO] Shutdown detected, destroying JMeter process... ###### [INFO]
Exited with error code : 1

How can I solve this?

DT

unread,
Nov 4, 2021, 3:00:23 PM11/4/21
to jmeter-plugins

If your test relies on 3rd-party plugins or libraries you need to explicitly declare them so the JMeter Maven Plugin could resolve and download them

In your case you will need to add the following lines to pom.xml file:

  <configuration>
      <testPlanLibraries>
          <artifact>com.blazemeter:jmeter-plugins-directory-listing:0.3</artifact>
      </testPlanLibraries>
   </configuration>

Reply all
Reply to author
Forward
0 new messages