Completed
Last Updated: 11 Mar 2019 14:24 by Daniel
Jeffrey
Created on: 28 Nov 2017 18:39
Type: Feature Request
1
add 'log failure' to test step properties to allow users to turn on/off error logging for each individual test step
Very often automated testing requires conditional statements that look for the property of a specific element to equal a certain value - and if it does perform an action, if not continue on with the test.  The issue we are having using If Then Else is that a failure is reported when the condition isn't met thereby failing the entire test.

Example - Some users of our system have a setting that toggles the Save Confirmation popup as on/off depending on the user.  For some users this confirmation popup appears, for others it doesn't.  I've added an If Then Else conditional statement that waits for the OK button in the confirmation popup window to Exist.  If it does it clicks the 'OK' button.  If not it continues on with the test.  

The issue is that if the 'OK' button does not exist the If Then Else logs it as a failed step when it really isn't - it's a branch in my test that decides on what actions to take based on a property value of a specific element.  This is a VERY common scenario in software testing.  

My enhancement request is to add a 'Log Failure' check box to the Test Step Properties.  The default value would be checked (log failure if step fails).  But this would also allow the user to un-check so even if the step fails it will not log it as a failed step (similar to continue on failure).  The would be a very powerful enhancement that would help to reduce the number of unique test cases we need to design and would make our automation approach for many of our test cases much simpler.
1 comment
Daniel
Posted on: 11 Mar 2019 14:24
The expected behavior is implemented within the If...Else statement in our latest releases: if element exists it goes to If branch, else goes to else branch, but in both cases step is passed, as is original user scenario. The behavior was specific only for Wait for Exists steps in Logical condition.