| /////////////////////////////////////////////////////////////////////////////// |
| // // |
| // Copyright (c) 2000-2019 Ericsson Telecom AB // |
| // // |
| // All rights reserved. This program and the accompanying materials // |
| // are made available under the terms of the Eclipse Public License v2.0 // |
| // which accompanies this distribution, and is available at // |
| // https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html // |
| /////////////////////////////////////////////////////////////////////////////// |
| /////////////////////////////////////////////////////////// |
| // Module: EPTF_UIHandler_Test_Definitions |
| // |
| // Purpose: |
| // This module contains tests of EPTF_CLL_UIHandler_CT. |
| // |
| // Module depends on: |
| // TBD |
| // |
| // Current Owner: |
| // Jeno Balasko (ETHBAAT) |
| // |
| // Last Review Date: |
| // 2008-xx-xx |
| // |
| // Detailed Comments: |
| // |
| /////////////////////////////////////////////////////////////// |
| module EPTF_UIHandler_Test_XSD_Definitions |
| { |
| //========================================================================= |
| // Import Part |
| //========================================================================= |
| import from EPTF_CLL_UIHandler_Definitions all; |
| import from EPTF_CLL_UIHandler_WidgetFunctions all; |
| import from ttcn_ericsson_se_protocolModules_xtdp_xtdl all; |
| import from EPTF_UIHandler_Test_Definitions all; |
| |
| //GUI elements |
| |
| const Widgets c_MainTabBox := { |
| tabpages := { |
| disabled := omit, |
| flex := omit, |
| id := c_EPTF_Test_Main_Tabbox_WidgetId, |
| layout := omit, |
| //layout := listcard, |
| //layout := wrap, |
| //layout := scroll, |
| //layout := card, |
| tabpagegroups:={ |
| tabpagegroup_list:={ |
| {tabpage:={ |
| id := c_testTab1Id, |
| label_ := "test tab 1", |
| embeddedwidgets:={ |
| embeddedwidget_list:={} |
| } |
| }}, |
| {tabpage:={ |
| id := c_testTab2Id, |
| label_ := "test tab 2", |
| embeddedwidgets:={ |
| embeddedwidget_list:={} |
| } |
| }} |
| } |
| } |
| } |
| }; |
| |
| const Widgets c_MainHBox := { |
| hbox := { |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_Main_hbox_Textboxes", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := {} |
| } |
| } |
| }; |
| |
| //used? |
| const Widgets c_MainWidgetsTest1 := { |
| hbox := { |
| |
| disabled := omit, |
| flex := 0.0, |
| id := omit, |
| orientation := horizontal, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| disabled := omit, |
| flex := 1.0, |
| id := omit, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| /*{ |
| tabbox := { |
| id := c_EPTF_GUI_Main_Tabbox_WidgetId, |
| flex := omit, |
| disabled := omit, |
| tabs := {}, |
| tabpanels := { |
| } |
| } |
| },*/ |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| hbox := { |
| disabled := false, |
| flex := 1.0, |
| id := "EPTF_Main_hbox_all", |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| // Labels |
| hbox := { |
| disabled := false, |
| flex := 1.0, |
| id := "EPTF_Main_hbox_labels", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| textbox := { |
| disabled := omit, |
| flex := 1.0, |
| id := c_EPTF_runtimeGuiTimeElapsedWidgetId, |
| multiline := false, |
| readonly := true, |
| rows := omit, |
| value_ := "Time elapsed since Test was started: 0.0", |
| widgetType := omit, |
| wrap := omit |
| } |
| // textlabel := { |
| // id := c_EPTF_runtimeGuiTimeElapsedWidgetId, |
| // flex := 1.0, |
| // disabled := false, |
| // style := omit, |
| // textvalue := "Time elapsed since Test was started: 0.0" |
| // } |
| }, |
| { |
| label_ := { |
| disabled := false, |
| flex := 1.0, |
| id := "status", |
| style := omit, |
| value_ := "This text will be replaced runtime." |
| } |
| } |
| } |
| } |
| } |
| }, |
| { |
| // Buttons |
| hbox := { |
| disabled := false, |
| flex := 0.0, |
| id := c_EPTF_GUI_Main_hbox_WidgetId, |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| checked := omit,//BOOLEAN OPTIONAL, |
| //disabled := false, |
| disabled := true, |
| flex := 1.0, |
| id := c_EPTF_runtimeGuiStartTestButtonWidgetId, |
| //image := omit, |
| imageid := omit, |
| label_ := "Start Test", |
| type_ := "checkbox" |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| checked := omit,//BOOLEAN OPTIONAL, |
| //disabled := false, |
| disabled := true, |
| flex := 1.0, |
| id := c_EPTF_runtimeGuiStopTestButtonWidgetId, |
| //image := omit, |
| imageid := omit, //"image_stop" |
| label_ := "Stop Test", |
| type_ := omit |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| checked := omit,//BOOLEAN OPTIONAL, |
| //disabled := false, |
| disabled := false, |
| flex := 1.0, |
| id := c_EPTF_runtimeGuiRunTestButtonWidgetId, |
| //image := omit, |
| imageid := omit, //"image_configure" |
| label_ := "Enable Test", |
| type_ := "checkbox" |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| checked := omit,//BOOLEAN OPTIONAL, |
| //disabled := false, |
| disabled := false, |
| flex := 1.0, |
| id := c_EPTF_runtimeGuiSnapshotButtonWidgetId, |
| //image := omit, |
| imageid := omit, //"image_save" |
| label_ := "Snapshot", |
| type_ := omit //XSD.String OPTIONAL, |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| checked := omit,//BOOLEAN OPTIONAL, |
| //disabled := false, |
| disabled := false, |
| flex := 1.0, |
| id := c_EPTF_runtimeGuiExitButtonWidgetId, |
| //image := omit, |
| imageid := omit, //"image_exit" |
| label_ := "Exit", |
| type_ := omit//XSD.String OPTIONAL, |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| |
| //used?: |
| const Widgets c_MainWidgetsTest := { |
| hbox := { |
| disabled := omit, |
| flex := omit, |
| id := c_EPTF_GUI_Main_hbox_WidgetId, |
| orientation := horizontal, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| hbox := { |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_Main_hbox_labels", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| label_ := { |
| disabled := omit, |
| flex := omit, |
| id := "refreshClock", |
| style := omit, |
| value_ := "Time elapsed since Test was started: 0.0" |
| } |
| }, |
| { |
| label_ := { |
| disabled := omit, |
| flex := omit, |
| id := "status", |
| style := omit, |
| value_ := "This text will be replaced runtime." |
| } |
| } |
| } |
| } |
| } |
| }, |
| { |
| hbox := { |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_Main_hbox_buttons", |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| spacer := { |
| flex := 1.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| checked := omit,//BOOLEAN OPTIONAL, |
| disabled := true, |
| flex := omit, |
| id := c_EPTF_runtimeGuiSnapshotButtonWidgetId, |
| //image := omit, |
| imageid := omit, |
| label_ := "Snapshot", |
| type_ := omit //XSD.String OPTIONAL, |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| checked := omit,//BOOLEAN OPTIONAL, |
| disabled := true, |
| flex := omit, |
| id := c_EPTF_runtimeGuiExitButtonWidgetId, |
| //image := omit, |
| imageid := omit, |
| label_ := "Exit TTCN", |
| type_ := omit //XSD.String OPTIONAL, |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| const Widgets c_MainWidgets_sec := { |
| hbox := { |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_sec_hbox", |
| orientation := horizontal, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_Main_sec_labels", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| label_ := { |
| disabled := omit, |
| flex := omit, |
| id := "refreshClock2", |
| style := omit, |
| value_ := "Time elapsed since Test was started: 0.0 blabla" |
| } |
| }, |
| { |
| label_ := { |
| disabled := omit, |
| flex := omit, |
| id := "status2", |
| style := omit, |
| value_ := "This text will be replaced runtime balacle." |
| } |
| }, |
| /* { |
| tree := { omit, "tree1", 2.0, |
| {{true,3.0,"treecol1","treecol1label",statusLED}, |
| {true, 3.0, "treecol2","treecol2label",statusLED}}, |
| {{{{"treecell1","treecell1label",omit}}}} |
| } |
| }, |
| { |
| chart := {"chart1","1. chart", omit,omit,omit,omit,omit,omit,omit,omit,omit,{ |
| {"trace1","1. trace", 3,omit,omit,omit,omit},{"trace2","2. trace", 4,omit,omit,omit,omit}} } |
| },*/ |
| /* { |
| toolbar := { |
| "toolbar1",omit,omit, |
| { |
| { |
| toolbarbutton := {"toolbarbutton1","toolbarbutttip1",omit,omit} |
| }, |
| { |
| separator := "FOOBARSEP" |
| }, |
| { |
| separator := "BARSEP" |
| } |
| } |
| } |
| }*/ |
| { |
| listbox:={ |
| disabled := false, |
| flex := omit, |
| id := "flistbox", |
| rows := 2, |
| seltype := multiple, |
| listitemgroups := {listitemgroup_list := { |
| {listitem := {"item1", "Item1", false}}, {listitem := {"item2","Item2",false}} |
| }} |
| } |
| }, |
| /* { */ |
| /* numericalwidget := { */ |
| /* "fnumw", omit, omit, integerField,34,false,omit, omit, omit, omit, omit */ |
| /* } */ |
| /* }, */ |
| { |
| menulist := { |
| disabled := omit, |
| editable := true, |
| flex := omit, |
| id := "fmenulist", |
| label_ := "Label", |
| readonly := omit, |
| menupopup := { choice := { menuitemgroups := { |
| menuitemgroup_list := { |
| {menuitem := {"menu1", "Menu1", false, omit}}, |
| {menuitem := {"menu2", "Menu2", true, omit}} |
| }} |
| }} |
| } |
| }/*, |
| { |
| |
| }*/ |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| const Widgets c_wndXul := { |
| window := { |
| height := 386.000000, |
| id := "EPTF_Main_Window", |
| orientation := vertical, |
| title := "TTCN constructed window", |
| width := 820.000000, |
| image_list := {}, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_Main_hbox_Textboxes", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := {} |
| } |
| } |
| }, |
| { |
| tabpages := { |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_Main_Tabbox", |
| layout := omit, |
| tabpagegroups:={ |
| tabpagegroup_list:={ |
| {tabpage:={ |
| id := "TabpanelId", |
| label_ := "bubu", |
| maxheight := omit, |
| orientation := vertical, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_Main_hbox", |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_Main_hbox_labels", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| label_ := { |
| disabled := omit, |
| flex := omit, |
| id := "refreshClock", |
| style := omit, |
| value_ := "Time elapsed since Test was started: 0.0" |
| } |
| }, |
| { |
| label_ := { |
| disabled := omit, |
| flex := omit, |
| id := "status", |
| style := omit, |
| value_ := "User set EPTF_snapshot_button to Snapshot" |
| } |
| }, |
| { |
| textbox := { |
| disabled := false, |
| flex := omit, |
| id := "bubuTextBox", |
| multiline := false, |
| readonly := false, |
| rows := 1.0, |
| value_ := "bubu", |
| widgetType := "console", |
| wrap := false |
| } |
| } |
| } |
| } |
| } |
| }, |
| { |
| hbox := { |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_Main_hbox_buttons", |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| spacer := { |
| flex := 1.000000, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| checked := omit, |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_snapshot_button", |
| imageid := omit, |
| label_ := "Snapshot", |
| type_ := omit |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.000000, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| checked := omit, |
| disabled := omit, |
| flex := omit, |
| id := "EPTF_exit_ttcn_button", |
| imageid := omit, |
| label_ := "Exit TTCN", |
| type_ := omit |
| } |
| } |
| } |
| } |
| } |
| }, |
| { |
| tree := { |
| disabled := omit, |
| flex := omit, |
| hidecolumnpicker := omit, |
| id := "tree1", |
| rows := 4.000000, |
| treecols := {{ |
| treecolgroup_list := { |
| {treecol:={ |
| editable := true, |
| flex := 1.000000, |
| id := omit, |
| label_ := "column", |
| widgetType := floatField |
| }}, |
| {treecol:={ |
| editable := true, |
| flex := 1.000000, |
| id := omit, |
| label_ := "column", |
| widgetType := checkBox |
| }} |
| } |
| }}, |
| treechildren := {{ |
| treeitemgroup_list := { |
| {treeitem:={{ |
| treerowgroup_list := { |
| {treerow:={{ |
| treecellgroup_list := { |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := "cellFloat", |
| imageid := omit, |
| label_ := "bubuCellFloat", |
| tooltiptext := omit, |
| visible := omit, |
| externaldata := omit |
| }}, |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := omit, |
| imageid := omit, |
| label_ := "false", |
| tooltiptext := omit, |
| visible := omit, |
| externaldata := omit |
| }} |
| } |
| }}}, |
| {treerow:={{ |
| treecellgroup_list := { |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := omit, |
| imageid := omit, |
| label_ := "", |
| tooltiptext := omit, |
| visible := omit, |
| externaldata := omit |
| }}, |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := "cellBoxxx", |
| imageid := omit, |
| label_ := "false", |
| tooltiptext := "cell to connect data", |
| visible := omit, |
| externaldata := omit |
| }} |
| } |
| }}}, |
| {treerow:={{ |
| treecellgroup_list := { |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := omit, |
| imageid := omit, |
| label_ := "", |
| tooltiptext := "This is an unnamed cell connected to the cell two rows upper", |
| visible := omit, |
| externaldata := omit |
| }}, |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := omit, |
| imageid := omit, |
| label_ := "", |
| tooltiptext := omit, |
| visible := omit, |
| externaldata := omit |
| }} |
| } |
| }}}, |
| {treerow:={{ |
| treecellgroup_list := { |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := omit, |
| imageid := omit, |
| label_ := "", |
| tooltiptext := "This is an unnamed cell connected to the cell two rows upper", |
| visible := omit, |
| externaldata := omit |
| }}, |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := omit, |
| imageid := omit, |
| label_ := "", |
| tooltiptext := omit, |
| visible := omit, |
| externaldata := omit |
| }} |
| } |
| }}} |
| } |
| }}} |
| } |
| }} |
| } |
| }, |
| { |
| chart := { |
| axisXType := linear, |
| axisYType := linear, |
| backgroundColor := "RGB:180:200:200", |
| disabled := true, |
| flex := omit, |
| foregroundColor := "Black", |
| gridColor := "black", |
| gridX := true, |
| gridY := false, |
| id := "charte", |
| title := "", |
| zoomable := true, |
| tracegroups := {{ |
| { |
| trace := { |
| color := "RGB:0:0:255", |
| fill := omit, |
| id := "trace02", |
| maxPoints := omit, |
| name := "Blue line", |
| physicalUnitX := omit, |
| physicalUnitY := omit, |
| choice_list := {} |
| } |
| }, |
| { |
| trace := { |
| color := "RGB:255:0:0", |
| fill := omit, |
| id := "trace01", |
| maxPoints := omit, |
| name := "Red line", |
| physicalUnitX := omit, |
| physicalUnitY := omit, |
| choice_list := {} |
| } |
| } |
| }} |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| }} |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| const Widgets c_Tree :={ |
| tree := { |
| disabled := omit, |
| flex := omit, |
| hidecolumnpicker := omit, |
| id := "tree1", |
| rows := 0.0, |
| treecols := {{ |
| treecolgroup_list := { |
| {treecol:={ |
| editable := omit, |
| flex := omit, |
| id := "col1", |
| label_ := "column", |
| widgetType := floatField |
| }}, |
| {treecol:={ |
| editable := omit, |
| flex := omit, |
| id := "col2", |
| label_ := "column", |
| widgetType := checkBox |
| }}, |
| {treecol:={ |
| editable := omit, |
| flex := omit, |
| id := "intCol", |
| label_ := "integer", |
| widgetType := integerField |
| }} |
| } |
| }}, |
| treechildren := {{ |
| treeitemgroup_list := { |
| {treeitem:={{ |
| treerowgroup_list := { |
| {treerow:={{ |
| treecellgroup_list := { |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := "cellFloat", |
| imageid := omit, |
| label_ := "bubuCellFloat", |
| tooltiptext := omit, |
| visible := omit, |
| externaldata := omit |
| }}, |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := omit, |
| imageid := omit, |
| label_ := "", |
| tooltiptext := omit, |
| visible := omit, |
| externaldata := omit |
| }} |
| } |
| }}}, |
| {treerow:={{ |
| treecellgroup_list := { |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := omit, |
| imageid := omit, |
| label_ := "", |
| tooltiptext := omit, |
| visible := omit, |
| externaldata := omit |
| }}, |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := "cellBoxxx", |
| imageid := omit, |
| label_ := "bubuCell", |
| tooltiptext := "cell to connect data", |
| visible := omit, |
| externaldata := omit |
| }} |
| } |
| }}}, |
| {treerow:={{ |
| treecellgroup_list := { |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := omit, |
| imageid := omit, |
| label_ := "", |
| tooltiptext := "This is an unnamed cell connected to the cell two rows upper", |
| visible := omit, |
| externaldata := omit |
| }} |
| } |
| }}}, |
| {treerow:={{ |
| treecellgroup_list := { |
| {treecell:={ |
| align := omit, |
| customclass := omit, |
| id := omit, |
| imageid := omit, |
| label_ := "", |
| tooltiptext := "This is an unnamed cell connected to the cell two rows upper", |
| visible := omit, |
| externaldata := omit |
| }} |
| } |
| }}} |
| } |
| }}} |
| } |
| }} |
| } |
| } |
| |
| const Widgets c_EPTF_Test_tree := { |
| tree := { |
| disabled := omit, |
| flex := omit, |
| hidecolumnpicker := omit, |
| id := c_EPTF_Test_treeId, |
| rows := 0.0, |
| treecols := { |
| /*treecolgroup_list :=*/ {{ |
| {treecol:={ |
| /*align :=*/ omit, |
| /*customclass :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*editable :=*/ false, |
| /*flex :=*/ 1.000000, |
| /*id :=*/ c_EPTF_col1Id, |
| /*label_ :=*/ "GroupID", |
| /*tooltiptext :=*/ omit, |
| /*treecellalign :=*/ omit, |
| /*widgetType :=*/ string |
| |
| }}, |
| {treecol:={ |
| /*align :=*/ omit, |
| /*customclass :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*editable :=*/ true, |
| /*flex :=*/ 1.000000, |
| /*id :=*/ "coloumn2Id", |
| /*label_ :=*/ "Expected number of incoming calls", |
| /*tooltiptext :=*/ omit, |
| /*treecellalign :=*/ omit, |
| /*widgetType :=*/ string //checkBox |
| }} |
| }} |
| }, |
| treechildren := { |
| /*treeitemgroup_list :=*/ {{ |
| {treeitem:={ |
| /*treerowgroup_list :=*/ {{ |
| {treerow:={ |
| /*treecellgroup_list :=*/ {{ |
| {treecell:={ |
| /*align :=*/ omit, |
| /*customclass :=*/ omit, |
| /*id :=*/ "apple1", |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "alma1", |
| /*tooltiptext :=*/ omit, |
| /*visible :=*/ omit, |
| /*externaldata:=*/ omit |
| }}, |
| {treecell:={ |
| /*align :=*/ omit, |
| /*customclass :=*/ omit, |
| /*id :=*/ "bean1", |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "alma2", |
| /*tooltiptext :=*/ omit, |
| /*visible :=*/ omit, |
| /*externaldata:=*/ omit |
| }} |
| }} |
| }}, |
| {treerow:={ |
| /*treecellgroup_list :=*/ {{ |
| {treecell:={ |
| /*align :=*/ omit, |
| /*customclass :=*/ omit, |
| /*id :=*/ "apple2", |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "korte1", |
| /*tooltiptext :=*/ omit, |
| /*visible :=*/ omit, |
| /*externaldata:=*/ omit |
| }}, |
| {treecell:={ |
| /*align :=*/ omit, |
| /*customclass :=*/ omit, |
| /*id :=*/ "bean2", |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "korte2", |
| /*tooltiptext :=*/ omit, |
| /*visible :=*/ omit, |
| /*externaldata:=*/ omit |
| }} |
| }} |
| }} |
| }} |
| }} |
| }} |
| } |
| } |
| } |
| |
| /////////////////////// constants for set focus function test //////////////////////// |
| // Buttons |
| const Widgets c_EPTF_Test_buttons := { |
| hbox := { |
| disabled := false, |
| flex := 0.0, |
| id := "Buttons", |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| /*checked :=*/ omit, |
| /*customclass :=*/ omit, |
| /*disabled :=*/ false, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 1.0, |
| /*id :=*/ "Tab1", |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "Tab1", |
| /*type_ :=*/ omit, |
| /*externaldata:=*/ omit |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| /*checked :=*/ omit, |
| /*customclass :=*/ omit, |
| /*disabled :=*/ false, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 1.0, |
| /*id :=*/ "Tab2", |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "Tab2", |
| /*type_ :=*/ omit, |
| /*externaldata:=*/ omit |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| /*checked :=*/ omit, |
| /*customclass :=*/ omit, |
| /*disabled :=*/ false, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 1.0, |
| /*id :=*/ c_EPTF_runtimeGuiExitButtonWidgetId, |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "Exit", |
| /*type_ :=*/ omit, |
| /*externaldata:=*/ omit |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| // textlabel for 1st tab |
| const Widgets c_EPTF_Test_label1 := { |
| label_ := { |
| disabled := false, |
| flex := 1.0, |
| id := "Label1", |
| style := omit, |
| value_ := "1stTabLabel" |
| } |
| } |
| |
| // textlabel for 2nd tab |
| const Widgets c_EPTF_Test_label2 := { |
| label_ := { |
| disabled := false, |
| flex := 1.0, |
| id := "Label2", |
| style := omit, |
| value_ := "2ndTabLabel" |
| } |
| } |
| //////////////// end of set focus test constants |
| |
| |
| template ASP_XSD_XTDP tr_ASP_XTDP_snapshotButtonPressed := |
| { |
| client_id := ?, |
| data := { |
| //noNamespaceSchemaLocation := *, |
| transactionID := omit, |
| choice := { |
| xTDP_Requests := { |
| ackRequested := omit, |
| xTDP_Request_list := { |
| { requestId := ?, |
| action_ := { choice := { |
| put := { |
| widget := { widgetId := c_EPTF_runtimeGuiSnapshotButtonWidgetId, widgetType := ? }, |
| argument_list := ? |
| } |
| }} |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| template Widgets t_MainTabBox := { |
| tabpages := { |
| omit, |
| omit, |
| omit, |
| omit, |
| tsp_EPTF_GUI_Main_Tabbox_WidgetId, |
| omit, |
| { |
| { |
| {tabpage:={ |
| omit, |
| omit, |
| c_testTab1Id, |
| "test tab 1", |
| omit, |
| omit, |
| omit, |
| { |
| embeddedwidget_list:={} |
| } |
| }} |
| } |
| } |
| } |
| }; |
| |
| /////////////////////////////////////////////////////////////////////////////// |
| // Constant: c_MainWidgets |
| // |
| // Purpose: |
| // XML constant for automated GUI elements for UI |
| // |
| // Detailed comments: |
| // Defines a hbox that containts automated GUI elements. |
| // Automated elements: |
| // - execution control default tabbox |
| // - test time counter: "Time elapsed since Test was started: <X.Y>" |
| // - status: "This text will be replaced runtime." |
| // - run test button |
| // - snapshot button |
| // - exit ttcn button |
| // |
| /////////////////////////////////////////////////////////////////////////////// |
| const Widgets c_MainWidgets := { |
| hbox := { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*fixedPosition :=*/ omit, |
| /*flex :=*/ 0.0, |
| /*id :=*/ omit, |
| /*orientation :=*/ horizontal, |
| /*scrollable :=*/ omit, |
| /*embeddedwidgets :=*/ { |
| /*embeddedwidget_list :=*/ { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := 1.0, |
| id := omit, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| /*{ |
| tabbox := { |
| id := c_EPTF_GUI_Main_Tabbox_WidgetId, |
| flex := omit, |
| disabled := omit, |
| tabs := {}, |
| tabpanels := { |
| } |
| } |
| },*/ |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| hbox := { |
| customclass := omit, |
| disabled := false, |
| disabledongui := omit, |
| flex := 1.0, |
| id := "EPTF_Main_hbox_all", |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| // Labels |
| hbox := { |
| customclass := omit, |
| disabled := false, |
| disabledongui := omit, |
| flex := 1.0, |
| id := "EPTF_Main_hbox_labels", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| textbox := { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui := */ omit, |
| /*flex :=*/ 1.0, |
| /*focusafterchange :=*/ omit, |
| /*id :=*/ c_EPTF_runtimeGuiTimeElapsedWidgetId, |
| /*multiline :=*/ false, |
| /*readonly :=*/ true, |
| /*rows :=*/ omit, |
| /*value_ :=*/ "Time elapsed since Test was started: 0.0", |
| /*widgetType :=*/ omit, |
| /*wrap :=*/ omit, |
| /*externaldata:=*/ omit |
| } |
| // label_ := { |
| // id := c_EPTF_runtimeGuiTimeElapsedWidgetId, |
| // flex := 1.0, |
| // disabled := false, |
| // style := omit, |
| // label_ := "Time elapsed since Test was started: 0.0" |
| // } |
| }, |
| { |
| label_ := { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ false, |
| /*disabledongui := */ omit, |
| /*flex :=*/ 1.0, |
| /*id :=*/ "status", |
| /*style :=*/ omit, |
| /*tooltiptext :=*/ omit, |
| /*value_ :=*/ "This text will be replaced runtime.", |
| /*externaldata :=*/ omit |
| } |
| } |
| } |
| } |
| } |
| }, |
| { |
| // Buttons |
| hbox := { |
| customclass := omit, |
| disabled := false, |
| disabledongui := omit, |
| flex := 0.0, |
| id := c_EPTF_GUI_Main_hbox_WidgetId, |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| /*checked :=*/ omit,//BOOLEAN OPTIONAL, |
| /*customclass :=*/ omit, |
| //disabled := false, |
| /*disabled :=*/ true, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 1.0, |
| /*id :=*/ c_EPTF_runtimeGuiStartTestButtonWidgetId, |
| //image := omit, |
| /*imageid :=*/ "image_play", |
| /*label_ :=*/ "Start Test", |
| /*type_ :=*/ omit, |
| /*externaldata:=*/ omit |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| /*checked :=*/ omit,//BOOLEAN OPTIONAL, |
| /*customclass :=*/ omit, |
| //disabled := false, |
| /*disabled :=*/ true, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 1.0, |
| /*id :=*/ c_EPTF_runtimeGuiStopTestButtonWidgetId, |
| //image := omit, |
| /*imageid :=*/ "image_stop", |
| /*label_ :=*/ "Stop Test", |
| /*type_ :=*/ omit, |
| /*externaldata:=*/ omit |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }/* //uncomment it when needed: |
| { |
| button := { |
| checked := omit,//BOOLEAN OPTIONAL, |
| customclass := omit, |
| disabled := false, |
| id := c_EPTF_runtimeGuiRunTestButtonWidgetId, |
| flex := 1.0, |
| //disabled := false, |
| label_ := "Enable Test", |
| type_ := "checkbox", |
| //image := omit, |
| imageid := "image_configure" |
| } |
| }*/, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| /*checked :=*/ omit,//BOOLEAN OPTIONAL, |
| /*customclass :=*/ omit, |
| //disabled := false, |
| /*disabled :=*/ true, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 1.0, |
| /*id :=*/ c_EPTF_runtimeGuiSnapshotButtonWidgetId, |
| //image := omit, |
| /*imageid :=*/ "image_save", |
| /*label_ :=*/ "Snapshot", |
| /*type_ :=*/ omit, |
| /*externaldata:=*/ omit |
| } |
| }, |
| { |
| spacer := { |
| flex := 0.0, |
| id := omit |
| } |
| }, |
| { |
| button := { |
| /*checked :=*/ omit,//BOOLEAN OPTIONAL, |
| /*customclass :=*/ omit, |
| //disabled := false, |
| /*disabled :=*/ true, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 1.0, |
| /*id :=*/ c_EPTF_runtimeGuiExitButtonWidgetId, |
| //image := omit, |
| /*imageid :=*/ "image_exit", |
| /*label_ :=*/ "Exit", |
| /*type_ :=*/ omit, |
| /*externaldata:=*/ omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| }//module |