How to invoke test script with in visual test？
My scenario is as follows:
Test Script:B (It has a input parameter C)
My question is how to use A to invoke B and pass parameter C to B.
Does someone have any idea about it? Thanks in advance
Re: How to invoke test script with in visual test？
Defining Variables to Pass Between a Visual Test and a Test Script
Any variables to be passed to and from a test script must be defined as input and output variables for the test script.
Input variables must also be defined as local variables in a visual test before being used as input variables. See "Creating Local Variables For a Visual Test" for more about how to create local variables for a visual test.
To define variables to pass between the test script and a visual test:
Note: You must know the variable name, type, and value of each variable being passed to and from the test script. To see variables being passed from a visual test, first display those variables where they can be seen while defining them as input variables for the test script. To do this, open the visual test and select the <<Start>> step where the local variable is defined. In the Properties pane for the visual test, expand the Variables property category to see the variable names, their type, and their values. These are the variables that have to be defined as input variables to the test script. Position the Properties pane so these variables are visible while defining input variables using the Define Test script Variables dialog box. You may also click on the Edit icon to display this information.
Open the test script to be used to pass variables between it and a visual test.
Right-click anywhere in the View code window for the test script and click Define Test script Variables. The Define Test script Variables dialog box appears.
Tip: For test scripts that have been included in at least one visual test, a message displays asking you to verify that you want to edit the visual test's variables. Click Yes to continue, or No to return to the test script. From the View code window for the test script, you can open the Includes window to see any visual tests for which the current test script is included. Click View>Includes to open the Includes window, then click the Included by tab to see which visual tests include executing the test script in their steps.
Use the Define Test script Variables dialog box to define the variables to be passed from a visual test to the test script (Input), and to define the variables to be passed from the test script to a visual test (Output).
When variables to be passed to and from the test script have been defined, click OK in the Define Test script Variables dialog box.
TestPartner displays a message indicating that the test script variables (input or output variables) have been modified. Any newly defined variables are not available to the test script until the test script is reloaded. Click Yes to save and reload the test script. Click No only if you want to further edit the test script before saving it.
When saving the test script, TestPartner attempts to update the information for each visual test that includes the test script. A message appears for each visual test asking if it should be updated. Click OK to update the visual test.
Note: The input variables defined for a test script do not appear in the test script itself. Also, output variables do not appear in the test script unless they are actually declared in the test script.
Tips: If any visual test TestPartner attempts to update is currently open by another user, a message appears indicating that the visual test could not be updated. Note the name of each visual test, then click OK to close the message box. Display the visual test and save it before continuing.
Input and output variables can be viewed in the Properties pane for the test script. Press F4 while the test script is open to view the passed input and output variables in the Properties pane. Click the Categorized tab in the Properties pane to view input and output variables by category.
In the test script, you can type me. to see and use any defined variables in IntelliSense, as shown in the following graphic:
Defined variables can also be seen as members of the test script in the Object Browser, as shown in the following graphic:
After the variables being passed to and from a test script have been defined for the test script, you can view them as output properties in the visual test.