1. Home
  2. Docs
  3. OpKey Help
  4. 5. Working with Business Components
  5. 5.8 Parameterizing the Business Component Using Data Input Arguments

5.8 Parameterizing the Business Component Using Data Input Arguments

You can provide data to Business Component by using Data Input Arguments. All you need to do is – 

Go to the Modify Business Component window and  Select the Test Step for which you wish to provide data Value. Click on the Data Input Argument icon.

You can provide value by either of the following: Static, Data Input, Data Output, Global Variable.

Static

To pass the static value-Go to the Provide Data Cell, enter the value(s) in the text box and click Save.

 

The static value will be displayed.

 

Data Input

If you wish to provide the Data through Data Input then select the Data Input radio button. The list of all Data Input Parameters will get displayed along with their Data Type and Description. Just click on the specific  Data Input you wish to provide as Data. The selected Data Input will get passes as the Value.

 

Data Output

 You can store the output of a Test Step as Output variable and then use it as input for the other Test Step. To do so, Select the desired Test Step.

 

 

 

 

To use the output of one Test Step as an input/reference in another Test Step, select the Data Output radio button. It will get auto -populated with the list of all Data Output Parameters along with the Output Variable Name and Description.

Just click on the specific  Data Output you wish to provide as Data.

The selected output variable will act as reference Data Input arguments for that particular Test Step.

Exception

The Test Step using keywords (like CustomizeObject) returns an object as output. The output of such Test Step can be used as reference ObjectInputArgument for another Test Step. [ As described above]

Global Variables

The Global Variables radio button allows the user to add Global variable value as Data Input Argument.

To pass the Global Variables value- Select the Global Variables radio button, it will get auto-populated with all the System Defined and User Defined existing Global Variables along with their Data Type and Value.

Click the appropriate Global Variable. The Global Variable will get added as the Data Input Argument.
  • Thus a Test Step will be added to the Business Component.
  • Similarly, you can add another Test Step as per the requirement.
  • Press Run Now to execute the Business Component.
Print Friendly, PDF & Email
Was this article helpful to you? Yes No