Using Runtime Variables in Components

In some cases, few elements from the component run’s response may have to be passed as inputs to another component’s request XML. This can be achieved using the “Moving Data Between Components without Using Global Variables” feature. Or another option is to store the output of first component in the global variable by using the FUNCTIONCALL keyword along with the appropriate function in the provided function library.

An example would be the library rSVALIDATELIB and the function getElementValue. This function requires Xpath of the response element whose value is to be stored. It should be specified in the Attribute Values column. The global variable which holds this value in the script is defined in the Output Parameter column. This method of passing data between components allows for a single global variable to be used as input in multiple component's test data, where ever it is applicable.