Create an Optional Verify Action for Click or Input Actions

Functionize ML searches for any element that is remotely reasonable to the element being searched for in an effort to reduce maintenance. If an action is assigned as an Optional Action it happens every execution even if the element is not displayed on the screen.  

 

Use Case for Creating an Optional Verify Action for Click/Input Actions

When the element the user wants to select is not displayed on the page and that step is set as an Optional Action for a Click action, the test case fails every time. To facilitate an Optional Click or Input action, a Verify action must be added.

It is important to add a Verify action that takes place before the Click/Input action to ensure the element(s) for the Verify (optional) step are visible. 

 

Add a Verify Action

Add a Verify action, that takes place before the Click action, and mark it as an Optional Action. This is where human intelligence marries itself with our AI/ML. By doing this, when the Optional Action takes place successfully, the user can create dependent Decision Actions which only execute if that Verify Action (marked as Optional) was successful. 

In the example below, after the test case has been architected, the user has added step 2. Verify text 'Fax' with a 2.1 Verify action, marked as Optional. This has been added before step 3. Enter fax no. in the field with the 3.1 Click action.   mceclip0.png

Notice the dependent Decision action at step 3.1 - "Execute only if Step 2.1 is successful". This step will only execute if the previous Verify action was successful. 

 

To Make the Verify Step an Optional Action

Once the Verify step has been created, click the Optional Action checkbox for that step. Making the step optional is crucial for then creating decision actions.
mceclip1.png

 

To Create the Decision Action

  1. Select a step that should only execute if the previous Verify step was successful.
  2. Click on Action Log.
    mceclip2.png
  3. Under the Standard Attributes tab, scroll down to Decision Action field. 
  4. Select the Decision Action that allows the decision from the dropdown menu. 
    NOTE: Only the steps marked as Optional will be available for selection.
    mceclip3.png
  5. Then determine the Decision Result Use as True/False.  Example: Select True to create a Decision Action where "Step 3.1 will only execute, if the optional step (2.1) executes successfully."
    mceclip4.png
  6. Click Save