I’m working with BPT keyword tests using custom defined keywords stored in a vbScript library, accessible through an Application Area. Some of the keywords are intended to be used as Operations asking for no input parameters, and I need to store their output into a component parameter.
However, it seems that I can’t set output parameters on custom keywords that take no input parameters. UFT prompts me to choose a component or local parameter, but once it’s selected, the Output column clears itself. This happens every time, even after restarting UFT or deleting and re-adding the keywords.
I’ve found a workaround that involves temporarily adding an input parameter in the function definition, setting the output parameter I want, and removing the input parameter from the function library; as long as there is at least one input parameter for a keyword, the output parameter can be set normally. Once the output parameter is set, it stays that way after the keyword definition is reverted to having no input parameters. I believe this is a bug in UFT, and it’s still very inconvenient to add these keywords and map output parameters.
Marked as spam
Question ID: 106663