Forum Discussion

Kathryn_O_Malle's avatar
Kathryn_O_Malle
Contributor
15 years ago

"Run Once" in soapUI Runner fails to execute SoapUI testcase

Hi there,

I've now started trying to use loadUI and I've been trying to integrate it with my existing SoapUI project. I add a soapUI runner to a new loadUI project and select the required SoapUI test case. Yet when I use "Run Once" it completes with 1 failure listed. When I run the same testcase in SoapUI directly it runs without any hassle.

Steps to re-create:
1) I've created a new project in loadUI and added a soapUI runner to it.
2) I use Browse to navigate to the required soapUI project
3) I select the desired testsuite and testcase via the dropdowns
4) I've added a Table Log to the Results output of the soapUI runner
5) I've added a Table Log to the Errors output of the soapUI runner
6) I select "Run Once" on the soapUI runner
7) The Completed and Failed counts on the soapUI Runner both increase by 1
8) I've captured the output at this point from the background DOS window of loadUI and attached it to this posting
9) The Results and Errors Table Logs remain blank

I suspect I've done some newbie loadUI / SoapUI integration mistake and hope this is easy / quick to solve.

Many thanks in advance for the help...

Kind regards
Adam

NB:
a) On the loadUI homescreen, I've previously selected Workspace -> Settings -> SoapUI and selected the batch file we use to launch SoapUI

Tool Info:
loadUI 1.0.1
SoapUI 3.6.1

16 Replies

  • Hi Ole,

    Did you mean me personally when you were asking for an upload of a full script to show the problem?
    Just checking as I uploaded recently in this discussion a full SoapUI project, LoadUI project, access database, error log... With that one I encountered the same glitch even when all the SoapUI script was doing was connecting to the database and logging a single value via a loginfo command.

    Kind regards
    Adam
  • And additionally I'm using the 1.0.1 release not the nightly build...

    Again thanks...

    Kind regards
    Adam
  • Hello,

    It is likely that this is related to one of the issues which has been fixed in the nightly build version of loadUI, please try downloading it from here. Make sure to either uninstall the old version first, or to install the new version into a different directory (do not "overwrite" the old version with the new one, it may cause problems). If you are still getting an error with the newest version, please attach an updated error log.

    Regards,
    Dain
    eviware.com
  • Hi,
    After a break I'm able to update on what I've been able to achieve with this one. I've also attached a set of support files with error logs, etc to help out. I've determined the following points in trying to get LoadUI to run my SoapUI project.
      1) The SoapUI testcase is happy to run in standalone mode without any modifications
      2) When I try and use LoadUI to execute the SoapUI testcase using a nightly build version of LoadUI I still encounter an error (please see error log "24Jan2011_LoadUI_Error_Log PRE ext folder creation")
      3) When I add an "ext" folder directly beneath the LoadUI home directory and place into it the rt.jar file I get a different error (please see error log "16Feb2011_LoadUI_Error_Log JDBC connection NOT registered")
      4) Only when I also add in an additional line of code to my SoapUI testcase to register the ODBC connection will the test case run successfully


    // ** Extra line of code here...
    com.eviware.soapui.support.GroovyUtils.registerJdbcDriver("sun.jdbc.odbc.JdbcOdbcDriver")


    From the above I think i have found the following integration issues (with the described workarounds):
      a) The "/ext" folder is not automatically created during the LoadUI installation procedure
      b) Any jar files required by the tools must be placed into the "ext" folder in (a)
      c) As per the attached start up batch files, it does not appear that any supplied class path definitions are used right now (as the batch files used to start both LoadUI and SoapUI contain classpath definitions)
      d) Each time an ODBC connection is used in a SoapUI groovy script step there must be an associated ODBC registration line of code (not required when running the SoapUI testcase in standalone mode)

    Am I right in thinking that the above are "features" of the current LoadUI version? If yes do I need to cross-post them to the LoadUI bug forum for you?

    Kind regards
    Adam Hall
  • Hi!

    thanks for your fantastic efforts!

    Regarding these issues:

    1) True, this will need to be fixed in our installer
    2) This is true for jar files required by soapUI tests only
    3) We'll have to look into this
    4) Yes, due to how JDBC drivers are handled internally in Java there is unfortunately no easier way to get them working in loadUI also

    I'll add issues 1-3 to our backlog.

    regards!

    /Ole
    eviware.com
  • Regarding the Hermes problem; Hermes (and thus JMS support) does unfortunately currently not work in loadUI, we hope to have that resolved in a future release.

    kind regards,

    /Ole
    eviware.com


    Any idea when we can look forward to the JMS support? Anything in the nightlies?