cancel
Showing results for 
Search instead for 
Did you mean: 

Extension - Using combo in Operation parameter

Occasional Contributor

Extension - Using combo in Operation parameter

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. 

 

7 REPLIES 7
Community Hero

Re: Extension - Using combo in Operation parameter

Have you looked at "Implementing a Combo Editor" here: 

https://support.smartbear.com/testcomplete/docs/working-with/extending/script/creating/keyword-test-...

 

 

 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Occasional Contributor

Re: Extension - Using combo in Operation parameter

Yes the thing here is its multiple parameter with predefined selection, so i guess  it should be a parameter. 

Community Hero

Re: Extension - Using combo in Operation 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.  


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: Extension - Using combo in Operation parameter

Look at this Log Message key word test parameters:

 

 1234.png

 

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?

Community Hero

Re: Extension - Using combo in Operation parameter

Check out this article. https://support.smartbear.com/testcomplete/docs/working-with/extending/script/creating/keyword-test-...

 

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.

 

Also, see

 

https://support.smartbear.com/testcomplete/docs/working-with/extending/script/creating/keyword-test-...

https://support.smartbear.com/testcomplete/docs/working-with/extending/script/creating/using-forms.h...


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Highlighted
Occasional Contributor

Re: Extension - Using combo in Operation parameter

@tristaanogre

 

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. 

 

Regards,

Joey

 

 

Community Hero

Re: Extension - Using combo in Operation parameter

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?


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
New Here?
Join us and watch the welcome video:
Top Kudoed Authors