Forum Discussion

Entersekt_Suppo's avatar
Entersekt_Suppo
Occasional Contributor
12 years ago

Defect: datasource fails first time

Dear support team,

This defect will ALWAY fail, whenever executed from maven command line.

In order to reproduce this defect in the SoapUI user interface, perform the following:
[list=]
  • create a new clean soapui project from scratch
  • create a datasource (it could be a grid datasource, or a file datasource ... I suspect it would fail for ALL forms of datasource)
  • populate the datasource with data
  • write a groovy test step to output the current value of the datasource
  • loop over the datasource


    You will find that the groovy script will return a value of NULL whenever executed first.
    However, after running the entire test case, the groovy step will execute fine thereafter.
    This behavior becomes troublesome when running from the maven command line.
    A value of NULL will always be returned as the datasource value.

    This is applicable to the latest version of SoapUI PRO. I suspect it would also affect other versions of soapui.

    Warmest regards,
    - michael
    • Hi

      I am unfortunately not able to reproduce this. Could you please provide a sample project where this behavior occurs and also the pom file you use to execute the project from maven?

      Regards
      Joel Jonsson