How to write Test scripts for mandatory validation messages in erpnext 12 version

How to write Test scripts for mandatory validation messages in erpnext 12 version

Hi, what exactly you are trying to achieve? you can use frappe.throw method if your validation condition is not satisfied.
Hope this helps
regards

Hi, I am writing test scripts using Qunit . I have a mandatory field in my doctype that would throw a validation message. Am attempting to capture that validation message.