Hello,
perhaps this behavior is wanted but I would prefer to get a warning sign in the report when the data source is valid but is empty. I accidentally cleared a data table which contained data values and didn't noticed it because the warning in the report was only visible when showing the details of the recording.
I would have found this issue faster if it was marked as a warning.
Regards,
Thomas
Report: Warning-sign/color missing if data source empty
Report: Warning-sign/color missing if data source empty
You do not have the required permissions to view the files attached to this post.
Re: Report: Warning-sign/color missing if data source empty
This is by design. Ranorex assumes that if there are no rows returned, then the test case should not be run. This allows for dynamic testing, especially through database connectors where the queries can be changed at runtime.
I would object to having a warning placed there because I use this feature and actually have instances where my data connector returns no rows, on purpose, depending on what the parent test case needs. I do not want to see warnings for this because it would clutter up my results.
If you aren't using a code versioning system like Git or SVN, I would highly recommend it. This would be one tool that would help you notice and recover from a user-error like this (I've done the same thing, so I'm not pointing fingers at you! ).
I would object to having a warning placed there because I use this feature and actually have instances where my data connector returns no rows, on purpose, depending on what the parent test case needs. I do not want to see warnings for this because it would clutter up my results.
If you aren't using a code versioning system like Git or SVN, I would highly recommend it. This would be one tool that would help you notice and recover from a user-error like this (I've done the same thing, so I'm not pointing fingers at you! ).
Shortcuts usually aren't...
Re: Report: Warning-sign/color missing if data source empty
Hmm,
my suggestion doesn't seem to be a suitable solution for all test cases.
Our Data Sources always have at least one recordset but I understand: yours can be empty. Difficult to find a solution both usages will satisfy.
By the way: we use Subversion but this didn't prevented me to clear the datatable - even if it was unwanted.
I assume I have to take a closer look on the reports!
Regards,
Thomas.
my suggestion doesn't seem to be a suitable solution for all test cases.
Our Data Sources always have at least one recordset but I understand: yours can be empty. Difficult to find a solution both usages will satisfy.
By the way: we use Subversion but this didn't prevented me to clear the datatable - even if it was unwanted.
I assume I have to take a closer look on the reports!
Regards,
Thomas.
Re: Report: Warning-sign/color missing if data source empty
Yeah, there are always multiple ways that people will use tools. I wouldn't mind an optional setting to tell Ranorex what to do on an empty set, maybe that is the best way to do it?
Something like this:
ON EMPTY DATASET:
Having said that, they are planning a pretty massive rework on data connectors shortly, according to their roadmap. So, this discussion may be a moot point.
EDIT: The above list would need to be set for each data connector, so there might be more work that needs to be done to make it functional that would preclude it being a realistic possibility.
Something like this:
ON EMPTY DATASET:
- Do not run testcase
Run testcase once
Report warning
Throw error
Having said that, they are planning a pretty massive rework on data connectors shortly, according to their roadmap. So, this discussion may be a moot point.
EDIT: The above list would need to be set for each data connector, so there might be more work that needs to be done to make it functional that would preclude it being a realistic possibility.
Shortcuts usually aren't...
Re: Report: Warning-sign/color missing if data source empty
What would the C# code look like to check if the data set is empty?
I can't find it.
I can't find it.
Re: Report: Warning-sign/color missing if data source empty
Ranorex does all the work on this for you, in the background, so there's no code needed unless you are re-implementing what Ranorex already does (which I would suggest is not a good idea).
Can you please explain in more detail exactly what you are looking for and how you intend to use it?
Can you please explain in more detail exactly what you are looking for and how you intend to use it?
Shortcuts usually aren't...