HOw to put a comboboxin Operation parameter with pre defined value? I'm familiar how to setup a parameter on xml but i dont know how to make it combo with a value, a sample is the Log which have a "Priority" parameters with a predefine selection of value in cmobo.
Have you looked at "Implementing a Combo Editor" here:
Yes the thing here is its multiple parameter with predefined selection, so i guess it should be a parameter.
OnFormShow, use this event handler. When the form shows, populate the drop down values in the combo box. Then, when OK is clicked on the form, take the value from the combo box as selected, and pass it through as the value for the parameter.
Look at this Log Message key word test parameters:
it has multiple parameters with different type editor, more or lesss this is what i need. I can only setup a text box type , what i need is a multiple parameter editor with predefined combo selection. Is this possible in extension?
Specifically... scroll down until you get to
(Optional) Creating the operation’s edit form
Besides in-place editing in the Keyword Test editor, custom operations can use forms to provide visual access to their parameters. This edit form is displayed when the user adds the operation to the test or double-clicks an existing operation in the test. See Creating the Operation Setup Routine and Using Forms in Script Extensions.
Basically, you would replace the default form with your own custom form.
The thing here is like the Log message with multiple parameters i want other parameters to have a drop box option with predefined data and some simply text box. I dont see in documentation where you specify in Columns editor type a parameter type while customizing each of parameter selection like log message had. perhaps i take this as limitation of TC.
No, it's not a limitation of TC. You can create custom form for editing the parameters. when you do so, you can specify to use a combo box. Without creating a custom form using the User Form capabilities of TestComplete, you can't just indicate a combo box. That's why the support for userforms is there in custom keyword operations.
have you tried creating a user form yet?