This project is read-only.

column-types in report tests definable?

Sep 18, 2014 at 1:28 PM
Dear Seddryck,

in a report-test is it possible to set the column data types?

In a report dataset-test I have a result set which has a text in the second column (a parameter dataset), which returns an error:
"The column with an index of 1 is expecting a numeric value but the first row of your result set contains a value 'myText' not recognized as a valid numeric value or a valid interval."

I tried applying the column-type setting, but NUnit returns a schema-error.
              <report source="Server=abc;Database=ReportServer;User Id=mine;Integrated Security=SSPI;"
Do you have an idea how to handle this correctly?

Best regards,
Sep 18, 2014 at 2:14 PM


The definition of the types should be done at the assert level not at the system-under-test level. Could you paste your assert?

Sep 18, 2014 at 5:25 PM
The assert looks like the following and returns a number. Of course, the test doesn't make sense, yet. I was just about to get the sample working and compare against anything already working in another test, by now.
        <query connectionString="@myDwhDB">
                    SELECT COUNT (*) FROM [myDB].[mySchema].[myTable]
Sep 30, 2014 at 7:44 PM
I really think that you should try to specify the column types at the assertion level. Logically, you're sure of the result given by your assert, so it sounds it's better to define at this level the column-types.