blob: 2bd696e87d058a3c081fe369991a335fa3ada5c6 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Context-Type: org.eclipse.rcptt.ctx.ecl
Element-Name: ECL_EditProperties
Element-Type: context
Element-Version: 2.0
Id: _editelementproperties
Save-Time: 6/23/16 4:07 PM
Content-Type: text/ecl
Entry-Name: .ecl.context
// This function modify a element's property which use a combo-box.
proc "edit-combo" [val propertyTab] [val propertyLabel] [val propertyValue] [val pathNameElement] [val rootName]{
// Select the element in the Model Explorer.
with [get-view $modelExplorer| get-tree] {
get-item $rootName | click
get-item $pathNameElement | click
// Set the property with the given value.
get-view $properties | get-property-tab $propertyTab | get-view $properties | get-combo -after [get-label $propertyLabel] | select $propertyValue
// Make sure the desired property has been modified.
get-view $properties | get-property-tab $propertyTab | get-view $properties | get-combo -after [get-label $propertyLabel] | get-property selection | equals $propertyValue | verify-true