Module Level Pre-Post Condition
Module level pre-post conditions
Navigation for Pre-Post Conditions screen:
Home icon > Test Development > <Module name> > Settings > Pre-Post Condition
Pre–Conditions for Module level:
Adding Pre-Condition
- Click on the “+ PreCondition” button.
- Upon clicking on the “+ PreCondition” button, you will be prompted to the text field of the “Step Group” column.
- When clicked on any particular “Step group” in the table, a “Step Group Input Parameter” div is displayed which is explained below.
Step Group Input Parameter div for Module level:
- When you select the particular step group from the “Step Group” column, a div is displayed in the right section, and the header of the div will be displayed as “Step Group input parameter”.
- Below the “Step Group name”, the “Status” toggle bar, and the “Cascade” checkbox are displayed.
- On clicking the “Go To Step Group” hyperlink, it will redirect you to “Repository > Step Group > <<Library Name>> > <<Step Group Name>> > Steps”.
- If the particular step accepts some “parameters” in the step group, the “Input parameter” field is displayed below the “Status” toggle bar.
- If the particular step is returning some value, the “Assign Step Group return value to” field is displayed below the “Cascade” checkbox.
- Below the “Input parameter field”, all the steps present in that step group are displayed in a serial order if clicked on the expandable-collapse icon. By default, it is in a collapsed state.
NOTE 1: The “Input parameter field” is dynamic. There might be only one, or more than one or there may be no “Input parameter fields” in the particular “Step Group input parameters div”.
NOTE 2: The “Assign Step Group return value to field” is also dynamic. If the user has selected the return step field in the “Repository > Step Group > Library > Step Group > Steps”, the “Assign Step Group return value to” field will be displayed in the “Step Group input parameters” div in the test development section.
NOTE 3: If you hover the mouse on the “+” icon in the “Input parameter” field, it will display as a “Create as variable” tooltip at the module level.
NOTE 4: If you click on the “Create as variable” icon, a popup will be displayed with a popup header as “Create variable” and fields will be displayed like “Name”, “Value”, and ”Type” (Global or Project environment) text field with “Create” and “Cancel” buttons in the bottom right corner of the popup, in the footer.
NOTE 5: If the user enters the “$” character in the “Input parameter” field, the dropdown will suggest the context menu, and the options of the context menu will be the “Global” variable and “Project environment” variables that are created.
- The “If failed” dropdown in the “Step Group input parameters” popup is a mandatory field. Here, four options are displayed in the list. The user can select one of the options. The options are:A. Mark this step as Failed and continue Module execution: Here, if the step is failed, it will go to the next step and the module will be executed until the end. (This option is selected by default).
B. Mark this step as a Warning and continue Module execution: Here, if the step is failed, it will mark this step as a warning and will go to the next step and the module will be executed until the end.
C. Mark this step as Failed and stop current module execution: Here, if the step is failed, it will stop at that failed step, and the module will not be executed until the end.
D. Mark this step as Failed and stop complete execution: Here, if the step is failed, it will stop the complete execution process.
- The “Status” toggle bar is present in the “Step Group Input Parameter” popup. Here, you can change the toggle bar to either “Enabled” or “Disabled”.i. Enabled: If enabled, then on the “Module tree” page, you can see this particular step group under the “Precondition” section on the “Module tree” page and it will be considered for execution. (By default, it will be “Enabled”)
ii. Disabled: If disabled, then in the “Module tree” page, this particular step group is not displayed under the “Precondition” section on the “Module tree” page and it will not be considered for execution.
- The “Cascade” checkbox is present in the “Step Group Input Parameter” popup. There are two scenarios for the “Cascade” checkbox:i. When you check the “Cascade” checkbox of the step group, it will display as “Cascaded” in the “Cascade” column in the “Pre-Conditions” table. Its function is that it will be added as a pre-condition for all the scripts in that particular module level and all the scripts at the sub-module level, while execution.
Note 1: In the tree structure, on clicking on the expand pre/post icon, the step group with cascaded will be displayed as “- Cascaded” beside that step group under the “Pre-Conditions” label.
Note 2: In script-level pre-conditions, under the “Settings” tab, the conditions which are cascaded from the particular module will be displayed as “- Cascaded from <<module name>>” beside the step group.
Note 3: In script-level pre-conditions, under the “Settings” tab, the conditions which are cascaded from a particular module, are:
a. The edit icon will be disabled.
b.The drag and drop action cannot be performed for the cascaded conditions (i.e, the drag and drop icon is not present).
c. The user can drag and drop the cascaded conditions only under the particular module-level pre-conditions “Settings” tab, further which will be reflecting the same under the “Script level pre-conditions” tab.
Note 4: Inside the “Steps” screen, under the “Preconditions” section, the conditions which are cascaded from the particular module, will be displayed as “- Cascaded from <<module name>>” beside the step group.
ii. When you uncheck the “Cascade” checkbox of the step group, it will display as “Not Cascaded” in the “Cascade” column in the “Pre-Conditions” table. Its function is that it cannot be added as a pre-condition for all the scripts in that particular module level or all the scripts at the sub-module level, while execution. (By default, “Not Cascaded” is selected)
a. Add: When clicked on the “Add” button, the selected Step Group is added as a precondition in the table of Pre Conditions.
b. Cancel: When clicked on the “Cancel” button, it will cancel the operation and close the div.
- The “Cascade” checkbox is present in the “Step Group Input Parameter” popup. There are two scenarios for the “Cascade” checkbox:i. When you check the “Cascade” checkbox of the step group, it will display as “Cascaded” in the “Cascade” column in the “Pre-Conditions” table. Its function is that it will be added as a pre-condition for all the scripts in that particular module level and all the scripts at the sub-module level, while execution.
Columns present under the Pre-Conditions Module level table:
- Step Group: Step Group: This column displays the name of the step group selected in the searchable dropdown list of the Step group text field.
- If Failed: This column displays the “If failed” option as selected under the “If failed” dropdown in the “Step Group Input Parameter” popup, as static text in the table.
- Cascade: This column displays the “Cascaded” or “Not Cascaded” as selected in the “Step Group Input Parameter” popup, as static text in the table.
- Status: This column displays the “Enabled” or “Disabled” as selected in the “Step Group Input Parameter” popup, as static text in the table.
- Actions: This column has two icons and the icons are displayed only when you hover the mouse on the particular step group. The icons are detailed below:
- Edit: Upon clicking on the “Edit” icon, it opens a dropdown of the step groups, upon selecting one of the step groups, a div “<Step Group Input Parameters>” is opened. Here you can update the changes in the div.
- Delete: Upon clicking on “Delete”, it will delete the precondition from the table. It will display a “Success” banner with the message “<<Pre Condition name>> is deleted” below the tabs section with the “Dismiss” button on the right side of the banner. When clicked on the “Dismiss” button the banner is closed.
Post–Conditions for Module level:
Adding Post-Condition
- Click on the “+ Post Condition” button.
- When clicking on the “+ Post Condition” button, you will be prompted to the text field of the “Step Group” column.
- When clicked on any particular “Step group” in the table, a “Step Group Input Parameter” div will be displayed which is explained below. (Refer: Step Group Input Parameter div for Module level)
Step Group Input Parameter div for Module level:
- When you select a particular step group from the “Step Group” column a div is displayed in the right section, and the header of the div will be displayed as “Step Group input parameter”.
- Below the “Step Group name”, the “Status” toggle bar, and the “Cascade” checkbox are displayed.
- On clicking the “Go To Step Group” hyperlink, it redirects the user to “Repository > Step Group > <<Library Name>> > <<Step Group>> > Steps”.
- If the particular step accepts some “parameters”, the “Input parameter” field will be displayed below the “Status” toggle bar.
- If the particular step is returning some value, the “Assign Step Group return value to” field will be displayed below the “Cascade” checkbox.
- Below the “Input parameter” field, all the steps present in that step group are displayed in serial order when clicked on the expandable-collapse icon. By default, it is in a collapsed state.NOTE 1: The “Input parameter” field is dynamic. There might be only one, or more than one or there may be no “Input parameter” fields in the particular “Step Group input parameters” div.
NOTE 2: The “Assign Step Group return value to” field is also dynamic. If the user has selected the return step field in the “Repository > Step Group > Library > Step Group > Steps”, the “Assign Step Group return value to” field will be displayed in the “Step Group input parameters” div in the test development section.
NOTE 3: If you hover the mouse on the “+” icon in the “Input parameter” field, it will display as a “Create as variable” tooltip at the module level.
NOTE 4: If you click on the “Create as variable” icon, a popup will be displayed with a popup header as “Create variable” and fields will be displayed like “Name”, “Value”, “Type” (Global or Project environment) text field with “Create” and “Cancel” buttons in the bottom right corner of the popup, in the footer.
NOTE 5: If the user enters the “$” character in the “Input parameter” field, the dropdown will suggest the context menu, and the options of the context menu will be the “Global” variable and “Project environment” variables that are created.
- The “If failed” dropdown in the “Step Group input parameters” popup is a mandatory field. Here, three options are displayed in the list. The user can select one of the options. The options are:A. Mark this step as Failed and continue Module execution: Here, if the step is failed, it will go to the next step and the module will be executed until the end. (This option is selected by default).
B. Mark this step as a Warning and continue Module execution: Here, if the step is failed, it will mark this step as a warning and will go to the next step and the module will be executed until the end.
C. Mark this step as Failed and stop current module execution: Here, if the step is failed, it will stop at that failed step, and the module will not be executed until the end.
D. Mark this step as Failed and stop complete execution: Here, if the step is failed, it will stop the complete execution process.
- The “Status” toggle bar is present in the “Step Group Input Parameter” popup. Here, you can change the toggle bar to either “Enabled” or “Disabled”.i. Enabled: If enabled, then in the “Module tree” page, you can see this particular step group under the “Post-condition” section on the “Module tree” page and it will be considered for execution. (By default, it will be “Enabled”).
ii. Disabled: If disabled, then in the “Module tree” page, this particular step group is not displayed under the “Post-condition” section on the “Module tree” page and it will not be considered for execution.
- The “Cascade” checkbox is present in the “Step Group Input Parameter” popup. There are two scenarios for the “Cascade” checkbox:a. When you check the “Cascade” checkbox of the step group, it will display as “Cascaded” in the “Cascade” column in the “Post-Conditions” table. Its function is that it will be added as a post-condition for all the scripts in that particular module level and all the scripts at the sub-module level, while execution.
Note 1: In the tree structure, on clicking on the expand pre/post icon, the step group with cascaded will be displayed as “- Cascaded” beside that step group under the “Post-Conditions” label.
Note 2: In script-level pre-conditions, under the “Settings” tab, the conditions which are cascaded from the particular module will be displayed as “- Cascaded from <<module name>>” beside the step group.
Note 3:In script-level post conditions, under the “Settings” tab, the conditions which are cascaded from a particular module, are:
a. The “edit” icon will be disabled.
b. The drag and drop action cannot be performed for the cascaded conditions (i.e, the drag and drop icon is not present).
c. The user can drag and drop the cascaded conditions only under the particular module-level postconditions “Settings” tab, further which will be reflecting the same under the “Script level postconditions” tab.
Note 4: Inside the “Steps” screen, under the “Post conditions” section, the conditions which are cascaded from the particular module, will be displayed as “- Cascaded from <<module name>>” beside the step group.
b. When you uncheck the “Cascade” checkbox of the step group, it will display as “Not Cascaded” in the “Cascade” column in the “Post Conditions” table. Its function is that it cannot be added as a post-condition for all the scripts in that particular module level or all the scripts at the sub-module level, while execution. (By default, “Not Cascaded” is selected)
i. Add: When clicked on the “Add” button, the selected Step Group is added as a post-condition in the table of post-conditions.
ii. Cancel: When clicked on the “Cancel” button, it will cancel the operation and close the div.
Columns present under the Post-Conditions table for Module level:
- Step Group: This column displays the name of the step group selected in the searchable dropdown list of the Step group text field.
- If Failed: This column displays the “If failed” option as selected under the “If failed” dropdown in the “Step Group Input Parameter” popup, as static text in the table.
- Cascade: This column displays the “Cascaded” or “Not Cascaded” as selected in the “Step Group Input Parameter” popup, as static text in the table.
- Status: This column displays the “Enabled” or “Disabled” as selected in the “Step Group Input Parameter” popup, as static text in the table.
- Actions: Under this column, there are two icons and the icons are displayed only when hovered by the mouse on the particular step group. The icons are detailed below:a. Edit: Upon clicking on the “Edit” icon, it opens a dropdown of the step groups, upon selecting one of the step groups, a div “<Step Group Input Parameters>” is opened. Here you can update the changes in the div.
b. Delete: When clicked on “Delete”, it will delete the postcondition from the table. And it will display a “Success” banner with the message “<<Post Condition name>> is deleted” below the tabs section with the “Dismiss” button on the right side of the banner. When clicked on the “Dismiss” button the banner is closed.