c# - What is the assertion method which we should use when you need to check validation for mandatory text boxes in codedUI Automation? -


assume have mandatory text box field, , need apply assertion check whether it's blank when click on "save" button. record scenario in codedui recorder , generate code well. after that, add assertion isnotnul(). didn't work generates report , when @ summary report test data passed wrong.

please me sort out issue. assertion should use , how???

i'm going assume you're doing unit testing of sort, assertions. @jon stated. use assert.arenotequal(yourstring, string.empty);

you use .istrue or .isfalse long organize contents of assertion check whether string empty or not.


Comments