kvedula
16 years agoOccasional Contributor
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
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