Forum Discussion

SIERRA_NEVADA_C_1's avatar
SIERRA_NEVADA_C_1
Occasional Contributor
15 years ago

SoapUITestCaseRunner Datasource problem

I have some testcases that use datasources (exel and Oracle). They run fine within SoapUI IDE. When I run them from Java using SoapUITestCaseRunner the test steps using Datasource don't work. They seem to read nothing from the sources. I have googled it. I can only find a few posts out there with no clear answers (http://www.soapui.org/forum/viewtopic.p ... 030&p=7410). Am I missing something. I have to say that I have just started using Java to automated/integrated SoapUI with BPM.

Thanks,

Eric

2 Replies

  • Hi Eric,

    can you show us the complete invocation and output of the command-line runner?

    regards!

    /Ole
    SmartBear Software
  • SIERRA_NEVADA_C_1's avatar
    SIERRA_NEVADA_C_1
    Occasional Contributor
    Ole,

    This code runs fine in SoapUI Pro environment (DataSource is linked to a spreadsheet):

    def title = context.expand( '${DataSource#title}' )
    log.info " title = " + title

    And generates : Tue Nov 01 14:23:39 EDT 2011:INFO:
    title = SOAP Ingest01

    When run it in Java standalone using TestRunner I got

    14:17:11,356 INFO [SoapUITestCaseRunner] running step [DataSource]
    14:17:11,485 INFO [SoapUITestCaseRunner] running step [show]
    14:17:12,050 INFO [log] title =
    14:17:12,050 INFO [SoapUITestCaseRunner] Finished running soapUI testcase [Modify], time taken: 563ms, status: FINISHED
    14:17:12,091 INFO [SoapUITestCaseRunner] TestSuite [SOAP Core Test] finished with status [FINISHED] in 789ms

    You can see the third line has nothing for title variable.

    Thanks,

    Eric