Confirm All Options in Logical Conditions

Question
What should you do when you have automated scripts that contain assertions with many logical conditions?

Answer
Automated tests should not contain logic in them or many assertions, for that matter. But, if a test requires logic, be sure to check all conditions.

Comments
Consider using parentheses with logical expressions. It helps with code comprehension.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s