Forum Discussion

kvedula's avatar
kvedula
Occasional Contributor
16 years ago

SOAP UI Pro DataSource Current Row Issues

HI,

Can anyone help me with the issue being faced while using Datasource values from the Excel File.

While Performing Data Driven Test, the junit report shows the value of Name property of Test Request, unlike it should be showing the individual test case that are being run through after reading from the excel file.

So for that, we had written groovy scripts to modify the test reuqest name dynamically by reading from the excel file for Test Case ID.

This works fine only the order in which the jnuit is reporting the Test Case ID for the corresponding Test request read from the excel is wrong

For Example :- Below is the Excel file used for Datasource
Test Case ID XML Element1 XML Element2
TC_001 ABCD 1234
TC_002 ABC7 123D
TC_003 1BC7 A23D
TC_004 12C7 AB3D

Following are out observations
1) When we query to know the current row of datasource, it always return as 4
2) The issue faced is with the ordering of Tes Case ID in junit report which is as follows :-
a) The Test Request is sending data for TC_001, but reported as TC_004
b) The Test Request is sending data for TC_002, but reported as TC_001
c) The Test Request is sending data for TC_003, but reported as TC_002
d) The Test Request is sending data for TC_004, but reported as TC_003

Any suggestions is welcomed.

Thanks,
Krishna

3 Replies

  • kvedula's avatar
    kvedula
    Occasional Contributor
    Hi

    Sorry for delay in response

    Please find attached word document that contain the snap shot of screens captured from SOAP UI Pro for the project which was mentioned earlier.

    This attachment contain the groovy scripts and Datasource object along with property i.e. Test Case ID

    Also, for your reference attached the Junit report which is ot showing the Test Case ID in correct sequence.

    Please let us know for any possible solution to the issue earlier mentioned in initial query.

    Thanks,
    Krishna
  • kvedula's avatar
    kvedula
    Occasional Contributor
    In addition to the above issues, the Junit report doesn't capute those Test Request whcih are passed, so we need a solution to include the same in report which is also attached in previous post.

    Thanks
    Krishna