Forum Discussion

TC_ABL's avatar
12 years ago

Keyword test Parameters used as default value for other Parameters or Variables

Is it possible in Test Complete (ver. 8.70.727.7) to use keyword test parameters to create default value for other parameters or Variables.

I have a situation where 2 keyword parameters used earlier as input in the application become a part of the string specifying a checkbox. That means I would like to create a string used as Value in a checkedListView.CheckItem operation.



I have added 2 keyword test parameters A="foo" and B="bar".

I would like to create a new keyword test parameter or variable C="Some text1 $A, some more $B"



Any suggestions are very welcome.


2 Replies

  • Anonymous's avatar
    Anonymous

    Hi Andreas,



    You are offering to create a special variable type that can allow creating a variable not only based on one specified string, but also merging several strings into one in the Variable editor, right? Currently, there is no way to do this in TestComplete. Hmm... Guys, what do you think - will this feature be useful for you?



    As for implementing your task at this moment, Andreas, you can do this from your test by calling the Set Variable Value operation in Code Expression mode.