Forum Discussion

sharajan's avatar
sharajan
Occasional Contributor
2 years ago

Listener events not getting registed when running through maven

I have a java utility created by implementing the 

TestRunListener,

ProjectRunListener

TestSuiteRunListener

 

The utililty jar when placed in soapui /ext is able to register the events and thereby create the reports when running the test suite.

 

The same utility when running through maven soapui plugin is not registering any events:

 

1) I placed the utility in the <maven project>/ext location

2) created xml file in the <maven project>/listener location

3) Used the soapui maven plugin 5.7 to run the scripts

4) the scripts run, and in the logs I see it registered the listener classes for suite, project and the test step

 

However after the script execution I do not see the report file generated, I tried to add debug lines by flushing to the soapui logs as

well as the system out. nothing printed out proving those methods(beforeRun , afterRun) were not even called

 

Can someone provide some pointers here if the soapui listeners work with soapui maven plugin ?

  • nmrao's avatar
    nmrao
    Champion Level 3

    You did not respond to the earlier question.

    Moreover, marked as solved.

    • sharajan's avatar
      sharajan
      Occasional Contributor
      Was it try with different maven version ?
      That is not working for me . I am thinking that the maven plugin does not work with listeners
  • nmrao's avatar
    nmrao
    Champion Level 3

    If the functionality is critical, then you can install the SoapUI and try executing with testrunner utility or ant build scripts.

    • sharajan's avatar
      sharajan
      Occasional Contributor
      Yes it is , as the runner machines from Jenkins will not have soapui installed
  • nmrao's avatar
    nmrao
    Champion Level 3

    Is there any specific reason for using only Maven plugin other than saving installation?

    • sharajan's avatar
      sharajan
      Occasional Contributor
      This is run from devops and we do not control what the agents have installed as it is a controlled environment