Trying to run a subtest returns me this error that I dont understand:
Requested to set the value of sub-test output parameter "variableFee"to test parameter “variableFee”, but “variableFee” is never set!
This are the current details in the main script:
The parameters as defined in the main script:
Steps in my sub testscript:
One of the related step:
The parameters in the sub testscript
While the steps is part of an larger script, what this particular sub testscript is doing is essentially clicking on a checkbox, which enables a textbox (it is initially disabled), then a value is inputted in.
Firstly, I get the current value of the checkbox; determining whether it’s already checked(true) or not(null). This is outputted to variableFee
In my datasource, a field(setVariableFee) is determined whether the checkbox gets clicked, passing in “y” or “n” . Because checkboxes, as far as I know, only understand the values of “true” and “null”/blank, I add 2 more steps to convert the data parsed in from the data source and reset it to “true” and “blank”.
Basically, in coding terms:
if (setVariableFee==“y”) setVariableFee = “true”
else if(setVariableFee==“n”) setVariableFee = “”
I then compare setVariableFee vs variableFee and, depending on the output, will either click or not click the checkbox.
After that, I shall insert the value (variableFeeAmount) into the enabled textbox.
None of the 3 params are used in the main script.
Running this script from the main test returns the error. Running in from within the script works as expected.