Continuing with the Program Flow

Now that the action has been performed, we are ready to check the error code value to determine if we should look for an error condition, such as an error message or other identifiable error condition. We will build a Select Case construct in the same manner as we did for the window/tab selection. We have separated this code off into a script to help keep the Main script procedure small and manageable. Once again, referring back to Chapter 7, we will use a script framework just like the Window_Select, Tab_Select, and Perform_Action.

Code the error processing template script as follows:

 '$Include: "DataDriven.sbh" Declare Function Process_Error(ErrCd) Sub Main Dim Result As Integer Gen_Return_Code=Process_Error(ErrCd) ...

Get Just Enough Software Test Automation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.