How to determine whether data exists in datatable or not

Hi Team,

I have a Table on a web application which is currently empty and has headers in it, the table is some times empty and sometimes it filled so I want to create a test case (not a workflow) where if there is data is the table the test case should pass and if the table is empty the test case should fail.

PS. I don’t want a workflow I have to create a test case

1 Like


You can check for row count, if data table is empty

datatable.Rows.Count =0



Have a view on this for creating test cases and publishing it

You can have your validation inside a workflow where read the data and have it in a datatable named dt and check with a if activity dt.Rows.Count > 0

Cheers @Ishan_Shelke1

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.