| /////////////////////////////////////////////////////////////////////////////// |
| // // |
| // 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_Testcases |
| // |
| // Purpose: |
| // This module contains tests of EPTF_CLL_UIHandler_CT. |
| // |
| // Module depends on: |
| // TBD |
| // |
| // Current Owner: |
| // Janos Zoltan Svaner (EJNOSVN) |
| // |
| // Last Review Date: |
| // 2010-xx-xx |
| // |
| // Detailed Comments: |
| // |
| /////////////////////////////////////////////////////////////// |
| module EPTF_UIHandler_Test_Testcases |
| { |
| //========================================================================= |
| // Import Part |
| //========================================================================= |
| import from EPTF_CLL_Base_Functions all; |
| import from EPTF_CLL_Logging_Functions all; |
| |
| import from EPTF_UIHandler_Test_Definitions all;//ok |
| import from EPTF_UIHandler_Test_ASN1_Definitions all;//ok |
| import from EPTF_UIHandler_Test_Functions all;//ok |
| |
| import from EPTF_CLL_UIHandlerClient_Definitions all; |
| import from EPTF_CLL_UIHandlerClient_Functions all; |
| import from EPTF_CLL_UIHandler_Definitions all; |
| import from EPTF_CLL_UIHandlerVariableUI_Definitions all; |
| import from EPTF_CLL_UIHandlerVariableUI_Functions all; |
| import from EPTF_CLL_Variable_Definitions all; |
| import from EPTF_CLL_Variable_Functions all; |
| import from EPTF_CLL_UIHandler_WidgetFunctions all; |
| import from EPTF_CLL_UIHandler_MsgDefinitions all; |
| import from EPTF_CLL_UIHandlerCLI_Definitions all; |
| import from EPTF_CLL_UIHandlerCLI_Functions all; |
| import from EPTF_CLL_Common_Definitions all; |
| import from EPTF_CLL_UIHandler_XSD_XTDPTemplateDefinitions all; |
| import from PIPEasp_PortType all; |
| import from PIPEasp_Types all; |
| import from ttcn_ericsson_se_protocolModules_xtdp_xtdl all; |
| import from ttcn_ericsson_se_protocolModules_xtdp_xtdp all; |
| import from EPTF_CLL_UIHandler_XULFunctions all; |
| import from EPTF_CLL_DataSource_Definitions all; |
| import from EPTF_CLL_DataSource_Functions all; |
| import from EPTF_CLL_DataSourceClient_Functions all; |
| import from EPTF_CLL_UIHandler_BrowserFunctions all; |
| |
| import from EPTF_CLL_HostAdminServer_Definitions all; |
| import from EPTF_CLL_Base_Definitions all; |
| import from HTTPmsg_Types all; |
| import from EPTF_CLL_UIHandler_DS_Definitions all; |
| import from TCCConversion_Functions all; |
| |
| modulepar float tsp_EPTF_Test_wait :=1.0 |
| |
| |
| modulepar charstring tsp_EPTF_Test_newGUIHost :="0.0.0.0"; |
| modulepar integer tsp_EPTF_Test_newGUIPort :=11520; |
| modulepar integer tsp_EPTF_Test_newGUIReconnectPort :=11522; |
| |
| modulepar charstring tsp_EPTF_Test_newBrowserHost :="0.0.0.0"; |
| modulepar integer tsp_EPTF_Test_newBrowserPort :=3089; |
| |
| modulepar charstring tsp_EPTF_UIHandler_WidgetFunctions_XTDP_XSD_filepath := ""; |
| |
| /////////////////////////////////////////////////////////////////////////////// |
| // Function: f_EPTF_UIHandler_Test_createMainImages |
| // |
| // Purpose: |
| // Function to create main images |
| // |
| // Parameters: |
| // |
| // Return Value: |
| // - |
| // |
| // Errors: |
| // - |
| // |
| // Detailed Comments: |
| // Appends various dynamic elements to GUI in order to create handling interface |
| // |
| /////////////////////////////////////////////////////////////////////////////// |
| type record of charstring ChList; |
| type record of octetstring OstrList; |
| |
| function f_EPTF_UIHandler_Test_createMainImages() runs on EPTF_UIHandlerClient_CT { |
| |
| |
| const charstring c_XTDP_Image_Ok := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<image id='image_ok' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAAK/INwWK6QAAABl0RVh0
U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKTSURBVHjaYvz//z8DLQBAADEx0AgABBDN
DAYIIBZGRkaqGca3ikGBlYmhnpWZIQAggBgZFzLsBwZzIUMCwwWyTZzPoMAANJCZEWgKA8MHZmYG
R4AAYmSYzfAeLPmPwZEhnUTDZwINZGSo5+LgSvj28xsDkP0AiAMZkhkuAAQQE8Mvhg3ifOICDH8Y
9jNMZjAgysBJQAOnMMznYOa472DokKAiosIANOcCw28GQ5ChICUAAQQyeCPQFgYzBzMBoMR+hh48
hvcADexlmM/KzHpf01gzwSPUg+HKjSsMl25eOgB0mCNDJsMHmFKAAGJg6GIQYOhg+K/9Xfu/xGWJ
/0D2e4Y2NMNbgQa2M8xn6mf6L3hE8L/GDw2weu553P8ZOoEhjAUABBAkSTQx7GcOZXZgUmdi+HPx
D8P/Tf8/MPwHuuA/0AXAMGTgBEaKOQMDixkLAyMHUMsLBoY/i4Hqfv5fwFDHkIjNYIAAYgGTPxk2
/r301+Gv/F8GBnUg3w3oiy3AYGEH0mZAPghzAA0DQoaHQPYSsJ5EhhaGBbhCDSCAIC4uA3qVjeE+
QwGSzCsg5gdidiSxK0C8hwEUUYnAIFyAL34BAgiRO/KABscDLRDDofIqEG8DBg0TMIgmEE6WAAHE
DGcZAg1lZ7BgkGAA+RkVg1y5H2goKK1PIS6tAwQQoqz4xXAQ7KrvaHgjEJ8AGvaHQZFhOvEZCCCA
UAuKGGBSiwdGGC84ckBeZ2B4CjSMEejSxchplDAACCDU0u0/wwFgSDMwfATitUD8BBhB/0k3FAQA
AogZhacHTLGfGQIYbgHZ74CGLgXG/mWGH+SUSwABhIqigcEQDXRjNErCIwsABBAjraomgACiWQ0C
EEA0MxggwAAC5K2bqnDzRQAAAABJRU5ErkJggg=='/>\n</Widgets>\n\n" |
| const charstring c_XTDP_Image_Configure := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<image id='image_configure' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAK
OWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanZZ3VFTXFofPvXd6oc0wAlKG3rvAANJ7k15F
YZgZYCgDDjM0sSGiAhFFRJoiSFDEgNFQJFZEsRAUVLAHJAgoMRhFVCxvRtaLrqy89/Ly++Osb+2z
97n77L3PWhcAkqcvl5cGSwGQyhPwgzyc6RGRUXTsAIABHmCAKQBMVka6X7B7CBDJy82FniFyAl8E
AfB6WLwCcNPQM4BOB/+fpFnpfIHomAARm7M5GSwRF4g4JUuQLrbPipgalyxmGCVmvihBEcuJOWGR
DT77LLKjmNmpPLaIxTmns1PZYu4V8bZMIUfEiK+ICzO5nCwR3xKxRoowlSviN+LYVA4zAwAUSWwX
cFiJIjYRMYkfEuQi4uUA4EgJX3HcVyzgZAvEl3JJS8/hcxMSBXQdli7d1NqaQffkZKVwBALDACYr
mcln013SUtOZvBwAFu/8WTLi2tJFRbY0tba0NDQzMv2qUP91829K3NtFehn4uWcQrf+L7a/80hoA
YMyJarPziy2uCoDOLQDI3fti0zgAgKSobx3Xv7oPTTwviQJBuo2xcVZWlhGXwzISF/QP/U+Hv6Gv
vmckPu6P8tBdOfFMYYqALq4bKy0lTcinZ6QzWRy64Z+H+B8H/nUeBkGceA6fwxNFhImmjMtLELWb
x+YKuGk8Opf3n5r4D8P+pMW5FonS+BFQY4yA1HUqQH7tBygKESDR+8Vd/6NvvvgwIH554SqTi3P/
7zf9Z8Gl4iWDm/A5ziUohM4S8jMX98TPEqABAUgCKpAHykAd6ABDYAasgC1wBG7AG/iDEBAJVgMW
SASpgA+yQB7YBApBMdgJ9oBqUAcaQTNoBcdBJzgFzoNL4Bq4AW6D+2AUTIBnYBa8BgsQBGEhMkSB
5CEVSBPSh8wgBmQPuUG+UBAUCcVCCRAPEkJ50GaoGCqDqqF6qBn6HjoJnYeuQIPQXWgMmoZ+h97B
CEyCqbASrAUbwwzYCfaBQ+BVcAK8Bs6FC+AdcCXcAB+FO+Dz8DX4NjwKP4PnEIAQERqiihgiDMQF
8UeikHiEj6xHipAKpAFpRbqRPuQmMorMIG9RGBQFRUcZomxRnqhQFAu1BrUeVYKqRh1GdaB6UTdR
Y6hZ1Ec0Ga2I1kfboL3QEegEdBa6EF2BbkK3oy+ib6Mn0K8xGAwNo42xwnhiIjFJmLWYEsw+TBvm
HGYQM46Zw2Kx8lh9rB3WH8vECrCF2CrsUexZ7BB2AvsGR8Sp4Mxw7rgoHA+Xj6vAHcGdwQ3hJnEL
eCm8Jt4G749n43PwpfhGfDf+On4Cv0CQJmgT7AghhCTCJkIloZVwkfCA8JJIJKoRrYmBRC5xI7GS
eIx4mThGfEuSIemRXEjRJCFpB+kQ6RzpLuklmUzWIjuSo8gC8g5yM/kC+RH5jQRFwkjCS4ItsUGi
RqJDYkjiuSReUlPSSXK1ZK5kheQJyeuSM1J4KS0pFymm1HqpGqmTUiNSc9IUaVNpf+lU6RLpI9JX
pKdksDJaMm4ybJkCmYMyF2TGKQhFneJCYVE2UxopFykTVAxVm+pFTaIWU7+jDlBnZWVkl8mGyWbL
1sielh2lITQtmhcthVZKO04bpr1borTEaQlnyfYlrUuGlszLLZVzlOPIFcm1yd2WeydPl3eTT5bf
Jd8p/1ABpaCnEKiQpbBf4aLCzFLqUtulrKVFS48vvacIK+opBimuVTyo2K84p6Ss5KGUrlSldEFp
Rpmm7KicpFyufEZ5WoWiYq/CVSlXOavylC5Ld6Kn0CvpvfRZVUVVT1Whar3qgOqCmrZaqFq+Wpva
Q3WCOkM9Xr1cvUd9VkNFw08jT6NF454mXpOhmai5V7NPc15LWytca6tWp9aUtpy2l3audov2Ax2y
joPOGp0GnVu6GF2GbrLuPt0berCehV6iXo3edX1Y31Kfq79Pf9AAbWBtwDNoMBgxJBk6GWYathiO
GdGMfI3yjTqNnhtrGEcZ7zLuM/5oYmGSYtJoct9UxtTbNN+02/R3Mz0zllmN2S1zsrm7+QbzLvMX
y/SXcZbtX3bHgmLhZ7HVosfig6WVJd+y1XLaSsMq1qrWaoRBZQQwShiXrdHWztYbrE9Zv7WxtBHY
HLf5zdbQNtn2iO3Ucu3lnOWNy8ft1OyYdvV2o/Z0+1j7A/ajDqoOTIcGh8eO6o5sxybHSSddpySn
o07PnU2c+c7tzvMuNi7rXM65Iq4erkWuA24ybqFu1W6P3NXcE9xb3Gc9LDzWepzzRHv6eO7yHPFS
8mJ5NXvNelt5r/Pu9SH5BPtU+zz21fPl+3b7wX7efrv9HqzQXMFb0ekP/L38d/s/DNAOWBPwYyAm
MCCwJvBJkGlQXlBfMCU4JvhI8OsQ55DSkPuhOqHC0J4wybDosOaw+XDX8LLw0QjjiHUR1yIVIrmR
XVHYqLCopqi5lW4r96yciLaILoweXqW9KnvVldUKq1NWn46RjGHGnIhFx4bHHol9z/RnNjDn4rzi
auNmWS6svaxnbEd2OXuaY8cp40zG28WXxU8l2CXsTphOdEisSJzhunCruS+SPJPqkuaT/ZMPJX9K
CU9pS8Wlxqae5Mnwknm9acpp2WmD6frphemja2zW7Fkzy/fhN2VAGasyugRU0c9Uv1BHuEU4lmmf
WZP5Jiss60S2dDYvuz9HL2d7zmSue+63a1FrWWt78lTzNuWNrXNaV78eWh+3vmeD+oaCDRMbPTYe
3kTYlLzpp3yT/LL8V5vDN3cXKBVsLBjf4rGlpVCikF84stV2a9021DbutoHt5turtn8sYhddLTYp
rih+X8IqufqN6TeV33zaEb9joNSydP9OzE7ezuFdDrsOl0mX5ZaN7/bb3VFOLy8qf7UnZs+VimUV
dXsJe4V7Ryt9K7uqNKp2Vr2vTqy+XeNc01arWLu9dn4fe9/Qfsf9rXVKdcV17w5wD9yp96jvaNBq
qDiIOZh58EljWGPft4xvm5sUmoqbPhziHRo9HHS4t9mqufmI4pHSFrhF2DJ9NProje9cv+tqNWyt
b6O1FR8Dx4THnn4f+/3wcZ/jPScYJ1p/0Pyhtp3SXtQBdeR0zHYmdo52RXYNnvQ+2dNt293+o9GP
h06pnqo5LXu69AzhTMGZT2dzz86dSz83cz7h/HhPTM/9CxEXbvUG9g5c9Ll4+ZL7pQt9Tn1nL9td
PnXF5srJq4yrndcsr3X0W/S3/2TxU/uA5UDHdavrXTesb3QPLh88M+QwdP6m681Lt7xuXbu94vbg
cOjwnZHokdE77DtTd1PuvriXeW/h/sYH6AdFD6UeVjxSfNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2
S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+tfa5zvMffnP8rX82YnbiBf/Fp99L
Xsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/6H7o/ujz8cGn1E+f/gUDmPP8
kcBa2wAAAARnQU1BAACxjnz7UZMAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgA
ABdvkl/FRgAABAZJREFUeNpiZEADO3YcP8/Pz20gJMTP8P37T4ZPn74yfPv2fcG/f/8bvbysHzAQ
CQACCANt2nRo/rlzN/4jgzdvPvzfvfvk//XrDyQQaw5AAGFFq1btmX/y5BUUw3/9+v1/584T/1es
2OVAjBkAAYQTLV68bf6RIxdQDP/48cv/RYu23idGP0AAMcycuW7+jBlrDbDJzZ69fv2FC7fgBv8D
BvSePSf/A/UYEDIXIICY2NhYExgZGfdPmLAMRTGIz8XF6aCkJM3w589fMP779x+DoCAfw8+fvwgG
B0AAAQ1mYfDwsBQAGd7RsQBsOIjm4+Pe7+5uIcDMzMQADF+QYWDMwsLM8OPHLwFCBgMEEBNQEQPQ
EAZPTyuw4Q0NsxIghloKMDExAQ37Dca/fv0B46dPX4MsIJjsAAKICZiUPkAM5wEbLikpMh/kA2Zm
ZrBL0fH9+89A6ZugwQABxKynZ6/BycluICIiwMDBwc6gqirLAHLp379/UTDI1U+fvmIQExNkuH37
scG8iIecuV5iNyZve/0Dm8EAAcQEdEXjnj2nPrx58x7ubQj+A8ffv/9iePDgGcPnz98YgImDIUz7
igGbOGv/7z8M+y/3a6GEN1AezAcIIEYQkZLSAkwBHPttbQ0E1NTkgBHEAlMGJkFZ+zfQFFZWFgbG
61MZ+H7tZWB/94KBVUeG4fmVfxf+/WNwNCm/9gHZAoAAYoQxYmJqDYC29QPLCAdxcSEGHh5OBmCG
AEeYj48NAz8/D8P3cxMYuL/tZBD89pJBhPk3w0cGVobvCtIMjy79BxtuXYswHCCAGNHDJjS0QgFI
gTAorR4AYgFxceH5EQYPBAR+72GQZHvLIMDGwMAE1fnpDyPDZ34RhtsXGIGG/3d0br4ONhwggBiJ
yZ1rSo0b5GW+12tIf2DgZmNmYETT9e3nX4a3/3kZrp1nArvcq+P6B4AAIsrgreWaAkAN+/WN/xnI
Sv2H+hWq9ddfcFyAcuXzN6wM584xgw0HCCAmYgz27rz+ARjUjiePM1148BgowMfBwMDPCZEEpiCG
l58YmJ9/ZJDh/c6gqfbb4PdfhvkAAcREbGkX3H/9w+8//x2PHmG6cPciMOnysDMwfAbSX34yMLz+
zMDw+x8Dw8O3DKoS3xlYWf4GAAQQEylFadTUG0DDGRwPHmK6cGv/OwYGoPeBgc7A8OMPKKAhqROY
5tmY/zEABBATqeV04myg4X8ZHPceZL5w4wrQwA/fGBicNRgYxHjBlvz88pfh+VumDwABxExOJbDl
wpsfrtrCK2+/YPdg//tbQvLTS6CrQbkVWLVdEGR4/YWlEyCAGCmpZTpD1UGpZT0f+x8Hfo4/DK++
sn349ZdpYsWamw0AAQYA0lMHydArgUYAAAAASUVORK5CYII='/>\n</Widgets>\n\n" |
| const charstring c_XTDP_Image_Play := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<image id='image_play' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsMAAALDAE/QCLIAAAAB3RJTUUH0woJEyQqW/WmUwAABHxJREFUeNqFld1vlEUUh5+Z92O/
utstLZYiLAViCKlA3YoGEz+CUVOJJqIxfsW7Ergg4Yb4ByjpH6CmF69y4U0v5NIEI8YbgoRQltSK
GBILlCrtbrvdfZft7vs148WWpTW0TnIymcyZJ79zcs4ZwQYrf2LSAr0ZVB9aJ0EDuoFWc5Zyi1ec
1/z13ooNoIeA90EPIsghrBQAyltGR/eASaHCc3l99pLjONH/gvMnJneDOIVhfdSRSma39GRkb3ec
PT01ElbEX+UO7hQVC6WSKlcbDRU2Lln6wRf79fhlx3HCx4LzJyZ3gBjDzgwP7krw5sE0+7Zrnsha
GLLlqoGlWsj0XMD5QpOLU0v4DfdmTJU/e1qfO/8QbvxH6dcdmcwbbx/qFJ++kuCpPoOYZfDNTxX2
bo/hhxo/1BhS0JMx2bfDorfL4nZR97hN8eyi3lkYHkrMFgoF3Qb3HTw+ip3+4MhzWfHWkIVtSfxQ
4wWad17I8tUPi+zaYuH5Ci9QeKFGa83WTRbppCX+mI26m762tnL9wtDQUGC01F47JIzY6IHdmfhw
3kJK8ANFM2hBtvXEeHEgxcnvNM/kArxAr9y3ItjUIan7JjOloL8UbZ/s5eZtI398wgJOpdPpl14d
TImuDvACTTNoqfUCze6tcQDee97g9Lhg7xZ/zX0zUNiGz/S8suvNMDDC6kUT2AwMZjKdMhsPcety
o9Jm/KTNh1/C0QMuUaSZLUdMzWVxG0lqdEhFZcAVuZwJ9CFkrictaPiKhq/QK+Wi1yn0FjzD/t4K
k3+nmHVbEWGaIIw+DDsngSQylkpaAZW6wl1WeL6m6ev2vp7y3+azlJaTj5pCCJCxhIB0O263aTFf
lRRdSbUhqTQM7lViXJ1JbZgWPzIQgpa1m0NJE3QD5S3P1xPUo3grfkAjqPk2Wq+f79dHV7WwWGmf
qNkUOvRMtJoD7lWX1c5IJNY81Mh1p8nhMxCsTAjTAAk8aHigo6JU9TlpKbcITOKVlWVo7FUWMyIe
J/nwGQBF0opIWhFxM8I2I4S/qEyat7L67n3zivOaP3Ts8rnIq35iRYmurrS9RqTSAJn2eWSsxrY0
CKHbfq354aOaS/VENH+h01gomwB5ffbStXDk+1qldKy/u4uYKR7VG4/Ap7+dJ2uDth/mtOXjhZqZ
yhLKr/6yR/78K1AzAAqFgt6W/3jaC9irVLTjyW5DJGOCmKWJWZqX96X5fPw+MbN1jtutPWZqBAG3
Zly1WK5OdEc3xrLinxttMMCRvLW4qHMT1YY54C6H/emkxaa0iW1JLt+sY5tijVkGLFQDpqarzJXc
ic3h9dGcLFwFFhzHidrgQqGgh4eS5UXdf73aMJKlatBfWw7tuBmKVMLElBIpQOuIxaU6v99ZVn/O
1B5UKu6P3dGNsRVo0XGc4LE/yMjIiARSU7x7OJQdRxXWgJSiL50wEgC1RtRUkSqaNG/Fo/kLKzmd
Byrr/iCr4AKwi1F/1hW5HIadE5AWKCl06ElVn8vqu/c7jYUyUAMajuOo1Yx/AWXzQW5ayEXoAAAA
AElFTkSuQmCC'/>\n</Widgets>\n\n" |
| const charstring c_XTDP_Image_Pause := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<image id='image_pause' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsMAAALDAE/QCLIAAAAB3RJTUUH0woJEyUmS1jbOQAABDRJREFUeNqdlc9vG0UUxz8zu7P+
Edtx86PBhboJEapQKVQOReoNIVUoVCBUpAqBxC2oPSAhceDAFal/AfSwEhcOXHqAUxHlRFWgInWV
mlBUqWmaFpI4sROva+/auzvDwW2apElBPOmr0Zt985mn2fdmBE+w0pkZBWYYdAFj0mAA42P0ktJe
9Yp7vLvbWvEE6DHgFJgjCIoI1QeA7rQx8V1gRujofMl8ddl13fhfwaUzM+MgPsZS72X60vmnhnJy
ZDDJwaEmKRVzq55hvqpZXVnR9Ybv68i/rMz9z1803/zium60I7h0ZuYAiHM4uckjz6Z442iWw/sN
e/MKS/ZCDbDWjJhbCrlQDrhUWaPrezcSuv7pC+b8hYdwa1umX2RyudffOtYvPng1xXMFi4SyCGPo
RmZDlhQM5WwOH1CM7FHcrpohLxAv18xYeXIida9cLpsNcOHo6bM42XdPvJIXb04oHCXpRoZOuE1d
TSfUdCKDMYZ9A4psWok/7sWDQdeofVy7ODExEVq9bK8eE1bi7EvjueRkSSEldEPNTxWPucWAucWA
woCi3dFcqjSZW+wwtxgwskcRhIaBjKTVtVlYCUdX4v0zI9y4bZdOTyuMOZXpS+ZK4w6x1jRaBoCP
3i5snP8PV9d3nYu14WAh5vqtRLZey5yshqO/2sAwcCSX65f5ZITXkrvWdaMVbfGvzwcAVJbyeH6a
JhmpWT/kiWLRBgoIWRzKCvyuxu9qzA51WJlvk0tt3XR6oVfa97xkb8K2QVgFLKdoA2lkoi+tQtZb
GinAsXfuG8/XW/y/mlkc61FvCCFAJlJCk7U3FgWK5YbBkpBNCcy2nL+d3cdAyueTbZt1YwvxMNQ8
bA4tbTA+utNebqVoxcmNj2aHbq/7qV3Pvwc3EAeBMFHHxugl4G6jrcdikeL/mG2BBO77HTBxVerW
klTaqwIzdOpaWQZnk/6LpVVM0o5x7BjRrWmb4Gbe3FmUV9zjXaGj83Gn0VDxGsPpFnsfaLON5ZuM
5ZuPgQuZXqyK19DBWisZL1/st1brAmBqasq6ak19mctmPjw8voeELXr1ZrZdVebRsPmHdSJD5dYa
zfXV70p8/RkwbwGUy2XzTOn9uU7I81rHB54etEQ6IUgo05O9dUw6j3xByM0FT9fqjenBePZcXvw9
CzQ3LqETJVWrmeJ0w7cPee1oNJtWDGRtHCVxbPGYlAWrjZDKXIOlFW96OLp2tijLvwGrruvGG+By
uWwmJ9L1mhm91vCt9EojHG22IydpR6IvZWNLiRRgTExtrcXv823950Lz/vq69/1gPHvuAbTqum64
4wsyNTUlgb4K77wWycxJjTokpShkU1YKoOnHgY511Sa4mYyXLx6UP/4MLAPru74gm+ACcKrxaN4T
xSKWUxSQFWgpTNSRurWUN3cW+63VOtAEfNd1t/T7P6XWFCRCYI3ZAAAAAElFTkSuQmCC'/>\n</Widgets>\n\n" |
| const charstring c_XTDP_Image_Stop := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<image id='image_stop' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsLAAALCwFtBIS3AAAAB3RJTUUH0woJEwkMqdJ5QQAAA+9JREFUeNqdlduPU0Ucxz8z59Ke
bk/pXrgUtSyi2ZgVgq2Y8EKMiRok+oAJUUz0aQm8mfjgk0+a8BcYHk5CfONBTDQmQoSYGEW8LN2s
iBICyC1Lt7vttqe0p+05Z8aHssuCgIvf5JvJby6f+eU3mRnBQ1Q4MG2BXg0qh9Yp0IAO0KpsKb/y
i/dy70FrxUOg24E9oLciyCOsAQBUt42OrwPTQkVHC/rwKc/z4v8EFw5MbwLxPoa1Nz2Qyq4byci1
w0nGRpo4VsylWporFcX83JyqNYJARcEpS9/6ZIs+ctrzvOi+4MKB6Q0gDmFndm590uG1bS6bn9Cs
yVoYsj9VAwvNiMvlkGOlDj+cXaAX+H8lVO3DZ/XRY4tw455MP01nMq++sX2VePdFh6dzBgnLIIyh
F+klG1IwkjHZvMFi7aDF3xU94nfE81W9sbSz6NwolUp6CZzbtv8gtvvWrhey4vWihW1JepGmG97j
nqIbKrqRRmvN+iELN2WJP2/Ew52ettYzdaJYLIain+2Z7cJIfrPlqaHs3h0OriP5dipgJXrlOYcw
0nz1a8D3U5WG0Z15bzNfHDcL+ycttN6THkhmCptsYqVotDQAH7295qHQj49UaHcVnZ5iLBfz+6WE
W6umd1fC0Z9NYDWwNZNZJbPJCL8leRR99mMCAD9I0SQtFfVxX+TzJpBDyPyIKwh6iqCn6Oe7sg2E
6nGxlukHpgnCyGHYeRNIIRMDKSuk3lJIAbYpVgS9NJ+8exMhQCYcoXDNxU6/YzHb0BgSXEesuBQX
axnE4nS9eDmUNEEHqG57tuXQipNLgxrxSLXuwzXEnY7QUddEqzJwvdFWG2Ph8H9kGv0TuRV0QccV
qVplaSm/AkzTrSnL0NjLvFIlzRjbjBG9qjLpXMjqqzcFQHHf6R3CTn+Zy60bHHTtRyqCISFSsNDs
UZ6ZaTqd8x+MyZNfmwAFffjUmWji82Z9bt/o8CAJU/SfJ33PU6XvNMsPrBtprtUXUL3Gd2Py5E9A
0wAolUr68cI7l7shzygVb3hs2BCphCBh6b7Nu9ukfScWhFy45qtqrTE5HJ87lBUz55bAALsKVrWq
85ONwBz329Gom7IYck1sS2Kb4l+2DJhvhJy93KA850+ujqYO5mXpN2De87x4CVwqlfTOYqpW1aNT
jcBIzTXC0WY7spNmJAYcE1NKpACtY6oLLf640lbnrzVv1ev+8eH43KHb0IrneeF9f5CJiQkJDJzl
zZcimd6tsMalFDnXMRyAZhB3VKwqJp0LyXj2xO2azgL1B/4gy+ACsCvxaNYX+TyGnRfgCpQUOupK
1Spn9dWbq4z5GtAEAs/z1HLGP0K45L8u7KzsAAAAAElFTkSuQmCC'/>\n</Widgets>\n\n" |
| const charstring c_XTDP_Image_Exit := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<image id='image_exit' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsLAAALCwFtBIS3AAAAB3RJTUUH0woKFhstiTF0yQAABL9JREFUeNqFld9vVEUUxz8z9969
+7Mt2xaowhZEUCm/QgXkQfwBCAUxIsZEIyEhKc+8+OMPICHxlRAeNhr1xQdJjA8I4UeCNIAoLNYC
EiJUC4R2t90f925393bvnfFhoVAseJJvJpPMfOacOXPmCJ5i/d1rLK11u4IOjY5qAERVwXDJMrMb
L5ybeNJe8RToWuADrfUKIGVBDMBDVxTc1tDvC3n4q5XLzqbT6eB/wf3daxYI2GvBR9F4vCUxa6aM
zJ6Nu2ghQSRC/OYg6p+/yeVGVTWfr1aVOlu2zH3fLes6n06n/WnB/d1rOgUcSkBPdMVyElt60Eu7
sNrbEYbRWKQ1fqFI/dYtaseOU+jrw/Em/izY9mffL3nx6AO48ZinB5vi8U0t72wTkZ0fYyxaiGHb
4PvoiXpD9TrCMDDb2rCWLMGaNQs9ONgmHOfl+WP5TKRn851MJqPNB2Ct9ScJIXqaN6zH2tqD0Zqk
euUqAHbn3PvBaXQjg0wM3QYgsrqbpF8X6utvF/mVyh6gv7e3t2wAXFq5eq0txP6mZcvCVs9mQp0p
qleu0vTGa0QWLaT0cx/StlGeh/Y8an/dJLltK3Znikr/AOYzHZjjFepDQ/NSudH+a7PaB42LK1dZ
wN5EU2JdbP2bguQMrJkziS5+CRkKoYOAWNdi3F9+RWhNPTdK247tjQRJSXjBc4ydOIlua0UPDob8
8fF6yZB9EmgHVjQ3NUl/RguB4+KeOz8JFYaBqtVo27Ed33Vp27EdrdSUl5TsO0vrkaPMdMvSVKpr
ruOmJNAhISVaW1GVCn6hgJ/PM5z+EmEYBJUKMhwGmOLpA3M/3En45i3sbI44AgPREUKkJBC1EbF6
LIYqlVCOg/Y8dK3GvQMHMaLRJ1bmxNZ3ieZG7z9cgQBsiCBEYvJoq+Qgh0eQ2Ryy5GAUi9i37+Ds
3jM9dd16Qq6LMTEBQkzCAZQQ0gRR9dCVyEiWcKX6sCS1IuSWMY4fmR585hSsW/9wLiVaKWpQ84Xw
pIJhBbeVUyL8iOxqrQENgif/UmdONUbTBNOkVq8ToLPjUgzLkmVmNfTnQWnTQlsNyZ9+bGwyjCnh
A+B5U+BBOExg2+QFqmaaN4Zamu/JjRfOTfhCHi4FfqlgmYy3t5Nd+wq6UpninLNrN878Tpxdu8G2
/+N8wTIpBP74SDh8ItfclDcA5Ntb7iy/Ozy/ju42O+cifJ/y5d9JrHsVgJFPP8ePx/DjMeqxGOUT
J4m/tQGAe/v2UwmHGBsaouh5x35YuvgbIDv5u51etXZxTAUHYnPmvB5fulSakQg8VgjTme95lAcG
VOnu3Ut/JJNfXOyccxrIT16gtbVnrHOscNEsFrt8x5lnxeOYyRnIUAgRsh7KagjLpJ4bpTQwgDs8
cjHT3rY/k3r2N2A0nU4Hk+BMJqOjPZvy88byl42SE63nsvN8txzyw2FhxmJI0wQpCdCMj41RuXJV
udevl91i8diV1uSh+9BsOp2uT9tBent7JRB7f+Dam3Hff89UqksYRoeRSEQAAtetqSDI1kzzxkg4
fOLkC8+fA0aA4hM7yCNwAYTmZ3Mtcx03FUKkECKhhJC+EN64FMNDLc33cs1NecAFqul0ekpC/gXY
/CPMCV0dPwAAAABJRU5ErkJggg=='/>\n</Widgets>\n\n" |
| const charstring c_XTDP_Image_Shred := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<image id='image_shred' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsOAAALDgFAvuFBAAAAB3RJTUUH0woCFhYuYCJz0QAAAblJREFUeJyllb+q8jAYh58ePhFd
pHVxcdOlgw6ODuLU1avwAgRXBS9BvDZnF/+A0IoK2jZtzhRPk9Ni/c4PSpq8eZ/3lwQSq9PpoOR5
nnw+n4RhCEAYhtqnYmEYEkWRSrPI0b9sJ4oilstl3rxXodvtxuVyYTqdslqtWCwWMg+ugeM4BqDd
bhfCgyDg8Xhg2zau6xbCv0zH72TbNrVaDcdx6Pf7Lzgg/wRWcMdx2O/3hfDcrSgjx3GYz+f4vo/v
+wRBoMV/HV5Zrddrrtcru92O8/nMdrtls9nkgz9xLKWkXq/TbDaRUtJqtf7uWAiBEIIkSWg0GgD4
vq/N0Q6vjOMsNEkShBBUq1UqlUox+BMpqBAiN/7RHsdxTJIkRFGkQZXrQnDRHkspX8vPg6pYVm/3
OAtV/yb0LVip2+1qreu6SCnp9XoIIRgOh6Rpymg0AsDzvF+Mt47VmHlIaZpq46UcZxNVgmrVuFnQ
LKyBLevn5lMTiwBmqwrmgqX8ufnMRLOAWkEpx1mZABNUVKgQfL/fARgMBgAcDgcAxuMxAMfjEYDJ
ZALA6XQCYDabaRwr+5iivwLWf/Rf+gaq5nuqnqksPAAAAABJRU5ErkJggg=='/>\n</Widgets>\n\n" |
| const charstring c_XTDP_Image_Save := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<image id='image_save' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsSAAALEgHS3X78AAAAB3RJTUUH0wgaFi8epxLi1wAAAsJJREFUeJzVlD2PHEUQhp/ZnTV3
PvDHBcgykgMCEAGCf4CQkAgQiD8AMREidQbRRQT8A2JIQCBBgiFzAEIyEPpkGWTJvhV3uzO7091V
1dUEMzvHyWs7dkutqu4Zvf3029UNT1urNskPP/76UV1PD1Qzs3pC03bEpGTLzOopZhkRxSyjaqhu
onHnnznzo8V3zWL18c83Pl8A1Bvhup4evPTKtUtQce3qPp9+8Q3LJnDhuV0+++T9x9J9f+MWf966
/cG3X/0C8OEZ4ZSULgrVsImbvx9y+cJ56nryxG0vmg4H3PO7I+gmkWF7VdUL71/c4+UXr/DClctP
FBYxlssVKck4dyosiqgxqXrCt994lavPX2T/0rOPFXUvLJuW5aLBLD8snMQQzZRinDQd7731OqUU
SoH5cTvk/XgTzYyTk5ajB8d0IWJm24h7K7qY+O2PO6hlzDKWfci9r4icETFiSDTLlvU6cHzSEqM8
ilgRVUIcSspyX1KWB/+NmJQYhbZdEbpISkJKiogQYyTnLcI6WOHunN89h2UfateoiuMGk5KZlszO
bMpk9xyzScVsOuEoBFIScvZHERs7z8x4583XcHdCEEJIpKSo2mCX9QctNvYvv/6JeUiP9xjALBNC
IgRB1bYIn10giSCi261ISRHNmBp37/7L/fsNqjZcYR2usI72mPXiOzs1KQpJ0nZhGchMlaoq7O3V
iIAq1HWhrmE6LZjBZFJQLVRVARwZiN23eZyU1bojm7FaRRaLbqTqCU8fIREdH6HZrBqskO3EMSTW
60BxR9Vwz+T8cDfro7uNQv1Csp04xEQICbxgZpTiuPe9z/Mw7mPOm7ygIqgo7luIwzqyXrTkbKxW
y/HkT6vg7CGq5vGfdduQujW+rY6P54vr9/5+cBBT4vZfh+RcRuKcC6X4/+ZOv7kX7h3O6YLiznWe
2vYfEhrg/995S7wAAAAASUVORK5CYII='/>\n</Widgets>\n\n" |
| |
| var EPTF_CharstringList vl_imageList:= { |
| c_XTDP_Image_Ok, |
| c_XTDP_Image_Configure, |
| c_XTDP_Image_Play, |
| c_XTDP_Image_Pause, |
| c_XTDP_Image_Stop, |
| c_XTDP_Image_Exit, |
| c_XTDP_Image_Shred, |
| c_XTDP_Image_Save |
| } |
| |
| for(var integer i:=0;i<sizeof(vl_imageList);i:=i+1) { |
| |
| if( f_EPTF_UIHandlerClient_createGUI( |
| vl_imageList[i], |
| tsp_EPTF_GUI_Main_Window_WidgetId) != sr_Success ){ |
| log(%definitionId, ": cannot add element to gui: ", vl_imageList[i]); |
| } |
| |
| } |
| |
| } |
| |
| group DemoTestcases |
| { |
| //!!!!!!!!!!!!!!!!It is just a copy of the demo !!!!!!!!!!!!!!!!!!!!! |
| // Changes: |
| // Name convention purged a little bit |
| // Restructured (Splitted into tree files) |
| //========================================================================= |
| // Testcases |
| //========================================================================= |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_InitGUI |
| // |
| // Purpose: |
| // Tests loading the window stored in the config file. |
| // |
| // Parameters: |
| // - |
| // |
| // Return Value: |
| // - |
| // |
| // Errors: |
| // - |
| // |
| // Detailed Comments: |
| // To use the test you have to remove the comment mark of |
| // the tsp_EPTF_GUI_DefaultWindow module parameter in the config file |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_InitGUI() runs on EPTF_UIHandlerClient_CT system SYSTEM_CT{ |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| vc_subscriber.start(f_EPTF_UIHandler_BaseBehaviour("subscriber")); |
| f_EPTF_UIHandlerClient_init_CT("bubuHandlerClient", vc_subscriber); |
| alt { |
| [] any component.done {} |
| } |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| function getfloat() return float{ |
| return 0.8; |
| } |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_Messages |
| // |
| // Purpose: |
| // Tests the basic functionality. |
| // |
| // Parameters: |
| // - |
| // |
| // Return Value: |
| // - |
| // |
| // Errors: |
| // - |
| // |
| // Detailed Comments: |
| // Creates a subscription to the variable "intVarProv" with "intVar_Subscriber" |
| // name on the UIHandler side. Connects the variable to the "bubuTextBox" |
| // textbox. Than connects the same variable to the "tb2" textbox. |
| // If you change the value of one of the textboxes, at the next refresh |
| // the other must contain the same value. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_Messages() runs on HandlerClient_CT system SYSTEM_CT{ |
| var integer vl_intVarIdx := 0; |
| var integer vl_floatVarIdx := 1; |
| var charstring listboxitem := ""; |
| var integer listboxitemidx; |
| var integer numwvaridx, menulistidx, boolvaridx; |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| // INIT & build up layout |
| f_EPTF_UIHandlerClient_init_CT("bubuHandlerClient", vc_subscriber); |
| f_EPTF_UIHandler_VariableUI_init_CT("bubuHandlerVarUI", vc_subscriber); |
| // basebahaviour describes events and handles them. |
| vc_subscriber.start(f_EPTF_UIHandler_BaseBehaviour("subscriber", true)); |
| timer T_timer := 1.0; |
| T_timer.start; |
| T_timer.timeout; |
| f_EPTF_UIHandler_Test_createMainImages(); |
| var EPTF_UIHandlerClient_SubsRet ret := f_EPTF_UIHandlerClient_createGUI(c_MainHBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| ret := f_EPTF_UIHandlerClient_createGUI(c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| ret := f_EPTF_UIHandlerClient_createGUI(c_MainWidgets,"TestTab1"); |
| ret := f_EPTF_UIHandlerClient_createGUI(c_MainWidgets_sec, "testTab2"); |
| ret := f_EPTF_UIHandlerClient_createGUI("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<listbox id='slistbox' rows='0'/>\n</Widgets>\n\n","EPTF_Main_sec_labels"); |
| ret := f_EPTF_UIHandlerClient_createGUI("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<listitem id='item3' label='Item3'/>\n</Widgets>\n\n","flistbox"); |
| ret := f_EPTF_UIHandlerClient_createGUI("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<numericalwidget disabled='true' id='snw' value='34.100000' widgetType='floatField'/>\n</Widgets>\n\n","EPTF_Main_sec_labels"); |
| ret := f_EPTF_UIHandlerClient_createGUI("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<menulist editable='true' id='sml' label='ST'>\n\t\t<menupopup>\n\t\t\t<menuitem id='sml1' label='sml1' selected='false'/>\n\t\t</menupopup>\n\t</menulist>\n</Widgets>\n\n","EPTF_Main_sec_labels"); |
| ret := f_EPTF_UIHandlerClient_createGUI("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<menuitem id='sml2' label='sml2' selected='true'/>\n</Widgets>\n\n","sml"); |
| f_EPTF_UIHandlerClient_removeElementFromGUI("EPTF_snapshot_button"); |
| f_EPTF_UIHandlerClient_enableGUIElement(c_EPTF_runtimeGuiExitButtonWidgetId); |
| var charstring vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='bubuTextBox' multiline='false' readonly='false' rows='1.000000' value='bubu' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='tb2' multiline='false' readonly='false' rows='1.000000' value='tb2' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| // f_EPTF_Var_CT_LogAll("----newVar created----"); |
| log("----- HandlerClient INIT READY -------"); |
| |
| f_EPTF_Var_newInt("intVarProv",10, vl_intVarIdx); |
| f_EPTF_Var_newFloat("floatVar",9.7, vl_floatVarIdx); |
| f_EPTF_Var_newIntegerlist("lbistringlist",{},listboxitemidx); |
| f_EPTF_Var_newInt("numwidgetprov",1, numwvaridx); |
| f_EPTF_Var_newBool("boolvar",false, boolvaridx); |
| f_EPTF_Var_newCharstring("menulistprov","",menulistidx); |
| //Send a subscription note |
| f_EPTF_UIHandlerClient_subscribeMe("intVarProv", "intVar_Subscriber","bubuTextBox"); |
| f_EPTF_UIHandlerClient_subscribeMe("intVarProv","","tb2"); |
| f_EPTF_UIHandlerClient_subscribeMe("lbistringlist","csvar_subscriber","flistbox"); |
| // f_EPTF_UIHandlerClient_subscribeMe("numwidgetprov","numwvar_subscriber","fnumw"); |
| f_EPTF_UIHandlerClient_subscribeMe("menulistprov","menulistvar_subscriber","fmenulist"); |
| |
| // set up variable |
| f_EPTF_Var_adjustContent(vl_intVarIdx,{intVal:=19}); |
| |
| log("Starting varUI test"); |
| // testing variableui |
| // f_EPTF_UIHandler_VariableUI_addsimpleconnection("numwidgetprov","fnumw"); OK |
| // "fnumw", omit, omit, integerField,34,false,omit, omit, omit, omit, omit |
| var charstring treex := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tree id='term_static_groups_table' rows='0.000000'>\n\t\t<treecols>\n\t\t\t<treecol editable='false' flex='1.000000' label='GroupID' widgetType='string'/>\n\t\t\t<treecol editable='true' flex='1.000000' label='Expected number of incoming calls' widgetType='checkBox'/>\n\t\t</treecols>\n\t\t<treechildren>\n\t\t\t<treeitem>\n\t\t\t\t<treerow>\n\t\t\t\t\t<treecell label='alma1'/>\n\t\t\t\t\t<treecell id='almacb' label='alma2'/>\n\t\t\t\t</treerow>\n\t\t\t\t<treerow>\n\t\t\t\t\t<treecell label='korte1'/>\n\t\t\t\t\t<treecell id='kortecb' label='korte2'/>\n\t\t\t\t</treerow>\n\t\t\t</treeitem>\n\t\t</treechildren>\n\t</tree>\n</Widgets>\n\n" |
| if(sr_Fail == f_EPTF_UIHandlerClient_createGUI(treex,"EPTF_Main_sec_labels")) { |
| setverdict(fail, log2str("Cannot add element to GUI: ", treex)); |
| } |
| |
| var Widgets vl_widget; |
| var integer vl_retval; |
| vl_retval := dec_Widgets(char2oct("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<numericalwidget id='fnumw' readonly='false' value='34.000000' widgetType='integerField'/>\n</Widgets>\n\n"), vl_widget); |
| |
| f_EPTF_UIHandler_VariableUI_addwidgetconnection("numwidgetprov", |
| "fnumw", |
| vl_widget, |
| "EPTF_Main_sec_labels"); |
| // f_EPTF_UIHandler_VariableUI_addwidgetconnection("boolvar","boolvarcbid",{xtdp_treerow := {{omit, "uj", omit},{"boolvarcbid", "uj",omit}}},"term_static_groups_table"); |
| |
| vl_retval := dec_Widgets(char2oct(treex), vl_widget); |
| f_EPTF_UIHandler_VariableUI_addholdingwidget("1",vl_widget,"EPTF_Main_sec_labels"); |
| //f_EPTF_UIHandler_VariableUI_assignholdingwidget("boolvar","1"); |
| |
| |
| // f_EPTF_UIHandler_VariableUI_putwidgetconnection("boolvar","boolvarcbid", |
| // // {xtdp_treerow := {{omit, "uj", omit},{"boolvarcbid", "uj",omit}}}, |
| // valueof(t_treerow("NONE","boolvarcbid","uj")), |
| // "term_static_groups_table","1"); |
| // f_EPTF_UIHandler_VariableUI_putwidgetconnection("lbistring","NONE", |
| // // {xtdp_treerow := {{omit, "uj", omit},{"boolvarcbid", "uj",omit}}}, |
| // valueof(t_treerow("NONE","boolvarcbid","uj")), |
| // "term_static_groups_table","1"); |
| // f_EPTF_UIHandler_VariableUI_putsimpleconnection("lbistring", "NONE"); |
| log("---------------"); |
| |
| var charstring vl_treerowWidget := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treerow>\n\t\t<treecell id='NONE' label='uj'/>\n\t\t<treecell id='boolvarcbid' label=''/>\n\t</treerow>\n</Widgets>\n\n" |
| vl_retval := dec_Widgets(char2oct(vl_treerowWidget), vl_widget); |
| f_EPTF_UIHandler_VariableUI_putsinglewidgetconnectionList({{"lbistringlist", "NONE"},{"boolvar","boolvarcbid"}}, |
| vl_widget, |
| "term_static_groups_table","1"); |
| log("***************************"); |
| f_EPTF_UIHandler_VariableUI_putconnections(); |
| |
| |
| // START TESTING HOSTADMINUI |
| log("START TESTING HOSTADMINUI"); |
| // var EPTF_HostAdminUI_CT ct_hostadmin := EPTF_HostAdminUI_CT.create; |
| //ct_hostadmin.start(f_EPTF_HostAdminUI_behavior("LocalHostAdmin","Localhost",vc_subscriber)); |
| |
| //var EPTF_HostAdminUI_CT ct_hostadmin2 := EPTF_HostAdminUI_CT.create; |
| //ct_hostadmin2.start(f_EPTF_HostAdminUI_behavior("LocalHostAdmin2","Localhost",vc_subscriber)); |
| |
| //f_EPTF_LoadRegulatorUI_init_CT("lr 1",refers(getfloat),null,"EPTF_Main_Tabbox",vc_subscriber); |
| |
| //var EPTF_HostAdminUI_CT ct_hostadmin2 := EPTF_HostAdminUI_CT.create; |
| //ct_hostadmin2.start(f_EPTF_HostAdminUI_behavior("LocalHostAdmin2","Localhost",vc_subscriber)); |
| |
| |
| // START TESTING STATC |
| log("STATCAPTUREUI"); |
| // f_EPTF_StatCaptureUI_putUI({{groupName := "configgroup1", |
| // timerPeriod := 1.0, |
| // logFileNames := {"configFirstfile"}, |
| // statistics := { { varName := "var1", |
| // statType := content, //content, delta, deltaSum, min, max, mean, standardDev, EPS |
| // statName := "content", |
| // periodicReset := false, |
| // activeStat := true |
| // }, |
| // { varName := "var1", |
| // statType := delta, //content, delta, deltaSum, min, max, mean, standardDev, EPS |
| // statName := "delta", |
| // periodicReset := false, |
| // activeStat := true |
| // } |
| // } |
| // }, |
| // {groupName := "configgroup2", |
| // timerPeriod := 1.0, |
| // logFileNames := {"configSecondfile"}, |
| // statistics := { { varName := "var2", |
| // statType := min, //content, delta, deltaSum, min, max, mean, standardDev, EPS |
| // statName := "minReset", |
| // periodicReset := true, |
| // activeStat := true |
| // }, |
| // { varName := "var2", |
| // statType := EPS, //content, delta, deltaSum, min, max, mean, standardDev, EPS |
| // statName := "EPS", |
| // periodicReset := false, |
| // activeStat := true |
| // } |
| // } |
| // } |
| // }); |
| |
| //DISTRIBUTIOCHART |
| ret := f_EPTF_UIHandlerClient_createGUI("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<distributionchart axisXLabel='foo' axisYLabel='linear' id='dchart' orientation='horizontal' title='Demo DChart 01'>\n\t\t<intervallimits id='intvallid'>\n\t\t\t<value>2.300000</value>\n\t\t\t<value>4.500000</value>\n\t\t\t<value>8.500000</value>\n\t\t</intervallimits>\n\t\t<valuelist id='vlid1'>\n\t\t\t<value>2</value>\n\t\t\t<value>3</value>\n\t\t</valuelist>\n\t\t<valuelist id='vlid2'>\n\t\t\t<value>4</value>\n\t\t\t<value>6</value>\n\t\t</valuelist>\n\t</distributionchart>\n</Widgets>\n\n" , "TestTab1"); |
| |
| ret := f_EPTF_UIHandlerClient_createGUI("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<valuelist id='vlid3'>\n\t\t<value>2</value>\n\t\t<value>3</value>\n\t</valuelist>\n</Widgets>\n\n","dchart"); |
| |
| var integer valuelistvaridx; |
| f_EPTF_Var_newIntegerlist("intlistVarProv",{}, valuelistvaridx); |
| f_EPTF_UIHandlerClient_subscribeMe("intlistVarProv", "intlistVar_Subscriber","vlid3"); |
| // f_EPTF_Var_adjustContent(valuelistvaridx,{integerlistVal:={1,3}}); |
| |
| // MAIN LOOP |
| timer T_main := 500.7; |
| timer T_log := 3.0; |
| T_log.start; |
| T_main.start; |
| alt { |
| [] T_log.timeout{ |
| f_EPTF_Var_adjustContent(valuelistvaridx,{integerlistVal:={1,float2int(rnd()*10.0)}}); |
| f_EPTF_Var_adjustContent(listboxitemidx,{integerlistVal:={0,2}}); |
| log("ALMA:",f_EPTF_Var_getIntegerlistValue(listboxitemidx)); |
| // log("ALMA: ",f_EPTF_Var_getIntValue(numwvaridx), f_EPTF_Var_getBoolValue(boolvaridx)); |
| //f_EPTF_Var_adjustContent(listboxitemidx,{charstringVal:="Item2"}); |
| //f_EPTF_Var_adjustContent(numwvaridx,{intVal:=42}); |
| // f_EPTF_Var_adjustContent(menulistidx,{charstringVal:=""}); |
| |
| T_log.start; |
| repeat; |
| } |
| [] any component.done {} |
| [] T_main.timeout{} |
| } |
| |
| // Cleanup |
| setverdict(pass,"No any problem if some RuntimeGUI runtime errors appear because this testcase tests it.") |
| f_EPTF_Base_stop(pass); |
| } |
| |
| testcase tc_load()runs on HandlerClient_CT system SYSTEM_CT{ |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| var integer vl_intVarIdx := 0; |
| // INIT & build up layout |
| f_EPTF_UIHandlerClient_init_CT("bubuHandlerClient", vc_subscriber); |
| // basebahaviour describes events and handles them. |
| vc_subscriber.start(f_EPTF_UIHandler_BaseBehaviour("subscriber", true)); |
| var EPTF_UIHandlerClient_SubsRet ret := f_EPTF_UIHandlerClient_createGUI(c_MainHBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| var charstring vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='bubuTextBox' multiline='false' readonly='false' rows='1.000000' value='bubu' widgetType='console' wrap='false'/>\n</Widgets>\n\n"; |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| f_EPTF_Var_newInt("intVarProv",10, vl_intVarIdx); |
| f_EPTF_UIHandlerClient_subscribeMe("intVarProv", "intVar_Subscriber","bubuTextBox"); |
| // ret := f_EPTF_UIHandlerClient_createGUI(c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| timer T_main := 5.0; |
| timer T_period := 1.0/200.0; |
| T_main.start; |
| T_period.start; |
| alt { |
| [] T_period.timeout{ |
| f_EPTF_Var_adjustContent(vl_intVarIdx,{intVal:=float2int(rnd()*100.0)}); |
| f_EPTF_Var_refreshContent(vl_intVarIdx); |
| T_period.start; |
| repeat; |
| } |
| [] any component.done {} |
| [] T_main.timeout{} |
| } |
| T_main.start(10.0); |
| T_main.timeout; |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_VarDoesNotExist |
| // |
| // Purpose: |
| // Tests error handling. |
| // |
| // Parameters: |
| // - |
| // |
| // Return Value: |
| // - |
| // |
| // Errors: |
| // - |
| // |
| // Detailed Comments: |
| // Tries to connect to a variable that doesn't exist. The test must stop |
| // with fail verdict, and the log must contain the error message. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_VarDoesNotExist() runs on EPTF_UIHandlerClient_CT system SYSTEM_CT{ |
| //var integer vl_intVarIdx := 0; |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| //map(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| vc_subscriber.start(f_EPTF_UIHandler_BaseBehaviour("subscriber")); |
| f_EPTF_UIHandlerClient_init_CT("bubuHandlerClient", vc_subscriber); |
| // f_EPTF_Var_newInt("intVarProv",10, vl_intVarIdx); |
| f_EPTF_UIHandlerClient_subscribeMe("intVarProv", "intVarSubs", "bubuTextBox") |
| timer T_main := 5.7; |
| T_main.start; |
| alt { |
| [] any component.done {} |
| [] T_main.timeout{} |
| } |
| f_EPTF_Base_cleanup_CT(); |
| //unmap(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_WidgetDoesNotExist |
| // |
| // Purpose: |
| // Tests error handling. |
| // |
| // Parameters: |
| // - |
| // |
| // Return Value: |
| // - |
| // |
| // Errors: |
| // - |
| // |
| // Detailed Comments: |
| // Tries to connect a variable to a widget that doesn't exist. The test must stop |
| // with fail verdict, and the log must contain the error message. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_WidgetDoesNotExist() runs on EPTF_UIHandlerClient_CT system SYSTEM_CT{ |
| var integer vl_intVarIdx := 0; |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| //map(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| vc_subscriber.start(f_EPTF_UIHandler_BaseBehaviour("subscriber")); |
| f_EPTF_UIHandlerClient_init_CT("bubuHandlerClient", vc_subscriber); |
| f_EPTF_Var_newInt("intVarProv",10, vl_intVarIdx); |
| f_EPTF_UIHandlerClient_subscribeMe("intVarProv", "intVarSubs", "bubuDoesNotExist") |
| timer T_main := 25.7; |
| T_main.start; |
| alt { |
| [] any component.done {} |
| [] T_main.timeout{} |
| } |
| f_EPTF_Base_cleanup_CT(); |
| //unmap(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| } |
| |
| group grCb{ |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_Check |
| // |
| // Purpose: |
| // Tests the handling of different widget types (checkbox, floatfield, textbox and chart). |
| // |
| // Parameters: |
| // - |
| // |
| // Return Value: |
| // - |
| // |
| // Errors: |
| // - |
| // |
| // Detailed Comments: |
| // - |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_Check()runs on HandlerClient_CT system SYSTEM_CT{ |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| // THESE ARE PRIVATE: |
| // f_EPTF_Base_addComponent(vc_subscriber); |
| //map(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| vc_subscriber.start(f_EPTF_UIHandler_BaseBehaviour("subscriber",true)); |
| f_EPTF_UIHandlerClient_init_CT("checkHandlerClient", vc_subscriber); |
| var integer vl_boolVarIdx := 0; |
| var integer vl_floatVarIdx := 1; |
| var integer vl_floatCheckVarIdx := 2; |
| var integer vl_floatChartVarIdx := 3; |
| var integer vl_intVarIdx := -1; |
| f_EPTF_Var_newBool("boolVarHandlerClient",false, vl_boolVarIdx); |
| f_EPTF_Var_newFloat("floatVarHandlerClient",1.3, vl_floatVarIdx); |
| f_EPTF_Var_newFloat("floatCheckVarHandlerClient", 0.0, vl_floatCheckVarIdx); |
| f_EPTF_Var_newFloat("floatChartVarHandlerClient", 0.0, vl_floatChartVarIdx); |
| f_EPTF_Var_newInt("btnTest",0,vl_intVarIdx); |
| |
| f_EPTF_Var_CT_LogAll("----newVar created----"); |
| log("----- HandlerClient INIT READY -------"); |
| |
| var EPTF_UIHandlerClient_SubsRet ret := f_EPTF_UIHandlerClient_createGUI(c_MainHBox, "EPTF_Main_Window"); |
| ret := f_EPTF_UIHandlerClient_createGUI(c_MainTabBox, "EPTF_Main_Window"); |
| ret := f_EPTF_UIHandlerClient_createGUI(c_MainWidgets, "TestTab1"); |
| ret := f_EPTF_UIHandlerClient_createGUI(c_Tree, "TestTab1"); |
| var charstring vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='bubuTextBox' multiline='false' readonly='false' rows='1.000000' value='bubu' widgetType='console' wrap='false'/>\n</Widgets>\n\n" ; |
| //Add textboxes |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<chart axisXType='linear' axisYType='linear' backgroundColor='RGB:180:200:200' foregroundColor='Black' gridColor='black' gridX='true' gridY='false' id='chart1' title='Demo Chart 01' zoomable='true'>\n\t\t<trace color='red' id='trace01' name='Red line'/>\n\t\t<trace color='blue' id='trace02' name='Blue line'/>\n\t</chart>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_Window"); |
| f_EPTF_UIHandlerClient_enableGUIElement(c_EPTF_runtimeGuiExitButtonWidgetId); |
| f_EPTF_UIHandlerClient_enableGUIElement(c_EPTF_runtimeGuiSnapshotButtonWidgetId); |
| f_EPTF_UIHandlerClient_subscribeMe("boolVarHandlerClient", |
| "boolVarSubscriber","cellBoxxx"); |
| f_EPTF_UIHandlerClient_subscribeMe("boolVarHandlerClient", |
| "","tree1.0.1"); |
| f_EPTF_UIHandlerClient_subscribeMe("boolVarHandlerClient", |
| "","tree1.2.1"); |
| f_EPTF_UIHandlerClient_subscribeMe("floatCheckVarHandlerClient", |
| "floatCheck","cellFloat"); |
| f_EPTF_UIHandlerClient_subscribeMe("floatVarHandlerClient", |
| "floatVarSubscriber","tree1.1.0",sampled); |
| f_EPTF_UIHandlerClient_subscribeMe("floatCheckVarHandlerClient", |
| "","tree1.2.0"); |
| f_EPTF_UIHandlerClient_subscribeMe("floatVarHandlerClient", |
| "","tree1.3.0"); |
| f_EPTF_UIHandlerClient_subscribeMe("floatVarHandlerClient", |
| "","bubuTextBox"); |
| f_EPTF_UIHandlerClient_subscribeMe("floatChartVarHandlerClient", "trace01","trace01"); |
| f_EPTF_UIHandlerClient_subscribeMe("btnTest", "tree1.0.2", c_EPTF_runtimeGuiSnapshotButtonWidgetId, realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("btnTest", "tree1.0.2", "tree1.0.2", realtime); |
| |
| f_EPTF_Var_adjustContent(vl_boolVarIdx,{boolVal:=true}); |
| //f_EPTF_Var_adjustContent(vl_floatVarIdx,{floatVal:=1.341}); |
| //f_EPTF_Var_adjustContent(vl_floatCheckVarIdx,{floatVal:=1.341}); |
| timer t_waitProv := 1.0; |
| var integer vl_steps := 0; |
| t_waitProv.start; |
| timer t_traceTest := 0.2; |
| var float vl_chartTest := 0.2; |
| t_traceTest.start; |
| var boolean vl_guardtest := true; |
| alt { |
| [vl_guardtest] t_traceTest.timeout{ |
| vl_chartTest := vl_chartTest + 2.1; |
| f_EPTF_Var_adjustContent(vl_floatChartVarIdx,{floatVal:=vl_chartTest}); |
| t_traceTest.start; |
| repeat; |
| } |
| [] t_waitProv.timeout{ |
| var EPTF_Var_DirectContent vl_content; |
| f_EPTF_Var_getContent(vl_boolVarIdx, vl_content); |
| vl_guardtest := vl_content.boolVal; |
| if(vl_content.boolVal){ |
| vl_content.floatVal := 1.0; |
| }else{ |
| vl_content.floatVal := 0.0; |
| } |
| f_EPTF_Var_adjustContent(vl_floatCheckVarIdx,vl_content); |
| //log("----- content ----: ",vl_content); |
| /*if(vl_steps < 80)*/{ |
| vl_steps := vl_steps + 1; |
| t_waitProv.start; |
| repeat; |
| } |
| } |
| [] any component.done {} |
| } |
| f_EPTF_Base_cleanup_CT(); |
| log("----- HandlerClient shutdown -------"); |
| } |
| } |
| group grRemoveTest{ |
| |
| function f_logTreeItem(in charstring pl_pre, in integer pl_idx, in charstring pl_prevstr) |
| runs on EPTF_UIHandler_Test_CT |
| return charstring{ |
| var EPTF_UIHandler_GuiItemRecList vl_UIHandler_guiItemList := f_EPTF_UIHandler_guiItemList(); |
| var EPTF_UIHandler_GuiItemRec vl_rec := vl_UIHandler_guiItemList[pl_idx]; |
| pl_prevstr := pl_prevstr & pl_pre & vl_rec.id & "\n"; |
| for(var integer vl_i := 0; vl_i < sizeof(vl_rec.children);vl_i := vl_i + 1){ |
| pl_prevstr := f_logTreeItem(pl_pre & " ",vl_rec.children[vl_i], pl_prevstr); |
| } |
| return pl_prevstr; |
| } |
| function f_checkWidgetsConsistency()runs on EPTF_UIHandler_Test_CT{ |
| log("--- Checking widgetlist consistency..."); |
| var EPTF_UIHandler_GuiItemRecList vl_UIHandler_guiItemList := f_EPTF_UIHandler_guiItemList(); |
| for(var integer vl_i := 0; vl_i < sizeof(vl_UIHandler_guiItemList);vl_i := vl_i + 1){ |
| var EPTF_UIHandler_GuiItemRec vl_item := vl_UIHandler_guiItemList[vl_i]; |
| if(vl_item.widgetType == wtUnknown){ |
| if(vl_item != c_UIHandler_emptyGUIItem){ |
| setverdict ( fail , log2str("The widget's type is unknown, but the record is not empty.",vl_item)); |
| } |
| }else{ |
| //There is nothing to do width the window |
| if(vl_item.widgetType != wtWindow){ |
| if((match(vl_item.parentIdx, (0..sizeof(vl_UIHandler_guiItemList) )) and |
| vl_UIHandler_guiItemList[vl_item.parentIdx].widgetType != wtUnknown)){ |
| //The control must be in its parent's childlist |
| var integer vl_chidx := 0; |
| while( vl_chidx < sizeof(vl_UIHandler_guiItemList[vl_item.parentIdx].children) and |
| vl_UIHandler_guiItemList[vl_item.parentIdx].children[vl_chidx]!= vl_i) |
| { |
| vl_chidx := vl_chidx + 1; |
| } |
| if(vl_chidx >= sizeof(vl_UIHandler_guiItemList[vl_item.parentIdx].children) or |
| vl_UIHandler_guiItemList[vl_item.parentIdx].children[vl_chidx]!= vl_i){ |
| setverdict ( fail, log2str("The widget doesn't exist in its parent's childlist.",vl_item) ); |
| } |
| }else{ |
| setverdict ( fail, log2str("The parent index of the element is out of range.",vl_item) ); |
| } |
| } |
| } |
| } |
| } |
| |
| altstep as_EPTF_UIHandler_RemoveBehaviour() runs on EPTF_UIHandler_Test_CT |
| { |
| [] TestPort_CP.receive({reqGetSubscriptions := ?}) |
| { |
| var SubscriptionSet vl_respGetSubscriptions := {}; |
| var EPTF_UIHandler_OpenSubscriptions vl_UIHandler_openSubscriptions := f_EPTF_UIHandler_openSubscriptions(); |
| for(var integer vl_i := 0; vl_i < sizeof(vl_UIHandler_openSubscriptions);vl_i := vl_i + 1) |
| { |
| vl_respGetSubscriptions[sizeof(vl_respGetSubscriptions)] := vl_UIHandler_openSubscriptions[vl_i]; |
| }; |
| TestPort_CP.send({respGetSubscriptions := vl_respGetSubscriptions}); |
| repeat; |
| } |
| [] TestPort_CP.receive({logmsg := ?}) |
| { |
| var EPTF_UIHandler_GuiItemRecList vl_UIHandler_guiItemList := f_EPTF_UIHandler_guiItemList(); |
| for(var integer vl_i := 0; vl_i < sizeof(vl_UIHandler_guiItemList);vl_i := vl_i + 1) |
| { |
| log(vl_i, " - ", vl_UIHandler_guiItemList[vl_i]); |
| } |
| repeat; |
| } |
| [] TestPort_CP.receive({stopMsg := ?}) |
| { |
| f_checkWidgetsConsistency(); |
| } |
| }; |
| |
| function f_EPTF_UIHandler_RemoveBehaviour(charstring pl_selfName) runs on EPTF_UIHandler_Test_CT{ |
| log("----- Subscriber START -------"); |
| f_EPTF_UIHandlerXUL_init_CT(pl_selfName); |
| f_EPTF_UIHandler_clearGUI(); |
| |
| activate(as_EPTF_UIHandler_RemoveBehaviour()); |
| |
| f_EPTF_UIHandler_exitButtonPressed(); |
| f_EPTF_Base_cleanup_CT(); |
| } |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_removef_EPTF_UIHandlerXUL_init_CT |
| // |
| // Purpose: |
| // Tests the internal widget database handling if we remove an |
| // element with children. One of the children has subscription. |
| // |
| // Parameters: |
| // - |
| // |
| // Return Value: |
| // - |
| // |
| // Errors: |
| // - |
| // |
| // Detailed Comments: |
| // - |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_remove()runs on HandlerClient_CT system SYSTEM_CT{ |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| //map(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| connect(self:TestPort_CP, vc_subscriber:TestPort_CP); |
| vc_subscriber.start(f_EPTF_UIHandler_RemoveBehaviour("subscriber")); |
| var integer vl_varIdx := 0; |
| f_EPTF_UIHandlerClient_init_CT("bubuHandlerClient", vc_subscriber); |
| var EPTF_UIHandlerClient_SubsRet ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_wndXul, ""); |
| f_EPTF_UIHandlerClient_enableGUIElement(c_EPTF_runtimeGuiExitButtonWidgetId); |
| f_EPTF_Var_newBool("boolVarHandlerClient",false, vl_varIdx); //0 |
| f_EPTF_Var_newFloat("floatVarHandlerClient",1.3, vl_varIdx); //2 |
| f_EPTF_Var_newFloat("floatCheckVarHandlerClient", 0.0, vl_varIdx); //1 |
| f_EPTF_Var_newFloat("floatChartVarHandlerClient", 0.0, vl_varIdx); //3 |
| f_EPTF_UIHandlerClient_subscribeMe("boolVarHandlerClient","boolVarSubscriber","cellBoxxx"); |
| f_EPTF_UIHandlerClient_subscribeMe("boolVarHandlerClient","","tree1.0.1"); |
| f_EPTF_UIHandlerClient_subscribeMe("boolVarHandlerClient","","tree1.2.1"); |
| f_EPTF_UIHandlerClient_subscribeMe("floatCheckVarHandlerClient","floatCheck","cellFloat"); |
| f_EPTF_UIHandlerClient_subscribeMe("floatVarHandlerClient","floatVarSubscriber","tree1.1.0"/*"cellFloat"*/); |
| f_EPTF_UIHandlerClient_subscribeMe("floatCheckVarHandlerClient","","tree1.2.0"); |
| f_EPTF_UIHandlerClient_subscribeMe("floatVarHandlerClient","","tree1.3.0"); |
| f_EPTF_UIHandlerClient_subscribeMe("floatVarHandlerClient","","bubuTextBox"); |
| f_EPTF_UIHandlerClient_subscribeMe("floatChartVarHandlerClient", "trace01","trace01"); |
| var SubscriptionSet vl_requiredSubscriptions := { |
| { |
| provider := self, |
| providedParamName :="boolVarHandlerClient", |
| varIdx := 0, |
| widgetId := "cellBoxxx", |
| widgetType := wtTreecell, |
| widgetDataType := checkBox |
| }, |
| { |
| provider := self, |
| providedParamName :="boolVarHandlerClient", |
| varIdx := 0, |
| widgetId := "tree1.0.1", |
| widgetType := wtTreecell, |
| widgetDataType := checkBox |
| }, |
| { |
| provider := self, |
| providedParamName :="boolVarHandlerClient", |
| varIdx := 0, |
| widgetId := "tree1.2.1", |
| widgetType := wtTreecell, |
| widgetDataType := checkBox |
| }, |
| { |
| provider := self, |
| providedParamName :="floatCheckVarHandlerClient", |
| varIdx := 1, |
| widgetId := "cellFloat", |
| widgetType := wtTreecell, |
| widgetDataType := floatField |
| }, |
| { |
| provider := self, |
| providedParamName :="floatCheckVarHandlerClient", |
| varIdx := 1, |
| widgetId := "tree1.2.0", |
| widgetType := wtTreecell, |
| widgetDataType := floatField |
| }, |
| { |
| provider := self, |
| providedParamName :="floatVarHandlerClient", |
| varIdx := 2, |
| widgetId := "tree1.1.0", |
| widgetType := wtTreecell, |
| widgetDataType := floatField |
| }, |
| { |
| provider := self, |
| providedParamName :="floatVarHandlerClient", |
| varIdx := 2, |
| widgetId := "tree1.3.0", |
| widgetType := wtTreecell, |
| widgetDataType := floatField |
| }, |
| { |
| provider := self, |
| providedParamName :="floatVarHandlerClient", |
| varIdx := 2, |
| widgetId := "bubuTextBox", |
| widgetType := wtTextbox, |
| widgetDataType := omit |
| }, |
| { |
| provider := self, |
| providedParamName :="floatChartVarHandlerClient", |
| varIdx := 3, |
| widgetId := "trace01", |
| widgetType := wtTrace, |
| widgetDataType := omit |
| } |
| } |
| var TestMsg vl_receivedSubscriptions; |
| TestPort_CP.send( {reqGetSubscriptions := 0} ); |
| TestPort_CP.receive(tr_respGetSubscriptions)-> value vl_receivedSubscriptions{ |
| if(vl_receivedSubscriptions.respGetSubscriptions == vl_requiredSubscriptions){ |
| setverdict ( pass ); |
| }else{ |
| log(vl_receivedSubscriptions); |
| log(vl_requiredSubscriptions); |
| setverdict ( fail, log2str("vl_receivedSubscriptions.respGetSubscriptions != vl_requiredSubscriptions. ", |
| "vl_receivedSubscriptions.respGetSubscriptions = ", vl_receivedSubscriptions.respGetSubscriptions, |
| " vl_requiredSubscriptions = ", vl_requiredSubscriptions)); |
| } |
| } |
| TestPort_CP.send({logmsg := 0}); |
| var EPTF_UIHandler_HandledWidgetType vl_wt := f_EPTF_UIHandlerClient_widgetExists("EPTF_Main_hbox_labels"); |
| if(vl_wt != wtHbox){ |
| setverdict ( fail, log2str("vl_wt != wtHbox, vl_wt = ", vl_wt)); |
| }else{log("Type of EPTF_Main_hbox_labels: ",vl_wt)} |
| vl_wt := f_EPTF_UIHandlerClient_widgetExists("bubuDoesntExist"); |
| if(vl_wt != wtUnknown){ |
| setverdict ( fail, log2str("vl_wt != wtUnknown. vl_wt = ", vl_wt) ); |
| }else{log("Type of EPTF_Main_hbox_labels: ",vl_wt)} |
| f_EPTF_UIHandlerClient_removeElementFromGUI("EPTF_Main_hbox_labels"); |
| var SubscriptionSet vl_requiredSubscriptions2 := { |
| { |
| provider := self, |
| providedParamName :="boolVarHandlerClient", |
| varIdx := 0, |
| widgetId := "cellBoxxx", |
| widgetType := wtTreecell, |
| widgetDataType := checkBox |
| }, |
| { |
| provider := self, |
| providedParamName :="boolVarHandlerClient", |
| varIdx := 0, |
| widgetId := "tree1.0.1", |
| widgetType := wtTreecell, |
| widgetDataType := checkBox |
| }, |
| { |
| provider := self, |
| providedParamName :="boolVarHandlerClient", |
| varIdx := 0, |
| widgetId := "tree1.2.1", |
| widgetType := wtTreecell, |
| widgetDataType := checkBox |
| }, |
| { |
| provider := self, |
| providedParamName :="floatCheckVarHandlerClient", |
| varIdx := 1, |
| widgetId := "cellFloat", |
| widgetType := wtTreecell, |
| widgetDataType := floatField |
| }, |
| { |
| provider := self, |
| providedParamName :="floatCheckVarHandlerClient", |
| varIdx := 1, |
| widgetId := "tree1.2.0", |
| widgetType := wtTreecell, |
| widgetDataType := floatField |
| }, |
| { |
| provider := self, |
| providedParamName :="floatVarHandlerClient", |
| varIdx := 2, |
| widgetId := "tree1.1.0", |
| widgetType := wtTreecell, |
| widgetDataType := floatField |
| }, |
| { |
| provider := self, |
| providedParamName :="floatVarHandlerClient", |
| varIdx := 2, |
| widgetId := "tree1.3.0", |
| widgetType := wtTreecell, |
| widgetDataType := floatField |
| }, |
| { |
| provider := self, |
| providedParamName :="floatVarHandlerClient", |
| varIdx := 2, |
| widgetId := "", |
| widgetType := wtTextbox, |
| widgetDataType := omit |
| }, |
| { |
| provider := self, |
| providedParamName :="floatChartVarHandlerClient", |
| varIdx := 3, |
| widgetId := "trace01", |
| widgetType := wtTrace, |
| widgetDataType := omit |
| } |
| } |
| TestPort_CP.send( {reqGetSubscriptions := 0} ); |
| TestPort_CP.receive(tr_respGetSubscriptions)-> value vl_receivedSubscriptions{ |
| if(vl_receivedSubscriptions.respGetSubscriptions == vl_requiredSubscriptions2){ |
| setverdict ( pass ); |
| }else{ |
| log(vl_receivedSubscriptions); |
| log(vl_requiredSubscriptions2); |
| setverdict ( fail, log2str("vl_receivedSubscriptions.respGetSubscriptions != vl_requiredSubscriptions2", |
| " vl_receivedSubscriptions.respGetSubscriptions = ", vl_receivedSubscriptions.respGetSubscriptions, |
| " vl_requiredSubscriptions2 = ", vl_requiredSubscriptions2) ); |
| } |
| } |
| TestPort_CP.send({logmsg := 0}); |
| //TestPort_CP.send({stopMsg := 0}); |
| f_EPTF_Base_cleanup_CT(); |
| disconnect(self:TestPort_CP, vc_subscriber:TestPort_CP); |
| //unmap(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| } |
| } |
| group multiprov{ |
| |
| const integer c_numVars := 10; |
| function f_multiHandlerClientBehaviour(charstring pl_selfName, integer pl_idx, EPTF_UIHandler_CT pl_subs) runs on HandlerClient_CT{ |
| log("----- Subscriber START -------"); |
| var charstring vl_idxStr := int2str(pl_idx); |
| f_EPTF_UIHandlerClient_init_CT(pl_selfName,pl_subs); |
| var integer vl_rnd := float2int(rnd(int2float(pl_idx mod 10))*30.0); |
| var integer vl_varIdxTmp := 0; |
| var integer vl_varIdx := 0; |
| timer t_wait := 0.5; |
| t_wait.start; |
| t_wait.timeout{}; |
| //Create random number of float variables |
| for(var integer vl_i := 0; vl_i < vl_rnd; vl_i := vl_i + 1){ |
| f_EPTF_Var_newFloat("floatVar"&int2str(vl_i),rnd(int2float(vl_i)),vl_varIdxTmp); |
| } |
| //This is our one |
| f_EPTF_Var_newFloat("floatVar"&int2str(vl_rnd),rnd(int2float(vl_rnd)),vl_varIdx); |
| //Create anoter random nuber of floats |
| for(var integer vl_i := 0; vl_i < vl_rnd; vl_i := vl_i + 1){ |
| f_EPTF_Var_newFloat("floatVar"&int2str(vl_i+vl_rnd+1),rnd(int2float(vl_i)),vl_varIdxTmp); |
| } |
| |
| //Send subscription note to our float |
| f_EPTF_UIHandlerClient_subscribeMe("floatVar"&int2str(vl_rnd), |
| "floatVar"&vl_idxStr,"tree1."&vl_idxStr&".0"); |
| timer t_tick := 0.5; |
| t_tick.start; |
| alt{ |
| [] t_tick.timeout{ |
| f_EPTF_Var_adjustContent(vl_varIdx,{floatVal:=int2float(vl_varIdx*100+pl_idx)+rnd()}); |
| t_tick.start; |
| repeat; |
| } |
| } |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_multi |
| // |
| // Purpose: |
| // Tests working of more than one providers with one UIHandler. |
| // |
| // Parameters: |
| // - |
| // |
| // Return Value: |
| // - |
| // |
| // Errors: |
| // - |
| // |
| // Detailed Comments: |
| // - |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_multi()runs on HandlerClient_CT system SYSTEM_CT{ |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| //map(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| connect(self:TestPort_CP, vc_subscriber:TestPort_CP); |
| vc_subscriber.start(f_EPTF_UIHandler_BaseBehaviour("subscriber",true)); |
| f_EPTF_UIHandlerClient_init_CT("checkHandlerClient", vc_subscriber); |
| var charstring vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tree id='tree1' rows='10.000000'>\n\t\t<treecols>\n\t\t\t<treecol id='col1' label='column' widgetType='floatField'/>\n\t\t\t<treecol id='col2' label='column' widgetType='checkBox'/>\n\t\t</treecols>\n\t\t<treechildren>\n\t\t\t<treeitem/>\n\t\t</treechildren>\n\t</tree>\n</Widgets>\n\n"; |
| var integer vl_i := 0; |
| //var EPTF_UIHandlerClient_SubsRet ret := f_EPTF_UIHandlerClient_createGUI(c_MainWidgets, "EPTF_Main_Window"); |
| log("------- add tree ",vl_xul); |
| // ret := f_EPTF_UIHandlerClient_createGUI(vl_xul,"EPTF_Main_hbox_labels"); |
| f_EPTF_UIHandlerClient_enableGUIElement(c_EPTF_runtimeGuiExitButtonWidgetId); |
| for(vl_i := 0; vl_i < c_numVars; vl_i := vl_i + 1){ |
| var HandlerClient_CT vl_idxProv := HandlerClient_CT.create; |
| vl_idxProv.start( f_multiHandlerClientBehaviour("genHandlerClient"&int2str(vl_i), vl_i, vc_subscriber) ); |
| } |
| alt{ |
| [] any component.done {} |
| } |
| //TestPort_CP.send({stopMsg := 0}); |
| f_EPTF_Base_cleanup_CT(); |
| disconnect(self:TestPort_CP, vc_subscriber:TestPort_CP); |
| //unmap(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| } |
| } |
| |
| testcase tc_dynTree()runs on HandlerClient_CT system SYSTEM_CT{ |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| //map(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| connect(self:TestPort_CP, vc_subscriber:TestPort_CP); |
| vc_subscriber.start(f_EPTF_UIHandler_BaseBehaviour("subscriber",true)); |
| f_EPTF_UIHandlerClient_init_CT("checkHandlerClient", vc_subscriber); |
| var EPTF_UIHandlerClient_SubsRet ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets, "EPTF_Main_Window"); |
| const charstring cl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tree id='tree1' rows='" & log2str(int2float(c_numVars)) & "'>\n\t\t<treecols>\n\t\t\t<treecol id='col1' label='column' widgetType='floatField'/>\n\t\t\t<treecol id='col2' label='column' widgetType='checkBox'/>\n\t\t</treecols>\n\t\t<treechildren>\n\t\t\t<treeitem/>\n\t\t</treechildren>\n\t</tree>\n</Widgets>\n\n" |
| |
| log("------- add tree ",cl_xul); |
| ret := f_EPTF_UIHandlerClient_createGUI(cl_xul,"EPTF_Main_hbox_labels"); |
| var integer vl_boolVarIdx; |
| for(var integer vl_i := 0; vl_i < c_numVars; vl_i := vl_i + 1 ){ |
| f_EPTF_Var_newBool("boolVarHandlerClient"&int2str(vl_i),false, vl_boolVarIdx); |
| f_EPTF_UIHandlerClient_subscribeMe( |
| "boolVarHandlerClient"&int2str(vl_i), |
| "intVar_Subscriber"&int2str(vl_i), |
| "tree1."&int2str(vl_i)&".1"); |
| } |
| for(var integer vl_i := 0; vl_i < c_numVars; vl_i := vl_i + 3 ){ |
| f_EPTF_Var_adjustContent(vl_i,{boolVal:=true}); |
| } |
| any component.done {}; |
| f_EPTF_Base_cleanup_CT(); |
| disconnect(self:TestPort_CP, vc_subscriber:TestPort_CP); |
| //unmap(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| } |
| |
| testcase tc_errResp()runs on EPTF_UIHandler_Test_CT system SYSTEM_CT{ |
| //var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| //map(self:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| f_EPTF_UIHandlerXUL_init_CT("checkHandlerClient"); |
| |
| var XTDP_Requests vl_requests := {}; |
| var integer vl_UIHandler_lastRequest := 11111; |
| for(var integer vl_i := 0; vl_i < 15; vl_i := vl_i + 1){ |
| vl_UIHandler_lastRequest := vl_UIHandler_lastRequest + 1; |
| |
| var XTDP_Request vl_request := valueof( ts_ASP_XTDP_traceItem( |
| vl_UIHandler_lastRequest, |
| "chart1", |
| float2str(int2float(vl_i)) & "/" & float2str(rnd()))); |
| vl_requests.xTDP_Request_list[sizeof(vl_requests.xTDP_Request_list)] := vl_request; |
| } |
| // f_EPTF_UIHandler_send_XTDP(ts_ASP_XTDP_sendTimeline(v_UIHandler_GUIClientId,vl_requests)); |
| vl_requests := {}; |
| for(var integer vl_i := 15; vl_i < 25; vl_i := vl_i + 1){ |
| vl_UIHandler_lastRequest := vl_UIHandler_lastRequest + 1; |
| var XTDP_Request vl_request := valueof(ts_ASP_XTDP_traceItem( |
| vl_UIHandler_lastRequest, |
| "chart1", |
| float2str(int2float(vl_i)) & "/" & |
| float2str(rnd()))); |
| vl_requests.xTDP_Request_list[sizeof(vl_requests.xTDP_Request_list)] := vl_request; |
| } |
| // f_EPTF_UIHandler_send_XTDP(ts_ASP_XTDP_sendTimeline(v_UIHandler_GUIClientId,vl_requests)); |
| vl_requests := {}; |
| vl_UIHandler_lastRequest := vl_UIHandler_lastRequest + 1; |
| var XTDP_Request vl_request := valueof(ts_ASP_XTDP_traceItem( |
| vl_UIHandler_lastRequest, |
| "bubuchart1", |
| float2str(25.0) & "/" & |
| float2str(rnd()))); |
| vl_requests.xTDP_Request_list[sizeof(vl_requests.xTDP_Request_list)] := vl_request; |
| log("----- ---- send invalid widget ID:") |
| // f_EPTF_UIHandler_send_XTDP(ts_ASP_XTDP_sendTimeline(v_UIHandler_GUIClientId,vl_requests)); |
| timer t1 := 5.0; |
| t1.start; |
| t1.timeout; |
| f_EPTF_Base_cleanup_CT(); |
| //unmap(self:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| } |
| |
| testcase tc_subsTypes()runs on HandlerClient_CT system SYSTEM_CT{ |
| var integer vl_intVarIdx := 0; |
| var integer vl_floatVarIdx := 1; |
| var integer vl_snaphotIdx := 0; |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| //map(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| vc_subscriber.start(f_EPTF_UIHandler_BaseBehaviour("subscriber", true)); |
| f_EPTF_UIHandlerClient_init_CT("bubuHandlerClient", vc_subscriber); |
| f_EPTF_Var_newInt("intVarProv",0, vl_intVarIdx); |
| f_EPTF_Var_newInt("snapshot",0, vl_snaphotIdx); |
| f_EPTF_Var_newFloat("floatVar",0.0, vl_floatVarIdx); |
| |
| var EPTF_UIHandlerClient_SubsRet ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainHBox, "EPTF_Main_Window"); |
| ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, "EPTF_Main_Window"); |
| ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets, "TestTab1"); |
| ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_Tree, "TestTab1"); |
| f_EPTF_UIHandlerClient_enableGUIElement(c_EPTF_runtimeGuiSnapshotButtonWidgetId); |
| f_EPTF_UIHandlerClient_enableGUIElement(c_EPTF_runtimeGuiExitButtonWidgetId); |
| f_EPTF_Var_CT_LogAll("----newVar created----"); |
| log("----- HandlerClient INIT READY -------"); |
| //Send a subscription note |
| f_EPTF_UIHandlerClient_subscribeMe("intVarProv", "intVar_Subscriber","tree1.0.2",sampled); |
| f_EPTF_UIHandlerClient_subscribeMe("floatVar","floatVar","tree1.0.0"); |
| f_EPTF_UIHandlerClient_subscribeMe("snapshot", "snapshot",c_EPTF_runtimeGuiSnapshotButtonWidgetId, realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("snapshot", "","tree1.1.2"); |
| timer t_t := 0.2; |
| t_t.start; |
| alt { |
| [] t_t.timeout{ |
| var EPTF_Var_DirectContent vl_currentContent; |
| f_EPTF_Var_getContent(vl_intVarIdx,vl_currentContent); |
| vl_currentContent.intVal := vl_currentContent.intVal + 1; |
| f_EPTF_Var_adjustContent(vl_intVarIdx,vl_currentContent); |
| f_EPTF_Var_getContent(vl_floatVarIdx,vl_currentContent); |
| vl_currentContent.floatVal := vl_currentContent.floatVal + 1.0; |
| f_EPTF_Var_adjustContent(vl_floatVarIdx,vl_currentContent); |
| t_t.start; |
| repeat; |
| } |
| [] any component.done {} |
| } |
| f_EPTF_Base_cleanup_CT(); |
| //unmap(vc_subscriber:EPTF_guiPortIf,system:EPTF_guiPortIf); |
| } |
| |
| function f_EPTF_UIHandler_Test_CLI_BaseBehaviour( |
| charstring pl_selfName) |
| runs on EPTF_UIHandler_CLI_CT{ |
| log("----- Subscriber START -------"); |
| //log("v_UIHandler_guiConnected: ", v_UIHandler_guiConnected); |
| f_EPTF_UIHandler_CLI_init_CT(pl_selfName,true); |
| |
| f_EPTF_UIHandler_exitButtonPressed(); |
| log("Altstep finished"); |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| //============================================= |
| //Name: tc_CLI |
| //Purpose: |
| //Status: fetched from demo |
| //============================================= |
| testcase tc_CLI() runs on EPTF_UIHandlerClient_CT system SYSTEM_CT{ |
| var EPTF_UIHandler_CLI_CT vc_subscriber := EPTF_UIHandler_CLI_CT.create; |
| |
| log("tsp_EPTF_UIHandler_servermode: ",tsp_EPTF_UIHandler_servermode); |
| |
| vc_subscriber.start(f_EPTF_UIHandler_Test_CLI_BaseBehaviour("subscriber")); |
| f_EPTF_UIHandlerClient_init_CT("bubuHandlerClient", vc_subscriber); |
| var integer vl_varIdx; |
| f_EPTF_Var_newFloat("floatVar",9.7, vl_varIdx); |
| f_EPTF_Var_newBool("bubuBool",true, vl_varIdx); |
| f_EPTF_UIHandlerClient_subscribeMe("floatVar", "floatVarGUI", "orig_static_groups_table.1.1"); |
| f_EPTF_UIHandlerClient_subscribeMe("bubuBool", "bubuBoolGUI", "orig_static_groups_table.2.3"); |
| alt { |
| [] any component.done {} |
| } |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| |
| group HL37208 { |
| |
| function f_HL37208_uiClient() runs on EPTF_UIHandlerClient_CT |
| { |
| f_EPTF_UIHandlerClient_init_CT("HL37208_uiClient", mtc); |
| |
| var charstring vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tabpage id='HL37208_tab' label='HL37208' orientation='vertical'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, tsp_EPTF_GUI_Main_Tabbox_WidgetId); |
| |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tree hidecolumnpicker='false' id='HL37208_tree' rows='0.000000'>\n\t\t<treecols>\n\t\t\t<treecol editable='false' flex='1.000000' label='Head1' widgetType='string'/>\n\t\t\t<treecol editable='false' flex='1.000000' label='Head2' widgetType='string'/>\n\t\t</treecols>\n\t\t<treechildren/>\n\t</tree>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "HL37208_tab"); |
| |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treeitem>\n\t\t<treerow>\n\t\t\t<treecell label='String1'/>\n\t\t\t<treecell id='HL37208_string2' label='String2'/>\n\t\t</treerow>\n\t</treeitem>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "HL37208_tree"); |
| |
| var integer vl_idx; |
| f_EPTF_Var_newCharstring("HL37208_cs", "initialValue", vl_idx); |
| f_EPTF_UIHandlerClient_subscribeMe("HL37208_cs", "gui.HL37208_cs", "HL37208_string2", realtime); |
| |
| timer T; |
| T.start(1.0);T.timeout; |
| |
| f_EPTF_Var_adjustContent(vl_idx, {charstringVal := "finalValue"}); |
| |
| f_EPTF_Base_wait4Shutdown(); |
| } |
| |
| altstep as_HL37208_msgHandler() runs on EPTF_UIHandler_Test_CliClient_CT |
| { |
| []CLI_PCO.receive { repeat } |
| []Disp_PCO.receive { repeat } |
| } |
| |
| function f_EPTF_UIHandler_Test_CliClient_init(in charstring pl_name) |
| runs on EPTF_UIHandler_Test_CliClient_CT{ |
| f_EPTF_Base_init_CT(pl_name); |
| map(self:CLI_PCO, system:CLI_PCO); |
| map(self:Disp_PCO, system:Disp_PCO); |
| f_EPTF_Base_registerCleanup(refers( f_EPTF_UIHandler_Test_CliClient_cleanup )) |
| } |
| |
| function f_EPTF_UIHandler_Test_CliClient_cleanup() |
| runs on EPTF_UIHandler_Test_CliClient_CT{ |
| unmap(self:CLI_PCO, system:CLI_PCO); |
| unmap(self:Disp_PCO, system:Disp_PCO); |
| } |
| |
| function f_HL37208_cliClient() runs on EPTF_UIHandler_Test_CliClient_CT |
| { |
| f_EPTF_UIHandler_Test_CliClient_init("HL37208_cliClient"); |
| var default vl_def := activate(as_HL37208_msgHandler()); |
| |
| CLI_PCO.send("get gui.HL37208_cs"); |
| CLI_PCO.send("get gui.NonexistentVar"); |
| CLI_PCO.send("display gui.HL37208_cs"); |
| CLI_PCO.send("display gui.NonexistentVar"); |
| |
| timer T; |
| T.start(2.0 * tsp_EPTF_Var_SyncInterval); |
| T.timeout; |
| |
| deactivate(vl_def); |
| //unmap(self:CLI_PCO, system:CLI_PCO); |
| //unmap(self:Disp_PCO, system:Disp_PCO); |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_HL37208() runs on EPTF_UIHandler_CLI_CT |
| { |
| var EPTF_UIHandlerClient_CT vl_uiClient := EPTF_UIHandlerClient_CT.create; |
| var EPTF_UIHandler_Test_CliClient_CT vl_cliClient := EPTF_UIHandler_Test_CliClient_CT.create; |
| |
| f_EPTF_UIHandler_CLI_init_CT("HL37208_mtc", true); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| f_EPTF_UIHandler_addMainTabbox(); |
| |
| vl_uiClient.start(f_HL37208_uiClient()); |
| // wait for the client to put stuff on the GUI |
| timer T_wait; |
| T_wait.start(5.0); T_wait.timeout; |
| |
| vl_cliClient.start(f_HL37208_cliClient()); |
| vl_cliClient.done; // wait for the cli-client to query stuff via the CLI |
| |
| // no error -> pass |
| setverdict(pass); |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| } // group HL37208 |
| |
| |
| group CRTR15823_manualTest { |
| |
| function f_CRTR15823_uiClient() runs on EPTF_UIHandlerClient_CT |
| { |
| f_EPTF_UIHandlerClient_init_CT("CRTR15823_uiClient", mtc); |
| |
| var charstring vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tabpage id='CRTR15823_tab' label='CRTR15823' orientation='vertical'/>\n</Widgets>\n\n" |
| |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, tsp_EPTF_GUI_Main_Tabbox_WidgetId); |
| |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tree hidecolumnpicker='false' id='CRTR15823_tree' rows='0.000000'>\n\t\t<treecols>\n\t\t\t<treecol editable='false' flex='1.000000' label='Head1' widgetType='string'/>\n\t\t\t<treecol editable='false' flex='1.000000' label='Head2' widgetType='string'/>\n\t\t\t<treecol editable='true' flex='1.000000' label='Head3' widgetType='string'/>\n\t\t</treecols>\n\t\t<treechildren/>\n\t</tree>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "CRTR15823_tab"); |
| |
| for(var integer i:=0; i<8; i:=i+1) { |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treeitem>\n\t\t<treerow>\n\t\t\t<treecell label='String" & int2str(i) &"'/>\n\t\t\t<treecell id='CRTR15823_stringA" & int2str(i) &"' label='String" & int2str(i) &"'/>\n\t\t\t<treecell id='CRTR15823_stringB" & int2str(i) &"' label='String" & int2str(i) &"'/>\n\t\t</treerow>\n\t</treeitem>\n</Widgets>\n\n" |
| |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "CRTR15823_tree"); |
| |
| var integer vl_idx; |
| f_EPTF_Var_newCharstring("CRTR15823_csA" & int2str(i), "valueA" & int2str(i), vl_idx); |
| f_EPTF_UIHandlerClient_subscribeMe("CRTR15823_csA" & int2str(i), "gui.CRTR15823_csA" & int2str(i), "CRTR15823_stringA" & int2str(i), realtime); |
| f_EPTF_Var_newCharstring("CRTR15823_csB" & int2str(i), "valueB" & int2str(i), vl_idx); |
| f_EPTF_UIHandlerClient_subscribeMe("CRTR15823_csB" & int2str(i), "gui.CRTR15823_csB" & int2str(i), "CRTR15823_stringB" & int2str(i), realtime); |
| } |
| |
| f_EPTF_Base_wait4Shutdown(); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_CRTR15823() runs on EPTF_UIHandler_CLI_CT |
| { |
| var EPTF_UIHandlerClient_CT vl_uiClient := EPTF_UIHandlerClient_CT.create; |
| |
| f_EPTF_UIHandler_CLI_init_CT("CRTR15823_mtc", true); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| f_EPTF_UIHandler_addMainTabbox(); |
| |
| vl_uiClient.start(f_CRTR15823_uiClient()); |
| |
| setverdict(pass); |
| f_EPTF_Base_wait4Shutdown(); |
| } |
| |
| } // group CRTR15823_manualTest |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_setFocus |
| // |
| // Purpose: |
| // Testcase to demonstrate the 'setFocus' feature |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // Creates a tabbox with 2 tabs and assign buttons for both tabs. |
| // Pressing a button shall select the assigned tab. |
| // |
| /////////////////////////////////////////////////////////// |
| function f_setFocusTestButtonCallback( in integer pl_idx, in EPTF_IntegerList pl_argList) runs on EPTF_UIHandlerClient_CT { |
| if (pl_idx == pl_argList[0]) { |
| f_EPTF_UIHandlerClient_setFocusToGUIElement(EPTF_UIHandler_Test_Definitions.c_testTab1Id); |
| } |
| if (pl_idx == pl_argList[1]) { |
| f_EPTF_UIHandlerClient_setFocusToTab(c_EPTF_Test_Main_Tabbox_WidgetId, 1); |
| } |
| } |
| function f_setFocusTest_UIHBehaviour() runs on EPTF_UIHandler_CT |
| { |
| f_EPTF_UIHandlerXUL_init_CT("UIHandler"); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| f_EPTF_UIHandler_exitButtonPressed(); |
| //EPTF_guiPortIf.send(ASP_XTDP_Bye:{client_id:=omit}); |
| |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| testcase tc_setFocus() |
| runs on EPTF_UIHandlerClient_CT |
| system EPTF_UIHandler_Test_System_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| vc_uiHandler.start(f_setFocusTest_UIHBehaviour()); |
| |
| f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_EPTF_Test_buttons, tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_EPTF_Test_label1, c_testTab1Id); |
| f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_EPTF_Test_label2, c_testTab2Id); |
| |
| var integer b1, b2; |
| f_EPTF_Var_newInt("Button1", 0, b1); |
| f_EPTF_Var_newInt("Button2", 0, b2); |
| f_EPTF_Var_addPostProcFn( b1, { refers(f_setFocusTestButtonCallback), {b1,b2}} ); |
| f_EPTF_Var_addPostProcFn( b2, { refers(f_setFocusTestButtonCallback), {b1,b2}} ); |
| f_EPTF_UIHandlerClient_subscribeMe( "Button1", "Button1", "Tab1"); |
| f_EPTF_UIHandlerClient_subscribeMe( "Button2", "Button2", "Tab2"); |
| |
| all component.done; |
| setverdict(pass); |
| }//tc_setFocus |
| |
| }//DemoTestcases |
| |
| //************************************************************************* |
| // Group FunctionTest |
| //************************************************************************* |
| group FunctionTest { |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_init_withoutGui |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_init_CT and f_EPTF_UIHandler_cleanup_CT without gui connection. |
| // |
| // Requirement: |
| // - |
| // |
| // Action: |
| // 1 Call function f_EPTF_UIHandler_init_CT |
| // 2 Check the result. |
| // 3 Call function f_EPTF_Base_cleanup_CT |
| // 4 Check the result |
| // |
| // Expected Results: |
| // After step 2: All component variable initialized and all init flags (v_UIHandler_initialized, v_EPTF_Var_initialized, v_EPTF_Logging_initialized ) are set to true. |
| // After step 4: All flags are set to false. |
| // |
| /////////////////////////////////////////////////////////// |
| //=Status: Ready,passed(R2) |
| testcase tc_EPTF_UIHandler_Test_UIHandler_init_withoutGui() runs on EPTF_UIHandler_CT { |
| log("EPTF_UIHandler_CT name:", self); |
| var charstring vl_compName :="UIHandler"; |
| var boolean vl_connectGui :=false; |
| f_EPTF_UIHandlerXUL_init_CT(pl_selfName:=vl_compName, pl_connectGUI:=vl_connectGui); |
| f_EPTF_UIHandler_Test_LogUIHandlerComponent(); |
| |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| f_EPTF_UIHandler_Test_LogUIHandlerComponent(); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerComponentCleanedUp()); |
| f_EPTF_Base_stopRemote(mtc); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromConfigFile |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_init_CT and f_EPTF_UIHandler_cleanup_CT with gui connection |
| // |
| // Requirement: |
| // GUI is running |
| // |
| // Action: |
| // 1 Call function f_EPTF_UIHandler_init_CT() with argument pl_connectGUI:=true |
| // 2 Check the result. |
| // 3 Call function f_EPTF_Base_cleanup_CT. |
| // 4 Check the result |
| // |
| // Expected Results: |
| // After step 2: All component variable initialized and all init flags (v_UIHandler_initialized, v_EPTF_Var_initialized, v_EPTF_Logging_initialized) are set to true. |
| // After step 4: All flags are set to false. |
| /////////////////////////////////////////////////////////// |
| //=Status: Ready,passed(R2) |
| testcase tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromConfigFile() runs on EPTF_UIHandler_CT { |
| log("EPTF_UIHandler_CT name:", self); |
| var charstring vl_compName :="UIHandler"; |
| var boolean vl_connectGui :=true; |
| f_EPTF_UIHandlerXUL_init_CT(pl_selfName:=vl_compName, pl_connectGUI:=vl_connectGui); |
| f_EPTF_UIHandler_Test_LogUIHandlerComponent(); |
| // |
| // if(v_UIHandler_guiConnected) |
| // { |
| // f_EPTF_UIHandler_requestLayout(); |
| // timer Tl_base:= 2.0; |
| // Tl_base.start; |
| // //use the default altstep for a while |
| // alt { |
| // [] Tl_base.timeout {log("Tl_base timeout occured in test")} |
| // } |
| // |
| // log("Size of GUI itemList: ", sizeof(v_UIHandler_guiItemList) ); |
| // log("Gui item list: ",v_UIHandler_guiItemList); |
| // if(v_UIHandler_guiItemList[0].id=="My EPTF_Main_Window based on config file" ) { |
| // setverdict(pass); |
| // } else { |
| // setverdict(fail) |
| // } |
| // } |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); //fail |
| f_EPTF_UIHandler_Test_LogUIHandlerComponent(); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerComponentCleanedUp()); |
| |
| f_EPTF_Base_stopRemote(mtc); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromConfigFileNewInit |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_init_CT and f_EPTF_UIHandler_cleanup_CT with gui connection |
| // |
| // Requirement: |
| // GUI is running |
| // |
| // Action: |
| // 1 Call function f_EPTF_UIHandler_init_CT() with not set (omit) gui layout parameter |
| // 2 Gets snapshot |
| // 3 Compares with the expected one, tsp_EPTF_GUI_DefaultWindowXTDL |
| // |
| // Expected Results: |
| /////////////////////////////////////////////////////////// |
| //=Status: Ready,passed(R2) |
| testcase tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromConfigFileNewInit() runs on EPTF_UIHandler_CT { |
| //log("EPTF_UIHandler_CT name:", self); |
| var charstring vl_compName :="UIHandler"; |
| var boolean vl_connectGui :=true; |
| f_EPTF_UIHandler_init_CT(pl_selfName:=vl_compName, pl_connectGUI:=vl_connectGui); |
| var Widgets vl_snapshot := f_EPTF_UIHandler_XSD_decodeXUL(f_EPTF_UIHandler_snapshot()); |
| var Widgets vl_expected := f_EPTF_UIHandler_XSD_decodeXUL(tsp_EPTF_GUI_DefaultWindowXTDL); |
| if(not match(vl_snapshot, vl_expected)){ |
| setverdict(fail, log2str(match(vl_snapshot, vl_expected))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromConfigFileNewInit |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_init_CT and f_EPTF_UIHandler_cleanup_CT with gui connection |
| // |
| // Requirement: |
| // GUI is running |
| // |
| // Action: |
| // 1 Call function f_EPTF_UIHandler_init_CT() with empty string gui layout parameter |
| // 2 Gets snapshot |
| // 3 Compares with the expected one, tsp_EPTF_GUI_DefaultWindowXTDL |
| // This case the expected backward compatible mode is to use the modulepar. |
| // |
| // Expected Results: |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandler_init_layoutEmptyParamNewInit() runs on EPTF_UIHandler_CT { |
| //log("EPTF_UIHandler_CT name:", self); |
| var charstring vl_compName :="UIHandler"; |
| var boolean vl_connectGui :=true; |
| f_EPTF_UIHandler_init_CT(pl_selfName:=vl_compName, pl_connectGUI:=vl_connectGui,pl_windowLayout := ""); |
| var Widgets vl_snapshot := f_EPTF_UIHandler_XSD_decodeXUL(f_EPTF_UIHandler_snapshot()); |
| var Widgets vl_expected := f_EPTF_UIHandler_XSD_decodeXUL(tsp_EPTF_GUI_DefaultWindowXTDL); |
| if(not match(vl_snapshot, vl_expected)){ |
| setverdict(fail, log2str(match(vl_snapshot, vl_expected))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromParamNewInit |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_init_CT and f_EPTF_UIHandler_cleanup_CT with gui connection |
| // |
| // Requirement: |
| // GUI is running |
| // |
| // Action: |
| // 1 Call function f_EPTF_UIHandler_init_CT() with gui described in parameter |
| // 2 Gets snapshot |
| // 3 Compares with the expected one, c_gui |
| // |
| // Expected Results: |
| /////////////////////////////////////////////////////////// |
| //=Status: Ready,passed(R2) |
| testcase tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromParamNewInit() runs on EPTF_UIHandler_CT { |
| //log("EPTF_UIHandler_CT name:", self); |
| var charstring vl_compName :="UIHandler"; |
| var boolean vl_connectGui :=true; |
| const charstring c_gui := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<window height=\"380.000000\" id=\"My_EPTF_Main_Window_based_on_param\" orientation=\"vertical\" title=\"My TTCN constructed window param\" width=\"800.000000\">\n</window>\n</Widgets>\n"; |
| f_EPTF_UIHandler_init_CT(vl_compName, vl_connectGui,c_gui); |
| var Widgets vl_snapshot := f_EPTF_UIHandler_XSD_decodeXUL(f_EPTF_UIHandler_snapshot()); |
| var Widgets vl_expected := f_EPTF_UIHandler_XSD_decodeXUL(c_gui); |
| if(not match(vl_snapshot, vl_expected)){ |
| setverdict(fail, log2str(match(vl_snapshot, vl_expected))); |
| } |
| |
| f_EPTF_Base_stop(pass); |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromConfigFileNewInit |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_init_CT and f_EPTF_UIHandler_cleanup_CT with gui connection |
| // |
| // Requirement: |
| // GUI is running |
| // |
| // Action: |
| // 1 Call function f_EPTF_UIHandler_init_CT() with empty string layout parameter |
| // 2 Gets snapshot |
| // 3 Compares with the expected one, window with main tabbox |
| // |
| // Expected Results: |
| /////////////////////////////////////////////////////////// |
| //=Status: Ready,passed(R2) |
| testcase tc_EPTF_UIHandler_Test_UIHandler_init_layoutEmptyStringParamNewInit() runs on EPTF_UIHandler_CT { |
| //log("EPTF_UIHandler_CT name:", self); |
| var charstring vl_compName :="UIHandler"; |
| var boolean vl_connectGui :=true; |
| f_EPTF_UIHandler_init_CT(vl_compName, vl_connectGui,""); |
| var charstring vl_snapshot1 := f_EPTF_UIHandler_snapshot(); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| f_EPTF_UIHandler_addMainTabbox(); |
| var charstring vl_snapshot2 := f_EPTF_UIHandler_snapshot(); |
| if(not match(vl_snapshot1, vl_snapshot2)){ |
| setverdict(fail, log2str(match(vl_snapshot1, vl_snapshot2))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_requestLayout_layoutFromArg |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_init_CT and f_EPTF_UIHandler_cleanup_CT with gui connection |
| // |
| // Requirement: |
| // GUI is running |
| // |
| // Action: |
| // 1 Call function f_EPTF_UIHandler_init_CT() with argument pl_connectGUI:=true and pl_windowLayout is defined as a not empty string describing a real window. |
| // 2 Check the result. |
| // 3 Call function f_EPTF_Base_cleanup_CT |
| // 4 Check the result |
| // |
| // Expected Results: |
| // After step 2: All component variable initialized and all init flags (v_UIHandler_initialized, v_EPTF_Var_initialized, v_EPTF_Logging_initialized) are set to true. The gui elements have been registered. |
| // After step 4: All flags are set to false. |
| /////////////////////////////////////////////////////////// |
| //Status: Ready:Passed |
| testcase tc_EPTF_UIHandler_Test_UIHandler_requestLayout_layoutFromArg() runs on EPTF_UIHandler_CT { |
| log("EPTF_UIHandler_CT name:", self); |
| var charstring vl_compName :="UIHandler"; |
| var boolean vl_connectGui :=true; |
| var charstring vl_initialLayut:= "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<window height='380.000000' id='My_EPTF_Main_Window_from_Arg' orientation='vertical' title='My TTCN constructed window from arg' width='500.000000'/>\n</Widgets>\n\n" |
| |
| f_EPTF_UIHandlerXUL_init_CT( |
| pl_selfName:=vl_compName, |
| pl_connectGUI:=vl_connectGui, |
| pl_windowLayout:=vl_initialLayut); |
| |
| f_EPTF_UIHandler_Test_LogUIHandlerComponent(); |
| |
| |
| if(f_EPTF_UIHandler_GUIConnected()) |
| { |
| f_EPTF_UIHandler_requestLayout(); |
| timer Tl_base:= 2.0; |
| Tl_base.start; |
| //use the default altstep for a while |
| alt { |
| [] Tl_base.timeout {log("Tl_base timeout occured in test")} |
| } |
| |
| var EPTF_UIHandler_GuiItemRecList vl_UIHandler_guiItemList := f_EPTF_UIHandler_guiItemList(); |
| log("Size of GUI itemList: ", sizeof(vl_UIHandler_guiItemList) ); |
| log("Gui item list: ",vl_UIHandler_guiItemList); |
| if(vl_UIHandler_guiItemList[0].id=="My_EPTF_Main_Window_from_Arg" ) { |
| setverdict(pass); |
| } else { |
| setverdict(fail,"vl_UIHandler_guiItemList[0] should be 'My_EPTF_Main_Window_from_Arg'. ", vl_UIHandler_guiItemList) |
| } |
| } |
| all component.done; |
| |
| f_EPTF_Base_cleanup_CT(); |
| f_EPTF_UIHandler_Test_LogUIHandlerComponent(); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerComponentCleanedUp()); |
| //f_EPTF_Base_stopRemote(mtc); |
| } |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_init |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandlerClient_init_CTand f_EPTF_UIHandlerClient_cleanup_CT with gui connection |
| // |
| // Requirement: |
| // GUI is running |
| // |
| // Action: |
| // 1 Start component UIHandler by calling function f_EPTF_UIHandler_init_CT() with argument pl_connectGUI:=true and pl_windowLayout is defined as a not empty string describing a real window and add main tabbox element to gui by f_EPTF_UIHandler_addElementToGui and passing tsp_EPTF_GUI_Main_Window_WidgetId then wait for commands of UIHandler Client. |
| // 2 Init UIHandler client by calling function f_EPTF_UIHandlerClient_init_CT |
| // 3 Check the result |
| // 4 Call f_EPTF_UIHandler_Test_uiHandlerClientComponentCleanedUp ny client. |
| // 5 Check the results |
| // |
| // Expected Results: |
| // After step 3: All component variable initialized and all init flags (v_UIHandlerClient_initialized, v_EPTF_Var_initialized, v_EPTF_Logging_initialized) are set to true. The gui elements have been registered. |
| // After step 5: All flags are set to false. |
| // |
| /////////////////////////////////////////////////////////// |
| //=Status: Ready,passed |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_init() runs on EPTF_UIHandlerClient_CT { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_subscriber := EPTF_UIHandler_CT.create; |
| //var boolean vl_connectGui :=false; |
| log("tsp_EPTF_UIHandler_servermode: ",tsp_EPTF_UIHandler_servermode); |
| vc_subscriber.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := "subscriber", pl_timeout := 20.0)); |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName, vc_subscriber); |
| |
| f_EPTF_UIHandler_Test_LogUIHandlerClientComponent(); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerClientComponentInitialized(vl_clientName,vc_subscriber)); |
| |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| f_EPTF_UIHandler_Test_LogUIHandlerClientComponent(); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerClientComponentCleanedUp()); |
| f_EPTF_Base_stopRemote(mtc); |
| }//tc_ |
| |
| // f_EPTF_UIHandler_CLI_init_CT |
| //============================================= |
| //=Name: tc_EPTF_UIHandler_Test_UIHandlerCli_init |
| //=Purpose: To test function f_EPTF_UIHandler_CLI_init_CT |
| //=Status: Ready,passed(R2) |
| //============================================= |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerCli_init |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandlerCLI_init_CT and f_EPTF_UIHandler_cleanup_CT with gui connection. |
| // |
| // Requirement: |
| // - |
| // |
| // Action: |
| // Start component UIHandler_CLI by calling behaviour function and within |
| // 1 call f_EPTF_UIHandler_CLI_init_CT() with argument pl_connectGUI:=false and pl_windowLayout is undefined. |
| // 2 Check the result |
| // 3 Wait a little bit. |
| // 4 Call f_EPTF_Base_cleanup_CT |
| // 5 Check the results |
| // |
| // Expected Results: |
| // After step 2: All component variable initialized and all init flags (v_UIHandlerCli_initialized, v_EPTF_Var_initialized, v_EPTF_Logging_initialized) are set to true. |
| // After step 5: All flags are set to false. |
| /////////////////////////////////////////////////////////// |
| //Status: Ready, Passed, TR: HJ86376 |
| testcase tc_EPTF_UIHandler_Test_UIHandlerCli_init() runs on EPTF_UIHandlerClient_CT { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CLI_CT vc_subscriber := EPTF_UIHandler_CLI_CT.create; |
| |
| log("tsp_EPTF_UIHandler_servermode: ",tsp_EPTF_UIHandler_servermode); |
| vc_subscriber.start(f_EPTF_UIHandler_Test_CliBaseBehaviour("MyUIHandlerCli")); |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName, vc_subscriber); |
| |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| // f_EPTF_UIHandler_clearGUI |
| |
| //============================================= |
| //=Name: tc_EPTF_UIHandler_Test_UIHandler_clearGui |
| //=Purpose: To test function f_EPTF_UIHandler_clearGUI, f_EPTF_UIHandler_addWindow and f_EPTF_UIHandler_requestLayout |
| //=Status: Ready,passed |
| //============================================= |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_clearGui |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_clearGUI, f_EPTF_UIHandler_addWindow and f_EPTF_UIHandler_requestLayout |
| // |
| // Requirement: |
| // Runtime gui is running |
| // |
| // Action: |
| // TC runs on an UIHandler client |
| // Start component UIHandler by calling behaviour function and within |
| // 1 call f_EPTF_UIHandler_init_CT() with argument pl_connectGUI:=true and pl_windowLayout is empty string |
| // 2 Clear the window by calling f_EPTF_UIHandler_clearGUI |
| // 3 Ask layout info from the gui by calling f_EPTF_UIHandler_requestLayout |
| // 4 Wait a few seconds. |
| // 5 Call f_EPTF_Base_cleanup_CT. |
| // Init UIHandler client the cleanup it. |
| // 6 Call f_EPTF_Base_cleanup_CT |
| // |
| // Expected Results: |
| // The common init and cleanup conditions are fulfilled and the test reaches its end without runtime error. |
| /////////////////////////////////////////////////////////// |
| |
| //Status: Ready |
| //TR:HJH6681 "TitanSim empty gui sends wrong layout response" - fixed in build 2008-10-22 |
| //TR:HJ83594 "TitanSim UIHandler logs logError if there is empty window in the layoutResponse - not fixed yet |
| testcase tc_EPTF_UIHandler_Test_UIHandler_clearGui() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| |
| var EPTF_UIHandler_CT vc_subscriber := EPTF_UIHandler_CT.create; |
| vc_subscriber.start(f_EPTF_UIHandler_Test_BaseBehaviourWithClearGui(pl_selfName:="subscriber")); |
| |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName, vc_subscriber); |
| f_EPTF_UIHandler_Test_LogUIHandlerClientComponent(); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerClientComponentInitialized(vl_clientName,vc_subscriber)); |
| |
| // all component.done; |
| timer t_guard := 30.0; |
| t_guard.start; |
| alt { |
| []all component.done { } |
| []t_guard.timeout { |
| setverdict(inconc, "Guard timer timeout."); |
| } |
| } |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_clearGuiWithAddWindow |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_clearGUI, f_EPTF_UIHandler_addWindow and f_EPTF_UIHandler_requestLayout |
| // |
| // Requirement: |
| // Runtime gui is running |
| // |
| // Action: |
| // TC runs on an UIHandler client. |
| // Start component UIHandler by calling behaviour function f_EPTF_UIHandler_Test_BaseBehaviourWithClearGuiAddWindow and within |
| // 1 call f_EPTF_UIHandler_init_CT() with argument pl_connectGUI:=true and pl_windowLayout is a nonempty string with a real window definition. |
| // 2 Clear the window by calling f_EPTF_UIHandler_clearGUI |
| // 3 Add the default window (given by moduleparams tsp_EPTF_GUI_Main_Window_Height, tsp_EPTF_GUI_Main_Window_WidgetId, "vertical", tsp_EPTF_GUI_Main_Window_Title, tsp_EPTF_GUI_Main_Window_Width, tsp_EPTF_GUI_Main_Toolbar_WidgetId) by calling f_EPTF_UIHandler_addWindow |
| // 4 Ask layout info from the gui by calling f_EPTF_UIHandler_requestLayout |
| // 5 Check if the result is stored in v_UIHandler_guiItemList |
| // 6 Call f_EPTF_Base_cleanup_CT. |
| // Init UIHandler client, wait then cleanup it via |
| // 7 Call f_EPTF_Base_cleanup_CT |
| // |
| // Expected Results: |
| // Check in step 5 is true and the common init and cleanup conditions are fulfilled and the test reaches its end without runtime error. |
| /////////////////////////////////////////////////////////// |
| //=Status: Ready,passed |
| testcase tc_EPTF_UIHandler_Test_UIHandler_clearGuiWithAddWindow() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| |
| var charstring vl_initialLayout:= "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<window height='380.000000' id='My_EPTF_Main_Window' orientation='vertical' title='My TTCN constructed window' width='800.000000'/>\n</Widgets>\n\n" |
| |
| var EPTF_UIHandler_CT vc_subscriber := EPTF_UIHandler_CT.create; |
| vc_subscriber.start(f_EPTF_UIHandler_Test_BaseBehaviourWithClearGuiAddWindow( |
| pl_selfName:="subscriber", |
| pl_connectGUI:=true, |
| pl_newWindow:=true, |
| pl_wndLayout := vl_initialLayout)); |
| |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName, vc_subscriber); |
| if(tsp_EPTF_UIHandler_Test_Debug) { |
| f_EPTF_UIHandler_Test_LogUIHandlerClientComponent(); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerClientComponentInitialized(vl_clientName,vc_subscriber)); |
| } |
| |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_addWindowTwice |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_clearGUI, f_EPTF_UIHandler_addWindow and f_EPTF_UIHandler_requestLayout |
| // |
| // Requirement: |
| // Runtime gui is running |
| // |
| // Action: |
| // TC runs on an UIHandler client. |
| // Start component UIHandler by calling behaviour function f_EPTF_UIHandler_Test_BaseBehaviourWithClearGuiAddWindow and within |
| // 1 call f_EPTF_UIHandler_init_CT() with argument pl_connectGUI:=true and pl_windowLayout is a nonempty string with a real window definition. |
| // 2 Clear the window by calling f_EPTF_UIHandler_clearGUI |
| // 3 Add the default window (given by moduleparams tsp_EPTF_GUI_Main_Window_Height, tsp_EPTF_GUI_Main_Window_WidgetId, "vertical", tsp_EPTF_GUI_Main_Window_Title, tsp_EPTF_GUI_Main_Window_Width, tsp_EPTF_GUI_Main_Toolbar_WidgetId) by calling f_EPTF_UIHandler_addWindow |
| // 4 Check if the second window is stored in v_UIHandler_guiItemList |
| // 5 Call f_EPTF_Base_cleanup_CT. |
| // Init UIHandler client, wait then cleanup it via |
| // 6 Call f_EPTF_Base_cleanup_CT |
| // |
| // Expected Results: |
| // The second window is not stored in v_UIHandler_guiItemList. |
| /////////////////////////////////////////////////////////// |
| //=Status: Ready,passed |
| testcase tc_EPTF_UIHandler_Test_UIHandler_addWindowTwice() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| |
| var charstring vl_initialLayut:= "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<window height='380.000000' id='My_EPTF_Main_Window' orientation='vertical' title='My TTCN constructed window' width='800.000000'/>\n</Widgets>\n\n" |
| |
| var EPTF_UIHandler_CT vc_subscriber := EPTF_UIHandler_CT.create; |
| vc_subscriber.start(f_EPTF_UIHandler_Test_BaseBehaviour_addWindowTwice( //<=== The difference is here |
| pl_selfName:="subscriber", |
| pl_connectGUI:=true, |
| //pl_newWindow:=true, |
| pl_wndLayout := vl_initialLayut)); |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName, vc_subscriber); |
| |
| //f_EPTF_UIHandler_Test_LogUIHandlerClientComponent(); |
| //f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerClientComponentInitialized(vl_clientName,vc_subscriber)); |
| timer T_wait:=1.0; T_wait.start; T_wait.timeout; |
| |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| /////////////////////////////////////////////////////////// |
| // Tesetcase: tc_EPTF_UIHandler_Test_UIHandler_addElementsToGui |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_addElementToGui |
| // |
| // Requirement: |
| // Runtime gui is running |
| // |
| // Action: |
| // TC runs on an UIHandler client. |
| // Start component UIHandler by calling behaviour function f_EPTF_UIHandler_Test_BaseBehaviourWithAddElementsToGui_normal and within it |
| // 1 call f_EPTF_UIHandler_init_CT() with argument pl_connectGUI:=true and pl_windowLayout is an empty string. |
| // 2 Clear the window by calling f_EPTF_UIHandler_clearGUI |
| // 3 Add the default window (given by moduleparams tsp_EPTF_GUI_Main_Window_Height, tsp_EPTF_GUI_Main_Window_WidgetId, "vertical", tsp_EPTF_GUI_Main_Window_Title, tsp_EPTF_GUI_Main_Window_Width, tsp_EPTF_GUI_Main_Toolbar_WidgetId) by calling f_EPTF_UIHandler_addWindow |
| // 4 Add a Toolbar and two toolbar buttons to the gui by f_EPTF_UIHandler_addElementToGui |
| // 5 Check if the result has been administered in UIHandler (in v_UIHandler_guiItemList) |
| // 6 Add a third toolbar button to the gui |
| // 7 Check the changes in v_UIHandler_guiItemList. |
| // 8 Check the result by asking a snapshot with f_EPTF_UIHandler_snapshot |
| // 9 Add a separator to the gui |
| // 10 Add a fourth toolbar button to the gui |
| // 11 Check the changes in v_UIHandler_guiItemList. |
| // 12 Check the result by asking a snapshot with f_EPTF_UIHandler_snapshot |
| // |
| // Expected Results: |
| // All check is successful i.e all element created and registered |
| /////////////////////////////////////////////////////////// |
| |
| //=Status: Ready,failed |
| //TR: HJ83617 "TitanSim UIHandler takes superfluous separators into its database" -not fixed yet |
| //TR HJ83569 "UIHandler encodes id without quotation mark in f_EPTF_UIHandler_addElementToGui" |
| testcase tc_EPTF_UIHandler_Test_UIHandler_addElementsToGui() runs on EPTF_UIHandler_CT { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| |
| //var EPTF_UIHandler_CT vc_subscriber := EPTF_UIHandler_CT.create; |
| //vc_subscriber.start(f_EPTF_UIHandler_Test_BaseBehaviourWithAddElementsToGui_normal( |
| // pl_selfName:="subscriber" |
| // )); |
| f_EPTF_UIHandlerXUL_init_CT("subscriber",true); |
| if(not f_EPTF_UIHandler_GUIConnected()){ |
| setverdict(inconc,"The GUI is not connected...") |
| } |
| f_EPTF_UIHandler_clearGUI(); //if You don't apply it, the addWindow doesn't work |
| |
| //==== 1st step: addElementToGui ================ |
| var boolean vl_dummy:=false; |
| var charstring vl_xul := f_UIHandler_Test_createWindowWithTwoTbarButtonsXUL(); |
| f_EPTF_UIHandler_Test_setVerdict( f_EPTF_UIHandler_createGUI(vl_xul, ""));//pass |
| //f_EPTF_UIHandler_Test_setVerdict( f_EPTF_UIHandler_requestLayout()); |
| |
| var charstring vl_fetchedLayout := f_EPTF_UIHandler_snapshot(); |
| //var XTDP_XML_Tag vl_snapshotXUL := f_EPTF_UIHandler_decodeXUL(vl_fetchedLayout); |
| var Widgets vl_convertedXul := f_EPTF_UIHandler_XSD_decodeXUL(vl_xul); |
| var Widgets vl_snapshotXUL := f_EPTF_UIHandler_XSD_decodeXUL(vl_fetchedLayout) |
| if( not match(vl_convertedXul,vl_snapshotXUL)) { |
| var charstring vl_errMsg := log2str( match(vl_convertedXul,vl_snapshotXUL)); //fails |
| log(vl_errMsg) |
| setverdict(fail,vl_errMsg); |
| } |
| |
| //==== 2nd addElementToGui: New, third toolbarbutton:==== |
| var charstring vl_xul_thirdTbarButton:= "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<toolbarbutton id='ThirdTbarButtonId' tooltiptext='ThirdTbarButton ToolTip'/>\n</Widgets>\n\n" |
| |
| f_EPTF_UIHandler_Test_setVerdict( f_EPTF_UIHandler_createGUI(vl_xul_thirdTbarButton, tsp_EPTF_GUI_Main_Toolbar_WidgetId));//pass |
| //Check on the gui: |
| |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<window height='300.000000' id='MyNewEPTFMainWindow' orientation='vertical' title='My TTCN constructed window' width='800.000000'>\n\t\t<toolbar id='MyEPTFMainToolbar' placement='north'>\n\t\t\t<toolbarbutton id='FirstTbarButtonId' tooltiptext='FirstTbarButton ToolTip'/>\n\t\t\t<separator/>\n\t\t\t<toolbarbutton id='SecondTbarButtonId' tooltiptext='SecondTbarButton ToolTip'/>\n\t\t\t<toolbarbutton id='ThirdTbarButtonId' tooltiptext='ThirdTbarButton ToolTip'/>\n\t\t</toolbar>\n\t</window>\n</Widgets>\n\n" |
| vl_convertedXul := f_EPTF_UIHandler_XSD_decodeXUL(vl_xul); |
| f_UIHandler_Test_compareXulWindowWithSnapshot(vl_convertedXul) |
| |
| //==== 4nd addElementToGui: New, forth toolbarbutton:==== |
| var charstring vl_xul_separator:= "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<separator id='separa'/>\n</Widgets>\n\n" |
| |
| f_EPTF_UIHandler_createGUI(vl_xul_separator, tsp_EPTF_GUI_Main_Toolbar_WidgetId) |
| |
| //==== 4nd addElementToGui: New, forth toolbarbutton:==== |
| var charstring vl_xul_fourthTbarButton:= "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<toolbarbutton id='fourthTbarButtonId' tooltiptext='fourthTbarButton ToolTip'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandler_createGUI(vl_xul_fourthTbarButton, tsp_EPTF_GUI_Main_Toolbar_WidgetId) |
| |
| vl_xul_separator:= "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<separator/>\n</Widgets>\n\n" |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<window height='300.000000' id='MyNewEPTFMainWindow' orientation='vertical' title='My TTCN constructed window' width='800.000000'>\n\t\t<toolbar id='MyEPTFMainToolbar' placement='north'>\n\t\t\t<toolbarbutton id='FirstTbarButtonId' tooltiptext='FirstTbarButton ToolTip'/>\n\t\t\t<separator/>\n\t\t\t<toolbarbutton id='SecondTbarButtonId' tooltiptext='SecondTbarButton ToolTip'/>\n\t\t\t<toolbarbutton id='ThirdTbarButtonId' tooltiptext='ThirdTbarButton ToolTip'/>\n\t\t\t<toolbarbutton id='fourthTbarButtonId' tooltiptext='fourthTbarButton ToolTip'/>\n\t\t</toolbar>\n\t</window>\n</Widgets>\n\n"; |
| |
| vl_convertedXul := f_EPTF_UIHandler_XSD_decodeXUL(vl_xul); |
| f_UIHandler_Test_compareXulWindowWithSnapshot(vl_convertedXul) |
| |
| //timer Tl_base:= 2.0; |
| //Tl_base.start; |
| //alt { |
| // [] Tl_base.timeout {log("Tl_base timeout occured in test")} |
| //} |
| //EPTF_guiPortIf.send(ASP_XTDP_Bye:{client_id:=omit}); |
| f_EPTF_Base_cleanup_CT(); |
| //f_EPTF_UIHandlerClient_init_CT(vl_clientName, vc_subscriber); |
| //f_EPTF_UIHandler_Test_LogUIHandlerClientComponent(); |
| //f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerClientComponentInitialized(vl_clientName,vc_subscriber)); |
| |
| //all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| //TR: HJ83617 "TitanSim UIHandler takes superfluous separators into its database" -not fixed yet |
| testcase tc_EPTF_UIHandler_Test_UIHandler_addElementsToGui_wrongToolbarId() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| |
| var EPTF_UIHandler_CT vc_subscriber := EPTF_UIHandler_CT.create; |
| vc_subscriber.start(f_EPTF_UIHandler_Test_BaseBehaviourWithAddElementsToGui_wrongToolbarId( |
| pl_selfName:="subscriber" |
| )); |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName, vc_subscriber); |
| |
| //f_EPTF_UIHandler_Test_LogUIHandlerClientComponent(); |
| //f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerClientComponentInitialized(vl_clientName,vc_subscriber)); |
| |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| // f_EPTF_UIHandler_removeElementFromGui |
| // f_EPTF_UIHandler_snapshot |
| //============================================= |
| //=Name: tc_EPTF_UIHandler_Test_UIHandler_snapshot |
| //=Purpose: To test function f_EPTF_UIHandler_snapshot |
| |
| // f_EPTF_UIHandler_saveLayout |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_saveLayout |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_saveLayout |
| // |
| // Requirement: |
| // - |
| // |
| // Action: |
| // The testcase runs on UIHandler. |
| // 1. initialize itself |
| // 2. saves a layout into a file |
| // 3. reads in the layout |
| // 4. compares the two layouts. The tc is passed if the layouts are identical |
| // TC failed because unnecessar info saved, not only the layout |
| // |
| /////////////////////////////////////////////////////////// |
| // Status: ReadyFailed |
| // |
| // TRs: |
| testcase tc_EPTF_UIHandler_Test_UIHandler_saveLayout() runs on EPTF_UIHandler_CT { |
| |
| var charstring vl_initialLayut:= "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<window height='380.000000' id='My_EPTF_Main_Window' orientation='vertical' title='My TTCN constructed window' width='800.000000'/>\n</Widgets>\n\n" |
| setverdict(pass); |
| |
| f_EPTF_UIHandler_Test_saveLayout( |
| pl_selfName:="subscriber", |
| pl_wndLayout := vl_initialLayut); |
| //all component.done; |
| //f_EPTF_Base_cleanup_CT(); |
| //f_EPTF_Base_stopRemote(mtc); |
| }//tc_ |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_convertLayout |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_convertLayout |
| // |
| // Requirement: |
| // - |
| // |
| // Action: |
| // The testcase runs on UIHandler. |
| // 1. initialize itself |
| // 2. converts the layout ( "->\", \n->\\n, \->\\, "" pre-converted for \" ) |
| // 3. checks the result |
| // 4. compares the two layouts. The tc is passed if the layouts are identical |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandler_convertLayout() runs on EPTF_UIHandler_CT { |
| var charstring vl_initialLayut:= "<window height=\"380.000000\" id=""My \\A EPTF_Main_Window"" orient=\"vertical\" title=\"My TTCN constructed window\" width=\"800.000000\">\n</window>\n"; |
| var charstring vl_expectedLayut:= "<window height=\\\"380.000000\\\" id=\\\"My \\\\A EPTF_Main_Window\\\" orient=\\\"vertical\\\" title=\\\"My TTCN constructed window\\\" width=\\\"800.000000\\\">\\n</window>\\n"; |
| var charstring vl_convertedLayout:=f_EPTF_UIHandler_convertLayout(vl_initialLayut); |
| log("Original layout :", vl_initialLayut); |
| log("Converted layout: ", vl_convertedLayout); |
| log("Expected layout: ", vl_expectedLayut); |
| |
| if(vl_convertedLayout==vl_expectedLayut) { |
| setverdict(pass); |
| } else { |
| setverdict(fail, log2str("vl_convertedLayout!=vl_expectedLayut. vl_convertedLayout = ", vl_convertedLayout, "vl_expectedLayut = ", vl_expectedLayut)); |
| } |
| } |
| // f_EPTF_UIHandler_revertLayout |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_revertLayout |
| // |
| // Purpose: |
| // To test function f_EPTF_UIHandler_revertLayout |
| // |
| // Requirement: |
| // - |
| // |
| // Action: |
| // The testcase runs on UIHandler. |
| // 1. initialize itself |
| // 2. converts the layout ( "->\", \n->\\n, \->\\, "" pre-converted for \" ) |
| // 3. checks the result |
| // 4. compares the two layouts. The tc is passed if the layouts are identical |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandler_revertLayout() runs on EPTF_UIHandler_CT { |
| var charstring vl_initialLayut:= "<window height=\"380.000000\" id=""My \\A EPTF_Main_Window"" orient=\"vertical\" title=\"My TTCN constructed window\" width=\"800.000000\">\n</window>\n"; |
| var charstring vl_convertedLayout:=f_EPTF_UIHandler_convertLayout(vl_initialLayut); |
| var charstring vl_revertedLayout := f_EPTF_UIHandler_revertLayout(vl_convertedLayout); |
| |
| log("Original layout :", vl_initialLayut); |
| log("Converted layout: ", vl_convertedLayout); |
| log("Reverted layout: ", vl_revertedLayout ); |
| |
| if(vl_revertedLayout==vl_initialLayut) { |
| setverdict(pass); |
| } else { |
| setverdict(fail, log2str("vl_revertedLayout!=vl_initialLayut. vl_revertedLayout = ", vl_revertedLayout, "vl_initialLayut = ", vl_initialLayut)); |
| } |
| } |
| // f_EPTF_UIHandler_requestLayout -- Ready, see: tc_EPTF_UIHandler_Test_UIHandler_clearGUI |
| |
| // f_EPTF_UIHandlerClient_subscribe |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_subscribe |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_subscribe |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClient and creates GUI elements |
| // 3. creates and starts a new variable component and creates a new integer variable inside |
| // 4. UIHandlerClient subsribes the new variable and connects it to the GUI |
| // 5. variable component sets new value to the variable |
| // 6. UIHandlerClient checks value of variable |
| // Expected Result: The tc is passed if all the checks are true otherwise failed |
| // |
| /////////////////////////////////////////////////////////// |
| function variable_dummy() runs on EPTF_Var_CT |
| { |
| f_EPTF_Var_init_CT("MyVarCT"); |
| var integer varIdx := -1; |
| var charstring varName:="myIntVar"; |
| f_EPTF_Var_newInt(varName,11, varIdx); |
| timer t:=1.0; t.start; t.timeout |
| f_EPTF_Var_adjustContent(pl_idx:=varIdx, pl_newContent:={ intVal:=19 }); |
| t.start; t.timeout |
| f_EPTF_Var_adjustContent(pl_idx:=varIdx, pl_newContent:={ intVal:=20 }); |
| setverdict(pass); |
| f_EPTF_Base_wait4Shutdown(); |
| } ; |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_subscribe() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT |
| { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| var EPTF_Var_CT vc_varCT := EPTF_Var_CT.create; |
| vc_varCT.start(variable_dummy()); |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| var charstring vl_textBoxId :="testTextBox"; |
| var charstring textBoxXul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='" & vl_textBoxId & "' multiline='false' readonly='false' rows='1.000000' value='testTestTest' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(textBoxXul, tsp_EPTF_GUI_Main_Window_WidgetId); |
| var charstring varName:="myIntVar"; |
| //We ask UIHandler to subscribe for "myIntVar" and store its value as "myIntVar_Subscriber": |
| f_EPTF_UIHandlerClient_subscribe(vc_varCT, varName, "myIntVar_Subscriber",vl_textBoxId,realtime); |
| var integer varIdx; |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,"myIntVar_Subscriber",realtime,varIdx); |
| timer t:= 3.0;t.start; t.timeout; |
| // check that variable value changed to 20 |
| f_EPTF_UIHandler_Test_setVerdict(20 == f_EPTF_Var_getIntValue(varIdx)); |
| f_EPTF_Base_stop(pass); |
| all component.done; |
| }//tc_ |
| // f_EPTF_UIHandlerClient_subscribeMe |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeMe |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_subscribeMe |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds gui elements to gui main window with f_EPTF_UIHandlerClient_createGUI |
| // 4. add a textbox widget of type "consol" to the gui |
| // 5. create an integer type Var with name "intVarProv" and with value "11" and "connect" it with the textbox by widgetId and with destName "intVar_Subscriber" |
| // by calling function "f_EPTF_UIHandlerClient_subscribeMe" |
| // 6. subscribe another variable to the variable of name "intVar_Subscriber" by calling f_EPTF_Var_subscribeRemote |
| // 7. Check the value of the variables with calling f_EPTF_Var_getIntValue if they are 11 |
| // 8. Change the value of the first variable for 19 |
| // 9. Check the value of the variables with calling f_EPTF_Var_getIntValue if they are 19 |
| // 10 Repeat steps 8-9 with value 20 instead of 10 |
| // Expected Result: The tc is passed if all the checks are true otherwise failed |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeMe() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| |
| timer vl_T:= 2.0; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets,"TestTab1"); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets_sec, "testTab2"); |
| var charstring vl_textBoxId :="testTextBox"; |
| var charstring vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='"&vl_textBoxId&"' multiline='false' readonly='false' rows='1.000000' value='testTestTest' widgetType='console' wrap='false'/>\n</Widgets>\n\n"; |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_labels"); |
| log(">>>Debug:vl_ret: ", vl_ret); |
| var integer vl_intVarIdx := -1, vl_intVarIdx2:=-1; |
| var charstring vl_varNameProv:="intVarProv"; |
| var charstring vl_varNameCopy:= "intVarCopy" |
| f_EPTF_Var_newInt(vl_varNameProv,11,vl_intVarIdx); |
| f_EPTF_Var_newInt(vl_varNameCopy,-1,vl_intVarIdx2);//this can be omitted |
| //We ask UIHandler to subscribe for "intVarProv" and store its value as "intVar_Subscriber": |
| f_EPTF_UIHandlerClient_subscribeMe(vl_varNameProv, "intVar_Subscriber",vl_textBoxId,realtime); |
| |
| vl_T.start(2.0); vl_T.timeout; |
| |
| //we subscribe for the variable "intVar_Subscriber": |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,"intVar_Subscriber",realtime,vl_intVarIdx2); |
| |
| log( "Old value: ", f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| |
| f_EPTF_Var_adjustContent(pl_idx:=vl_intVarIdx, pl_newContent:={ intVal:=19 }); |
| |
| vl_T.start(2.0); vl_T.timeout; |
| log( "New value of intVarProv: ",f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| log( "New value of intVarCopy: ",f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| f_EPTF_UIHandler_Test_setVerdict(19==f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| f_EPTF_UIHandler_Test_setVerdict(19==f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| |
| vl_T.start(0.2); vl_T.timeout; |
| f_EPTF_Var_adjustContent(pl_idx:=vl_intVarIdx, pl_newContent:={ intVal:=20 }); |
| |
| vl_T.start(2.0); vl_T.timeout; |
| log( "New value of intVarProv: ",f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| log( "New value of intVarCopy: ",f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| f_EPTF_UIHandler_Test_setVerdict(20==f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| f_EPTF_UIHandler_Test_setVerdict(20==f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| |
| vc_uiHandler.done; |
| //f_EPTF_Base_stopRemote(mtc); |
| //all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| |
| }//tc_ |
| // f_EPTF_UIHandlerClient_subscribeMeTo -- suggested to remove this function, copy its code into f_EPTF_UIHandlerClient_subscribeMe() |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeMeTo |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_subscribeMeTo |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds gui elements to gui main window with f_EPTF_UIHandlerClient_createGUI |
| // 4. add a textbox widget of type "consol" to the gui |
| // 5. create an integer type Var with name "intVarProv" and with value "11" and "connect" it with the textbox by widgetId and with destName "intVar_Subscriber" |
| // by calling function "f_EPTF_UIHandlerClient_subscribeMe" |
| // 6. subscribe another variable to the variable of name "intVar_Subscriber" by calling f_EPTF_Var_subscribeRemote |
| // 7. Check the value of the variables with calling f_EPTF_Var_getIntValue if they are 11 |
| // 8. Change the value of the first variable for 19 |
| // 9. Check the value of the variables with calling f_EPTF_Var_getIntValue if they are 19 |
| // 10 Repeat steps 8-9 with value 20 instead of 10 |
| // Expected Result: The tc is passed if all the checks are true otherwise failed |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeMeTo() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| |
| timer vl_T:= 2.0; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets,"TestTab1"); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets_sec, "testTab2"); |
| var charstring vl_textBoxId :="testTextBox"; |
| var charstring vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='"&vl_textBoxId&"' multiline='false' readonly='false' rows='1.000000' value='testTestTest' widgetType='console' wrap='false'/>\n</Widgets>\n\n"; |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_labels"); |
| log(">>>Debug:vl_ret: ", vl_ret); |
| var integer vl_intVarIdx := -1, vl_intVarIdx2:=-1; |
| var charstring vl_varNameProv:="intVarProv"; |
| var charstring vl_varNameCopy:= "intVarCopy" |
| f_EPTF_Var_newInt(vl_varNameProv,11,vl_intVarIdx); |
| f_EPTF_Var_newInt(vl_varNameCopy,-1,vl_intVarIdx2);//this can be omitted |
| //We ask UIHandler to subscribe for "intVarProv" and store its value as "intVar_Subscriber": |
| f_EPTF_UIHandlerClient_subscribeMeTo(vc_uiHandler,vl_varNameProv, "intVar_Subscriber",vl_textBoxId,realtime); |
| |
| vl_T.start(2.0); vl_T.timeout; |
| |
| //we subscribe for the variable "intVar_Subscriber": |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,"intVar_Subscriber",realtime,vl_intVarIdx2); |
| |
| log( "Old value: ", f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| |
| f_EPTF_Var_adjustContent(pl_idx:=vl_intVarIdx, pl_newContent:={ intVal:=19 }); |
| |
| vl_T.start(2.0); vl_T.timeout; |
| |
| log( "New value of intVarProv: ",f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| log( "New value of intVarCopy: ",f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| f_EPTF_UIHandler_Test_setVerdict(19==f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| f_EPTF_UIHandler_Test_setVerdict(19==f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| |
| vl_T.start(0.2); vl_T.timeout; |
| |
| f_EPTF_Var_adjustContent(pl_idx:=vl_intVarIdx, pl_newContent:={ intVal:=20 }); |
| vl_T.start(2.0); vl_T.timeout; |
| log( "New value of intVarProv: ",f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| log( "New value of intVarCopy: ",f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| f_EPTF_UIHandler_Test_setVerdict(20==f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| f_EPTF_UIHandler_Test_setVerdict(20==f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| |
| }//tc_ |
| |
| // f_EPTF_UIHandlerClient_subscribeVariable |
| /////////////////////////////////////////////////////////// |
| // // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeVariable |
| // // |
| // // Purpose: |
| // // To test the functions f_EPTF_UIHandlerClient_subscribeVariable |
| // // |
| // // Requirement: |
| // // RunTime Gui is running |
| // // |
| // // Action: |
| // // The testcase runs on UIHandlerClient |
| // // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // // its behavior function. |
| // // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // // 3. adds gui elements to gui main window with f_EPTF_UIHandlerClient_createGUI |
| // // 4. add a textbox widget of type "consol" to the gui |
| // // 5. create an integer type Var with name "intVarProv" and with value "11" and "connect" it with destName "intVar_Subscriber" of the |
| // // UIHandler by calling function "f_EPTF_UIHandlerClient_subscribeMe" |
| // // 6. subscribe another variable to the variable of name "intVar_Subscriber" by calling f_EPTF_Var_subscribeRemote |
| // // 7. Check the value of the variables with calling f_EPTF_Var_getIntValue if they are 11 |
| // // 8. Change the value of the first variable for 19 |
| // // 9. Check the value of the variables with calling f_EPTF_Var_getIntValue if they are 19 |
| // // 10 Repeat steps 8-9 with value 20 instead of 10 |
| // // Expected Result: The tc is passed if all the checks are true otherwise failed |
| // // |
| /////////////////////////////////////////////////////////// |
| //Status: Ready, Failed |
| //TR HJ86333 |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeVariable() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| |
| timer vl_T:= 2.0; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets,"TestTab1"); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets_sec, "testTab2"); |
| var charstring vl_textBoxId :="testTextBox"; |
| var charstring vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='"&vl_textBoxId&"' multiline='false' readonly='false' rows='1.000000' value='testTestTest' widgetType='console' wrap='false'/>\n</Widgets>\n\n"; |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_labels"); |
| log(">>>Debug:vl_ret: ", vl_ret); |
| var integer vl_intVarIdx := -1, vl_intVarIdx2:=-1; |
| var charstring vl_varNameProv:="intVarProv"; |
| var charstring vl_varNameCopy:= "intVarCopy" |
| f_EPTF_Var_newInt(vl_varNameProv,11,vl_intVarIdx); |
| f_EPTF_Var_newInt(vl_varNameCopy,-1,vl_intVarIdx2);//this can be omitted |
| //We ask UIHandler to subscribe for "intVarProv" and store its value as "intVar_Subscriber": |
| f_EPTF_UIHandlerClient_subscribeVariable(vl_varNameProv, "intVar_Subscriber",realtime); |
| |
| vl_T.start(2.0); vl_T.timeout; |
| |
| //we subscribe for the variable "intVar_Subscriber": |
| //f_EPTF_UIHandlerClient_subscribeVariable("intVarCopy","intVar_Subscriber",realtime) |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,"intVar_Subscriber",realtime,vl_intVarIdx2); |
| |
| log( "Old value: ", f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| |
| f_EPTF_Var_adjustContent(pl_idx:=vl_intVarIdx, pl_newContent:={ intVal:=19 }); |
| |
| vl_T.start(2.0); vl_T.timeout; |
| |
| log( "New value of intVarProv: ",f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| log( "New value of intVarCopy: ",f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| f_EPTF_UIHandler_Test_setVerdict(19==f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| f_EPTF_UIHandler_Test_setVerdict(19==f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| |
| vl_T.start(0.2); vl_T.timeout; |
| |
| f_EPTF_Var_adjustContent(pl_idx:=vl_intVarIdx, pl_newContent:={ intVal:=20 }); |
| vl_T.start(2.0); vl_T.timeout; |
| log( "New value of intVarProv: ",f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| log( "New value of intVarCopy: ",f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| f_EPTF_UIHandler_Test_setVerdict(20==f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| f_EPTF_UIHandler_Test_setVerdict(20==f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| |
| }//tc_ |
| |
| // f_EPTF_UIHandlerClient_subscribeVariableTo -- see f_EPTF_UIHandlerClient_subscribeVariable |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeVariableTo |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_subscribeVariableTo |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // It is the shorter, simplified version of tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeVariable |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds gui elements to gui main window with f_EPTF_UIHandlerClient_createGUI |
| // 4. add a textbox widget of type "consol" to the gui |
| // 5. create an integer type Var with name "intVarProv" and with value "11" and "connect" it with destName "intVar_Subscriber" of the |
| // UIHandler by calling function "f_EPTF_UIHandlerClient_subscribeVariableTo" |
| // 6. subscribe another variable to the variable of name "intVar_Subscriber" by calling f_EPTF_Var_subscribeRemote |
| // 7. Check the value of the variables with calling f_EPTF_Var_getIntValue if they are 11 |
| // 8. Change the value of the first variable for 19 |
| // 9. Check the value of the variables with calling f_EPTF_Var_getIntValue if they are 19 |
| // Expected Result: The tc is passed if all the checks are true otherwise failed |
| // |
| /////////////////////////////////////////////////////////// |
| //Status: Ready, Failed |
| //TR HJ86333 |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeVariableTo() |
| runs on EPTF_UIHandlerClient_CT |
| system EPTF_UIHandler_Test_System_CT { |
| |
| timer vl_T:= 2.0; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets,"TestTab1"); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets_sec, "testTab2"); |
| var charstring vl_textBoxId :="testTextBox"; |
| var charstring vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='"&vl_textBoxId&"' multiline='false' readonly='false' rows='1.000000' value='testTestTest' widgetType='console' wrap='false'/>\n</Widgets>\n\n"; |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_labels"); |
| var integer vl_intVarIdx := -1, vl_intVarIdx2:=-1; |
| var charstring vl_varNameProv:="intVarProv"; |
| var charstring vl_varNameCopy:= "intVarCopy" |
| f_EPTF_Var_newInt(vl_varNameProv,11,vl_intVarIdx); |
| f_EPTF_Var_newInt(vl_varNameCopy,-1,vl_intVarIdx2);//this can be omitted |
| //We ask UIHandler to subscribe for "intVarProv" and store its value as "intVar_Subscriber": |
| |
| f_EPTF_UIHandlerClient_subscribeVariableTo(vc_uiHandler, vl_varNameProv, "intVar_Subscriber",realtime); |
| |
| vl_T.start(2.0); vl_T.timeout; |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,"intVar_Subscriber",realtime,vl_intVarIdx2); |
| f_EPTF_Var_adjustContent(pl_idx:=vl_intVarIdx, pl_newContent:={ intVal:=19 }); |
| |
| vl_T.start(2.0); vl_T.timeout; |
| f_EPTF_UIHandler_Test_setVerdict(19==f_EPTF_Var_getIntValue(vl_intVarIdx)); |
| f_EPTF_UIHandler_Test_setVerdict(19==f_EPTF_Var_getIntValue(vl_intVarIdx2)); |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| |
| }//tc_ |
| |
| // f_EPTF_UIHandlerClient_createGUI |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_addElementToGUI |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_createGUI and f_EPTF_UIHandlerClient_widgetExists |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds TabBoxes to gui main window with f_EPTF_UIHandlerClient_createGUI and checks the existence of the new elements |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // 4. add new widgets to the tabboxes and checks their existence |
| // |
| // Expected Result: The tc is passed if all widget added with f_EPTF_UIHandlerClient_createGUI, exists |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_addElementToGUI() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtWindow); |
| |
| vl_wt:=f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpages); |
| |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets,"TestTab1"); |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_GUI_Main_hbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtHbox); |
| |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists("EPTF_Main_hbox_labels"); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtHbox); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets_sec, "testTab2"); |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists("status"); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtLabel); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_runtimeGuiStartTestButtonWidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtButton); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists("flistbox"); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtListbox); |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| // f_EPTF_UIHandlerClient_createGUI |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_bigIntSupport |
| // |
| // Purpose: |
| // To test if RunTime GUI can handle BigInteger values. |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds a hbox with a numericalWidget, a textBox & a table (tree) to the main window with f_EPTF_UIHandlerClient_createGUI and checks the existence of the new elements |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // 4. all widgets contain a BigInteger value; a user should check on the GUI if these values are shown correctly |
| // |
| // Expected Result: The tc is passed if all widget added with f_EPTF_UIHandlerClient_createGUI, exists |
| // BUT this is a manual test, a user must check the GUI (see action 4.) |
| // |
| /////////////// |
| // HM80281 // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_bigIntSupport() |
| runs on EPTF_UIHandlerClient_CT |
| system EPTF_UIHandler_Test_System_CT { |
| const charstring cl_MainHBox_Id := "EPTF_Main_hbox_Textboxes"; |
| const charstring cl_MainHBox := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<hbox id='"&cl_MainHBox_Id&"' orientation='vertical'>\n\t\t<numericalwidget id='bigInt1' spinner='false' value='12345678901234599936.000000' widgetType='integerField'/>\n\t\t<textbox id='textbox1' readonly='false' value='12345678901234567890' widgetType='integerField'/>\n\t\t<tree id='tree1' rows='1.000000'>\n\t\t\t<treecols>\n\t\t\t\t<treecol editable='true' label='columnlabel1' widgetType='integerField'/>\n\t\t\t</treecols>\n\t\t\t<treechildren>\n\t\t\t\t<treeitem>\n\t\t\t\t\t<treerow>\n\t\t\t\t\t\t<treecell id='cell1' label='12345678901234567890'/>\n\t\t\t\t\t</treerow>\n\t\t\t\t\t<treerow>\n\t\t\t\t\t\t<treecell id='cell2' label='12345'/>\n\t\t\t\t\t</treerow>\n\t\t\t\t</treeitem>\n\t\t\t</treechildren>\n\t\t</tree>\n\t</hbox>\n</Widgets>\n\n" |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(cl_MainHBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(cl_MainHBox_Id); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtHbox); |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_EPTF_UIHandler_Test_UIHandlerClient_bigIntSupport |
| |
| // f_EPTF_UIHandlerClient_createGUITo |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_addElementToGUITo |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_createGUITo and f_EPTF_UIHandlerClient_widgetExists |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds TabBoxes to gui main window with f_EPTF_UIHandlerClient_createGUITo and checks the existence of the new elements |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // |
| // Expected Result: The tc is passed if all widget added with f_EPTF_UIHandlerClient_createGUITo, exists |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_addElementToGUITo() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtWindow); |
| |
| vl_wt:=f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| var Widgets vl_widgets; |
| var integer vl_retval; |
| vl_retval := dec_Widgets(char2oct(c_MainTabBox), vl_widgets); |
| |
| vl_ret := f_EPTF_UIHandlerClient_XSD_addElementToGUITo( |
| vl_widgets, |
| tsp_EPTF_GUI_Main_Window_WidgetId, |
| v_UIHandlerClient_DefaultUIHandler); |
| |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpages); |
| |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_testTab1Id); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpage); |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| // f_EPTF_UIHandlerClient_removeElementFromGUI |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_removeElementFromGUI |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_removeElementFromGUI and f_EPTF_UIHandlerClient_widgetExists |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds TabBoxes to gui main window with f_EPTF_UIHandlerClient_createGUITo and checks the existence of the new tab1 element |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // 4. Removes the tab with id c_testTab1Id by f_EPTF_UIHandlerClient_removeElementFromGUI and checks by f_EPTF_UIHandlerClient_widgetExists if it does exist or not |
| // |
| // Expected Result: The tc is passed if widget with id c_testTab1Id exists before removing but does not exist after removing i.e |
| // the function f_EPTF_UIHandlerClient_widgetExists returns with wtUnknown |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_removeElementFromGUI() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtWindow); |
| |
| vl_wt:=f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( |
| EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, |
| tsp_EPTF_GUI_Main_Window_WidgetId); |
| |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpages); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_testTab1Id); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpage); |
| |
| f_EPTF_UIHandlerClient_removeElementFromGUI(c_testTab1Id); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_testTab1Id); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| |
| // f_EPTF_UIHandlerClient_removeElementFromGUI_widgetNotExistsWarning |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_removeElementFromGUI_widgetNotExistsWarning |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_removeElementFromGUI when widget doesn't exist |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds TabBoxes to gui main window with f_EPTF_UIHandlerClient_createGUITo and checks the existence of the new tab1 element |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // 4. Tries to remove the tab with id "Gaia" by f_EPTF_UIHandlerClient_removeElementFromGUI and expects the warning "*There is no widget with name*" |
| // |
| // Expected Result: The tc passes if warning was logged after trying to remove element "Gaia" |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_removeElementFromGUI_widgetNotExistsWarning() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_Test_CT vc_uiHandler := EPTF_UIHandler_Test_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour_warning(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0, pl_warning := "*There is no widget with name*")); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtWindow); |
| |
| vl_wt:=f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( |
| EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, |
| tsp_EPTF_GUI_Main_Window_WidgetId); |
| |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpages); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_testTab1Id); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpage); |
| |
| f_EPTF_UIHandlerClient_removeElementFromGUI("Gaia"); |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| |
| // f_EPTF_UIHandlerClient_removeElementFromGUITo |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_removeElementFromGUITo |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_removeElementFromGUITo and f_EPTF_UIHandlerClient_widgetExistsOn |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds TabBoxes to gui main window with f_EPTF_UIHandlerClient_createGUITo and checks the existence of the new tab1 element |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // 4. Removes the tab with id c_testTab1Id by f_EPTF_UIHandlerClient_removeElementFromGUITo and checks by f_EPTF_UIHandlerClient_widgetExists if it does exist or not |
| // |
| // Expected Result: The tc is passed if widget with id c_testTab1Id exists before removing but does not exist after removing i.e |
| // the function f_EPTF_UIHandlerClient_widgetExists returns with wtUnknown |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_removeElementFromGUITo() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtWindow); |
| |
| vl_wt:=f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( |
| EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, |
| tsp_EPTF_GUI_Main_Window_WidgetId); |
| |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpages); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_testTab1Id); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpage); |
| |
| f_EPTF_UIHandlerClient_removeElementFromGUITo(c_EPTF_Test_Main_Tabbox_WidgetId,v_UIHandlerClient_DefaultUIHandler); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExistsOn(c_EPTF_Test_Main_Tabbox_WidgetId,v_UIHandlerClient_DefaultUIHandler); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| // f_EPTF_UIHandlerClient_enableGUIElement |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_enableDisableGUIElement |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_enableGUIElement and f_EPTF_UIHandlerClient_disableGUIElement |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds TabBoxes to gui main window with f_EPTF_UIHandlerClient_createGUI and checks the existence of the new elements |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // 4. Enable the Exit button and check if the enable request is acknowledged |
| // 5. Disable the Exit Button and check if the disable request is acknowledged. |
| // |
| // Expected Result: Enable and disable requests are acknowledged. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_enableDisableGUIElement() |
| //runs on EPTF_UIHandlerClient_Test_CT |
| runs on EPTF_UIHandlerClient_CT |
| system EPTF_UIHandler_Test_System_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtWindow); |
| |
| vl_wt:=f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpages); |
| |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets,"TestTab1"); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_runtimeGuiExitButtonWidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtButton); |
| log("WidgetType:",vl_wt); |
| |
| f_EPTF_UIHandlerClient_enableGUIElement(c_EPTF_runtimeGuiExitButtonWidgetId); |
| //check (although illegal) |
| alt{ |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminEnableWidgetAck(?)){ |
| v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1; |
| setverdict(pass) |
| }; |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminEnableWidgetNAck(?)){ |
| v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1; |
| setverdict(fail, "t_UIHandler_AdminEnableWidgetNAck message received") |
| } |
| } |
| |
| f_EPTF_UIHandlerClient_disableGUIElement(c_EPTF_runtimeGuiExitButtonWidgetId); |
| //check 1.: |
| alt{ |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminDisableWidgetAck(?)){ |
| v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1; |
| setverdict(pass) |
| }; |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminDisableWidgetNAck(?)){ |
| v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1; |
| setverdict(fail, "t_UIHandler_AdminDisableWidgetNAck message received") |
| } |
| } |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| // f_EPTF_UIHandlerClient_enableGUIElementTo |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_enableDisableGUIElementTo |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_enableGUIElementTo and f_EPTF_UIHandlerClient_disableGUIElementTo |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds TabBoxes to gui main window with f_EPTF_UIHandlerClient_createGUI and checks the existence of the new elements |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // |
| // Expected Result: - |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_enableDisableGUIElementTo() |
| //runs on EPTF_UIHandlerClient_Test_CT |
| runs on EPTF_UIHandlerClient_CT |
| system EPTF_UIHandler_Test_System_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtWindow); |
| |
| vl_wt:=f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets,"TestTab1"); |
| |
| f_EPTF_UIHandlerClient_enableGUIElementTo(c_EPTF_runtimeGuiExitButtonWidgetId,vc_uiHandler); |
| alt{ |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminEnableWidgetAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1;setverdict(pass) }; |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminEnableWidgetNAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1; |
| setverdict(fail, "t_UIHandler_AdminEnableWidgetNAck message received") } |
| } |
| |
| f_EPTF_UIHandlerClient_disableGUIElementTo(c_EPTF_runtimeGuiExitButtonWidgetId,vc_uiHandler); |
| alt{ |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminDisableWidgetAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1;setverdict(pass) }; |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminDisableWidgetNAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1; |
| setverdict(fail, "t_UIHandler_AdminDisableWidgetNAck message received") } |
| } |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| // f_EPTF_UIHandlerClient_disableGUIElement -- ready, see tc_EPTF_UIHandler_Test_UIHandlerClient_enableDisableGUIElement |
| // f_EPTF_UIHandlerClient_disableGUIElementTo --ready., see tc_EPTF_UIHandler_Test_UIHandlerClient_enableDisableGUIElementTo |
| // f_EPTF_UIHandlerClient_widgetExists -- ready, see tc_EPTF_UIHandler_Test_UIHandlerClient_removeElementFromGUI |
| // f_EPTF_UIHandlerClient_widgetExistsOn --ready, see tc_EPTF_UIHandler_Test_UIHandlerClient_removeElementFromGUIOn |
| |
| // f_EPTF_UIHandlerClient_setFocusToGUIElement, f_EPTF_UIHandlerClient_setFocusToTab |
| // f_EPTF_UIHandlerClient_setFocusToGUIElementTo, f_EPTF_UIHandlerClient_setFocusToTabTo |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_setFocusToGUIElement |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_setFocusToGUIElement, f_EPTF_UIHandlerClient_setFocusToTab, |
| // f_EPTF_UIHandlerClient_setFocusToGUIElementTo, f_EPTF_UIHandlerClient_setFocusToTabTo |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. adds TabBoxes to gui main window with f_EPTF_UIHandlerClient_createGUI and checks the existence of the new elements |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // 4. sets focus to the 2nd tab and check if setFocus request is acknowledged |
| // 5. sets focus to the to the Exit button and check if request is acknowledged |
| // 6. sets focus to 2nd tab with f_EPTF_UIHandlerClient_setFocusToTabTo and check if request is acknowledged |
| // 7. sets focus to TestTab1 tab and check if request is acknowledged |
| // |
| // Expected Result: setFocus requests are acknowledged. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_setFocusToGUIElement() |
| runs on EPTF_UIHandlerClient_CT |
| system EPTF_UIHandler_Test_System_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtWindow); |
| |
| vl_wt:=f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpages); |
| |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets,"TestTab1"); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_runtimeGuiExitButtonWidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtButton); |
| |
| // select 2nd tab |
| f_EPTF_UIHandlerClient_setFocusToTab(c_EPTF_Test_Main_Tabbox_WidgetId, 1); |
| alt{ |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminSetFocusToWidgetAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1;setverdict(pass) }; |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminSetFocusToWidgetNAck(?)){v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1; |
| setverdict(fail, "t_UIHandler_AdminSetFocusToWidgetNAck is resceived") } |
| [] vc_uiHandler.done { f_EPTF_Base_stop(inconc); } |
| } |
| |
| // set focus to Exit button |
| f_EPTF_UIHandlerClient_setFocusToGUIElement(c_EPTF_runtimeGuiExitButtonWidgetId); |
| alt{ |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminSetFocusToWidgetAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1;setverdict(pass) }; |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminSetFocusToWidgetNAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1; |
| setverdict(fail, "t_UIHandler_AdminSetFocusToWidgetNAck message is received") } |
| [] vc_uiHandler.done { f_EPTF_Base_stop(inconc); } |
| } |
| |
| // select 2nd tab with f_EPTF_UIHandlerClient_setFocusToTabTo |
| f_EPTF_UIHandlerClient_setFocusToTabTo(c_EPTF_Test_Main_Tabbox_WidgetId, 1, vc_uiHandler); |
| alt{ |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminSetFocusToWidgetAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1;setverdict(pass) }; |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminSetFocusToWidgetNAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1; |
| setverdict(fail, "t_UIHandler_AdminSetFocusToWidgetNAck message is received") } |
| [] vc_uiHandler.done { f_EPTF_Base_stop(inconc); } |
| } |
| |
| // set focus to the TestTab1 tab with f_EPTF_UIHandlerClient_setFocusToGUIElementTo |
| f_EPTF_UIHandlerClient_setFocusToGUIElementTo("TestTab1", vc_uiHandler); |
| alt{ |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminSetFocusToWidgetAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1;setverdict(pass) }; |
| [] v_UIHandlerClient_adminPortIf.receive(t_UIHandler_AdminSetFocusToWidgetNAck(?)){ v_UIHandlerClient_pendingMsgCounter := v_UIHandlerClient_pendingMsgCounter - 1; |
| setverdict(fail, "t_UIHandler_AdminSetFocusToWidgetNAck message is received") } |
| [] vc_uiHandler.done { f_EPTF_Base_stop(inconc); } |
| } |
| |
| f_EPTF_Base_stop(none); |
| /*f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT();*/ |
| }//tc_ |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_addElementToGUITo_Early |
| // |
| // Purpose: |
| // To test if the f_EPTF_UIHandlerClient_createGUITo is called before UIHandler init is complete |
| // it does not result in "invalid parentID" messages |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT |
| // 2. Inits the UIHandlerClients and sends an AddElementToGUI before the UIHandler is started. |
| // 3. Starts EPTF_UIHandler_CT behavior function. |
| // 4. Checks if the defult gui window exists or not |
| // 5. adds TabBoxes to gui main window with f_EPTF_UIHandlerClient_createGUITo and checks the existence of the new elements |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // |
| // Expected Result: The tc is passed if all widget added with f_EPTF_UIHandlerClient_createGUITo, exists |
| // |
| // Note: |
| // This test case should be executed with a config file in which tsp_EPTF_GUI_DefaultWindow is not defined or is "". |
| // This is needed because only in this case will a LayoutRequest be sent to the RuntimeGUI during UIHandler init. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_addElementToGUITo_Early() runs on EPTF_UIHandlerClient_CT system EPTF_UIHandler_Test_System_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName,vc_uiHandler); |
| |
| // start the UIHandler. It is delayed until the first AddElementToGUI was sent => it will arrive during LayoutRequest in the init function |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0, pl_delay := 2.0)); |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtWindow); |
| |
| vl_wt:=f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtUnknown); |
| |
| var Widgets vl_widgets; |
| var integer vl_retval; |
| vl_retval := dec_Widgets(char2oct(c_MainTabBox), vl_widgets); |
| |
| vl_ret := f_EPTF_UIHandlerClient_XSD_addElementToGUITo( |
| vl_widgets, |
| tsp_EPTF_GUI_Main_Window_WidgetId, |
| v_UIHandlerClient_DefaultUIHandler); |
| |
| f_EPTF_UIHandler_Test_setVerdict(vl_ret==sr_Success); |
| |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_Test_Main_Tabbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpages); |
| |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_testTab1Id); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtTabpage); |
| |
| timer t_wait := 4.0;t_wait.start; t_wait.timeout; |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| // f_EPTF_UIHandler_VariableUI_init_CT |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_VariableUI_Test_init |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandler_VariableUI_init_CT |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on EPTF_UIHandler_VariableUI_CT |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the EPTF_UIHandler_VariableUI_CT and cheks if all component variable have been initialized |
| // 3. cleanup |
| // Expected Result: The tc is passed if v_VariableUI_initialized is true and the component variables has been initialized |
| // |
| /////////////////////////////////////////////////////////// |
| //Status:ready, passed |
| testcase tc_EPTF_UIHandler_VariableUI_Test_init() runs on EPTF_UIHandler_VariableUI_CT { |
| |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| |
| f_EPTF_UIHandler_VariableUI_init_CT(vl_clientName,vc_uiHandler); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerVariableComponentInitialized(vl_clientName,vc_uiHandler)); |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_timeout := 20.0)); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| f_EPTF_UIHandler_Test_LoguiHandlerVariableComponent(); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerVariableComponentCleanedUp()); |
| }//tc_ |
| |
| // f_EPTF_UIHandler_VariableUI_putVarbyName |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_VariableUI_Test_putVarbyName |
| // |
| // Purpose: |
| // To test functions f_EPTF_UIHandler_VariableUI_addsimpleconnection, |
| // f_EPTF_UIHandler_VariableUI_putVarbyName, |
| // f_EPTF_UIHandler_VariableUI_putconnections, |
| // f_EPTF_UIHandler_VariableUI_removeconnection |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on EPTF_UIHandler_VariableUI_CT |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the EPTF_UIHandler_VariableUI_CT and cheks if all component variable have been initialized |
| // 3. Add a tree (table) with two column to the default window |
| // 4. Create 3 variable and connect them to the cells of the first column os the tree (table) |
| // 5. Subscribe for the 3 cells to check their changes |
| // 6. Change their values and check the subscribed vars if their values are the new ones |
| // Expected Result: The tc is passed if the all the checks are true |
| // |
| /////////////////////////////////////////////////////////// |
| //Status: Ready |
| testcase tc_EPTF_UIHandler_VariableUI_Test_putVarbyName() runs on EPTF_UIHandler_VariableUI_CT { |
| timer vl_T:=0.0 |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandler_VariableUI_init_CT(vl_clientName,vc_uiHandler); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerVariableComponentInitialized(vl_clientName,vc_uiHandler)); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( |
| EPTF_UIHandler_Test_ASN1_Definitions.c_EPTF_Test_tree, |
| tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treerow>\n\t\t<treecell id='apple3' label='apple3value' tooltiptext='a3_tooltip'/>\n\t\t<treecell id='bean3' label='bean3value' tooltiptext='b3_tooltip'/>\n\t</treerow>\n</Widgets>\n\n", |
| c_EPTF_Test_treeId); |
| |
| var charstring vl_c1value:="apple1init", vl_c2value:="apple2init",vl_c3value:="apple3init"; |
| var charstring vl_c1Id:="c1Id", vl_c2Id:="c2Id", vl_c3Id:="c3Id"; |
| var integer vl_c1Idx:=-1, vl_c2Idx:=-1, vl_c3Idx:=-1, vl_varIdx1:=-1, vl_varIdx2:=-1, vl_varIdx3:=-1; |
| |
| f_EPTF_Var_newCharstring( vl_c1Id,vl_c1value, vl_c1Idx); |
| f_EPTF_Var_newCharstring( vl_c2Id,vl_c2value, vl_c2Idx); |
| f_EPTF_Var_newCharstring( vl_c3Id,vl_c3value, vl_c3Idx); |
| |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c1Id,"apple1"); |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c2Id,"apple2"); |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c3Id,"apple3"); |
| |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| |
| f_EPTF_UIHandler_VariableUI_putVarbyName(vl_c2Id); |
| f_EPTF_UIHandler_VariableUI_putVarbyName(vl_c3Id); |
| f_EPTF_UIHandler_VariableUI_putVarbyName(vl_c1Id); |
| |
| //f_EPTF_UIHandler_VariableUI_putlastconnections(); //expected: only 2 and 3 |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c1Id,realtime,vl_varIdx1); |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c2Id,realtime,vl_varIdx2); |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c3Id,realtime,vl_varIdx3); |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c1Idx , pl_newContent:={ charstringVal:="apple1new"}); |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c2Idx , pl_newContent:={ charstringVal:="apple2new"}); |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c3Idx , pl_newContent:={ charstringVal:="apple3new"}); |
| |
| // shall wait after puvarbuname at leat the sync time interval --> TR for putvarbyname??? |
| vl_T.start(tsp_EPTF_Test_wait + tsp_EPTF_Var_SyncInterval); vl_T.timeout; |
| f_EPTF_UIHandler_Test_setVerdict("apple1new"==f_EPTF_Var_getCharstringValue(vl_varIdx1)); |
| f_EPTF_UIHandler_Test_setVerdict("apple2new"==f_EPTF_Var_getCharstringValue(vl_varIdx2)) |
| f_EPTF_UIHandler_Test_setVerdict("apple3new"==f_EPTF_Var_getCharstringValue(vl_varIdx3)) |
| |
| |
| //f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| //f_EPTF_UIHandler_Test_LoguiHandlerVariableComponent(); |
| //f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerVariableComponentCleanedUp()); |
| }//tc_ |
| |
| |
| // f_EPTF_UIHandler_VariableUI_putlastconnections |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_VariableUI_Test_putlastconnections |
| // |
| // Purpose: |
| // To test the function f_EPTF_UIHandler_VariableUI_addsimpleconnection and f_EPTF_UIHandler_VariableUI_putlastconnections |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on EPTF_UIHandler_VariableUI_CT |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the EPTF_UIHandler_VariableUI_CT and cheks if all component variable have been initialized |
| // 3. Add a tree (table) with two column to the default window |
| // 4. Create 3 variable and connect them to the cells of the first column of the tree (table) |
| // 5. Subscribe for the 3 cells to check their changes |
| // 6. Change their values and check the subscribed vars if their values are the new ones |
| // Expected Result: The tc is passed if the all the checks are true |
| // |
| /////////////////////////////////////////////////////////// |
| //Status: ready, passed |
| //TODO: f_EPTF_UIHandler_VariableUI_putlastconnections not used !!! Something is wrong !!! |
| testcase tc_EPTF_UIHandler_VariableUI_Test_putlastconnections() runs on EPTF_UIHandler_VariableUI_CT { |
| timer vl_T:=0.0 |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandler_VariableUI_init_CT(vl_clientName,vc_uiHandler); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerVariableComponentInitialized(vl_clientName,vc_uiHandler)); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( |
| EPTF_UIHandler_Test_ASN1_Definitions.c_EPTF_Test_tree, |
| tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treerow>\n\t\t<treecell id='apple3' label='apple3value' tooltiptext='a3_tooltip'/>\n\t\t<treecell id='bean3' label='bean3value' tooltiptext='b3_tooltip'/>\n\t</treerow>\n</Widgets>\n\n", |
| c_EPTF_Test_treeId); |
| |
| var charstring vl_c1value:="apple1init", vl_c2value:="apple2init",vl_c3value:="apple3init"; |
| var charstring vl_c1Id:="c1Id", vl_c2Id:="c2Id", vl_c3Id:="c3Id"; |
| var integer vl_c1Idx:=-1, vl_c2Idx:=-1, vl_c3Idx:=-1, vl_varIdx1:=-1, vl_varIdx2:=-1, vl_varIdx3:=-1; |
| |
| f_EPTF_Var_newCharstring( vl_c1Id,vl_c1value, vl_c1Idx); |
| f_EPTF_Var_newCharstring( vl_c2Id,vl_c2value, vl_c2Idx); |
| f_EPTF_Var_newCharstring( vl_c3Id,vl_c3value, vl_c3Idx); |
| |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c1Id,"apple1"); |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c2Id,"apple2"); |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c3Id,"apple3"); |
| f_EPTF_UIHandler_VariableUI_putconnections(); |
| |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| |
| //later a new one came: |
| |
| //f_EPTF_UIHandler_VariableUI_putlastconnections(); |
| //vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c1Id,realtime,vl_varIdx1); |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c2Id,realtime,vl_varIdx2); |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c3Id,realtime,vl_varIdx3); |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c1Idx , pl_newContent:={ charstringVal:="apple1new"}); |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c2Idx , pl_newContent:={ charstringVal:="apple2new"}); |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c3Idx , pl_newContent:={ charstringVal:="apple3new"}); |
| |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_UIHandler_Test_setVerdict("apple1new"==f_EPTF_Var_getCharstringValue(vl_varIdx1)); |
| f_EPTF_UIHandler_Test_setVerdict("apple2new"==f_EPTF_Var_getCharstringValue(vl_varIdx2)) |
| f_EPTF_UIHandler_Test_setVerdict("apple3new"==f_EPTF_Var_getCharstringValue(vl_varIdx3)) |
| |
| //f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| // f_EPTF_UIHandler_VariableUI_addsimpleconnection |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_VariableUI_Test_addsimpleconnection |
| // |
| // Purpose: |
| // To test the function f_EPTF_UIHandler_VariableUI_addsimpleconnection and f_EPTF_UIHandler_VariableUI_putconnections |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on EPTF_UIHandler_VariableUI_CT |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the EPTF_UIHandler_VariableUI_CT and cheks if all component variable have been initialized |
| // 3. Add a tree (table) with two column to the default window |
| // 4. Create 3 variable and connect them to the cells of the first column os the tree (table) |
| // 5. Subscribe for the 3 cells to check their changes |
| // 6. Change their values and check the subscribed vars if their values are the new ones |
| // Expected Result: The tc is passed if the all the checks are true |
| // |
| /////////////////////////////////////////////////////////// |
| //Status: ready, passed |
| testcase tc_EPTF_UIHandler_VariableUI_Test_addsimpleconnection() runs on EPTF_UIHandler_VariableUI_CT { |
| timer vl_T:=0.0 |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandler_VariableUI_init_CT(vl_clientName,vc_uiHandler); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerVariableComponentInitialized(vl_clientName,vc_uiHandler)); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( |
| EPTF_UIHandler_Test_ASN1_Definitions.c_EPTF_Test_tree, |
| tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treerow>\n\t\t<treecell id='apple3' label='apple3value' tooltiptext='a3_tooltip'/>\n\t\t<treecell id='bean3' label='bean3value' tooltiptext='b3_tooltip'/>\n\t</treerow>\n</Widgets>\n\n", |
| c_EPTF_Test_treeId); |
| |
| var charstring vl_c1value:="apple1init", vl_c2value:="apple2init",vl_c3value:="apple3init"; |
| var charstring vl_c1Id:="c1Id", vl_c2Id:="c2Id", vl_c3Id:="c3Id"; |
| var integer vl_c1Idx:=-1, vl_c2Idx:=-1, vl_c3Idx:=-1, vl_varIdx1:=-1, vl_varIdx2:=-1, vl_varIdx3:=-1; |
| |
| f_EPTF_Var_newCharstring( vl_c1Id,vl_c1value, vl_c1Idx); |
| f_EPTF_Var_newCharstring( vl_c2Id,vl_c2value, vl_c2Idx); |
| f_EPTF_Var_newCharstring( vl_c3Id,vl_c3value, vl_c3Idx); |
| |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c1Id,"apple1"); |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c2Id,"apple2"); |
| |
| |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_UIHandler_VariableUI_putconnections(); |
| |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c3Id,"apple3"); |
| f_EPTF_UIHandler_VariableUI_putVarbyName(vl_c3Id); |
| |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c1Id,realtime,vl_varIdx1); |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c2Id,realtime,vl_varIdx2); |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c3Id,realtime,vl_varIdx3); |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c1Idx , pl_newContent:={ charstringVal:="apple1new"}); |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c2Idx , pl_newContent:={ charstringVal:="apple2new"}); |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c3Idx , pl_newContent:={ charstringVal:="apple3new"}); |
| |
| vl_T.start(tsp_EPTF_Test_wait + tsp_EPTF_Var_SyncInterval); vl_T.timeout; |
| f_EPTF_UIHandler_Test_setVerdict("apple1new"==f_EPTF_Var_getCharstringValue(vl_varIdx1)); |
| f_EPTF_UIHandler_Test_setVerdict("apple2new"==f_EPTF_Var_getCharstringValue(vl_varIdx2)) |
| f_EPTF_UIHandler_Test_setVerdict("apple3new"==f_EPTF_Var_getCharstringValue(vl_varIdx3)) |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| |
| // f_EPTF_UIHandler_VariableUI_addwidgetconnection |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandlerClient_addwidgetconnection |
| // |
| // Purpose: |
| // To test the functions f_EPTF_UIHandlerClient_createGUI and f_EPTF_UIHandler_VariableUI_addwidgetconnection |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on UIHandlerClient |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the UIHandlerClients and checks if the defult gui window exists or not |
| // 3. Adds TabBoxes to gui main window with f_EPTF_UIHandlerClient_createGUI and checks the existence of the new elements |
| // with f_EPTF_UIHandlerClient_widgetExists |
| // 4. Create a new charstring Variable by f_EPTF_Var_newCharstring |
| // 5. Adds a widget connection to this variable and a widget by f_EPTF_UIHandler_VariableUI_addwidgetconnection |
| // 6. Calls f_EPTF_UIHandler_VariableUI_putconnections |
| // 7. Subscribes for the variable by f_EPTF_Var_subscribeRemote |
| // 8. Adjusts/changes its content by f_EPTF_Var_adjustContent |
| // 9. Checks if the value has been changed |
| // Expected Result: The tc is passed if th checks are true. |
| // |
| /////////////////////////////////////////////////////////// |
| //Status: Ready, passed |
| testcase tc_EPTF_UIHandler_Test_UIHandlerClient_addwidgetconnection() runs on EPTF_UIHandler_VariableUI_CT { |
| timer vl_T:=0.0 |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandler_VariableUI_init_CT(vl_clientName,vc_uiHandler); |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); //puts up tsp_EPTF_GUI_Main_Window_WidgetId |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| var EPTF_UIHandler_HandledWidgetType vl_wt:= f_EPTF_UIHandlerClient_widgetExists(tsp_EPTF_GUI_Main_Window_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtWindow); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainWidgets,"TestTab1"); |
| vl_wt:= f_EPTF_UIHandlerClient_widgetExists(c_EPTF_GUI_Main_hbox_WidgetId); |
| f_EPTF_UIHandler_Test_setVerdict(vl_wt==wtHbox); |
| |
| //Main part |
| var charstring vl_c1value:="testCharInitValue"; |
| var charstring vl_c1Id :="c1Id", vl_widgetId:= "testWidgetId"; |
| var integer vl_c1Idx:=-1, vl_varIdx1:=-1; |
| f_EPTF_Var_newCharstring( vl_c1Id,vl_c1value, vl_c1Idx); |
| |
| var Widgets vl_widgets; |
| var integer vl_retval; |
| vl_retval := dec_Widgets(char2oct("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' flex='1.000000' id='" & vl_widgetId &"' multiline='false' readonly='false' value='This is the test widget' widgetType='console'/>\n</Widgets>\n\n"), vl_widgets); |
| |
| f_EPTF_UIHandler_VariableUI_addwidgetconnection( |
| pl_varname:=vl_c1Id, |
| pl_widgetid:= vl_widgetId, |
| pl_widget:= vl_widgets, |
| pl_parentid:="EPTF_Main_hbox_labels" |
| ); |
| f_EPTF_UIHandler_VariableUI_putconnections(); |
| |
| //Check the results: |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c1Id,realtime,vl_varIdx1); |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c1Idx , pl_newContent:={ charstringVal:="testCharNewValue"}); |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_UIHandler_Test_setVerdict("testCharNewValue"==f_EPTF_Var_getCharstringValue(vl_varIdx1)); |
| |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| } //tc_ |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_VariableUI_Test_simpleconnectionWithSubsModeList |
| // |
| // Purpose: |
| // To test these two functions: |
| // f_EPTF_UIHandler_VariableUI_addsimpleconnectionWithSubsModeList |
| // f_EPTF_UIHandler_VariableUI_putsimpleconnectionWithSubsModeList |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on EPTF_UIHandler_VariableUI_CT |
| // 1. Creates a component of type EPTF_UIHandler_CT and starts its behavior function. |
| // 2. Inits the EPTF_UIHandler_VariableUI_CT |
| // 3. Adds a tree (table) with three columns to the default window |
| // 4. Creates 3 variables and connects them to the cells of the first column of the tree (table) |
| // with different subscription modes (omit, timeLine, realtime) |
| // 5. Changes their values and checks the subscribed vars if their values are the new ones |
| // |
| // Expected Result: The variable subscribed in realtime mode must be set immediately, |
| // the others must be changed after the timeout of refresh period. |
| // |
| /////////////////////////////////////////////////////////// |
| //Status: ready, passed |
| testcase tc_EPTF_UIHandler_VariableUI_Test_simpleconnectionWithSubsModeList() runs on EPTF_UIHandler_VariableUI_CT { |
| timer vl_T:=0.1; |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandler_VariableUI_init_CT(vl_clientName, vc_uiHandler); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerVariableComponentInitialized(vl_clientName,vc_uiHandler)); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( |
| EPTF_UIHandler_Test_ASN1_Definitions.c_EPTF_Test_tree, |
| tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treerow>\n\t\t<treecell id='apple3' label='apple3value' tooltiptext='a3_tooltip'/>\n\t\t<treecell id='bean3' label='bean3value' tooltiptext='b3_tooltip'/>\n\t</treerow>\n</Widgets>\n\n", |
| c_EPTF_Test_treeId); |
| |
| var charstring vl_c1value:="apple1init", vl_c2value:="apple2init",vl_c3value:="apple3init"; |
| var charstring vl_c1Id:="c1Id", vl_c2Id:="c2Id", vl_c3Id:="c3Id"; |
| var integer vl_c1Idx:=-1, vl_c2Idx:=-1, vl_c3Idx:=-1; |
| |
| f_EPTF_Var_newCharstring( vl_c1Id, vl_c1value, vl_c1Idx); |
| f_EPTF_Var_newCharstring( vl_c2Id, vl_c2value, vl_c2Idx); |
| f_EPTF_Var_newCharstring( vl_c3Id, vl_c3value, vl_c3Idx); |
| |
| var EPTF_UIHandler_VariableUI_SimpleConnectionWithSubsModeList vl_connList := {{vl_c1Id,"apple1", omit}, |
| {vl_c2Id,"apple2", timeLine}, |
| {vl_c3Id,"apple3", realtime}}; |
| f_EPTF_UIHandler_VariableUI_addsimpleconnectionWithSubsModeList(vl_connList); |
| f_EPTF_UIHandler_VariableUI_putsimpleconnectionWithSubsModeList(vl_connList); |
| |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c1Idx , pl_newContent:={ charstringVal:="apple1new"}); |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c2Idx , pl_newContent:={ charstringVal:="apple2new"}); |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c3Idx , pl_newContent:={ charstringVal:="apple3new"}); |
| |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| var EPTF_Var_DirectContent vl_dummyvar; |
| if (f_EPTF_Var_getRemoteContent(vc_uiHandler, vl_c3Id, vl_dummyvar)){ |
| f_EPTF_UIHandler_Test_setVerdict(vl_dummyvar.charstringVal == "apple3new") |
| } |
| else{ |
| f_EPTF_UIHandler_Test_setVerdict(false); |
| } |
| |
| vl_T.start(tsp_EPTF_Test_wait + tsp_EPTF_Var_SyncInterval); vl_T.timeout; //because subsMode is timeLine |
| if (f_EPTF_Var_getRemoteContent(vc_uiHandler, vl_c1Id, vl_dummyvar)){ |
| f_EPTF_UIHandler_Test_setVerdict(vl_dummyvar.charstringVal == "apple1new") |
| } |
| else{ |
| f_EPTF_UIHandler_Test_setVerdict(false); |
| } |
| if (f_EPTF_Var_getRemoteContent(vc_uiHandler, vl_c2Id, vl_dummyvar)){ |
| f_EPTF_UIHandler_Test_setVerdict(vl_dummyvar.charstringVal == "apple2new") |
| } |
| else{ |
| f_EPTF_UIHandler_Test_setVerdict(false); |
| } |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_EPTF_UIHandler_VariableUI_Test_simpleconnectionWithSubsModeList |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_VariableUI_Test_singlewidgetconnectionWithSubsModeList |
| // |
| // Purpose: |
| // To test f_EPTF_UIHandler_VariableUI_putsinglewidgetconnectionWithSubsModeList function. |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on EPTF_UIHandler_VariableUI_CT |
| // 1. Creates a component of type EPTF_UIHandler_CT and starts its behavior function. |
| // 2. Inits the EPTF_UIHandler_VariableUI_CT |
| // 3. Adds a label to the default window |
| // 4. Creates a variable and connects it to the label with realtime subscription mode |
| // 5. Changes its value and checks the subscribed var if its value is the new one |
| // |
| // Expected Result: The variable subscribed in realtime mode must be set immediately. |
| // |
| /////////////////////////////////////////////////////////// |
| //Status: ready, passed |
| testcase tc_EPTF_UIHandler_VariableUI_Test_singlewidgetconnectionWithSubsModeList() runs on EPTF_UIHandler_VariableUI_CT { |
| timer vl_T:=0.1; |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| |
| f_EPTF_UIHandler_VariableUI_init_CT(vl_clientName, vc_uiHandler); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerVariableComponentInitialized(vl_clientName,vc_uiHandler)); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| |
| var charstring vl_c1value:="label1init"; |
| var charstring vl_c1Id:="c1Id"; |
| var integer vl_c1Idx:=-1; |
| |
| f_EPTF_Var_newCharstring( vl_c1Id, vl_c1value, vl_c1Idx); |
| |
| var EPTF_UIHandler_VariableUI_SimpleConnectionWithSubsModeList vl_connList := {{vl_c1Id, "Label1", realtime}}; |
| |
| var Widgets vl_widgets; |
| var integer vl_retval; |
| vl_retval := dec_Widgets(char2oct(EPTF_UIHandler_Test_ASN1_Definitions.c_EPTF_Test_label1), vl_widgets); |
| |
| f_EPTF_UIHandler_VariableUI_putsinglewidgetconnectionWithSubsModeList(vl_connList, vl_widgets, tsp_EPTF_GUI_Main_Window_WidgetId); |
| |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c1Idx , pl_newContent:={ charstringVal:="label1new"}); |
| |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| var EPTF_Var_DirectContent vl_dummyvar; |
| if (f_EPTF_Var_getRemoteContent(vc_uiHandler, vl_c1Id, vl_dummyvar)){ |
| f_EPTF_UIHandler_Test_setVerdict(vl_dummyvar.charstringVal == "label1new") |
| } |
| else{ |
| f_EPTF_UIHandler_Test_setVerdict(false); |
| } |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_EPTF_UIHandler_VariableUI_Test_singlewidgetconnectionWithSubsModeList |
| |
| // f_EPTF_UIHandler_VariableUI_addholdingwidget --ready |
| // f_EPTF_UIHandler_VariableUI_assignholdingwidget -ready |
| // f_EPTF_UIHandler_VariableUI_assignholding -- ready, see f_EPTF_UIHandler_VariableUI_addholdingwidget |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_VariableUI_Test_holdingwidget |
| // |
| // Purpose: |
| // To test the function f_EPTF_UIHandler_VariableUI_addholdingwidget and f_EPTF_UIHandler_VariableUI_assignholdingwidget |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on EPTF_UIHandler_VariableUI_CT |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the EPTF_UIHandler_VariableUI_CT and cheks if all component variable have been initialized |
| // 3. Add a tree (table) with two column to the default window |
| // 4. Add a new row to the table by f_EPTF_UIHandler_VariableUI_addholdingwidget |
| // 4. Create 1 variable and connect it to the cells of the third column os the tree (table) |
| // 5. Subscribe for the new row to check their changes |
| // 6. Change their values and check the subscribed vars if their values are the new ones |
| // Expected Result: The tc is passed if the all the checks are true |
| // |
| /////////////////////////////////////////////////////////// |
| //Status: ready, passed |
| testcase tc_EPTF_UIHandler_VariableUI_Test_holdingwidget() runs on EPTF_UIHandler_VariableUI_CT { |
| timer vl_T:=0.0 |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandler_VariableUI_init_CT(vl_clientName,vc_uiHandler); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerVariableComponentInitialized(vl_clientName,vc_uiHandler)); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( |
| EPTF_UIHandler_Test_ASN1_Definitions.c_EPTF_Test_tree, |
| tsp_EPTF_GUI_Main_Window_WidgetId); |
| |
| var charstring vl_c3value:="apple3init"; |
| var charstring vl_c3Id:="c3Id"; |
| var integer vl_c3Idx:=-1, vl_varIdx3:=-1; |
| f_EPTF_Var_newCharstring( vl_c3Id,vl_c3value, vl_c3Idx); |
| |
| |
| var Widgets vl_widgets; |
| var integer vl_retval; |
| vl_retval := dec_Widgets(char2oct("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treerow>\n\t\t<treecell id='apple3' label='apple3value' tooltiptext='a3_tooltip'/>\n\t\t<treecell id='bean3' label='bean3value' tooltiptext='b3_tooltip'/>\n\t</treerow>\n</Widgets>\n\n"), vl_widgets); |
| f_EPTF_UIHandler_VariableUI_addholdingwidget( |
| "ThirdRow", |
| vl_widgets, |
| c_EPTF_Test_treeId); |
| |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c3Id, "apple3"); |
| f_EPTF_UIHandler_VariableUI_assignholdingwidget(vl_c3Id, "ThirdRow"); |
| f_EPTF_UIHandler_VariableUI_putconnections(); |
| |
| //Test: |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c3Id,realtime,vl_varIdx3); |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c3Idx , pl_newContent:={ charstringVal:="apple3new"}); |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_UIHandler_Test_setVerdict("apple3new"==f_EPTF_Var_getCharstringValue(vl_varIdx3)) |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| |
| }//tc_ |
| |
| // f_EPTF_UIHandler_VariableUI_removeconnection |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_VariableUI_Test_removeconnection |
| // |
| // Purpose: |
| // To test functions f_EPTF_UIHandler_VariableUI_addsimpleconnection, |
| // f_EPTF_UIHandler_VariableUI_removeconnection |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on EPTF_UIHandler_VariableUI_CT |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function. |
| // 2. Inits the EPTF_UIHandler_VariableUI_CT and cheks if all component variable have been initialized |
| // 3. Add a tree (table) with two column to the default window |
| // 4. Create 3 variable and connect them to the cells of the first column os the tree (table): |
| // 4A Registers them in the database by f_EPTF_UIHandler_VariableUI_addsimpleconnection() |
| // 4B Put the second one up to the gui by f_EPTF_UIHandler_VariableUI_putVarbyName |
| // 4C Removes it from the database by f_EPTF_UIHandler_VariableUI_removeconnection |
| // 4D Put the others by calling f_EPTF_UIHandler_VariableUI_putconnections() |
| // 5. Subscribes for the 3 cells to check their changes |
| // 6. Changes their values and check the subscribed vars if their values are the new ones |
| // Expected Result: The tc is passed if the all the checks are true |
| // |
| /////////////////////////////////////////////////////////// |
| //Status: Ready, fails, TR: HJ87274 |
| testcase tc_EPTF_UIHandler_VariableUI_Test_removeconnection() runs on EPTF_UIHandler_VariableUI_CT { |
| timer vl_T:=0.0 |
| var EPTF_UIHandlerClient_SubsRet vl_ret; |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| f_EPTF_UIHandler_VariableUI_init_CT(vl_clientName,vc_uiHandler); |
| f_EPTF_UIHandler_Test_setVerdict(f_EPTF_UIHandler_Test_uiHandlerVariableComponentInitialized(vl_clientName,vc_uiHandler)); |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour( |
| pl_selfName := vl_clientName, |
| pl_connectGUI := true, |
| pl_timeout := tsp_EPTF_Test_wait*4.0 + tsp_EPTF_Var_SyncInterval + 1.0)); |
| |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( |
| EPTF_UIHandler_Test_ASN1_Definitions.c_EPTF_Test_tree, |
| tsp_EPTF_GUI_Main_Window_WidgetId); |
| vl_ret := f_EPTF_UIHandlerClient_createGUI( "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treerow>\n\t\t<treecell id='apple3' label='apple3value' tooltiptext='a3_tooltip'/>\n\t\t<treecell id='bean3' label='bean3value' tooltiptext='b3_tooltip'/>\n\t</treerow>\n</Widgets>\n\n", |
| c_EPTF_Test_treeId); |
| |
| var charstring vl_c1value:="apple1init", vl_c2value:="apple2init",vl_c3value:="apple3init"; |
| var charstring vl_c1Id:="c1Id", vl_c2Id:="c2Id", vl_c3Id:="c3Id"; |
| var integer vl_c1Idx:=-1, vl_c2Idx:=-1, vl_c3Idx:=-1, vl_varIdx1:=-1, vl_varIdx2:=-1, vl_varIdx3:=-1; |
| |
| f_EPTF_Var_newCharstring( vl_c1Id,vl_c1value, vl_c1Idx); |
| f_EPTF_Var_newCharstring( vl_c2Id,vl_c2value, vl_c2Idx); |
| f_EPTF_Var_newCharstring( vl_c3Id,vl_c3value, vl_c3Idx); |
| |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c1Id,"apple1"); |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c2Id,"apple2"); |
| f_EPTF_UIHandler_VariableUI_addsimpleconnection(vl_c3Id,"apple3"); |
| |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| |
| log(">>>Debug: v_VariableUI_connections: ",v_VariableUI_connections) |
| f_EPTF_UIHandler_VariableUI_removeconnection(vl_c2Id);//TR: HJ87274 |
| |
| f_EPTF_UIHandler_VariableUI_putconnections();//only 1 and 3 remained |
| |
| //f_EPTF_UIHandler_VariableUI_putlastconnections(); //expected: only 2 and 3 |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c1Id,realtime,vl_varIdx1); |
| //f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c2Id,realtime,vl_varIdx2); |
| f_EPTF_Var_subscribeRemote(vc_uiHandler,vl_c3Id,realtime,vl_varIdx3); |
| vl_T.start(tsp_EPTF_Test_wait); vl_T.timeout; |
| |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c1Idx , pl_newContent:={ charstringVal:="apple1new"}); |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c2Idx , pl_newContent:={ charstringVal:="apple2new"}); |
| f_EPTF_Var_adjustContent(pl_idx:= vl_c3Idx , pl_newContent:={ charstringVal:="apple3new"}); |
| |
| vl_T.start(tsp_EPTF_Test_wait + tsp_EPTF_Var_SyncInterval); vl_T.timeout; |
| f_EPTF_UIHandler_Test_setVerdict("apple1new"==f_EPTF_Var_getCharstringValue(vl_varIdx1)); |
| f_EPTF_UIHandler_Test_setVerdict(not f_EPTF_Var_isPresentRemote(vc_uiHandler,vl_c2Id)); |
| f_EPTF_UIHandler_Test_setVerdict("apple3new"==f_EPTF_Var_getCharstringValue(vl_varIdx3)) |
| |
| f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| //FIXME Move to HostAdmin tests |
| /* |
| // f_EPTF_HostAdminUI_behavior |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_HostAdminUI_behavior |
| // |
| // Purpose: |
| // To test the functions f_EPTF_HostAdminUI_behavior |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // The testcase runs on EPTF_HostAdminUI_CT |
| // 1. creates a component of type EPTF_UIHandler_CT and starts |
| // its behavior function with order "add Main Tabbox" |
| // 2. Starts the f_EPTF_HostAdminUI_behavior and checks if the defult gui window exists or not |
| // |
| // Expected Result: The tc is passed if all widget |
| // |
| /////////////////////////////////////////////////////////// |
| //Status: Ready |
| testcase tc_EPTF_UIHandler_Test_HostAdminUI_behavior() runs on EPTF_UIHandler_HostAdmin_Test_CT { |
| timer vl_T:=0.0 |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| |
| v_def:= activate(as_EPTF_UIHandler_HostAdmin_T1()); |
| T1.start; |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour( |
| vl_clientName, |
| true, |
| true, |
| "", //layout |
| true, |
| 20.0 |
| )); //puts up tsp_EPTF_GUI_Main_Window_WidgetId + main tabbox |
| |
| f_EPTF_HostAdminUI_behavior(vl_clientName,"localhome",vc_uiHandler); |
| |
| //f_EPTF_Base_stopRemote(mtc); |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| // f_EPTF_LoadRegulatorUI_putUI --see at RoadLegulator |
| */ |
| // f_EPTF_StatCaptureUI_putUI -- see at StatCapture |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_CLICommandParser |
| // |
| // Purpose: |
| // Testcase for checking correction to TR: HK27195 |
| // |
| // Requirement: |
| // - |
| // |
| /////////////////////////////////////////////////////////// |
| type component dummy_CT {}; |
| // testcase tc_EPTF_UIHandler_Test_CLICommandParser() runs on dummy_CT |
| // { |
| //FIXME TODO !!! |
| // |
| // } //tc_EPTF_UIHandler_Test_CLICommandParser |
| |
| }// FunctionTest |
| |
| group CLI{ |
| modulepar float tsp_CR_TR00015823Tester_guard := 5.0 |
| //CR_TR00015823 |
| |
| type component EPTF_UIHandler_Test_VarList_CT extends EPTF_UIHandlerClient_CT, EPTF_UIHandler_CLI_CT{ |
| var EPTF_UIHandler_Test_CliClient_CT v_testerCT |
| } |
| |
| function f_EPTF_UIHandler_Test_CR_TR00015823UIHandlerBehavior(in charstring pl_selfName) |
| runs on EPTF_UIHandler_Test_VarList_CT{ |
| //Initialize |
| f_EPTF_UIHandler_CLI_init_CT(pl_selfName, false) |
| f_EPTF_UIHandlerClient_init_CT(pl_selfName, self) |
| f_EPTF_UIHandler_clearGUI() |
| f_EPTF_UIHandler_addWindow(); |
| |
| f_EPTF_UIHandler_Test_createMainImages(); |
| f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, ""); |
| //Build GUI |
| //Main tab |
| var charstring vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tabpage id='test_tab' label='UIHandlerTest' orientation='vertical'/>\n</Widgets>\n\n" |
| |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, c_EPTF_Test_Main_Tabbox_WidgetId); |
| |
| //Tree |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tree hidecolumnpicker='false' id='test_tree' rows='0.000000'>\n\t\t<treecols>\n\t\t\t |
| <treecol editable='false' flex='1.000000' label='DisabledStringColumn' widgetType='string'/>\n\t\t\t |
| <treecol editable='false' flex='1.000000' label='DisabledIntegerColumn' widgetType='integerField'/>\n\t\t\t |
| <treecol editable='true' flex='1.000000' label='EnabledIntegerColumn' widgetType='integerField'/>\n\t\t\t |
| <treecol editable='true' flex='1.000000' label='EnabledFloatColumn' widgetType='floatField'/>\n\t\t\t |
| <treecol editable='true' flex='1.000000' label='EnabledStatusLEDColumn' widgetType='statusLED'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='EnabledString' widgetType='string'/>\n\t\t |
| |
| <treecol editable='true' flex='1.000000' label='IntVar' widgetType='integerField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='FloatVar' widgetType='floatField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='CharstrVar' widgetType='string'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='Multiword IntVar' widgetType='integerField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='Multiword FloatVar' widgetType='floatField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='Multiword CharstrVar' widgetType='string'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='Quoted\"IntVar' widgetType='integerField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='Quoted\"CharstrVar' widgetType='string'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='\"SingleQuotedFloatVar' widgetType='floatField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='\"DoubleQuotedFloatVar\"' widgetType='floatField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='Double\"Quoted\"IntVar' widgetType='integerField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='Triple\"Quoted\"FloatVar\"' widgetType='floatField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='Quoted\"Multiword IntVar' widgetType='integerField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='Quoted\"Multiword Float\"Var' widgetType='floatField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label=' IntVarSpaces ' widgetType='integerField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='Tricky:=IntVar' widgetType='integerField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='TrickyFloatVar:{ }' widgetType='floatField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='IntVarEqual=' widgetType='integerField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label='IntVarColon:' widgetType='integerField'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label=' ' widgetType='string'/>\n\t\t |
| <treecol editable='true' flex='1.000000' label=':=' widgetType='string'/>\n\t\t |
| </treecols>\n\t\t<treechildren/>\n\t</tree>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "test_tab"); |
| |
| //Items on the tree |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treeitem>\n\t\t<treerow>\n\t\t\t |
| <treecell id='DisabledString' label='DisabledString'/>\n\t\t\t |
| <treecell id='DisabledInteger' label='DisabledInteger'/>\n\t\t\t |
| <treecell id='EnabledInteger' label='EnabledInteger'/>\n\t\t\t |
| <treecell id='EnabledFloat' label='EnabledFloat'/>\n\t\t\t |
| <treecell id='EnabledStatusLED' label='EnabledStatusLED'/>\n\t\t |
| <treecell id='EnabledString' label='EnabledString'/>\n\t\t |
| |
| <treecell id='IntVar' label='labelx'/>\n\t\t |
| <treecell id='FloatVar' label='labelx'/>\n\t\t |
| <treecell id='CharstrVar' label='labelx'/>\n\t\t |
| <treecell id='Multiword IntVar' label='labelx'/>\n\t\t |
| <treecell id='Multiword FloatVar' label='labelx'/>\n\t\t |
| <treecell id='Multiword CharstrVar' label='labelx'/>\n\t\t |
| <treecell id='Quoted\"IntVar' label='labelx'/>\n\t\t |
| <treecell id='Quoted\"CharstrVar' label='labelx'/>\n\t\t |
| <treecell id='\"SingleQuotedFloatVar' label='labelx'/>\n\t\t |
| <treecell id='\"DoubleQuotedFloatVar\"' label='labelx'/>\n\t\t |
| <treecell id='Double\"Quoted\"IntVar' label='labelx'/>\n\t\t |
| <treecell id='Triple\"Quoted\"FloatVar\"' label='labelx'/>\n\t\t |
| <treecell id='Quoted\"Multiword IntVar' label='labelx'/>\n\t\t |
| <treecell id='Quoted\"Multiword Float\"Var' label='labelx'/>\n\t\t |
| <treecell id=' IntVarSpaces ' label='labelx'/>\n\t\t |
| <treecell id='Tricky:=IntVar' label='labelx'/>\n\t\t |
| <treecell id='TrickyFloatVar:{ }' label='labelx'/>\n\t\t |
| <treecell id='IntVarEqual=' label='labelx'/>\n\t\t |
| <treecell id='IntVarColon:' label='labelx'/>\n\t\t |
| <treecell id=' ' label='labelx'/>\n\t\t |
| <treecell id=':=' label='labelx'/>\n\t\t |
| |
| </treerow>\n\t</treeitem>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "test_tree"); |
| |
| var integer vl_dummyIdx; |
| f_EPTF_Var_newCharstring("DisabledStringVar", "initialValue", vl_dummyIdx); |
| f_EPTF_Var_newInt("DisabledIntegerVar", 11, vl_dummyIdx); |
| f_EPTF_Var_newInt("EnabledIntegerVar", 7, vl_dummyIdx); |
| f_EPTF_Var_newFloat("EnabledFloatVar", 3.14, vl_dummyIdx); |
| f_EPTF_Var_newStatusLED("EnabledStatusLEDVar", {led_yellow,"YellowStatusLED"}, vl_dummyIdx) |
| f_EPTF_Var_newCharstring("Multiword StringVar", "initialValue", vl_dummyIdx); |
| |
| f_EPTF_Var_newInt("IntVarLoc", 7, vl_dummyIdx); |
| f_EPTF_Var_newFloat("FloatVarLoc", 7.7, vl_dummyIdx); |
| f_EPTF_Var_newCharstring("CharstrVarLoc", "7", vl_dummyIdx); |
| f_EPTF_Var_newInt("Multiword IntVarLoc", 7, vl_dummyIdx); |
| f_EPTF_Var_newFloat("Multiword FloatVarLoc", 7.7, vl_dummyIdx); |
| f_EPTF_Var_newCharstring("Multiword CharstrVarLoc", "7", vl_dummyIdx); |
| f_EPTF_Var_newInt("Quoted\"IntVarLoc", 7, vl_dummyIdx); |
| f_EPTF_Var_newCharstring("Quoted\"CharstrVarLoc", "7", vl_dummyIdx); |
| f_EPTF_Var_newFloat("\"SingleQuotedFloatVarLoc", 7.7, vl_dummyIdx); |
| f_EPTF_Var_newFloat("\"DoubleQuotedFloatVar\"Loc", 7.7, vl_dummyIdx); |
| f_EPTF_Var_newInt("Double\"Quoted\"IntVarLoc", 7, vl_dummyIdx); |
| f_EPTF_Var_newFloat("Triple\"Quoted\"FloatVar\"Loc", 7.7, vl_dummyIdx); |
| f_EPTF_Var_newInt("Quoted\"Multiword IntVarLoc", 7, vl_dummyIdx); |
| f_EPTF_Var_newFloat("Quoted\"Multiword Float\"VarLoc", 7.7, vl_dummyIdx); |
| f_EPTF_Var_newInt(" IntVarSpaces Loc", 7, vl_dummyIdx); |
| f_EPTF_Var_newInt("Tricky:=IntVarLoc", 7, vl_dummyIdx); |
| f_EPTF_Var_newFloat("TrickyFloatVar:{ }Loc", 7.7, vl_dummyIdx); |
| f_EPTF_Var_newInt("IntVarEqual=Loc", 7, vl_dummyIdx); |
| f_EPTF_Var_newInt("IntVarColon:Loc", 7, vl_dummyIdx); |
| f_EPTF_Var_newCharstring(" Loc", "7", vl_dummyIdx); |
| f_EPTF_Var_newCharstring(":=Loc", "7", vl_dummyIdx); |
| |
| f_EPTF_UIHandlerClient_subscribeMe("DisabledStringVar", "DisabledStringVarOnUI", "DisabledString", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("DisabledIntegerVar", "DisabledIntegerVarOnUI", "DisabledInteger", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("EnabledIntegerVar", "EnabledIntegerVarOnUI", "EnabledInteger", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("EnabledFloatVar", "EnabledFloatVarOnUI", "EnabledFloat", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("EnabledStatusLEDVar", "EnabledStatusLEDVarOnUI", "EnabledStatusLED", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Multiword StringVar", "Multiword StringVarOnUI", "EnabledString", realtime); |
| |
| f_EPTF_UIHandlerClient_subscribeMe("IntVarLoc", "IntVar", "IntVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("FloatVarLoc", "FloatVar", "FloatVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("CharstrVarLoc", "CharstrVar", "CharstrVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Multiword IntVarLoc", "Multiword IntVar", "Multiword IntVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Multiword FloatVarLoc", "Multiword FloatVar", "Multiword FloatVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Multiword CharstrVarLoc", "Multiword CharstrVar", "Multiword CharstrVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Quoted\"IntVarLoc", "Quoted\"IntVar", "Quoted\"IntVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Quoted\"CharstrVarLoc", "Quoted\"CharstrVar", "Quoted\"CharstrVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("\"SingleQuotedFloatVarLoc", "\"SingleQuotedFloatVar", "\"SingleQuotedFloatVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("\"DoubleQuotedFloatVar\"Loc", "\"DoubleQuotedFloatVar\"", "\"DoubleQuotedFloatVar\"", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Double\"Quoted\"IntVarLoc", "Double\"Quoted\"IntVar", "Double\"Quoted\"IntVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Triple\"Quoted\"FloatVar\"Loc", "Triple\"Quoted\"FloatVar\"", "Triple\"Quoted\"FloatVar\"", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Quoted\"Multiword IntVarLoc", "Quoted\"Multiword IntVar", "Quoted\"Multiword IntVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Quoted\"Multiword Float\"VarLoc", "Quoted\"Multiword Float\"Var", "Quoted\"Multiword Float\"Var", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe(" IntVarSpaces Loc", " IntVarSpaces ", " IntVarSpaces ", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("Tricky:=IntVarLoc", "Tricky:=IntVar", "Tricky:=IntVar", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("TrickyFloatVar:{ }Loc", "TrickyFloatVar:{ }", "TrickyFloatVar:{ }", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("IntVarEqual=Loc", "IntVarEqual=", "IntVarEqual=", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("IntVarColon:Loc", "IntVarColon:", "IntVarColon:", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe(" Loc", " ", " ", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe(":=Loc", ":=", ":=", realtime); |
| |
| //f_EPTF_Base_wait4Shutdown() |
| } |
| |
| //Test CLI commands |
| function f_EPTF_UIHandler_Test_cliCommand( |
| in charstring pl_command, |
| in charstring pl_answer, |
| in float pl_timeout := tsp_CR_TR00015823Tester_guard) |
| runs on EPTF_UIHandler_Test_CliClient_CT{ |
| timer t_guard |
| //log("Send command: ",pl_command) |
| CLI_PCO.send( pl_command ) |
| t_guard.start( pl_timeout ) |
| var charstring vl_received |
| alt{ |
| [] CLI_PCO.receive( charstring:"TTCN> " ) -> value vl_received{ |
| //Prompt received after executing a command |
| t_guard.stop |
| } |
| [] CLI_PCO.receive( charstring:? ) -> value vl_received{ |
| t_guard.stop |
| if(match(vl_received, pattern pl_answer) or match(pl_answer, vl_received)){ |
| setverdict(pass,pl_command) |
| }else{ |
| var charstring vl_res :=log2str(match(vl_received, pattern pl_answer)) |
| log(vl_res) |
| setverdict(fail,vl_res) |
| } |
| t_guard.start( pl_timeout ) |
| repeat |
| } |
| [] t_guard.timeout{ |
| setverdict(fail, "Timeout waiting for CLI answer") |
| } |
| }; |
| } |
| |
| type function EPTF_UIHandler_Test_cliTester_FT() runs on EPTF_UIHandler_Test_CliClient_CT |
| |
| function f_EPTF_UIHandler_Test_cliTesterBehaviorInit( |
| in charstring pl_selfName) |
| runs on EPTF_UIHandler_Test_VarList_CT{ |
| f_EPTF_UIHandler_Test_CR_TR00015823UIHandlerBehavior("CR_TR00015823UIHandlerBehavior") |
| v_testerCT := EPTF_UIHandler_Test_CliClient_CT.create(pl_selfName) |
| } |
| |
| function f_EPTF_UIHandler_Test_cliTesterBehaviorWaitForTester(in float pl_testGuard := tsp_CR_TR00015823Tester_guard) |
| runs on EPTF_UIHandler_Test_VarList_CT{ |
| timer t_guard |
| t_guard.start( pl_testGuard ) |
| alt{ |
| [] v_testerCT.done{ |
| setverdict(pass) |
| } |
| [] t_guard.timeout{ |
| setverdict(fail, "Timeout") |
| } |
| } |
| f_EPTF_Base_cleanup_CT(); |
| |
| } |
| |
| group varList{ |
| function f_EPTF_UIHandler_Test_varList() runs on EPTF_UIHandler_Test_CliClient_CT{ |
| f_EPTF_UIHandler_Test_CliClient_init("CR_TR00015823Tester"); |
| //Test CLI commands |
| const charstring c_answer2LS := |
| "DisabledStringVarOnUI := initialValue\n"& |
| "DisabledIntegerVarOnUI := 11\n"& |
| "EnabledIntegerVarOnUI := 7\n"& |
| "EnabledFloatVarOnUI := 3.140000\n"& |
| "EnabledStatusLEDVarOnUI := { color := led_yellow (2), text := ""YellowStatusLED"" }\n"& |
| "Multiword StringVarOnUI := initialValue\nIntVar := 7\n"& |
| "FloatVar := 7.700000\nCharstrVar := 7\n"& |
| "Multiword IntVar := 7\n"& |
| "Multiword FloatVar := 7.700000\n"& |
| "Multiword CharstrVar := 7\n"& |
| "Quoted\"IntVar := 7\n"& |
| "Quoted\"CharstrVar := 7\n"& |
| "\"SingleQuotedFloatVar := 7.700000\n"& |
| "\"DoubleQuotedFloatVar\" := 7.700000\n"& |
| "Double\"Quoted\"IntVar := 7\n"& |
| "Triple\"Quoted\"FloatVar\" := 7.700000\n"& |
| "Quoted\"Multiword IntVar := 7\n"& |
| "Quoted\"Multiword Float\"Var := 7.700000\n"& |
| " IntVarSpaces := 7\n"& |
| "Tricky:=IntVar := 7\n"& |
| "TrickyFloatVar:{ } := 7.700000\n"& |
| "IntVarEqual= := 7\n"& |
| "IntVarColon: := 7\n := 7\n:= := 7"; |
| f_EPTF_UIHandler_Test_cliCommand("LS",c_answer2LS) |
| const charstring c_answer2LSReadOnly := |
| "DisabledStringVarOnUI := initialValue\n"& |
| "DisabledIntegerVarOnUI := 11\n"& |
| "EnabledStatusLEDVarOnUI := { color := led_yellow (2), text := \"YellowStatusLED\" }"; |
| f_EPTF_UIHandler_Test_cliCommand("LSReadOnly",c_answer2LSReadOnly) |
| const charstring c_answer2LSWritable := |
| "EnabledIntegerVarOnUI := 7\n"& |
| "EnabledFloatVarOnUI := 3.140000\n"& |
| "Multiword StringVarOnUI := initialValue\nIntVar := 7\n"& |
| "FloatVar := 7.700000\nCharstrVar := 7\n"& |
| "Multiword IntVar := 7\n"& |
| "Multiword FloatVar := 7.700000\n"& |
| "Multiword CharstrVar := 7\n"& |
| "Quoted\"IntVar := 7\n"& |
| "Quoted\"CharstrVar := 7\n"& |
| "\"SingleQuotedFloatVar := 7.700000\n"& |
| "\"DoubleQuotedFloatVar\" := 7.700000\n"& |
| "Double\"Quoted\"IntVar := 7\n"& |
| "Triple\"Quoted\"FloatVar\" := 7.700000\n"& |
| "Quoted\"Multiword IntVar := 7\n"& |
| "Quoted\"Multiword Float\"Var := 7.700000\n"& |
| " IntVarSpaces := 7\n"& |
| "Tricky:=IntVar := 7\n"& |
| "TrickyFloatVar:{ } := 7.700000\n"& |
| "IntVarEqual= := 7\n"& |
| "IntVarColon: := 7\n := 7\n:= := 7"; |
| f_EPTF_UIHandler_Test_cliCommand("LSWritable",c_answer2LSWritable) |
| f_EPTF_Base_cleanup_CT(); |
| } |
| testcase tc_EPTF_UIHandler_Test_varList() runs on EPTF_UIHandler_Test_VarList_CT{ |
| f_EPTF_UIHandler_CLI_init_CT("TC_varlist_mtc", false) |
| f_EPTF_UIHandlerClient_init_CT("TC_varlist_mtc", self) |
| |
| |
| f_EPTF_UIHandler_Test_cliTesterBehaviorInit("varList") |
| v_testerCT.start(f_EPTF_UIHandler_Test_varList()) |
| f_EPTF_UIHandler_Test_cliTesterBehaviorWaitForTester() |
| } |
| } |
| group cliCommands1{ |
| type record EPTF_UIHandler_Test_cliCommandTest{ |
| charstring command, |
| charstring checkPattern |
| } |
| type record of EPTF_UIHandler_Test_cliCommandTest EPTF_UIHandler_Test_cliCommandTestList |
| |
| function f_EPTF_UIHandler_Test_cliCommands1(in charstring pl_prefix) runs on EPTF_UIHandler_Test_CliClient_CT{ |
| //TODO display and hide should be tested as well |
| const EPTF_UIHandler_Test_cliCommandTestList c_UIHandler_Test_cliCommandTestList :={ |
| {command:="GET EnabledFloatVarOnUI",checkPattern:="EnabledFloatVarOnUI:=3.140000"}, |
| {command:="SET EnabledFloatVarOnUI:=12.3",checkPattern:="Set content OK. Variable: \"EnabledFloatVarOnUI\" content: 12.3"}, |
| {command:="GeT EnabledFloatVarOnUI",checkPattern:="EnabledFloatVarOnUI:=12.300000"}, |
| {command:="ls",checkPattern:="DisabledStringVarOnUI := initialValue\n"& |
| "DisabledIntegerVarOnUI := 11\n"& |
| "EnabledIntegerVarOnUI := 7\n"& |
| "EnabledFloatVarOnUI := 12.300000\n"& |
| "EnabledStatusLEDVarOnUI := { color := led_yellow (2), text := \"YellowStatusLED\" }\n"& |
| "Multiword StringVarOnUI := initialValue\n"& |
| |
| "IntVar := 7\n"& |
| "FloatVar := 7.700000\n"& |
| "CharstrVar := 7\n"& |
| "Multiword IntVar := 7\n"& |
| "Multiword FloatVar := 7.700000\n"& |
| "Multiword CharstrVar := 7\n"& |
| "Quoted\"IntVar := 7\n"& |
| "Quoted\"CharstrVar := 7\n"& |
| "\"SingleQuotedFloatVar := 7.700000\n"& |
| "\"DoubleQuotedFloatVar\" := 7.700000\n"& |
| "Double\"Quoted\"IntVar := 7\n"& |
| "Triple\"Quoted\"FloatVar\" := 7.700000\n"& |
| "Quoted\"Multiword IntVar := 7\n"& |
| "Quoted\"Multiword Float\"Var := 7.700000\n"& |
| " IntVarSpaces := 7\n"& |
| "Tricky:=IntVar := 7\n"& |
| "TrickyFloatVar:{ } := 7.700000\n"& |
| "IntVarEqual= := 7\n"& |
| "IntVarColon: := 7\n"& |
| " := 7\n"& |
| ":= := 7" |
| }, |
| {command:="lsrEadONly",checkPattern:="DisabledStringVarOnUI := initialValue\n"& |
| "DisabledIntegerVarOnUI := 11\n"& |
| "EnabledStatusLEDVarOnUI := { color := led_yellow (2), text := \"YellowStatusLED\" }"}, |
| {command:="lsWrItable",checkPattern:="EnabledIntegerVarOnUI := 7\n"& |
| "EnabledFloatVarOnUI := 12.300000\n"& |
| "Multiword StringVarOnUI := initialValue\n"& |
| "IntVar := 7\n"& |
| "FloatVar := 7.700000\n"& |
| "CharstrVar := 7\n"& |
| "Multiword IntVar := 7\n"& |
| "Multiword FloatVar := 7.700000\n"& |
| "Multiword CharstrVar := 7\n"& |
| "Quoted\"IntVar := 7\n"& |
| "Quoted\"CharstrVar := 7\n"& |
| "\"SingleQuotedFloatVar := 7.700000\n"& |
| "\"DoubleQuotedFloatVar\" := 7.700000\n"& |
| "Double\"Quoted\"IntVar := 7\n"& |
| "Triple\"Quoted\"FloatVar\" := 7.700000\n"& |
| "Quoted\"Multiword IntVar := 7\n"& |
| "Quoted\"Multiword Float\"Var := 7.700000\n"& |
| " IntVarSpaces := 7\n"& |
| "Tricky:=IntVar := 7\n"& |
| "TrickyFloatVar:{ } := 7.700000\n"& |
| "IntVarEqual= := 7\n"& |
| "IntVarColon: := 7\n"& |
| " := 7\n"& |
| ":= := 7" |
| |
| }, |
| {command:="GET Multiword CharstrVar",checkPattern:="Multiword CharstrVar:=7"}, |
| {command:="SET \"Multiword CharstrVar\":=csubakka",checkPattern:="Set content OK. Variable: \"Multiword CharstrVar\" content: csubakka"}, |
| {command:="SET IntVar := 12",checkPattern:="Set content OK. Variable: \"IntVar\" content: 12"}, |
| {command:="SET FloatVar := 12.34",checkPattern:="Set content OK. Variable: \"FloatVar\" content: 12.34"}, |
| {command:="SET CharstrVar:=12",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: 12"}, |
| {command:="SET Multiword IntVar := 12",checkPattern:="Set content OK. Variable: \"Multiword IntVar\" content: 12"}, |
| {command:="SET \"Multiword FloatVar\" := 12.345",checkPattern:="Set content OK. Variable: \"Multiword FloatVar\" content: 12.345"}, |
| {command:="SET Quoted\"IntVar := 12",checkPattern:="Set content OK. Variable: \"Quoted\"IntVar\" content: 12"}, |
| {command:="SET \"CharstrVar\" := 12",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: 12"}, |
| {command:="SET Quoted\"CharstrVar := 12\"34",checkPattern:="Set content OK. Variable: \"Quoted\"CharstrVar\" content: 12\"34"}, |
| {command:="SET \" IntVarSpaces \" := 12",checkPattern:="Set content OK. Variable: \" IntVarSpaces \" content: 12"}, |
| {command:="SET \"\\\"DoubleQuotedFloatVar\\\"\" := 12",checkPattern:="Set content OK. Variable: \"\"DoubleQuotedFloatVar\"\" content: 12"}, |
| {command:="SET \"Variable\"Name := 12",checkPattern:="*Usage:*"}, |
| {command:="SET \"SingleQuotedFloatVar := 12",checkPattern:="Set content OK. Variable: \"\"SingleQuotedFloatVar\" content: 12"}, |
| {command:="SET \"Quoted\\\"IntVar\" := 12",checkPattern:="Set content OK. Variable: \"Quoted\"IntVar\" content: 12"}, |
| {command:="SET \"Double\\\"Quoted\\\"IntVar\" := 12",checkPattern:="Set content OK. Variable: \"Double\\\"Quoted\\\"IntVar\" content: 12"}, |
| {command:="SET \"Triple\\\"Quoted\\\"FloatVar\\\"\" := 12",checkPattern:="Set content OK. Variable: \"Triple\\\"Quoted\\\"FloatVar\"\" content: 12"}, |
| {command:="SET Quoted\"Multiword IntVar := 12",checkPattern:="Set content OK. Variable: \"Quoted\"Multiword IntVar\" content: 12"}, |
| {command:="SET Quoted\"Multiword Float\"Var := 12.789",checkPattern:="Set content OK. Variable: \"Quoted\"Multiword Float\"Var\" content: 12.789"}, |
| {command:="SET \"Quoted\\\"Multiword Float\\\"Var\" := 12",checkPattern:="Set content OK. Variable: \"Quoted\"Multiword Float\"Var\" content: 12"}, |
| {command:="SET \"Tricky:=IntVar\" := 12",checkPattern:="Set content OK. Variable: \"Tricky:=IntVar\" content: 12"}, |
| {command:="SET \"TrickyFloatVar:{ }\" := 12",checkPattern:="Set content OK. Variable: \"TrickyFloatVar:{ }\" content: 12"}, |
| {command:="SET \"CharstrVar\" := := 12",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: := 12"}, |
| {command:="SET := 12",checkPattern:="*Usage:*"}, |
| {command:="SET \" \" := 12",checkPattern:="Set content OK. Variable: \" \" content: 12"}, |
| {command:="SET := := 12",checkPattern:="Set content OK. Variable: \":=\" content: 12"}, |
| {command:="SET \":=\" := 12",checkPattern:="Set content OK. Variable: \":=\" content: 12"}, |
| {command:="SET \"VariableName\"=:= 12",checkPattern:="*Usage:*"}, |
| {command:="SET \"VariableName\"::= 12",checkPattern:="*Usage:*"}, |
| {command:="SET IntVarEqual=:= 12",checkPattern:="Set content OK. Variable: \"IntVarEqual=\" content: 12"}, |
| {command:="SET IntVarColon::= 12",checkPattern:="Set content OK. Variable: \"IntVarColon:\" content: 12"}, |
| |
| {command:="SET CharstrVar := 12 ",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: 12"}, |
| {command:="SET CharstrVar := 12 34 ",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: 12 34"}, |
| {command:="SET CharstrVar := \"12\"",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: 12"}, |
| {command:="SET CharstrVar := \"\\\"12\\\"\"",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: \"12\""}, |
| {command:="SET CharstrVar := \"12",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: \"12"}, |
| {command:="SET CharstrVar := \" 12 \" ",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: 12 "}, |
| {command:="SET CharstrVar := \"12\" 34 ",checkPattern:="*Usage:*"}, |
| {command:="SET CharstrVar := 12\"34",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: 12\"34"}, |
| {command:="SET CharstrVar := \"12\\\"34\"",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: 12\"34"}, |
| // {command:="SET CharstrVar := \"12\\34\\\\\"",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: 12\34\\"}, |
| {command:="SET CharstrVar := \"\\\"12\\\"\"",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: \"12\""}, |
| {command:="SET CharstrVar := \":= 12\"",checkPattern:="Set content OK. Variable: \"CharstrVar\" content: := 12"} |
| } |
| |
| f_EPTF_UIHandler_Test_CliClient_init("cliCommands1Tester"); |
| |
| for ( var integer vl_i := 0; vl_i < sizeof(c_UIHandler_Test_cliCommandTestList) ; vl_i := vl_i+1 ){ |
| f_EPTF_UIHandler_Test_cliCommand( |
| pl_prefix&c_UIHandler_Test_cliCommandTestList[vl_i].command, |
| c_UIHandler_Test_cliCommandTestList[vl_i].checkPattern) |
| |
| } |
| f_EPTF_Base_cleanup_CT(); |
| } |
| testcase tc_EPTF_UIHandler_Test_cliCommands1() runs on EPTF_UIHandler_Test_VarList_CT{ |
| f_EPTF_UIHandler_Test_cliCommands("") |
| } |
| testcase tc_EPTF_UIHandler_Test_cliCommands2() runs on EPTF_UIHandler_Test_VarList_CT{ |
| f_EPTF_UIHandler_Test_cliCommands("bubu_") |
| } |
| function f_EPTF_UIHandler_Test_cliCommands(in charstring pl_prefix) |
| runs on EPTF_UIHandler_Test_VarList_CT{ |
| f_EPTF_UIHandler_CLI_init_CT("TC_varlist_mtc", false, pl_prefix := pl_prefix) |
| f_EPTF_UIHandlerClient_init_CT("TC_varlist_mtc", self) |
| |
| f_EPTF_UIHandler_Test_cliTesterBehaviorInit("cliCommands1") |
| v_testerCT.start(f_EPTF_UIHandler_Test_cliCommands1(pl_prefix)) |
| f_EPTF_UIHandler_Test_cliTesterBehaviorWaitForTester() |
| } |
| |
| |
| testcase tc_EPTF_UIHandler_Test_run() runs on EPTF_UIHandler_Test_VarList_CT{ |
| f_EPTF_UIHandler_Test_CR_TR00015823UIHandlerBehavior("CR_TR00015823UIHandlerBehavior") |
| f_EPTF_Base_wait4Shutdown() |
| f_EPTF_Base_cleanup_CT() |
| } |
| } |
| } |
| /* |
| Note: the following test is a manual test, don't add it to the config file's EXECUTE section or the control part. |
| To test if XTDP communication is blocking and can possibly cause a deadlock, start a GUI, then start the testcase |
| tc_EPTF_UIHandler_Test_XTDPBlocking. After that, suspend the GUI and wait till either the guard timer in the |
| testcase times out (meaning it wasn't blocked), or the guard timer in the guard component times out (meaning |
| the testcase stopped pinging the guard component because of deadlock). The latter can take more time after the |
| suspend than the actual timer value because of the TCP buffering. The GUI, if running in the background, can be |
| suspended by `kill -STOP <pid>` and resumed by `kill -CONT <pid>`. |
| Alternatively, the GUI's PID can be specified in tsp_GUI_PID before starting the testcase to automate the suspending. |
| */ |
| group TestXTDPBlocking { |
| |
| modulepar float tsp_test_XTDPBlock_timeout := 240.0; |
| modulepar integer tsp_GUI_PID := -1; |
| modulepar float tsp_suspendGUI_timeout := 8.0; |
| |
| type port pingport_PT message |
| { |
| inout integer; |
| } with { extension "internal" } |
| |
| type component EPTF_UIHandlerClient_blockXTDP_CT extends EPTF_UIHandlerClient_CT |
| { |
| port pingport_PT pingport_PCO; |
| } |
| |
| type component EPTF_blockXTDP_guardCT extends EPTF_UIHandler_CT |
| { |
| port pingport_PT pingport_PCO; |
| port PIPEasp_PT PIPE_PCO; |
| var boolean vl_checkUnblockked := false; |
| } |
| |
| function f_EPTF_UIHandler_Test_blockXTDP_exec(in charstring pl_cmd) |
| runs on EPTF_blockXTDP_guardCT |
| { |
| PIPE_PCO.send(ASP_PExecute:{pl_cmd, ""}); |
| timer T_pipeGuard := 5.0; |
| T_pipeGuard.start; |
| alt { |
| []PIPE_PCO.receive {} |
| []T_pipeGuard.timeout {} |
| } |
| } |
| |
| function f_EPTF_blockXTDP_guard_cleanupCT() |
| runs on EPTF_blockXTDP_guardCT |
| { |
| if(tsp_GUI_PID > 0) { |
| if(not vl_checkUnblockked) { |
| action("Unsuspending GUI..."); |
| f_EPTF_UIHandler_Test_blockXTDP_exec("kill -CONT "&int2str(tsp_GUI_PID)); |
| } |
| unmap(self:PIPE_PCO, system:PIPE_PCO); |
| } |
| } |
| |
| function f_EPTF_UIHandler_Test_blockXTDP_guard( |
| in EPTF_UIHandlerClient_blockXTDP_CT pl_mtc, |
| in EPTF_UIHandler_CT pl_uiHandler) |
| runs on EPTF_blockXTDP_guardCT |
| { |
| f_EPTF_Base_init_CT("Guard"); |
| f_EPTF_Base_registerCleanup(refers(f_EPTF_blockXTDP_guard_cleanupCT)); |
| pingport_PCO.receive; // wait for the first message |
| timer T_suspend := tsp_suspendGUI_timeout; |
| if(tsp_GUI_PID > 0) { |
| map(self:PIPE_PCO, system:PIPE_PCO); |
| T_suspend.start; |
| } else { |
| action("tsp_GUI_PID is not set, you'll have to suspend the GUI manually"); |
| } |
| |
| timer T_noping := 5.0, T_kill := 5.0, T_pipeGuard := 1.0; |
| T_noping.start; |
| alt { |
| []pingport_PCO.receive { |
| if(vl_checkUnblockked) { |
| action("Unblocked."); |
| pingport_PCO.send(integer:2); |
| repeat; |
| } else { |
| T_noping.stop; |
| T_noping.start; |
| repeat; |
| } |
| } |
| []T_suspend.timeout { |
| action("Suspending GUI..."); |
| f_EPTF_UIHandler_Test_blockXTDP_exec("kill -STOP "&int2str(tsp_GUI_PID)); |
| repeat; |
| } |
| []T_noping.timeout { |
| setverdict(fail, "Blocking detected."); |
| if(tsp_GUI_PID > 0) { |
| action("Unsuspending GUI..."); |
| f_EPTF_UIHandler_Test_blockXTDP_exec("kill -CONT "&int2str(tsp_GUI_PID)); |
| } |
| T_kill.start; |
| vl_checkUnblockked := true; |
| repeat; |
| } |
| []T_kill.timeout { |
| action("Blocking still persists after T_kill timeout. Killing components..."); |
| if(tsp_GUI_PID > 0) { |
| unmap(self:PIPE_PCO, system:PIPE_PCO); |
| } |
| pl_mtc.kill; |
| pl_uiHandler.kill; |
| stop; |
| } |
| } |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_XTDPBlocking() |
| runs on EPTF_UIHandlerClient_blockXTDP_CT |
| { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour( |
| "UIHandler", |
| true, |
| true, |
| "", //layout |
| true, |
| tsp_test_XTDPBlock_timeout + 10.0 |
| )); //puts up tsp_EPTF_GUI_Main_Window_WidgetId + main tabbox |
| |
| f_EPTF_UIHandlerClient_init_CT(vl_clientName, vc_uiHandler) |
| //Build GUI |
| //Main tab |
| var charstring vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tabpage id='test_tab' label='UIHandlerTest' orientation='vertical'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, c_EPTF_Test_Main_Tabbox_WidgetId); |
| |
| //Tree |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tree hidecolumnpicker='false' id='test_tree' rows='0.000000'>\n\t\t<treecols>\n\t\t\t<treecol editable='false' flex='1.000000' label='label' widgetType='string'/>\n\t\t</treecols>\n\t\t<treechildren/>\n\t</tree>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "test_tab"); |
| |
| //Items on the tree |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treeitem>\n\t\t<treerow>\n\t\t\t<treecell id='theString' label='theString'/>\n\t\t</treerow>\n\t</treeitem>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "test_tree"); |
| |
| var integer vl_varIdx; |
| |
| f_EPTF_Var_newCharstring("theStringVar", "initialValue", vl_varIdx); |
| |
| f_EPTF_UIHandlerClient_subscribeMe("theStringVar", "theStringVarOnUI", "theString", realtime); |
| |
| timer T_adjust := 0.1, T_quit:= tsp_test_XTDPBlock_timeout; |
| T_adjust.start; |
| T_quit.start; |
| var integer vl_ctr := 0; |
| |
| var EPTF_blockXTDP_guardCT v_guard := EPTF_blockXTDP_guardCT.create; |
| connect(self:pingport_PCO, v_guard:pingport_PCO); |
| v_guard.start(f_EPTF_UIHandler_Test_blockXTDP_guard(mtc, vc_uiHandler)); |
| |
| alt { |
| []pingport_PCO.receive { } |
| []T_adjust.timeout { |
| T_adjust.start; |
| pingport_PCO.send(integer:1); |
| f_EPTF_Var_adjustContent(vl_varIdx, {charstringVal := int2str(vl_ctr) & |
| ": Intentionally long string value is set for this variable to be able"& |
| " to test blocking on the XTDP testport, which needs spamming the GUI with messages." |
| }); |
| vl_ctr := vl_ctr + 1; |
| repeat; |
| } |
| []T_quit.timeout { |
| setverdict(pass) |
| } |
| } |
| |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| } // group TestXTDPBlocking |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_NoGui_Blocking |
| // |
| // Purpose: |
| // Test for HL37528 |
| // |
| // Requirement: |
| // RunTime Gui is not running |
| // |
| // Action: |
| // The testcase runs on EPTF_UIHandler_CT |
| // 1. UIHandler connects to the invalid Runtime Gui address. |
| // |
| // Expected Result: The tc is passed if the connecting takes not longer than 20s. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_NoGui_Blocking() |
| runs on EPTF_UIHandler_CT { |
| setverdict(pass); |
| |
| timer TL_t; |
| |
| const charstring cl_GUI_Host := "localhost"; |
| const integer cl_GUI_Port := 40155; |
| |
| f_EPTF_UIHandler_setGuiHostPort(cl_GUI_Host, cl_GUI_Port); |
| |
| TL_t.start(100000.0); |
| f_EPTF_UIHandlerXUL_init_CT("NoGui_Blocking_HL37528",true); |
| if (f_EPTF_UIHandler_GUIConnected()) { |
| setverdict(inconc, "There is a running Runtime GUI on "&cl_GUI_Host&":"&int2str(cl_GUI_Port)); |
| } |
| var float vl_time := TL_t.read; |
| if (vl_time > 20.0){ |
| setverdict(fail, "Startup takes to much time!") |
| } |
| |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_EPTF_UIHandler_Test_NoGui |
| |
| function f_EPTF_UIHandler_TestBehaviour( |
| charstring pl_selfName, |
| boolean pl_newWindow := false, |
| charstring pl_wndLayout := "") |
| runs on EPTF_UIHandler_Test_CT{ |
| //log("----- basebehaviour START -------"); |
| f_EPTF_UIHandlerXUL_init_CT(pl_selfName, true, pl_wndLayout); |
| //f_EPTF_Var_setSyncInterval(10.0); |
| if(pl_newWindow){ |
| f_EPTF_UIHandler_clearGUI(); |
| log("----- clearGUI returned -------"); |
| var boolean bool := f_EPTF_UIHandler_addWindow(); |
| log("----- addWindow returned -------"); |
| } |
| // only take care of the exit button, stops execution |
| f_EPTF_Base_wait4Shutdown(); |
| //EPTF_guiPortIf.send(ASP_XTDP_Bye:{client_id:=omit}); |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_VariableRefreshRate |
| // |
| // Purpose: |
| // Test variable refresh rate handling in UIHandler |
| // |
| // Requirement: |
| // RunTime Gui is running |
| // |
| // Action: |
| // 1. Start the RunTime GUI |
| // 2. Start the testcase. There are 12 variables with different subscription modes and different |
| // refresh rates subscribed to variables |
| // 3. Check in the GUI the refresh periods are according to the expectations |
| // |
| // Expected Result: The variables are refreshing according to their refresh rate |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_VariableRefreshRate()runs on HandlerClient_CT system SYSTEM_CT { |
| var EPTF_UIHandler_Test_CT vc_subscriber := EPTF_UIHandler_Test_CT.create; |
| |
| var integer vl_charVarIdx1 := 0; |
| var integer vl_charVarIdx2 := 0; |
| var integer vl_charVarIdx3 := 0; |
| var integer vl_charVarIdx4 := 0; |
| var integer vl_charVarIdx5 := 0; |
| var integer vl_charVarIdx6 := 0; |
| var integer vl_charVarIdx7 := 0; |
| var integer vl_charVarIdx8 := 0; |
| var integer vl_charVarIdx9 := 0; |
| var integer vl_charVarIdx10 := 0; |
| var integer vl_charVarIdx11 := 0; |
| var integer vl_charVarIdx12 := 0; |
| |
| var EPTF_Var_SubscriptionMode vl_subscriptionMode1 := realtime; |
| |
| var charstring vl_rndValue := "1"; |
| |
| // INIT & build up layout |
| f_EPTF_UIHandlerClient_init_CT("bubuHandlerClient", vc_subscriber); |
| //f_EPTF_Var_setSyncInterval(10.0); |
| // basebahaviour describes events and handles them. |
| vc_subscriber.start(f_EPTF_UIHandler_TestBehaviour("subscriber", true)); |
| var EPTF_UIHandlerClient_SubsRet ret := f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainHBox, tsp_EPTF_GUI_Main_Window_WidgetId); |
| var charstring vl_xul; |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox1' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox2' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox3' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox4' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox5' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox6' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox7' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox8' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox9' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox10' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox11' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox disabled='false' id='textBox12' multiline='false' readonly='false' rows='1.000000' value='' widgetType='console' wrap='false'/>\n</Widgets>\n\n" |
| ret := f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_hbox_Textboxes"); |
| |
| f_EPTF_Var_newCharstring("charVarProv1", "", vl_charVarIdx1); |
| f_EPTF_Var_newCharstring("charVarProv2", "", vl_charVarIdx2); |
| f_EPTF_Var_newCharstring("charVarProv3", "", vl_charVarIdx3); |
| f_EPTF_Var_newCharstring("charVarProv4", "", vl_charVarIdx4); |
| f_EPTF_Var_newCharstring("charVarProv5", "", vl_charVarIdx5); |
| f_EPTF_Var_newCharstring("charVarProv6", "", vl_charVarIdx6); |
| f_EPTF_Var_newCharstring("charVarProv7", "", vl_charVarIdx7); |
| f_EPTF_Var_newCharstring("charVarProv8", "", vl_charVarIdx8); |
| f_EPTF_Var_newCharstring("charVarProv9", "", vl_charVarIdx9); |
| f_EPTF_Var_newCharstring("charVarProv10", "", vl_charVarIdx10); |
| f_EPTF_Var_newCharstring("charVarProv11", "", vl_charVarIdx11); |
| f_EPTF_Var_newCharstring("charVarProv12", "", vl_charVarIdx12); |
| |
| var integer vl_refreshRate1 := 0; |
| var integer vl_refreshRate2 := 100; |
| var integer vl_refreshRate3 := 1000; |
| |
| var integer vl_refreshRate4 := 0; |
| var integer vl_refreshRate5 := 10; |
| var integer vl_refreshRate6 := 500; |
| |
| var integer vl_refreshRate7 := 0; |
| var integer vl_refreshRate8 := 10; |
| var integer vl_refreshRate9 := 500; |
| |
| var integer vl_refreshRate10 := 0; |
| var integer vl_refreshRate11 := 10; |
| var integer vl_refreshRate12 := 500; |
| |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv1", "charVar_Subscriber1", "textBox1", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv2", "charVar_Subscriber2", "textBox2", realtime, vl_refreshRate2); |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv3", "charVar_Subscriber3", "textBox3", realtime, vl_refreshRate3); |
| |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv4", "charVar_Subscriber4", "textBox4", sampled); |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv5", "charVar_Subscriber5", "textBox5", sampled, vl_refreshRate5); |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv6", "charVar_Subscriber6", "textBox6", sampled, vl_refreshRate6); |
| |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv7", "charVar_Subscriber7", "textBox7", sampledAtSync); |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv8", "charVar_Subscriber8", "textBox8", sampledAtSync, vl_refreshRate8); |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv9", "charVar_Subscriber9", "textBox9", sampledAtSync, vl_refreshRate9); |
| |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv10", "charVar_Subscriber10", "textBox10", timeLine); |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv11", "charVar_Subscriber11", "textBox11", timeLine, vl_refreshRate11); |
| f_EPTF_UIHandlerClient_subscribeMe("charVarProv12", "charVar_Subscriber12", "textBox12", timeLine, vl_refreshRate12); |
| timer T_main := 40.0; |
| timer T_period := 1.0/1.0; |
| T_main.start; |
| T_period.start; |
| alt { |
| [] T_period.timeout{ |
| //vl_rndValue := int2str(float2int(rnd()*100.0)); |
| vl_rndValue := int2str(str2int(vl_rndValue) + 1); |
| f_EPTF_Var_adjustContent(vl_charVarIdx1, {charstringVal := "realtime, no refresh rate: " & vl_rndValue}); |
| f_EPTF_Var_adjustContent(vl_charVarIdx2, {charstringVal := "realtime, refresh rate: " & int2str(vl_refreshRate2) & ": " & vl_rndValue}); |
| f_EPTF_Var_adjustContent(vl_charVarIdx3, {charstringVal := "realtime, refresh rate: " & int2str(vl_refreshRate3) & ": " & vl_rndValue}); |
| |
| f_EPTF_Var_adjustContent(vl_charVarIdx4, {charstringVal := "sampled, no refresh rate: " & vl_rndValue}); |
| f_EPTF_Var_adjustContent(vl_charVarIdx5, {charstringVal := "sampled, refresh rate: " & int2str(vl_refreshRate5) & ": " & vl_rndValue}); |
| f_EPTF_Var_adjustContent(vl_charVarIdx6, {charstringVal := "sampled, refresh rate: " & int2str(vl_refreshRate6) & ": " & vl_rndValue}); |
| |
| f_EPTF_Var_adjustContent(vl_charVarIdx7, {charstringVal := "sampledAtSync, no refresh rate: " & vl_rndValue}); |
| f_EPTF_Var_adjustContent(vl_charVarIdx8, {charstringVal := "sampledAtSync, refresh rate: " & int2str(vl_refreshRate8) & ": " & vl_rndValue}); |
| f_EPTF_Var_adjustContent(vl_charVarIdx9, {charstringVal := "sampledAtSync, refresh rate: " & int2str(vl_refreshRate9) & ": " & vl_rndValue}); |
| |
| f_EPTF_Var_adjustContent(vl_charVarIdx10, {charstringVal := "timeLine, no refresh rate: " & vl_rndValue}); |
| f_EPTF_Var_adjustContent(vl_charVarIdx11, {charstringVal := "timeLine, refresh rate: " & int2str(vl_refreshRate11) & ": " & vl_rndValue}); |
| f_EPTF_Var_adjustContent(vl_charVarIdx12, {charstringVal := "timeLine, refresh rate: " & int2str(vl_refreshRate12) & ": " & vl_rndValue}); |
| |
| T_period.start; |
| repeat; |
| } |
| [] any component.done {} |
| [] T_main.timeout{} |
| } |
| T_main.start(5.0); |
| T_main.timeout; |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| |
| testcase tc_EPTF_UIHandler_PerfTest_subscribeMe() runs on EPTF_UIHandler_CT { |
| f_EPTF_UIHandlerXUL_init_CT( |
| pl_selfName := "UIHandler_PerfTest_subscribeMe" |
| ); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| |
| for(var integer i:=0; i<4; i:=i+1) { |
| var EPTF_UIHandlerClient_CT vl_EPTF_UIHandlerClient_CT := EPTF_UIHandlerClient_CT.create; |
| vl_EPTF_UIHandlerClient_CT.start(f_EPTF_UIHandlerClient_generateSubscribeMes_behaviour(i)); |
| } |
| |
| timer T_alt := 3.0 ; |
| var float vl_procuse := 100.0; |
| var float vl_precision := 0.000001; |
| timer t_maxWait := 120.0; |
| T_alt.start(30.0); |
| T_alt.timeout; |
| T_alt.start; |
| t_maxWait.start; |
| alt{ |
| [] T_alt.timeout { |
| var float vl_procuse_last := vl_procuse; |
| vl_procuse := vl_procuse * 0.7 + 0.3*f_EPTF_runTop(); |
| action("current vl_procuse: ", vl_procuse); |
| // mesurement is stopped when cpu-load is stable: |
| if( (vl_procuse - vl_procuse_last)*(vl_procuse - vl_procuse_last)/((vl_procuse + vl_procuse_last)*(vl_procuse + vl_procuse_last))>vl_precision){ |
| // continue measurement |
| T_alt.start(3.0); |
| repeat; |
| } |
| setverdict(pass); |
| } |
| [] t_maxWait.timeout { |
| // load is not stable, but max time has passed: |
| setverdict(inconc, log2str("Warning: Max wait timer expired. Current load: ", vl_procuse)); |
| } |
| }; |
| action("UIHandler CPU load == ", vl_procuse); |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_HN24006_ProtMod |
| // |
| // Purpose: |
| // To test function whether UIHandler encodes and decodes xul properly. |
| // |
| // Requirement: |
| // - |
| // |
| // Action: |
| // The testcase runs on UIHandler. |
| // A made-up widget is encoded and after that decoded. The result should be the same as the original widget. |
| // The test was made to test HN24006. If '"<>& is in the label somewhere in the xul, it is encoded xml-wise but not decoded back. |
| // tc_EPTF_UIHandler_Test_HN24006 shows the error is in the XTDP test port. |
| // This test case shows that the XTDP protocol module decode function works fine. |
| // |
| /////////////////////////////////////////////////////////// |
| // Status: ReadyFailed |
| // |
| testcase tc_EPTF_UIHandler_Test_HN24006_ProtMod() |
| runs on EPTF_UIHandlerClient_blockXTDP_CT |
| { |
| // if a widget string includes a non-regular character, for example " in a text label, then the decode function works not good. |
| var Widgets vl_test := |
| { window := { about := omit, height := 300.000000, help := omit, id := "MyNewEPTFMainWindow", orientation := vertical, title := "My TTCN constructed window", width := 800.000000, image_list := { }, |
| |
| embeddedwidgets := { { { tabpages := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, id := "EPTF_Main_Tabbox",layout := omit, |
| tabpagegroups:={ |
| tabpagegroup_list:={ |
| {tabpage:={ |
| customclass := omit, |
| disabledongui := omit, |
| id := "TestTab1", |
| label_ := "test tab 1", |
| maxheight := omit, |
| orientation := vertical, |
| tooltiptext := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| |
| } |
| } |
| }}, |
| {tabpage:={ |
| customclass := omit, |
| disabledongui := omit, |
| id := "testTab2", |
| label_ := "test tab 2", |
| maxheight := omit, |
| orientation := vertical, |
| tooltiptext := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| |
| } |
| } |
| }}, |
| {tabpage:={ |
| customclass := omit, |
| disabledongui := omit, |
| id := "test_tab", |
| label_ := "UIHandlerTest", |
| maxheight := omit, |
| orientation := vertical, |
| tooltiptext := omit, |
| embeddedwidgets := { { { tree := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, hidecolumnpicker := false, id := "test_tree", rows := 1.000000, |
| treecols := { treecolgroups := { {{ treecol := { align := omit, customclass := omit, disabledongui := omit, editable := false, flex := 1.000000, id := omit, label_ := "label", tooltiptext := omit, treecellalign := omit, widgetType := string } } } } }, |
| treechildren := { treeitemgroups := { {{ treeitem := { {{{ treerow := { { {{ treecell := { |
| align := omit, id := "theString", imageid := omit, label_ := " _ &_ \' _ < _ > _ \" _ ", tooltiptext := omit, visible := omit, externaldata := omit |
| }}}} }}}} } }}}} |
| } } } } |
| }} |
| } |
| } |
| } } } } |
| |
| } }; |
| var Widgets vl_widgets |
| dec_Widgets(enc_Widgets(vl_test), vl_widgets); |
| if ( vl_test == vl_widgets){ |
| setverdict(pass); |
| } else { |
| setverdict(fail, match(vl_test,vl_widgets)); |
| } |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_UIHandler_ServerMode_Manual |
| // |
| // Purpose: |
| // To test HN19988: DTE in server mode |
| // |
| // Requirement: |
| // tsp_EPTF_UIHandler_servermode set to true |
| // |
| // Action: |
| // Execute test case and wait 10000 sec for RT GUI |
| // |
| // Expected Results: |
| // No DTE |
| /////////////////////////////////////////////////////////// |
| |
| //=Status: Ready,failed |
| //TR: HJ83617 "TitanSim UIHandler takes superfluous separators into its database" -not fixed yet |
| //TR HJ83569 "UIHandler encodes id without quotation mark in f_EPTF_UIHandler_addElementToGui" |
| testcase tc_EPTF_UIHandler_Test_UIHandler_ServerMode_Manual() runs on EPTF_UIHandler_CT { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| |
| //var EPTF_UIHandler_CT vc_subscriber := EPTF_UIHandler_CT.create; |
| //vc_subscriber.start(f_EPTF_UIHandler_Test_BaseBehaviourWithAddElementsToGui_normal( |
| // pl_selfName:="subscriber" |
| // )); |
| f_EPTF_UIHandlerXUL_init_CT("subscriber",true); |
| f_EPTF_UIHandler_clearGUI(); //if You don't apply it, the addWindow doesn't work |
| |
| timer Tl_base:= 10000.0; |
| Tl_base.start; Tl_base.timeout; |
| |
| setverdict(pass); |
| f_EPTF_Base_cleanup_CT(); |
| }//tc_ |
| |
| testcase tc_encdec() |
| runs on EPTF_UIHandler_CT |
| { |
| const Widgets w := { |
| window := { |
| height := 380.000000, |
| id := "My_EPTF_Main_Window_based_on_config_file", |
| orientation := vertical, |
| title := "My TTCN constructed window cfg", |
| width := 800.000000, |
| image_list := { |
| |
| }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| |
| } |
| } |
| } |
| } |
| var octetstring o := enc_Widgets(w); |
| |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_addnewElementsToGui() |
| runs on EPTF_UIHandler_CT |
| { |
| var charstring vl_clientName :="MyUIHandlerClient"; |
| f_EPTF_UIHandlerXUL_init_CT("UIHandler",true); |
| if(not f_EPTF_UIHandler_GUIConnected()){ |
| setverdict(inconc,"The GUI is not connected...") |
| } |
| f_EPTF_UIHandler_clearGUI(); //if You don't apply it, the addWindow doesn't work |
| |
| |
| var boolean vl_dummy:=false; |
| var Widgets vl_newWindowWithButtons := { |
| window := { |
| /*about :=*/ omit, |
| /*height :=*/ tsp_EPTF_GUI_Main_Window_Height, |
| /*help :=*/ omit, |
| /*id :=*/ tsp_EPTF_GUI_Main_Window_WidgetId, |
| /*orientation :=*/ vertical, |
| /*title :=*/ tsp_EPTF_GUI_Main_Window_Title, |
| /*width :=*/ tsp_EPTF_GUI_Main_Window_Width, |
| /*image_list :=*/ {}, |
| /*embeddedwidgets :=*/ { |
| /*embeddedwidget_list :=*/ { |
| { |
| pushbutton := { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ omit, |
| /*id :=*/ "FirstTbarPushButtonId", |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "push", |
| /*tooltiptext :=*/ "FirstTbarPushButton ToolTip", |
| omit |
| } |
| }, |
| { |
| togglebutton := { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ omit, |
| /*id :=*/ "FirstTbarToggleButtonId", |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "toggle", |
| /*state :=*/ true, |
| /*tooltiptext :=*/ "FirstTbarToggleButton ToolTip", |
| omit |
| } |
| }, |
| { |
| toolbar := { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*id :=*/ tsp_EPTF_GUI_Main_Toolbar_WidgetId, |
| /*placement :=*/ north, |
| /*choice_list :=*/ { |
| { |
| pushbutton := { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ omit, |
| /*id :=*/ "SecondTbarPushButtonId", |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "push", |
| /*tooltiptext :=*/ "SecondTbarPushButton ToolTip", |
| omit |
| } |
| }, |
| { separator := {omit} }, |
| { |
| togglebutton := { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ omit, |
| /*id :=*/ "SecondTbarToggleButtonId", |
| /*imageid :=*/ omit, |
| /*label_ :=*/ "toggle", |
| /*state :=*/ true, |
| /*tooltiptext :=*/ "SecondTbarToggleButton ToolTip", |
| omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| }//window |
| }; |
| f_EPTF_UIHandler_Test_setVerdict( f_EPTF_UIHandler_XSD_addElementToGui(vl_newWindowWithButtons, "", vl_dummy));//pass |
| |
| var charstring vl_fetchedLayout := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_snapshotXUL := f_EPTF_UIHandler_XSD_decodeXUL(vl_fetchedLayout) |
| if( not match(vl_newWindowWithButtons,vl_snapshotXUL)) { |
| var charstring vl_errMsg := log2str( match(vl_newWindowWithButtons,vl_snapshotXUL)); //fails |
| log(vl_errMsg) |
| setverdict(fail,vl_errMsg); |
| } |
| f_UIHandler_Test_compareXulWindowWithSnapshot(vl_newWindowWithButtons) |
| |
| all component.done; |
| f_EPTF_Base_cleanup_CT(); |
| |
| |
| } |
| |
| template universal charstring tr_EPTF_UIHandler_Test_anyWidgetID := pattern "{c_EPTF_UIHandler_widgetIdPrefix}?*" |
| //template charstring tr_EPTF_UIHandler_Test_anyWidgetID := pattern "{c_EPTF_UIHandler_widgetIdPrefix}?"; |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUIBasic |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUIBasic() |
| runs on EPTF_UIHandler_Test_CT{ |
| var Widgets vl_xul := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, |
| /*embeddedwidgets :=*/ {{ |
| { label_ := {omit, omit, omit, omit, omit, omit, omit, "Hello TitanSim!", omit }}, |
| { label_ := {omit, omit, omit, omit, omit, omit, omit, "Bye TitanSim!", omit }} |
| }} |
| }};//xul |
| |
| var template Widgets t_expected := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, |
| /*embeddedwidgets :=*/ {{ |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Hello TitanSim!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Bye TitanSim!", omit }} |
| }} |
| }};//xul |
| f_EPTF_UIHandler_Test_CheckGUI(vl_xul,t_expected); |
| setverdict(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUIIterator |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUIIterator() |
| runs on EPTF_UIHandler_Test_CT{ |
| var Widgets vl_xul := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, |
| /*embeddedwidgets :=*/ {{ |
| { iterator := { /*element*/ "LGenList", |
| /*id*/ "itId1", |
| omit, |
| omit, |
| /*source*/ "ExecCtrl" , |
| omit, |
| {{{ label_ := {omit, omit, omit, omit, omit, omit, omit, "Iterator TitanSim %itId1%!", omit }}} |
| }}}, |
| { label_ := {omit, omit, omit, omit, omit, omit, omit, "Bye TitanSim!", omit }} |
| }} |
| }};//xul |
| |
| var template Widgets vl_xul2 := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, {{ |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim LGen1!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim LGen2!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim LGen3!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Bye TitanSim!", omit }} |
| }} |
| }};//xul |
| f_EPTF_UIHandler_Test_CheckGUI(vl_xul,vl_xul2); |
| setverdict(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUIIteratorInIterator |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUIIteratorInIterator() |
| runs on EPTF_UIHandler_Test_CT{ |
| var Widgets vl_xul := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, |
| /*embeddedwidgets :=*/ {{ |
| { iterator := { /*element*/ "EntityGroups", |
| /*id*/ "itId1", |
| omit, |
| omit, |
| /*source*/ "ExecCtrl" , |
| omit, |
| { |
| {{ iterator := { /*element*/ "LGenList", |
| /*id*/ "itId2", |
| omit, |
| omit, |
| /*source*/ "ExecCtrl" , |
| omit, |
| { {{ label_ := {omit, omit, omit, omit, omit, omit, omit, "Iterator TitanSim %itId1%.%itId2%!", omit }} } |
| }} |
| } |
| }}}}, |
| { label_ := {omit, omit, omit, omit, omit, omit, omit, "Bye TitanSim!", omit }} |
| }} |
| }};//xul |
| |
| var template Widgets vl_xul2 := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, {{ |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG1.LGen1!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG1.LGen2!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG1.LGen3!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG2.LGen1!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG2.LGen2!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG2.LGen3!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG3.LGen1!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG3.LGen2!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG3.LGen3!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG4.LGen1!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG4.LGen2!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG4.LGen3!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Bye TitanSim!", omit }} |
| }} |
| }};//xul |
| f_EPTF_UIHandler_Test_CheckGUI(vl_xul,vl_xul2); |
| setverdict(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUIIteratorInHboxIterator |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUIIteratorInHBoxIterator() |
| runs on EPTF_UIHandler_Test_CT{ |
| var Widgets vl_xul := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, |
| /*embeddedwidgets :=*/ {{ |
| { iterator := { /*element*/ "EntityGroups", |
| /*id*/ "itId1", |
| omit, |
| omit, |
| /*source*/ "ExecCtrl" , |
| omit, |
| { {{ hbox:={ omit, omit,omit,omit,omit,omit,omit,omit,{ |
| {{ iterator := { /*element*/ "LGenList", |
| /*id*/ "itId2", |
| omit, |
| omit, |
| /*source*/ "ExecCtrl" , |
| omit, |
| { {{ label_ := {omit, omit, omit, omit, omit, omit, omit, "Iterator TitanSim %itId1%.%itId2%!", omit }} } |
| }}}} |
| }}} |
| }}} |
| }, |
| { label_ := {omit, omit, omit, omit, omit, omit, omit, "Bye TitanSim!", omit }} |
| }} |
| }};//xul |
| |
| var template Widgets vl_xul2 := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, {{ |
| { hbox := { omit, omit,omit,omit,1.0,tr_EPTF_UIHandler_Test_anyWidgetID,horizontal,omit,{{ |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG1.LGen1!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG1.LGen2!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG1.LGen3!", omit }} |
| }}}}, |
| { hbox := { omit, omit,omit,omit,1.0,tr_EPTF_UIHandler_Test_anyWidgetID,horizontal,omit,{{ |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG2.LGen1!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG2.LGen2!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG2.LGen3!", omit }} |
| }}}}, |
| { hbox := { omit, omit,omit,omit,1.0,tr_EPTF_UIHandler_Test_anyWidgetID,horizontal,omit,{{ |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG3.LGen1!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG3.LGen2!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG3.LGen3!", omit }} |
| }}}}, |
| { hbox := { omit, omit,omit,omit,1.0,tr_EPTF_UIHandler_Test_anyWidgetID,horizontal,omit,{{ |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG4.LGen1!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG4.LGen2!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim EG4.LGen3!", omit }} |
| }}}}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Bye TitanSim!", omit }} |
| }} |
| }};//xul |
| f_EPTF_UIHandler_Test_CheckGUI(vl_xul,vl_xul2); |
| setverdict(pass); |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUItabIterator |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUItabIterator() |
| runs on EPTF_UIHandler_Test_CT{ |
| var Widgets vl_xul := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, |
| /*embeddedwidgets :=*/ {{ |
| { tabpages := { |
| customclass := omit, disabled := omit, disabledongui := omit, flex := omit, id := omit, layout := omit, |
| tabpagegroups := { |
| tabpagegroup_list := { |
| {iterator := { |
| element := "LGenList", |
| id := "itId1", |
| metadata := omit, |
| ptcname := omit, |
| source := "ExecCtrl", |
| params := omit, |
| tabpagegroups := { |
| tabpagegroup_list := { |
| {tabpage := { |
| customclass := omit, |
| disabledongui := omit, |
| id := c_EPTF_UIHandler_widgetIdPrefix & "_%itId1%", |
| label_ := "Tabszoveg %itId1%", |
| maxheight := omit, |
| orientation := omit, |
| tooltiptext := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| {label_ := { |
| omit, omit, omit, omit, omit, omit, omit, "Tabpanelen %itId1% TitanSim!", omit |
| } |
| } |
| } |
| }} |
| } |
| } |
| }} |
| } |
| } |
| } |
| }}, |
| |
| { label_ := {omit, omit, omit, omit, omit, omit, omit, "Bye TitanSim!", omit }} |
| |
| }} |
| }};//xul |
| |
| var template Widgets vl_xul2 := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, {{ |
| { tabpages := { |
| omit, |
| omit, |
| omit, |
| ?, |
| tr_EPTF_UIHandler_Test_anyWidgetID, |
| omit, |
| { |
| tabpagegroup_list := { |
| { tabpage := {omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, "Tabszoveg LGen1", omit,horizontal,omit, |
| { |
| { |
| { |
| label_ := { |
| omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Tabpanelen LGen1 TitanSim!", omit |
| } |
| } |
| } |
| } |
| } |
| }, |
| { |
| tabpage := { |
| omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, "Tabszoveg LGen2", omit,horizontal,omit, { |
| { |
| { |
| label_ := { |
| omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Tabpanelen LGen2 TitanSim!", omit } |
| } |
| } |
| } |
| } |
| }, |
| { |
| tabpage := { |
| omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, "Tabszoveg LGen3", omit,horizontal,omit, { |
| { |
| { |
| label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Tabpanelen LGen3 TitanSim!", omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| }, |
| { |
| label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Bye TitanSim!", omit |
| } |
| } |
| |
| } |
| } |
| } |
| };//xul |
| f_EPTF_UIHandler_Test_CheckGUI(vl_xul,vl_xul2); |
| setverdict(pass); |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUIButton |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUIButton() |
| runs on EPTF_UIHandler_Test_CT{ |
| var Widgets vl_xul := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, |
| /*embeddedwidgets :=*/ {{ // XSD.String element, XSD.String ptcname optional, XSD.String source, Dataparams params optional = { XSD.String name, XSD.String value_ } |
| { button := {omit, omit, omit, omit, omit, "buttonId1", omit, "Bye TitanSim!", omit, omit, |
| { /*element*/ element:="EntityCount", ptcname:=omit, /*source*/ source:="ExecCtrl" , params:={ dataparam_list:={ {name:="EG1", value_:="EG1"} } } } }} |
| }} |
| }};//xul |
| |
| var template Widgets vl_xul2 := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, {{ |
| { button := {omit, omit, omit, omit, ?, "buttonId1", omit, "Bye TitanSim!", omit, omit, omit }} |
| }} |
| }};//xul |
| f_EPTF_UIHandler_Test_CheckGUI(vl_xul,vl_xul2); |
| setverdict(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUIIteratorButton |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUIIteratorButton() |
| runs on EPTF_UIHandler_Test_CT{ |
| var Widgets vl_xul := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, |
| /*embeddedwidgets :=*/ {{ |
| |
| { iterator := { /*element*/ "LGenList", |
| /*id*/ "itId1", |
| omit, |
| omit, |
| /*source*/ "ExecCtrl" , |
| omit, {{ |
| { button := {omit, omit, omit, omit, omit, "buttonId%itId1%", omit, "Bye %itId1% TitanSim!", omit, omit, |
| { /*element*/ element:="EntityCount", ptcname:=omit, /*source*/ source:="ExecCtrl" , params:={ dataparam_list:={ {name:="EG1", value_:="EG1"} } } } }} |
| }} |
| }}, |
| { label_ := {omit, omit, omit, omit, omit, omit, omit, "Iterator TitanSim!", omit }} |
| |
| }} |
| }};//xul |
| |
| var template Widgets vl_xul2 := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, {{ |
| { button := {omit, omit, omit, omit, ?, "buttonIdLGen1", omit, "Bye LGen1 TitanSim!", omit, omit, omit }}, |
| { button := {omit, omit, omit, omit, ?, "buttonIdLGen2", omit, "Bye LGen2 TitanSim!", omit, omit, omit }}, |
| { button := {omit, omit, omit, omit, ?, "buttonIdLGen3", omit, "Bye LGen3 TitanSim!", omit, omit, omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator TitanSim!", omit }} |
| }} |
| }};//xul |
| f_EPTF_UIHandler_Test_CheckGUI(vl_xul,vl_xul2); |
| setverdict(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUIButton_XML |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUIButton_XML() |
| runs on EPTF_UIHandler_Test_CT{ |
| f_EPTF_UIHandler_Test_CheckGUIFromFile("button1.xml" , "button1_result.xml"); |
| setverdict(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUITree_XML |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUITree_XML() |
| runs on EPTF_UIHandler_Test_CT{ |
| f_EPTF_UIHandler_Test_CheckGUIFromFile("tree.xml" , "tree_result.xml"); |
| setverdict(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUITabPanel_XML |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUITabPanel_XML() |
| runs on EPTF_UIHandler_Test_CT{ |
| f_EPTF_UIHandler_Test_CheckGUIFromFile("tabpanel1.xml" , "tabpanel1_result.xml"); |
| setverdict(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUILabel_XML |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUILabel_XML() |
| runs on EPTF_UIHandler_Test_CT{ |
| f_EPTF_UIHandler_Test_CheckGUIFromFile("label1.xml" , "label1_result.xml"); |
| setverdict(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUISpacer_XML |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUISpacer_XML() |
| runs on EPTF_UIHandler_Test_CT{ |
| f_EPTF_UIHandler_Test_CheckGUIFromFile("spacer1.xml" , "spacer1_result.xml"); |
| setverdict(pass); |
| } |
| |
| // check if a table can be created with different widgetDataType |
| testcase tc_EPTF_UIHandler_Test_appendTreeCell() |
| runs on EPTF_UIHandlerClient_CT{ |
| var charstring vl_clientName :="UIHandler"; |
| var EPTF_UIHandler_CT vc_uiHandler := EPTF_UIHandler_CT.create; |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 20.0)); //puts up tsp_EPTF_GUI_Main_Window_WidgetId |
| |
| f_EPTF_Var_init_CT("appendTreeCell"); |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| //Initialize |
| // f_EPTF_UIHandler_CLI_init_CT(pl_selfName, false) |
| f_EPTF_UIHandlerClient_init_CT("appendTreeCell", vc_uiHandler) |
| // f_EPTF_UIHandler_clearGUI() |
| // f_EPTF_UIHandler_addWindow(); |
| |
| // f_EPTF_UIHandler_Test_createMainImages(); |
| f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, ""); |
| //Build GUI |
| //Main tab |
| var charstring vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tabpage id='test_tab' label='UIHandlerTest' orientation='vertical'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, c_EPTF_Test_Main_Tabbox_WidgetId); |
| |
| //Tree |
| vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tree hidecolumnpicker='false' id='test_tree' rows='1.000000'>\n\t\t<treecols>\n\t\t\t<treecol editable='false' flex='1.000000' label='DisabledIntegerColumn' widgetType='integerField'/>\n\t\t\t<treecol editable='false' flex='1.000000' label='DisabledBooleanColumn' widgetType='checkBox'/>\n\t\t</treecols>\n\t\t<treechildren>\n\t\t\t<treeitem>\n\t\t\t\t<treerow>\n\t\t\t\t\t<treecell id='IntegerID' label='-1.0' tooltiptext='this is an integer'/>\n\t\t\t\t\t<treecell id='CheckboxID' label='' tooltiptext='this is a checkbox'/>\n\t\t\t\t</treerow>\n\t\t\t</treeitem>\n\t\t</treechildren>\n\t</tree>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "test_tab"); |
| |
| var integer vl_dummyIdx; |
| |
| f_EPTF_Var_newInt("MyInt", 11, vl_dummyIdx); |
| f_EPTF_Var_newBool("MyBool", false, vl_dummyIdx); |
| |
| //f_EPTF_UIHandlerClient_subscribeMe("MyInt", "MyIntOnUI", "IntegerID", realtime); |
| f_EPTF_UIHandlerClient_subscribeMe("MyBool", "MyBoolOnUI", "CheckboxID", realtime); |
| |
| timer t_max_wait := 20.0; |
| t_max_wait.start; t_max_wait.timeout; |
| f_EPTF_Base_stop(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_Tree() |
| runs on EPTF_UIHandlerClient_CT{ |
| var charstring vl_clientName :="UIHandler"; |
| var EPTF_UIHandler_CLI_CT vc_uiHandler := EPTF_UIHandler_CLI_CT.create; |
| vc_uiHandler.start(f_EPTF_UIHandler_Test_BaseBehaviour_here(pl_selfName := vl_clientName, pl_connectGUI := true, pl_timeout := 120.0)); //puts up tsp_EPTF_GUI_Main_Window_WidgetId |
| |
| f_EPTF_Var_init_CT("Tree"); |
| // wait for UIHandler component to start up: |
| f_EPTF_UIHandlerClient_Test_waitForUIHandler(vc_uiHandler); |
| |
| //Initialize |
| // f_EPTF_UIHandler_CLI_init_CT(pl_selfName, false) |
| f_EPTF_UIHandlerClient_init_CT("Tree", vc_uiHandler) |
| // f_EPTF_UIHandler_clearGUI() |
| // f_EPTF_UIHandler_addWindow(); |
| |
| // f_EPTF_UIHandler_Test_createMainImages(); |
| f_EPTF_UIHandlerClient_createGUI(EPTF_UIHandler_Test_ASN1_Definitions.c_MainTabBox, ""); |
| //Build GUI |
| //Main tab |
| var charstring vl_xul := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tabpage id='test_tab' label='UIHandlerTest' orientation='vertical'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, c_EPTF_Test_Main_Tabbox_WidgetId); |
| |
| vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tree hidecolumnpicker='false' id='test_tree' rows='6.000000'>\n\t\t<treecols>\n\t\t\t<treecol editable='true' flex='1.000000' label='IntegerColumn' widgetType='integerField'/>\n\t\t\t<treecol editable='true' flex='1.000000' label='IntegerColumn2' widgetType='integerField'/>\n\t\t\t<treecol editable='true' flex='1.000000' label='FloatColumn' widgetType='floatField'/>\n\t\t</treecols>\n\t\t<treechildren>\n\t\t\t<treeitem>\n\t\t\t\t<treerow/>\n\t\t\t</treeitem>\n\t\t</treechildren>\n\t</tree>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "test_tab"); |
| |
| var integer vl_dummyIdx; |
| |
| //f_EPTF_Var_newInt("MyInt", 11, vl_dummyIdx);/ |
| //f_EPTF_Var_newBool("MyBool", false, vl_dummyIdx);/ |
| |
| //f_EPTF_UIHandlerClient_subscribeMe("MyInt", "MyIntOnUI", "IntegerID", realtime);/ |
| //f_EPTF_UIHandlerClient_subscribeMe("MyBool", "MyBoolOnUI", "CheckboxID", realtime);/ |
| var integer vl_i, vl_j; |
| for(vl_i:=0; vl_i < 4; vl_i:=vl_i+1) |
| { |
| for(vl_j:=0; vl_j < 3; vl_j:=vl_j+1) |
| { |
| if(vl_j == 2 ) |
| { |
| f_EPTF_Var_newFloat("float."&int2str(vl_i)&"."&int2str(vl_j), int2float(vl_i*vl_j), vl_dummyIdx); |
| f_EPTF_UIHandlerClient_subscribeMe("float."&int2str(vl_i)&"."&int2str(vl_j), "float."&int2str(vl_i)&"."&int2str(vl_j)&"OnUI", "test_tree."&int2str(vl_i)&"."&int2str(vl_j), realtime); |
| } |
| else |
| { |
| f_EPTF_Var_newInt("integer."&int2str(vl_i)&"."&int2str(vl_j), vl_i*vl_j, vl_dummyIdx); |
| f_EPTF_UIHandlerClient_subscribeMe("integer."&int2str(vl_i)&"."&int2str(vl_j), "integer."&int2str(vl_i)&"."&int2str(vl_j)&"OnUI", "test_tree."&int2str(vl_i)&"."&int2str(vl_j), realtime); |
| } |
| } |
| } |
| |
| timer t_max_wait := 120.0; |
| t_max_wait.start; t_max_wait.timeout; |
| f_EPTF_Base_stop(pass); |
| } |
| |
| |
| function f_EPTF_UIHandler_Test_BaseBehaviour_here( |
| charstring pl_selfName, |
| boolean pl_connectGUI:=true, |
| boolean pl_newWindow := true, |
| charstring pl_wndLayout := "", |
| boolean pl_addMainTabbox:=false, |
| float pl_timeout:=20.0, |
| float pl_delay := 0.0) runs on EPTF_UIHandler_CLI_CT |
| { |
| f_EPTF_UIHandler_CLI_init_CT(pl_selfName, pl_connectGUI, pl_wndLayout); |
| |
| timer t_delay := pl_delay; t_delay.start; t_delay.timeout; |
| if(pl_newWindow){ |
| f_EPTF_UIHandler_clearGUI(); |
| var boolean bool := f_EPTF_UIHandler_addWindow() |
| } |
| |
| //hack for tc_EPTF_UIHandler_Test_HostAdminUI_behavior: |
| if(pl_addMainTabbox==true) { |
| f_EPTF_UIHandler_createGUI(valueof(t_MainTabBox),tsp_EPTF_GUI_Main_Window_WidgetId); |
| //log(">>>DEBUG: v_UIHandler_guiItemList:",v_UIHandler_guiItemList) |
| } |
| |
| var integer vl_myVarId; |
| f_EPTF_Var_newBool("UIHandlerReady",true,vl_myVarId); |
| |
| var EPTF_UIHandler_GuiItemRecList vl_guiItems := {}; |
| timer t_wait; |
| t_wait.start(3.0); |
| t_wait.timeout; |
| |
| vl_guiItems := f_EPTF_UIHandler_guiItemList(); |
| log(log2str(vl_guiItems)); |
| |
| f_EPTF_UIHandler_exitButtonPressed(pl_timeout); |
| //EPTF_guiPortIf.send(ASP_XTDP_Bye:{client_id:=omit}); |
| f_EPTF_Base_cleanup_CT(); |
| }//f_ |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_menuListExternalData |
| // |
| // Purpose: |
| // The menulist widget has an external data field. The |
| // selected element of the list must be changed after changing |
| // the assigned variable. |
| // This test builds up the test GUI, changes the assigned |
| // variable, gets the snapshot, and checks the selected field |
| // in the result. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_menuListExternalData() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window id='EPTF_Main_Window' orientation='vertical'"& |
| " title='TTCN constructed window' height='100.000000' width='300.000000'>"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <textbox flex='1.000000' id='bubu' multiline='false'"& |
| " readonly='true' value='Regulated by' />"& |
| " <menulist disabled='false' editable='true' flex='0.000000'"& |
| " id='menuList' label='Select regulator'>"& |
| " <menupopup>"& |
| " <menuitem id='noItem' label='' selected='false' />"& |
| " <iterator id='LGen' source='ExecCtrl' element='LGenList'>"& |
| " <condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Param' value='%LGen%' />"& |
| " </params>"& |
| " <insertif id='w'>"& |
| " <menuitem id='%LGen%' label='%LGen%' selected='false'>"& |
| " </menuitem>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata element='selected' source='ExecCtrl'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>"; |
| var template Widgets c_expected := { |
| window := { height := 100.000000, id := "EPTF_Main_Window", orientation := vertical, title := "TTCN constructed window", width := 300.000000, image_list := { }, embeddedwidgets := { embeddedwidget_list := { { |
| hbox := { |
| customclass := omit, |
| disabled := *, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 0.000000, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| textbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := *, |
| focusafterchange := omit, |
| id := "bubu", |
| multiline := *, |
| readonly := true, |
| rows := omit, |
| tooltiptext := omit, |
| value_ := "Regulated by", |
| widgetType := omit, |
| wrap := omit, |
| externaldata := omit |
| } |
| }, |
| { |
| menulist := { |
| customclass := omit, |
| disabled := *, |
| disabledongui := omit, |
| editable := true, |
| flex := 0.000000, |
| id := "menuList", |
| label_ := "Select regulator", |
| readonly := omit, |
| tooltiptext := omit, |
| menupopup := { choice := { menuitemgroups := { |
| menuitemgroup_list := { |
| { |
| menuitem := { |
| id := "noItem", |
| label_ := omit, |
| selected := *, |
| externaldata := omit |
| } |
| }, |
| { |
| menuitem := { |
| id := "LGen1", |
| label_ := "LGen1", |
| selected := true, |
| externaldata := omit |
| } |
| }, |
| { |
| menuitem := { |
| id := "LGen3", |
| label_ := "LGen3", |
| selected := *, |
| externaldata := omit |
| } |
| } |
| } |
| }}}, |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| }}}} |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| var integer vl_varSubscribedIdx |
| f_EPTF_Var_subscribeRemote(vl_client1, "selected", realtime, vl_varSubscribedIdx); |
| //f_EPTF_Var_addPostProcFn(vl_varSubscribedIdx, {refers(f_EPTF_UIHandler_Test_menuListExternalData_selectionChanged),{}}) |
| f_EPTF_UIHandler_clearGUI(); |
| if(false == f_EPTF_UIHandler_createGUI(c_gui)){ |
| setverdict(fail, "CreateGUI failed."); |
| } |
| |
| T_guard.start( tsp_EPTF_Var_SyncInterval+10.2 ); //wait for refresh with "" value |
| T_guard.timeout; |
| var EPTF_Var_DirectContent vl_content := {charstringVal := "LGen1"}; |
| f_EPTF_Var_adjustContent(vl_varSubscribedIdx, vl_content); |
| T_guard.start( tsp_EPTF_Var_SyncInterval+0.2 ); |
| T_guard.timeout; |
| var Widgets vl_received |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| dec_Widgets(char2oct(vl_snapshot), vl_received); |
| //action(vl_received); |
| //f_EPTF_Base_wait4Shutdown(); |
| if(match(vl_received, c_expected)){ |
| setverdict(pass); |
| }else{ |
| setverdict(fail,log2str(match(vl_received, c_expected))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_menuListFromExternalData |
| // |
| // Purpose: |
| // The menulist widget now is able to have menuitems from |
| // an external data, this makes it able to change the content |
| // of the combobox by modifying an EPTF_Variable. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_menuListFromExternalData() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window id='EPTF_Main_Window' orientation='vertical'"& |
| " title='TTCN constructed window' height='100.000000' width='300.000000'>"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <textbox flex='1.000000' id='bubu' multiline='false'"& |
| " readonly='true' value='Regulated by' />"& |
| " <menulist disabled='false' editable='true' flex='0.000000'"& |
| " id='menuList' label='Select regulator'>"& |
| " <menupopup>"& |
| " <externaldata element='" & "LGenList" & "' source='ExecCtrl'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </menupopup>"& |
| " <externaldata element='selected' source='ExecCtrl'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| var template Widgets c_expected := { |
| window := { height := 100.000000, id := "EPTF_Main_Window", orientation := vertical, title := "TTCN constructed window", width := 300.000000, image_list := { }, embeddedwidgets := { embeddedwidget_list := { { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 0.000000, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| textbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| focusafterchange := omit, |
| id := "bubu", |
| multiline := omit, |
| readonly := true, |
| rows := omit, |
| tooltiptext := omit, |
| value_ := "Regulated by", |
| widgetType := omit, |
| wrap := omit, |
| externaldata := omit |
| } |
| }, |
| { |
| menulist := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| editable := true, |
| flex := 0.000000, |
| id := "menuList", |
| label_ := "Select regulator", |
| readonly := omit, |
| tooltiptext := omit, |
| menupopup := { choice := { menuitemgroups := { |
| menuitemgroup_list := { |
| { |
| menuitem := { |
| id := "menuList.LGen1", |
| label_ := "LGen1", |
| selected := true, |
| externaldata := omit |
| } |
| }, |
| { |
| menuitem := { |
| id := "menuList.LGen2", |
| label_ := "LGen2", |
| selected := omit, |
| externaldata := omit |
| } |
| } |
| } |
| }}}, |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| }}}} |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| var integer vl_varSubscribedIdx |
| f_EPTF_Var_subscribeRemote(vl_client1, "selected", realtime, vl_varSubscribedIdx); |
| //f_EPTF_Var_addPostProcFn(vl_varSubscribedIdx, {refers(f_EPTF_UIHandler_Test_menuListExternalData_selectionChanged),{}}) |
| f_EPTF_UIHandler_clearGUI(); |
| if(false == f_EPTF_UIHandler_createGUI(c_gui)){ |
| setverdict(fail, "CreateGUI failed."); |
| } |
| T_guard.start( 15.0 ); |
| T_guard.timeout; |
| |
| var integer vl_varSubscribedIdxOfMenuList; |
| f_EPTF_Var_subscribeRemote(vl_client1, c_EPTF_UIHandler_Test_var_prefix & "LGens", realtime, vl_varSubscribedIdxOfMenuList); |
| var EPTF_Var_DirectContent vl_contentOfMenuList := {charstringlistVal := {"LGen1","LGen2"}}; |
| f_EPTF_Var_adjustContent(vl_varSubscribedIdxOfMenuList, vl_contentOfMenuList); |
| |
| T_guard.start( 2.0 ); |
| T_guard.timeout; |
| |
| var EPTF_Var_DirectContent vl_content := {charstringVal := "LGen1"}; |
| f_EPTF_Var_adjustContent(vl_varSubscribedIdx, vl_content); |
| |
| T_guard.start( 15.0 ); |
| T_guard.timeout; |
| var Widgets vl_received; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| dec_Widgets(char2oct(vl_snapshot), vl_received); |
| if(match(vl_received, c_expected)){ |
| setverdict(pass); |
| }else{ |
| setverdict(fail,log2str(match(vl_received, c_expected))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_manual_TextboxGrowing_focusafterchange_Top |
| // |
| // Purpose: |
| // This is a test that is adjusting the textbox value regulary |
| // Please look on the BrowserGUI and the text should be scrolled always up |
| // while the value is growing, the scrollbar is growing as well. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_manual_TextboxGrowing_focusafterchange_Top() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window id='EPTF_Main_Window' orientation='vertical'"& |
| " title='TTCN constructed window' height='100.000000' width='300.000000'>"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <textbox flex='1.000000' id='bubu' multiline='true' rows='5.0'"& |
| " readonly='true' value='starting value' focusafterchange='top'>"& |
| " <externaldata element='selected' source='ExecCtrl'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| |
| f_EPTF_UIHandler_Test_TextboxGrowingBehavior(c_gui); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_manual_TextboxGrowing_focusafterchange_Bottom |
| // |
| // Purpose: |
| // The textbox widget now supports the functionality of |
| // staying at the end of the text while refreshing its value. |
| // This is a test that is adjusting the textbox value regulary |
| // Please look on the BrowserGUI and the text should be scrolled always down |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_manual_TextboxGrowing_focusafterchange_Bottom() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window id='EPTF_Main_Window' orientation='vertical'"& |
| " title='TTCN constructed window' height='100.000000' width='300.000000'>"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <textbox flex='1.000000' id='bubu' multiline='true' rows='5.0'"& |
| " readonly='true' value='starting value' focusafterchange='bottom'>"& |
| " <externaldata element='selected' source='ExecCtrl'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| |
| f_EPTF_UIHandler_Test_TextboxGrowingBehavior(c_gui); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_manual_TextboxGrowing_focusafterchange_BottomWithTrunc |
| // |
| // Purpose: |
| // The textbox widget now supports the functionality of |
| // staying at the end of the text while refreshing its value and the slider functionality is disabled, |
| // so only the last few lines can be seen on the BrowserGUI. |
| // This is a test that is adjusting the textbox value regulary |
| // Please look on the BrowserGUI and the text should be truncated and only the last lines are visible. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_manual_TextboxGrowing_focusafterchange_BottomWithTrunc() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window id='EPTF_Main_Window' orientation='vertical'"& |
| " title='TTCN constructed window' height='100.000000' width='300.000000'>"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <textbox flex='1.000000' id='bubu' multiline='true' rows='5.0'"& |
| " readonly='true' value='starting value' focusafterchange='bottomWithTrunc'>"& |
| " <externaldata element='selected' source='ExecCtrl'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| |
| f_EPTF_UIHandler_Test_TextboxGrowingBehavior(c_gui); |
| } |
| |
| /* |
| //Sample to check selection change in log |
| function f_EPTF_UIHandler_Test_menuListExternalData_selectionChanged( in integer pl_idx, in EPTF_IntegerList pl_argList) runs on EPTF_Var_CT { |
| var EPTF_Var_DirectContent vl_content |
| f_EPTF_Var_getContent(pl_idx, vl_content); |
| action(vl_content); |
| } |
| */ |
| |
| //HO29288 |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_emptyTextboxId |
| // |
| // Purpose: |
| // If the ID of the textbox contains an empty string, the |
| // layout response received from the Runtime GUI contains |
| // unbound. This test must pass if the TR HO29288 corrected. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_emptyTextboxId() |
| runs on EPTF_UIHandler_Test_CT{ |
| const Widgets c_gui := { |
| window := { |
| about := "", |
| height := 300.000000, |
| help := "", |
| id := "Window", |
| orientation := vertical, |
| title := "tc_EPTF_UIHandler_Test_emptyTextboxId window", |
| width := 800.000000, |
| image_list := {}, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| {hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 0.000000, |
| id := omit, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| textbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| focusafterchange := omit, |
| id := "", |
| multiline := omit, |
| readonly := true, |
| rows := omit, |
| tooltiptext := omit, |
| value_ := "Regulated by", |
| widgetType := omit, |
| wrap := omit, |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| var charstring vl_gui := oct2char(enc_Widgets(c_gui)); |
| f_EPTF_UIHandler_createGUI(vl_gui); |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received; |
| dec_Widgets(char2oct(vl_snapshot),vl_received); |
| if(match ( vl_received, c_gui )){ |
| setverdict(pass); |
| }else{ |
| setverdict(fail, log2str(match ( vl_received, c_gui ))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_conditionAndInsertif |
| // |
| // Purpose: |
| // Tests the condition and insertif elements of the XTDL. |
| // |
| // The test starts a client which provides external data. The |
| // test uses the "Scenarios", which contains 3 elements. Each |
| // hase a name with its number at the and. |
| // The client provides also a condition function, which returns true |
| // when the last character of the first parameter contains |
| // an odd number. |
| // The c_gui GUI description contains iterator, condition and insertif. |
| // The test processes the XML, and checks if the built gui |
| // matches the expected one. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_conditionAndInsertif() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <hbox flex='0.000000' orientation='vertical'>"& |
| " <iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Scenarios' value='%sc%'/>"& |
| " </params>"& |
| " <insertif id='w'>"& |
| " <label value='unpair %sc%'/>"& |
| " <label value='unpair %sc%'/>"& |
| " </insertif>"& |
| " <label value='placeholder for %sc%'/>"& |
| " <insertif id='w' negate='true'>"& |
| " <label value='pair %sc%'/>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received |
| dec_Widgets(char2oct(vl_snapshot),vl_received) |
| var template Widgets c_expected := { |
| window := { |
| height := 300.000000, |
| id := "Window", |
| orientation := vertical, |
| title := "tc_EPTF_UIHandler_Test_emptyTextboxId window", |
| width := 800.000000, |
| image_list := { |
| |
| }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 0.000000, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "unpair SC1", |
| externaldata := omit |
| } |
| }, |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "unpair SC1", |
| externaldata := omit |
| } |
| }, |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "placeholder for SC1", |
| externaldata := omit |
| } |
| }, |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "placeholder for SC2", |
| externaldata := omit |
| } |
| }, |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "pair SC2", |
| externaldata := omit |
| } |
| }, |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "unpair SC3", |
| externaldata := omit |
| } |
| }, |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "unpair SC3", |
| externaldata := omit |
| } |
| }, |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "placeholder for SC3", |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| if(not match(vl_received,c_expected)){ |
| setverdict(fail,log2str(match(vl_received,c_expected))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_tabif |
| // |
| // Purpose: |
| // Tests the condition and insertif elements of the XTDL in |
| // tabs and tabpanels. |
| // |
| // The test starts a client which provides external data. The |
| // test uses the "Scenarios", which contains 3 elements. Each |
| // hase a name with its number at the and. |
| // The client provides also a condition function, which returns true |
| // when the last character of the first parameter contains |
| // an odd number. |
| // The c_gui GUI description contains iterator, condition and insertif |
| // in the tabs and tabpanels tags. |
| // The test processes the XML, and checks if the built gui |
| // matches the expected one. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_tabif() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <label value='0 and pair'/>"& |
| " <tabpages flex='1.000000'>"& |
| " <iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Scenarios' value='%sc%'/>"& |
| " </params>"& |
| " <insertif id='w' negate='true'>"& |
| " <tabpage label='pair %sc%'>"& |
| " <label value='pair %sc%'/>"& |
| " </tabpage>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </tabpages>"& |
| " </hbox>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <label value='unpair'/>"& |
| " <tabpages flex='1.000000'>"& |
| " <iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Scenarios' value='%sc%'/>"& |
| " </params>"& |
| " <insertif id='w'>"& |
| " <tabpage label='unpair %sc%'>"& |
| " <label value='unpair %sc%'/>"& |
| " </tabpage>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </tabpages>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received |
| dec_Widgets(char2oct(vl_snapshot),vl_received) |
| var template Widgets c_expected := { |
| window := { |
| height := 300.000000, |
| id := "Window", |
| orientation := vertical, |
| title := "tc_EPTF_UIHandler_Test_emptyTextboxId window", |
| width := 800.000000, |
| image_list := {}, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 1.000000, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "0 and pair", |
| externaldata := omit |
| } |
| }, |
| { |
| tabpages := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := 1.000000, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| layout := omit, |
| tabpagegroups := { tabpagegroup_list := {{ |
| tabpage := { |
| customclass := omit, |
| disabledongui := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| label_ := "pair SC2", |
| maxheight := omit, |
| orientation := horizontal, |
| tooltiptext := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "pair SC2", |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| }} |
| } |
| } |
| } |
| } |
| } |
| } |
| }, |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 1.000000, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "unpair", |
| externaldata := omit |
| } |
| }, |
| { |
| tabpages := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := 1.000000, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| layout := omit, |
| tabpagegroups := { tabpagegroup_list := {{ |
| tabpage := { |
| customclass := omit, |
| disabledongui := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| label_ := "unpair SC1", |
| maxheight := omit, |
| orientation := horizontal, |
| tooltiptext := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "unpair SC1", |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| }, |
| { tabpage := { |
| customclass := omit, |
| disabledongui := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| label_ := "unpair SC3", |
| maxheight := omit, |
| orientation := horizontal, |
| tooltiptext := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| style := omit, |
| tooltiptext := omit, |
| value_ := "unpair SC3", |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| if(not match(vl_received,c_expected)){ |
| setverdict(fail,log2str(match(vl_received, c_expected))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_treeConditionAndInsertif |
| // |
| // Purpose: |
| // Tests the condition and insertif elements of the XTDL in |
| // treecols, treechildren, treeitem and treerow. |
| // |
| // The test starts a client which provides external data. The |
| // test uses the "Scenarios", which contains 3 elements. Each |
| // hase a name with its number at the and. |
| // The client provides also a condition function, which returns true |
| // when the last character of the first parameter contains |
| // an odd number. |
| // The c_gui GUI description contains iterator, condition and insertif |
| // in treecols, treechildren, treeitem and treerow tags. |
| // The test processes the XML, and checks if the built gui |
| // matches the expected one. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_treeConditionAndInsertif() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <tree disabled='false' hidecolumnpicker='false' id='tree'>"& |
| " <treecols>"& |
| " <iterator element='EntityGroups' id='eg' source='ExecCtrl'>"& |
| " <iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <condition element='isUnpair' id='sc_c' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Scenarios' value='%sc%' />"& |
| " </params>"& |
| " <insertif id='sc_c'>"& |
| " <treecol editable='false' flex='1.000000' label='%eg%-%sc%' widgetType='string'/>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </iterator>"& |
| " </treecols>"& |
| " <treechildren>"& |
| " <iterator element='EntityGroups' id='eg' source='ExecCtrl'>"& |
| " <condition element='isUnpair' id='eg_c' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Scenarios' value='%eg%' />"& |
| " </params>"& |
| " <insertif id='eg_c'>"& |
| " <treeitem>"& |
| " <iterator element='Scenarios' id='sc1' source='ExecCtrl'>"& |
| " <condition element='isUnpair' id='sc1_c' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Scenarios' value='%sc1%' />"& |
| " </params>"& |
| " <insertif id='sc1_c'>"& |
| " <treerow>"& |
| " <iterator element='Scenarios' id='lgen' source='ExecCtrl'>"& //LGenList |
| " <condition element='isUnpair' id='lg' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Param' value='%lgen%' />"& |
| " </params>"& |
| " <insertif id='lg'>"& |
| " <treecell id='cell%eg%-%sc1%-%lgen%' label='%eg%-%sc1%-%lgen%' tooltiptext='Togglebutton 4'/>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </treerow>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </treeitem>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( %definitionId ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received |
| dec_Widgets(char2oct(vl_snapshot),vl_received) |
| |
| /*const Widgets c_expected := {}; |
| if(not match(c_expected,vl_received)){ |
| setverdict(fail,log2str(match(c_expected,vl_received))); |
| }*/ |
| f_EPTF_Base_stop(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_manualTestTemporal() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <hbox flex='0.000000' orientation='horizontal'>"& |
| " <label value='%sc%'/>"& |
| " <condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Scenarios' value='%sc%'/>"& |
| " </params>"& |
| " <insertif id='w'>"& |
| " <label value='unpair %sc%'/>"& |
| " <label value='unpair %sc%'/>"& |
| " </insertif>"& |
| " <label value='placeholder for %sc%'/>"& |
| " <insertif id='w' negate='true'>"& |
| " <label value='pair %sc%'/>"& |
| " </insertif>"& |
| " </condition>"& |
| " </hbox>"& |
| " </iterator>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received |
| dec_Widgets(char2oct(vl_snapshot),vl_received) |
| action(vl_received); |
| f_EPTF_Base_stop(pass); |
| } |
| |
| |
| testcase tc_EPTF_UIHandler_ManualTest_disableWidgetsOfVar() |
| runs on EPTF_UIHandler_Test_CT |
| { |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window width='200.000000' height='155.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_ManualTest_disableWidgetsOfVar window'>"& |
| |
| " <tree id='t'>"& |
| " <treecols>"& |
| " <treecol editable='false' label='column1' widgetType='string'/>"& |
| " <treecol editable='true' label='column2' widgetType='pushButton'/>"& |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell label='bubu'/>"& |
| " <treecell id='b1' label='Button1'>"& |
| " <externaldata element='button1' source='dsclient'>"& |
| " </externaldata>"& |
| " </treecell>"& |
| " </treerow>"& |
| " <treerow>"& |
| " <treecell label='foobar'/>"& |
| " <treecell id='b2' label='Button2'>"& |
| " <externaldata element='button2' source='dsclient'>"& |
| " </externaldata>"& |
| " </treecell>"& |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| |
| " <pushbutton id='pb1' label='Button1'>"& |
| " <externaldata element='button1' source='dsclient'>"& |
| " </externaldata>"& |
| " </pushbutton>"& |
| " <pushbutton id='pb2' label='Button2'>"& |
| " <externaldata element='button2' source='dsclient'>"& |
| " </externaldata>"& |
| " </pushbutton>"& |
| |
| " <pushbutton id='exit' label='Exit'>"& |
| " <externaldata element='exit' source='dsclient'>"& |
| " </externaldata>"& |
| " </pushbutton>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT("disableWidgetsOfVar"); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_ManualTest_disableWidgetsOfVarClientBehavior(self)); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{T_guard.stop;} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| f_EPTF_Base_wait4Shutdown(); |
| } |
| |
| |
| testcase tc_EPTF_UIHandler_Test_listConditionAndInsertif() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='vertical'>"& |
| " <listbox flex='1.000000' id='list' seltype='single'>"& |
| " <iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Scenarios' value='%sc%'/>"& |
| " </params>"& |
| " <insertif id='w'>"& |
| " <listitem id='%sc%' label='%sc%' selected='false'/>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </listbox>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received |
| dec_Widgets(char2oct(vl_snapshot),vl_received) |
| action(vl_received); |
| var template Widgets c_expected := { |
| window := { |
| height := 300.000000, |
| id := "Window", |
| orientation := vertical, |
| title := "tc_EPTF_UIHandler_Test_emptyTextboxId window", |
| width := 800.000000, |
| image_list := {}, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 1.000000, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| listbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := 1.000000, |
| id := "list", |
| rows := 0, |
| seltype := single, |
| tooltiptext := omit, |
| externaldata := omit, |
| listitemgroups := { |
| listitemgroup_list := { |
| { |
| listitem := { |
| id := "SC1", |
| label_ := "SC1", |
| selected := omit |
| } |
| }, |
| { |
| listitem := { |
| id := "SC3", |
| label_ := "SC3", |
| selected := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| if(not match(vl_received,c_expected)){ |
| setverdict(fail,log2str(match(vl_received,c_expected))); |
| } |
| |
| f_EPTF_Base_stop(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_traceConditionAndInsertif() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='vertical'>"& |
| " <chart axisXType='linear' axisYType='linear' disabled='false' flex='1.000000' gridX='true' gridY='true' id='chart1' title='CPS Chart' zoomable='true'>"& |
| " <iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Scenarios' value='%sc%'/>"& |
| " </params>"& |
| " <insertif id='w'>"& |
| " <trace color='blue' fill='false' id='trace_%sc%' maxPoints='20' name='%sc%_trace' physicalUnitX='sec' physicalUnitY='call/sec'>"& |
| " <xy_value x='1.000000' y='11.000000'/>"& |
| " <xy_value x='2.000000' y='21.000000'/>"& |
| " </trace>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </chart>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received |
| dec_Widgets(char2oct(vl_snapshot),vl_received) |
| action(vl_received); |
| template Widgets c_expected := { |
| window := { |
| about := omit, |
| height := 300.000000, |
| help := omit, |
| id := "Window", |
| orientation := vertical, |
| title := "tc_EPTF_UIHandler_Test_emptyTextboxId window", |
| width := 800.000000, |
| image_list := { |
| |
| }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 1.000000, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| chart := { |
| axisXType := linear, |
| axisYType := linear, |
| backgroundColor := omit, |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := 1.000000, |
| foregroundColor := omit, |
| gridColor := omit, |
| gridX := true, |
| gridY := true, |
| id := "chart1", |
| title := "CPS Chart", |
| tooltiptext := omit, |
| zoomable := true, |
| tracegroups := { |
| tracegroup_list := { |
| { |
| trace := { |
| color := "blue", |
| fill := omit, |
| id := "trace_SC1", |
| maxPoints := 20, |
| name := "SC1_trace", |
| physicalUnitX := "sec", |
| physicalUnitY := "call/sec", |
| tooltiptext := omit, |
| externaldata := omit, |
| choice_list := { |
| } |
| } |
| }, |
| { |
| trace := { |
| color := "blue", |
| fill := omit, |
| id := "trace_SC3", |
| maxPoints := 20, |
| name := "SC3_trace", |
| physicalUnitX := "sec", |
| physicalUnitY := "call/sec", |
| tooltiptext := omit, |
| externaldata := omit, |
| choice_list := { |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| if(not match(vl_received,c_expected)){ |
| setverdict(fail,log2str(match(vl_received,c_expected))); |
| } |
| |
| f_EPTF_Base_stop(pass); |
| } |
| |
| |
| group Test_distributionChart { |
| |
| type component EPTF_UIHandler_Test_ExternalData_CT extends EPTF_UIHandler_Test_CT, EPTF_DataSourceClient_CT{} |
| |
| function f_EPTF_DataSourceClient_dataHandler_distributionChart( |
| out charstring pl_dataVarName, |
| in charstring pl_source, |
| in charstring pl_ptcName, |
| in charstring pl_element, |
| in EPTF_DataSource_Params pl_params |
| ) runs on EPTF_UIHandler_Test_ExternalData_CT return integer { |
| pl_dataVarName := pl_element; |
| return 0; |
| } |
| |
| function f_EPTF_DataSourceClient_dataHandler_DataSourceClientReady( |
| in charstring pl_source, |
| in charstring pl_ptcName) runs on EPTF_UIHandler_Test_ExternalData_CT { |
| if (pl_source=="UIHandlerTest") { |
| v_ready:=true; |
| } |
| } |
| |
| |
| //<externaldata element='IntegerList' source='UIHandlerTest'/> |
| // <valuelist id='DCVLLId'> |
| // <value>0</value> |
| // <value>1</value> |
| // <value>2</value> |
| // <value>3</value> |
| // <value>4</value> |
| // <value>5</value> |
| // <value>6</value> |
| // <value>7</value> |
| // </valuelist> |
| |
| template Widgets c_expectedDistributionChartExtended := { |
| window := { |
| about := omit, |
| height := 300.000000, |
| help := omit, |
| id := "Window", |
| orientation := vertical, |
| title := "DistributionChart window", |
| width := 800.000000, |
| image_list := { |
| |
| }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 1.000000, |
| id := "Id", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| distributionchart := { |
| axisXLabel := omit, |
| axisYLabel := omit, |
| backgroundcolor := omit, |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| gridcolor := omit, |
| id := "dsId", |
| labeltype := *, |
| orientation := *, |
| showlegend := omit, |
| title := omit, |
| tooltiptext := omit, |
| externaldatagroups := { externaldatagroup_list := { |
| { intervallimits := { |
| id := "DSILId", |
| choice := { value_list := {0.0,1.0,2.0,3.0,4.0,5.0} } |
| } }, |
| { |
| valuelist_list := { |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| }, |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| }, |
| // iterator itId |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {1,2,4,8,12,14,15} |
| }, |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| }, |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {1,2,4,8,12,14,15} |
| }, |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| }, |
| // condition element='==' id='loctrue |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {0,2,4,6,4,2,0} |
| }, |
| //insertif id='globaltrue' |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {16,15,12,7,3,1,0} |
| }, |
| { |
| color := omit, |
| id := "DCVLLId", |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {0,1,2,3,4,5,6} |
| }, |
| { |
| color := omit, |
| id := "DCVLLId2", |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {10,11,12,13,14,15,16} |
| } |
| } |
| } |
| // { |
| // externaldata := { |
| // element := "IntegerList", |
| // ptcname := omit, |
| // source := "UIHandlerTest", |
| // params := omit |
| // } |
| // } |
| } |
| } |
| |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| template Widgets c_expectedDistributionChartStatic := { |
| window := { |
| height := 300.000000, |
| id := "Window", |
| orientation := vertical, |
| title := "DistributionChart window", |
| width := 800.000000, |
| image_list := { |
| |
| }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 1.000000, |
| id := "Id", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| distributionchart := { |
| axisXLabel := omit, |
| axisYLabel := omit, |
| backgroundcolor := omit, |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| gridcolor := omit, |
| id := "dsId", |
| labeltype := *, |
| orientation := *, |
| showlegend := omit, |
| title := omit, |
| tooltiptext := omit, |
| externaldatagroups := { externaldatagroup_list := { |
| { intervallimits := { |
| id := "DSILId", |
| choice := { value_list := {0.0,1.0,2.0,3.0,4.0,5.0} } |
| } }, |
| { |
| valuelist_list := { |
| { |
| color := omit, |
| id := "DCVLLId", |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {0,1,2,3,4,5,6} |
| }, |
| { |
| color := omit, |
| id := "DCVLLId2", |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {10,11,12,13,14,15,16} |
| } |
| } |
| } |
| } |
| } |
| |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| |
| template Widgets c_expectedDistributionChartSmall := { |
| window := { |
| height := 300.000000, |
| id := "Window", |
| orientation := vertical, |
| title := "DistributionChart window", |
| width := 800.000000, |
| image_list := { |
| |
| }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 1.000000, |
| id := "Id", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| distributionchart := { |
| axisXLabel := omit, |
| axisYLabel := omit, |
| backgroundcolor := omit, |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| gridcolor := omit, |
| id := "dsId", |
| labeltype := *, |
| orientation := *, |
| showlegend := omit, |
| title := omit, |
| tooltiptext := omit, |
| externaldatagroups := { externaldatagroup_list := { |
| { intervallimits := { |
| id := "DSILId", |
| choice := { value_list := {0.0,1.0,2.0,3.0,4.0,5.0} } |
| } }, |
| { |
| valuelist_list := { |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| }, |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| }, |
| { |
| color := omit, |
| id := "DCVLLId", |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {0,1,2,3,4,5,6} |
| }, |
| { |
| color := omit, |
| id := "DCVLLId2", |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {10,11,12,13,14,15,16} |
| } |
| } |
| } |
| } |
| } |
| |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| template Widgets c_expectedDistributionChart_ExternalValue := { |
| window := { |
| about := omit, |
| height := 300.000000, |
| help := omit, |
| id := "Window", |
| orientation := vertical, |
| title := "DistributionChart window", |
| width := 800.000000, |
| image_list := { |
| |
| }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 1.000000, |
| id := "Id", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| distributionchart := { |
| axisXLabel := omit, |
| axisYLabel := omit, |
| backgroundcolor := omit, |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| gridcolor := omit, |
| id := "dsId", |
| labeltype := *, |
| orientation := *, |
| showlegend := omit, |
| title := omit, |
| tooltiptext := omit, |
| externaldatagroups := { externaldatagroup_list := { |
| { intervallimits := { |
| id := "DSILId", |
| choice := { value_list := {0.0,1.0,2.0,3.0,4.0,5.0} } |
| } }, |
| { |
| valuelist_list := { |
| { |
| color := omit, |
| id := "DCVLLId_101", |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| } |
| } |
| } |
| } |
| } |
| |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUI_distributionChart |
| // |
| // Purpose: To test the distribution chart in custom GUI |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUI_distributionChart() |
| runs on EPTF_UIHandler_Test_ExternalData_CT{ |
| const charstring c_gui :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='DistributionChart window' width='800.000000'>"& |
| " <condition element='==' id='globaltrue' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Param1' value='2' />"& |
| " <dataparam name='Param2' value='2' />"& |
| " </params>"& |
| " <hbox flex='1.000000' id='Id' orientation='vertical'>"& |
| " <distributionchart id='dsId'>"& |
| " <valuelist id='IntegerListValueList'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " <valuelist id='IntegerListValueList2'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " <intervallimits id='DSILId'>"& |
| " <value>0.000000</value>"& |
| " <value>1.000000</value>"& |
| " <value>2.000000</value>"& |
| " <value>3.000000</value>"& |
| " <value>4.000000</value>"& |
| " <value>5.000000</value>"& |
| " </intervallimits>"& |
| " <iterator id='itId' element='CharstringList' source='UIHandlerTest'>"& |
| " <valuelist id='DCVLLItId%itId%'>"& |
| " <value>1</value>"& |
| " <value>2</value>"& |
| " <value>4</value>"& |
| " <value>8</value>"& |
| " <value>12</value>"& |
| " <value>14</value>"& |
| " <value>15</value>"& |
| " </valuelist>"& |
| " <valuelist id='IntegerListValueList%itId%'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " </iterator>"& |
| " <condition element='==' id='loctrue' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Param1' value='1' />"& |
| " <dataparam name='Param2' value='1' />"& |
| " </params>"& |
| " <insertif id='loctrue'>"& |
| " <valuelist id='DCVLLLocalCondId'>"& |
| " <value>0</value>"& |
| " <value>2</value>"& |
| " <value>4</value>"& |
| " <value>6</value>"& |
| " <value>4</value>"& |
| " <value>2</value>"& |
| " <value>0</value>"& |
| " </valuelist>"& |
| " </insertif>"& |
| " </condition>"& |
| " <insertif id='globaltrue'>"& |
| " <valuelist id='DCVLLGlobalCondId'>"& |
| " <value>16</value>"& |
| " <value>15</value>"& |
| " <value>12</value>"& |
| " <value>7</value>"& |
| " <value>3</value>"& |
| " <value>1</value>"& |
| " <value>0</value>"& |
| " </valuelist>"& |
| " </insertif>"& |
| " <valuelist id='DCVLLId'>"& |
| " <value>0</value>"& |
| " <value>1</value>"& |
| " <value>2</value>"& |
| " <value>3</value>"& |
| " <value>4</value>"& |
| " <value>5</value>"& |
| " <value>6</value>"& |
| " </valuelist>"& |
| " <valuelist id='DCVLLId2'>"& |
| " <value>10</value>"& |
| " <value>11</value>"& |
| " <value>12</value>"& |
| " <value>13</value>"& |
| " <value>14</value>"& |
| " <value>15</value>"& |
| " <value>16</value>"& |
| " </valuelist>"& |
| " </distributionchart>"& |
| " </hbox>"& |
| " </condition>"& |
| " </window>"& |
| "</Widgets>"; |
| |
| f_EPTF_UIHandler_Test_newGUI_distributionChart(c_gui, c_expectedDistributionChartExtended); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUI_distributionChart_Small |
| // |
| // Purpose: To test the distribution chart in custom GUI |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUI_distributionChart_Small() |
| runs on EPTF_UIHandler_Test_ExternalData_CT{ |
| const charstring c_gui :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='DistributionChart window' width='800.000000'>"& |
| " <condition element='==' id='globaltrue' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Param1' value='2' />"& |
| " <dataparam name='Param2' value='2' />"& |
| " </params>"& |
| " <hbox flex='1.000000' id='Id' orientation='vertical'>"& |
| " <distributionchart id='dsId'>"& |
| " <valuelist id='IntegerListValueList'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " <valuelist id='IntegerListValueList2'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " <intervallimits id='DSILId'>"& |
| " <value>0.000000</value>"& |
| " <value>1.000000</value>"& |
| " <value>2.000000</value>"& |
| " <value>3.000000</value>"& |
| " <value>4.000000</value>"& |
| " <value>5.000000</value>"& |
| " </intervallimits>"& |
| " <valuelist id='DCVLLId'>"& |
| " <value>0</value>"& |
| " <value>1</value>"& |
| " <value>2</value>"& |
| " <value>3</value>"& |
| " <value>4</value>"& |
| " <value>5</value>"& |
| " <value>6</value>"& |
| " </valuelist>"& |
| " <valuelist id='DCVLLId2'>"& |
| " <value>10</value>"& |
| " <value>11</value>"& |
| " <value>12</value>"& |
| " <value>13</value>"& |
| " <value>14</value>"& |
| " <value>15</value>"& |
| " <value>16</value>"& |
| " </valuelist>"& |
| " </distributionchart>"& |
| " </hbox>"& |
| " </condition>"& |
| " </window>"& |
| "</Widgets>"; |
| |
| f_EPTF_UIHandler_Test_newGUI_distributionChart(c_gui, c_expectedDistributionChartSmall); |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUI_distributionChart_ExternaValue |
| // |
| // Purpose: To test the distribution chart in custom GUI |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUI_distributionChart_ExternalValue() |
| runs on EPTF_UIHandler_Test_ExternalData_CT{ |
| const charstring c_gui :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='DistributionChart window' width='800.000000'>"& |
| " <condition element='==' id='globaltrue' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Param1' value='2' />"& |
| " <dataparam name='Param2' value='2' />"& |
| " </params>"& |
| " <hbox flex='1.000000' id='Id' orientation='vertical'>"& |
| " <distributionchart id='dsId'>"& |
| " <intervallimits id='DSILId'>"& |
| " <value>0.000000</value>"& |
| " <value>1.000000</value>"& |
| " <value>2.000000</value>"& |
| " <value>3.000000</value>"& |
| " <value>4.000000</value>"& |
| " <value>5.000000</value>"& |
| " </intervallimits>"& |
| " <externalvalue element='ECount1' id='EntityCount' source='UIHandlerTest'>"& |
| " <params> <dataparam name='EntityGroup' value='EG1'></dataparam> </params> " & |
| " <valuelist id='DCVLLId_%EntityCount%'>"& |
| " <value>0</value>"& |
| " <value>1</value>"& |
| " <value>2</value>"& |
| " <value>3</value>"& |
| " <value>4</value>"& |
| " <value>5</value>"& |
| " <value>6</value>"& |
| " </valuelist>"& |
| " </externalvalue>"& |
| " </distributionchart>"& |
| " </hbox>"& |
| " </condition>"& |
| " </window>"& |
| "</Widgets>"; |
| |
| f_EPTF_UIHandler_Test_newGUI_distributionChart(c_gui, c_expectedDistributionChart_ExternalValue); |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUI_distributionChartIntervallLimitFromExternalData |
| // |
| // Purpose: To test the distribution chart in custom GUI with an intervallimit, |
| // that is comming from an externaldata. RuntimeGUI cannot handle this. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUI_distributionChartIntervallLimitFromExternalData() |
| runs on EPTF_UIHandler_Test_ExternalData_CT{ |
| const charstring c_gui :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='DistributionChart window' width='800.000000'>"& |
| " <condition element='==' id='globaltrue' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Param1' value='2' />"& |
| " <dataparam name='Param2' value='2' />"& |
| " </params>"& |
| " <hbox flex='1.000000' id='Id' orientation='vertical'>"& |
| " <distributionchart id='dsId'>"& |
| " <valuelist id='IntegerListValueList'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " <valuelist id='IntegerListValueList2'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " <intervallimits id='DSILId'>"& |
| " <externaldata element='IntervallimitList' source='UIHandlerTest'/>"& |
| " </intervallimits>"& |
| " <iterator id='itId' element='CharstringList' source='UIHandlerTest'>"& |
| " <valuelist id='DCVLLItId%itId%'>"& |
| " <value>1</value>"& |
| " <value>2</value>"& |
| " <value>4</value>"& |
| " <value>8</value>"& |
| " <value>12</value>"& |
| " <value>14</value>"& |
| " <value>15</value>"& |
| " </valuelist>"& |
| " <valuelist id='IntegerListValueList%itId%'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " </iterator>"& |
| " <condition element='==' id='loctrue' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Param1' value='1' />"& |
| " <dataparam name='Param2' value='1' />"& |
| " </params>"& |
| " <insertif id='loctrue'>"& |
| " <valuelist id='DCVLLLocalCondId'>"& |
| " <value>0</value>"& |
| " <value>2</value>"& |
| " <value>4</value>"& |
| " <value>6</value>"& |
| " <value>4</value>"& |
| " <value>2</value>"& |
| " <value>0</value>"& |
| " </valuelist>"& |
| " </insertif>"& |
| " </condition>"& |
| " <insertif id='globaltrue'>"& |
| " <valuelist id='DCVLLGlobalCondId'>"& |
| " <value>16</value>"& |
| " <value>15</value>"& |
| " <value>12</value>"& |
| " <value>7</value>"& |
| " <value>3</value>"& |
| " <value>1</value>"& |
| " <value>0</value>"& |
| " </valuelist>"& |
| " </insertif>"& |
| " <valuelist id='DCVLLId'>"& |
| " <value>0</value>"& |
| " <value>1</value>"& |
| " <value>2</value>"& |
| " <value>3</value>"& |
| " <value>4</value>"& |
| " <value>5</value>"& |
| " <value>6</value>"& |
| " </valuelist>"& |
| " <valuelist id='DCVLLId2'>"& |
| " <value>10</value>"& |
| " <value>11</value>"& |
| " <value>12</value>"& |
| " <value>13</value>"& |
| " <value>14</value>"& |
| " <value>15</value>"& |
| " <value>16</value>"& |
| " </valuelist>"& |
| " </distributionchart>"& |
| " </hbox>"& |
| " </condition>"& |
| " </window>"& |
| "</Widgets>"; |
| |
| f_EPTF_UIHandler_Test_newGUI_distributionChart(c_gui, c_expectedDistributionChartExtended); |
| } |
| |
| ///////////////////////////////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUI_distributionChart_onlyStaticValuelist |
| // |
| // Purpose: To test the distribution chart in custom GUI |
| // |
| ///////////////////////////////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUI_distributionChart_onlyStaticValuelist() |
| runs on EPTF_UIHandler_Test_ExternalData_CT{ |
| const charstring c_gui :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='DistributionChart window' width='800.000000'>"& |
| " <condition element='==' id='globaltrue' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Param1' value='2' />"& |
| " <dataparam name='Param2' value='2' />"& |
| " </params>"& |
| " <hbox flex='1.000000' id='Id' orientation='vertical'>"& |
| " <distributionchart id='dsId'>"& |
| " <intervallimits id='DSILId'>"& |
| " <value>0.000000</value>"& |
| " <value>1.000000</value>"& |
| " <value>2.000000</value>"& |
| " <value>3.000000</value>"& |
| " <value>4.000000</value>"& |
| " <value>5.000000</value>"& |
| " </intervallimits>"& |
| " <valuelist id='DCVLLId'>"& |
| " <value>0</value>"& |
| " <value>1</value>"& |
| " <value>2</value>"& |
| " <value>3</value>"& |
| " <value>4</value>"& |
| " <value>5</value>"& |
| " <value>6</value>"& |
| " </valuelist>"& |
| " <valuelist id='DCVLLId2'>"& |
| " <value>10</value>"& |
| " <value>11</value>"& |
| " <value>12</value>"& |
| " <value>13</value>"& |
| " <value>14</value>"& |
| " <value>15</value>"& |
| " <value>16</value>"& |
| " </valuelist>"& |
| " </distributionchart>"& |
| " </hbox>"& |
| " </condition>"& |
| " </window>"& |
| "</Widgets>"; |
| |
| f_EPTF_UIHandler_Test_newGUI_distributionChart(c_gui, c_expectedDistributionChartStatic); |
| } |
| |
| |
| private function f_EPTF_UIHandler_Test_newGUI_distributionChart(in charstring pl_gui, in template Widgets pl_expected) |
| runs on EPTF_UIHandler_Test_ExternalData_CT |
| { |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_DataSourceClient_dataHandler_DataSourceClientReady )); |
| f_EPTF_DataSourceClient_init_CT(f_EPTF_Base_selfName(), self); |
| |
| var integer vl_varIdx; |
| f_EPTF_Var_newIntegerlist("IntegerList", {0,1,2,3,4,5,6}, vl_varIdx); |
| f_EPTF_Var_newCharstringlist("CharstringList", {"0","1"}, vl_varIdx); |
| f_EPTF_Var_newFloatlist("IntervallimitList", {0.0,1.0,2.0,3.0,4.0,5.0}, vl_varIdx); |
| f_EPTF_Var_newInt("ECount1", 101, vl_varIdx) |
| |
| f_EPTF_DataSourceClient_registerData( |
| pl_source := "UIHandlerTest", |
| pl_ptcName := f_EPTF_Base_selfName(), |
| pl_dataHandler := refers(f_EPTF_DataSourceClient_dataHandler_distributionChart), |
| pl_sourceCompRef := self |
| ); |
| f_EPTF_DataSourceClient_sendReady("UIHandlerTest",f_EPTF_Base_selfName()); |
| |
| |
| |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| |
| |
| f_EPTF_UIHandler_createGUI(pl_gui); |
| |
| timer t_wait := 20.0, t_update := 1.0, t_checkGUI := 10.0; |
| t_wait.start; t_update.start; t_checkGUI.start; |
| alt { |
| [] t_checkGUI.timeout { |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received |
| dec_Widgets(char2oct(vl_snapshot),vl_received) |
| //action(vl_received); |
| //action(enc_Widgets(valueof(c_expected))); |
| |
| if(not match(vl_received,pl_expected)){ |
| setverdict(fail,log2str(match(vl_received,pl_expected))); |
| } |
| |
| repeat; |
| } |
| [] t_update.timeout { |
| var EPTF_IntegerList vl_currentValue := f_EPTF_Var_getIntegerlistValue(f_EPTF_Var_getId("IntegerList")); |
| for(var integer i:=0; i<sizeof(vl_currentValue); i:=i+1) { |
| vl_currentValue[i] := vl_currentValue[i] + i; |
| } |
| if(vl_currentValue[1]==10) { |
| vl_currentValue := {0,0,0,0,0,0,0} |
| } |
| f_EPTF_Var_adjustContent(f_EPTF_Var_getId("IntegerList"), {integerlistVal := vl_currentValue}); |
| t_update.start; |
| repeat; |
| } |
| [] t_wait.timeout {} |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUI_distributionChart_Order2 |
| // |
| // Purpose: To test the distribution chart in custom GUI |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUI_distributionChart_Order2() |
| runs on EPTF_UIHandler_Test_ExternalData_CT{ |
| const charstring c_gui := ""& |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='DistributionChart window' width='800.000000'>"& |
| " <condition element='==' id='globaltrue' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Param1' value='2' />"& |
| " <dataparam name='Param2' value='2' />"& |
| " </params>"& |
| " <hbox flex='1.000000' id='Id' orientation='vertical'>"& |
| " <distributionchart id='dsId'>"& |
| " <valuelist id='IntegerListValueList'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " <valuelist id='IntegerListValueList2'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " <intervallimits id='DSILId'>"& |
| " <value>0.000000</value>"& |
| " <value>1.000000</value>"& |
| " <value>2.000000</value>"& |
| " <value>3.000000</value>"& |
| " <value>4.000000</value>"& |
| " <value>5.000000</value>"& |
| " </intervallimits>"& |
| " <iterator id='itId' element='CharstringList' source='UIHandlerTest'>"& |
| " <valuelist id='DCVLLItId%itId%'>"& |
| " <value>1</value>"& |
| " <value>2</value>"& |
| " <value>4</value>"& |
| " <value>8</value>"& |
| " <value>12</value>"& |
| " <value>14</value>"& |
| " <value>15</value>"& |
| " </valuelist>"& |
| " <valuelist id='IntegerListValueList%itId%'>"& |
| " <externaldata element='IntegerList' source='UIHandlerTest'/>"& |
| " </valuelist>"& |
| " </iterator>"& |
| " <condition element='==' id='loctrue' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Param1' value='1' />"& |
| " <dataparam name='Param2' value='1' />"& |
| " </params>"& |
| " <insertif id='loctrue'>"& |
| " <valuelist id='DCVLLLocalCondId'>"& |
| " <value>0</value>"& |
| " <value>2</value>"& |
| " <value>4</value>"& |
| " <value>6</value>"& |
| " <value>4</value>"& |
| " <value>2</value>"& |
| " <value>0</value>"& |
| " </valuelist>"& |
| " </insertif>"& |
| " </condition>"& |
| " <insertif id='globaltrue'>"& |
| " <valuelist id='DCVLLGlobalCondId'>"& |
| " <value>16</value>"& |
| " <value>15</value>"& |
| " <value>12</value>"& |
| " <value>7</value>"& |
| " <value>3</value>"& |
| " <value>1</value>"& |
| " <value>0</value>"& |
| " </valuelist>"& |
| " </insertif>"& |
| " <valuelist id='DCVLLId'>"& |
| " <value>0</value>"& |
| " <value>1</value>"& |
| " <value>2</value>"& |
| " <value>3</value>"& |
| " <value>4</value>"& |
| " <value>5</value>"& |
| " <value>6</value>"& |
| " </valuelist>"& |
| " <valuelist id='DCVLLId2'>"& |
| " <value>10</value>"& |
| " <value>11</value>"& |
| " <value>12</value>"& |
| " <value>13</value>"& |
| " <value>14</value>"& |
| " <value>15</value>"& |
| " <value>16</value>"& |
| " </valuelist>"& |
| " </distributionchart>"& |
| " </hbox>"& |
| " </condition>"& |
| " </window>"& |
| "</Widgets>"; |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_DataSourceClient_dataHandler_DataSourceClientReady )); |
| f_EPTF_DataSourceClient_init_CT(f_EPTF_Base_selfName(), self); |
| |
| var integer vl_varIdx; |
| f_EPTF_Var_newIntegerlist("IntegerList", {0,1,2,3,4,5,6}, vl_varIdx); |
| f_EPTF_Var_newCharstringlist("CharstringList", {"0","1"}, vl_varIdx); |
| |
| f_EPTF_DataSourceClient_registerData( |
| pl_source := "UIHandlerTest", |
| pl_ptcName := f_EPTF_Base_selfName(), |
| pl_dataHandler := refers(f_EPTF_DataSourceClient_dataHandler_distributionChart), |
| pl_sourceCompRef := self |
| ); |
| f_EPTF_DataSourceClient_sendReady("UIHandlerTest",f_EPTF_Base_selfName()); |
| |
| |
| |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| |
| |
| f_EPTF_UIHandler_createGUI(c_gui); |
| template Widgets c_expected := { |
| window := { |
| height := 300.000000, |
| id := "Window", |
| orientation := vertical, |
| title := "DistributionChart window", |
| width := 800.000000, |
| image_list := { |
| |
| }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 1.000000, |
| id := "Id", |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| distributionchart := { |
| axisXLabel := omit, |
| axisYLabel := omit, |
| backgroundcolor := omit, |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| gridcolor := omit, |
| id := "dsId", |
| labeltype := *, |
| orientation := *, |
| showlegend := omit, |
| title := omit, |
| tooltiptext := omit, |
| externaldatagroups := { |
| externaldatagroup_list := { |
| {intervallimits := { |
| id := "DSILId", |
| choice := { value_list := {0.0,1.0,2.0,3.0,4.0,5.0}} |
| }}, |
| {valuelist_list := { |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| }, |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| }, |
| // iterator itId |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {1,2,4,8,12,14,15} |
| }, |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| }, |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {1,2,4,8,12,14,15} |
| }, |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {?,?,?,?,?,?,?} |
| }, |
| // condition element='==' id='loctrue |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {0,2,4,6,4,2,0} |
| }, |
| //insertif id='globaltrue' |
| { |
| color := omit, |
| id := ?, |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {16,15,12,7,3,1,0} |
| }, |
| { |
| color := omit, |
| id := "DCVLLId", |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {0,1,2,3,4,5,6} |
| }, |
| { |
| color := omit, |
| id := "DCVLLId2", |
| labeltype := omit, |
| legend := *, |
| tooltiptext := omit, |
| externaldata := omit, |
| value_list := {10,11,12,13,14,15,16} |
| } |
| } } |
| } |
| } |
| |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| timer t_wait := 20.0, t_update := 1.0, t_checkGUI := 10.0; |
| t_wait.start; t_update.start; t_checkGUI.start; |
| alt { |
| [] t_checkGUI.timeout { |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received |
| dec_Widgets(char2oct(vl_snapshot),vl_received) |
| if(not match(vl_received,c_expected)){ |
| setverdict(fail,log2str(match(vl_received,c_expected))); |
| } |
| repeat; |
| } |
| [] t_update.timeout { |
| var EPTF_IntegerList vl_currentValue := f_EPTF_Var_getIntegerlistValue(f_EPTF_Var_getId("IntegerList")); |
| for(var integer i:=0; i<sizeof(vl_currentValue); i:=i+1) { |
| vl_currentValue[i] := vl_currentValue[i] + i; |
| } |
| if(vl_currentValue[1]==10) { |
| vl_currentValue := {0,0,0,0,0,0,0} |
| } |
| f_EPTF_Var_adjustContent(f_EPTF_Var_getId("IntegerList"), {integerlistVal := vl_currentValue}); |
| t_update.start; |
| repeat; |
| } |
| [] t_wait.timeout {} |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| } // group Test_distributionChart |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUIIterator |
| // |
| // Purpose: To test iterator::idx and iterator::count |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUIIteratorExtension() |
| runs on EPTF_UIHandler_Test_CT{ |
| var Widgets vl_xul := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, |
| /*embeddedwidgets :=*/ {{ |
| { iterator := { /*element*/ "LGenList", |
| /*id*/ "itId1", |
| omit, |
| omit, |
| /*source*/ "ExecCtrl" , |
| omit, |
| {{{ label_ := {omit, omit, omit, omit, omit, omit, omit, "Iterator number %itId1::idx% out of %itId1::count% : TitanSim %itId1%!", omit }}} |
| }}}, |
| { label_ := {omit, omit, omit, omit, omit, omit, omit, "Bye TitanSim!", omit }} |
| }} |
| }};//xul |
| |
| template Widgets vl_xul2 := { window := { |
| omit, 800.0, omit, "newGUITestid",vertical,"newGUITest",800.0, |
| {}, {{ |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator number 0 out of 3 : TitanSim LGen1!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator number 1 out of 3 : TitanSim LGen2!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Iterator number 2 out of 3 : TitanSim LGen3!", omit }}, |
| { label_ := {omit, omit, omit, omit, tr_EPTF_UIHandler_Test_anyWidgetID, omit, omit, "Bye TitanSim!", omit }} |
| }} |
| }};//xul |
| f_EPTF_UIHandler_Test_CheckGUI(vl_xul,vl_xul2); |
| setverdict(pass); |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUILabelWithExternalData_XML |
| // |
| // Purpose: To test externaldata given in label |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_newGUILabelWithExternalData_XML() |
| runs on EPTF_UIHandler_Test_CT{ |
| f_EPTF_UIHandler_Test_CheckGUIFromFile("label2.xml" , "label2_result.xml"); |
| setverdict(pass); |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_BadXML_openText |
| // |
| // Purpose: To test if the createGUI returns proper error message |
| // when a string attribute is not closed. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_BadXML_openText() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <hbox flex='0.000000 orientation='horizontal'>"& |
| " </hbox>"& |
| " </iterator>"& |
| " </window>"& |
| "</Widgets>" |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_Base_setExpectedErrorMsg("*The received XML is invalid*"); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_BadXML_noBubu |
| // |
| // Purpose: To test if the createGUI returns proper error message |
| // when there is an unknown widget type in the XML. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_BadXML_noBubu() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <bubu flex='0.000000' orientation='horizontal'>"& |
| " </bubu>"& |
| " </iterator>"& |
| " </window>"& |
| "</Widgets>" |
| var Widgets v |
| var integer i := dec_Widgets(char2oct(c_gui), v); |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_Base_setExpectedErrorMsg("*The received XML is invalid*"); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_BadXML_noCloseTag |
| // |
| // Purpose: To test if the createGUI returns proper error message |
| // when there is a missing closing tag in the XML. |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_BadXML_noCloseTag() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <hbox flex='0.000000' orientation='horizontal'>"& |
| " </iterator>"& |
| " </window>"& |
| "</Widgets>" |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_Base_setExpectedErrorMsg("*The received XML is invalid*"); |
| // action("K.I. - tc_EPTF_UIHandler_Test_BadXML_noCloseTag->",c_gui); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_treeExternalNotEditable |
| // |
| // Purpose: To test if the createGUI runs without error |
| // when there is an external data attached to a cell |
| // which is in a column where there is no "editable" |
| // attribute defined. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_treeExternalNotEditable() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <tree disabled='false' hidecolumnpicker='false' id='tree'>"& |
| " <treecols>"& |
| " <treecol flex='1.000000' label='1' widgetType='integerField'/>"& |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='cell1' label='1'>"& |
| " <externaldata element='button1' source='dsclient'>"& |
| " </externaldata>"& |
| " </treecell>"& |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT("disableWidgetsOfVar"); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_ManualTest_disableWidgetsOfVarClientBehavior(self)); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{T_guard.stop;} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_emptyTabpanels |
| // |
| // Purpose: To test if the createGUI runs through |
| // when there is an tabpanel which has no embedded widgets. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_emptyTabpanels() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <tabbox flex='1.000000'>"& |
| " <tabs>"& |
| " <tab label='1'/>"& |
| " <tab label='2'/>"& |
| " </tabs>"& |
| " <tabpanels>"& |
| " <tabpanel>"& |
| " </tabpanel>"& |
| " <tabpanel>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <label value='tab2'/>"& |
| " </hbox>"& |
| " </tabpanel>"& |
| " </tabpanels>"& |
| " </tabbox>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT("disableWidgetsOfVar"); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_ManualTest_disableWidgetsOfVarClientBehavior(self)); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{T_guard.stop;} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_treeExternalNoID |
| // |
| // Purpose: To test if the createGUI returns the proper error |
| // when there is an external data attached to a cell |
| // which has no ID defined. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_treeExternalNoID() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='window' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <tree disabled='false' hidecolumnpicker='false' id='tree'>"& |
| " <treecols>"& |
| " <treecol flex='1.000000' label='1' widgetType='integerField'/>"& |
| " <treecol flex='1.000000' label='2' widgetType='integerField'/>"& |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell>"& |
| " <externaldata element='EntityCount' source='ExecCtrl'>"& |
| " <params> <dataparam name='EntityGroup' value='EG2'></dataparam> </params>"& |
| " </externaldata>"& |
| " </treecell>"& |
| " <treecell>"& |
| " <externaldata element='EntityCount' source='ExecCtrl'>"& |
| " <params> <dataparam name='EntityGroup' value='EG3'></dataparam> </params>"& |
| " </externaldata>"& |
| " </treecell>"& |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT("disableWidgetsOfVar"); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self)); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{T_guard.stop;} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| T_guard.start( tsp_EPTF_Var_SyncInterval+0.2 ); |
| T_guard.timeout; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received |
| dec_Widgets(char2oct(vl_snapshot),vl_received) |
| //action(vl_received); |
| const Widgets c_expected :={ |
| window := { |
| about := omit, |
| height := 300.000000, |
| help := omit, |
| id := "Window", |
| orientation := vertical, |
| title := "window", |
| width := 800.000000, |
| image_list := { |
| |
| }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 1.000000, |
| id := "UIHandler_widgetId_0", |
| orientation := horizontal, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| tree := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| hidecolumnpicker := true, |
| id := "tree", |
| rows := 1.000000, |
| treecols := { |
| treecolgroups := { |
| treecolgroup_list := { |
| { |
| treecol := { |
| align := omit, |
| customclass := omit, |
| disabledongui := omit, |
| editable := omit, |
| flex := 1.000000, |
| id := "UIHandler_widgetId_1", |
| label_ := "1", |
| tooltiptext := omit, |
| treecellalign := omit, |
| widgetType := integerField |
| } |
| }, |
| { |
| treecol := { |
| align := omit, |
| customclass := omit, |
| disabledongui := omit, |
| editable := omit, |
| flex := 1.000000, |
| id := "UIHandler_widgetId_2", |
| label_ := "2", |
| tooltiptext := omit, |
| treecellalign := omit, |
| widgetType := integerField |
| } |
| } |
| } |
| } |
| }, |
| treechildren := { |
| treeitemgroups := { |
| treeitemgroup_list := { |
| { |
| treeitem := { |
| treerowgroups := { |
| treerowgroup_list := { |
| { |
| treerow := { |
| treecellgroups := { |
| treecellgroup_list := { |
| { |
| treecell := { |
| align := omit, |
| customclass := omit, |
| id := "UIHandler_widgetId_3", |
| imageid := omit, |
| label_ := "102", |
| tooltiptext := omit, |
| visible := omit, |
| externaldata := omit |
| } |
| }, |
| { |
| treecell := { |
| align := omit, |
| customclass := omit, |
| id := "UIHandler_widgetId_4", |
| imageid := omit, |
| label_ := "103", |
| tooltiptext := omit, |
| visible := omit, |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| if(not match(vl_received,c_expected)){ |
| setverdict ( fail, log2str(match(vl_received,c_expected)) ); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| group HP{ |
| testcase tc_UIHandler_reconnect_HP46174_tree() runs on EPTF_UIHandler_CT{ |
| const Tree c_HP46174_tree:= { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 12.000000, |
| /*hidecolumnpicker :=*/ true, |
| /*id :=*/ "EPTF_Main_LED_Panel", |
| /*rows :=*/ 1.000000, |
| /*treecols :=*/ { |
| /*treecolgroups :=*/ { |
| /*treecolgroup_list :=*/ { } |
| } |
| }, |
| /*treechildren :=*/ { |
| treeitemgroups := { |
| treeitemgroup_list := { |
| { |
| treeitem := { |
| treerowgroups := { |
| treerowgroup_list := { |
| { |
| treerow := { |
| treecellgroups := { |
| treecellgroup_list := { } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| f_EPTF_UIHandler_init_CT(%definitionId, false); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| var boolean vl_widgetExists; |
| f_EPTF_UIHandler_XSD_addElementToGui({tree := c_HP46174_tree}, tsp_EPTF_GUI_Main_Window_WidgetId, vl_widgetExists); |
| var Treecol c_HP46174_col := { |
| /*align*/ omit, |
| /*customclass :=*/ omit, |
| /*disabledongui*/ omit, |
| /*editable*/ omit, |
| /*flex*/ omit, |
| /*id*/ "col1", |
| /*label_*/ "col1", |
| /*tooltiptext*/ omit, |
| /*treecellalign*/ omit, |
| /*widgetType*/ checkBox |
| } |
| f_EPTF_UIHandler_XSD_addElementToGui({treecol := c_HP46174_col}, "EPTF_Main_LED_Panel", vl_widgetExists); |
| //action(f_EPTF_UIHandler_logWidgetDB(true)); |
| c_HP46174_col.id := "col2" |
| c_HP46174_col.label_ := "col2" |
| f_EPTF_UIHandler_XSD_addElementToGui({treecol := c_HP46174_col}, "EPTF_Main_LED_Panel", vl_widgetExists); |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_snapshotXUL := f_EPTF_UIHandler_XSD_decodeXUL(vl_snapshot); |
| //action(vl_snapshotXUL) |
| //action(f_EPTF_UIHandler_logWidgetDB(true)); |
| template Widgets c_HP46174_expected := { |
| window := { |
| about := omit, height := tsp_EPTF_GUI_Main_Window_Height, help := omit, id := tsp_EPTF_GUI_Main_Window_WidgetId, |
| orientation := vertical, title := tsp_EPTF_GUI_Main_Window_Title, width := tsp_EPTF_GUI_Main_Window_Width, |
| image_list := { }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| tree := { |
| customclass := omit, disabled := omit, disabledongui := omit, flex := 12.000000, hidecolumnpicker := true, id := "EPTF_Main_LED_Panel", rows := 1.000000, treecols := { |
| treecolgroups := { |
| treecolgroup_list := { |
| { |
| treecol := { |
| align := omit, customclass := omit, disabledongui := omit, editable := omit, flex := omit, id := "col1", label_ := "col1", tooltiptext := omit, treecellalign := omit, widgetType := checkBox |
| } |
| }, { |
| treecol := { |
| align := omit, customclass := omit, disabledongui := omit, editable := omit, flex := omit, id := "col2", label_ := "col2", tooltiptext := omit, treecellalign := omit, widgetType := checkBox |
| } |
| } |
| } |
| } |
| }, treechildren := { |
| treeitemgroups := { |
| treeitemgroup_list := { |
| { |
| treeitem := { |
| treerowgroups := { |
| treerowgroup_list := { |
| { |
| treerow := { |
| treecellgroups := { |
| treecellgroup_list := { |
| { |
| treecell := { |
| align := omit, customclass := omit, id :="UIHandler_widgetId_0", imageid := omit, label_ := omit, tooltiptext := omit, visible := omit, externaldata := omit |
| } |
| }, { |
| treecell := { |
| align := omit, customclass := omit, id := "UIHandler_widgetId_1", imageid := omit, label_ := omit, tooltiptext := omit, visible := omit, externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| if(not match ( vl_snapshotXUL, c_HP46174_expected )){ |
| setverdict ( fail, log2str(match ( vl_snapshotXUL, c_HP46174_expected )) ); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| |
| testcase tc_UIHandler_reconnect_HP46174_tabs() runs on EPTF_UIHandler_CT{ |
| const Widgets c_HP46174_mainTabpages:= |
| { |
| tabpages := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := "EPTF_Main_Tabbox", |
| layout := omit, |
| tabpagegroups := {{}} |
| } |
| } |
| /* |
| <xsd:attribute name="orientation" type="orientation" /> |
| <xsd:attribute name="maxheight" type="xsd:decimal" /> |
| <xsd:attribute name="label" type="xsd:string" use="required" /> |
| <xsd:attribute name="tooltiptext" type="xsd:string" /> |
| <xsd:attributeGroup ref="commonAttrs" / |
| |
| <xsd:attribute name="id" type="xsd:string"/> |
| <xsd:attribute name="disabledongui" type="xsd:boolean" /> |
| <xsd:attribute name="customclass" type="xsd:string"/> |
| |
| */ |
| const Widgets c_HP46174_tabpage:= |
| { |
| tabpage := { |
| customclass := omit, |
| disabledongui := omit, |
| id := "HostAdminTabId", |
| label_ := "HostAdmin", |
| maxheight := omit, |
| orientation := omit, |
| tooltiptext := omit, |
| embeddedwidgets := {{}} |
| } |
| } |
| |
| const Widgets c_HP46174_tabPage:= |
| { |
| tabpage := { |
| customclass := omit, |
| disabledongui := omit, |
| id := "HostAdminUI_Tabpanel1_Id", |
| label_ := "nobody", |
| maxheight := omit, |
| orientation := vertical, |
| tooltiptext := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| /* |
| <xsd:sequence> |
| <xsd:element name="treecols" type="treecols" minOccurs="1" /> |
| <xsd:element name="treechildren" type="treechildren" /> |
| </xsd:sequence> |
| <xsd:attribute name="rows" type="xsd:decimal" /> |
| <xsd:attribute name="hidecolumnpicker" type="xsd:boolean" /> |
| <xsd:attribute name="flex" type="xsd:decimal" /> |
| <xsd:attribute name="disabled" type="xsd:boolean" /> |
| <xsd:attributeGroup ref="commonAttrs" / |
| |
| <xsd:attribute name="id" type="xsd:string"/> |
| <xsd:attribute name="disabledongui" type="xsd:boolean" /> |
| <xsd:attribute name="customclass" type="xsd:string"/> |
| */ |
| tree := { |
| customclass := omit, |
| disabled := false, |
| disabledongui := omit, |
| flex := omit, |
| hidecolumnpicker := omit, |
| id := "HostAdminTreeId", |
| rows := 0.000000, |
| treecols := { |
| treecolgroups := { |
| treecolgroup_list := { |
| { |
| treecol := { |
| /* |
| <xsd:attribute name="label" type="xsd:string" use="required" /> |
| <xsd:attribute name="flex" type="xsd:decimal" /> |
| <xsd:attribute name="widgetType" type="widgettype" use="required" /> |
| <xsd:attribute name="editable" type="xsd:boolean" /> |
| <xsd:attribute name="tooltiptext" type="xsd:string" /> |
| <xsd:attribute name="align" type="align" /> |
| <xsd:attribute name="treecellalign" type="align" /> |
| <xsd:attributeGroup ref="commonAttrs" /> |
| |
| <xsd:attribute name="id" type="xsd:string"/> |
| <xsd:attribute name="disabledongui" type="xsd:boolean" /> |
| <xsd:attribute name="customclass" type="xsd:string"/> |
| |
| Align align optional, |
| XSD.String customclass optional, |
| XSD.Boolean disabledongui optional, |
| XSD.Boolean editable optional, |
| XSD.Decimal flex optional, |
| XSD.String id optional, |
| XSD.String label_, |
| XSD.String tooltiptext optional, |
| Align treecellalign optional, |
| Widgettype widgetType |
| |
| */ |
| align := omit, |
| customclass := omit, |
| disabledongui := omit, |
| editable := false, |
| flex := omit, |
| id := "HostAdminTreeHostnameColID", |
| label_ := "Host", |
| tooltiptext := omit, |
| treecellalign := omit, |
| widgetType := string |
| } |
| }, |
| { |
| treecol := { |
| align := omit, |
| customclass := omit, |
| disabledongui := omit, |
| editable := false, |
| flex := omit, |
| id := "HostAdminTreeHostValueColID", |
| label_ := "CPU Load", |
| tooltiptext := omit, |
| treecellalign := omit, |
| widgetType := floatField |
| } |
| } |
| } |
| } |
| }, |
| treechildren := { |
| treeitemgroups := { |
| treeitemgroup_list := {} |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| f_EPTF_UIHandler_init_CT(%definitionId, false); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| var boolean vl_widgetExists; |
| f_EPTF_UIHandler_XSD_addElementToGui(c_HP46174_mainTabpages, tsp_EPTF_GUI_Main_Window_WidgetId, vl_widgetExists); |
| // The widget id case sensitive so EPTF_Main_tabbox != EPTF_Main_Tabbox => Not added |
| f_EPTF_UIHandler_XSD_addElementToGui(c_HP46174_tabpage, "EPTF_Main_tabbox", vl_widgetExists); |
| // Not added becouse its parent HostAdminTabId not added previously |
| f_EPTF_UIHandler_XSD_addElementToGui(c_HP46174_tabPage, "HostAdminTabId", vl_widgetExists); |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_snapshotXUL := f_EPTF_UIHandler_XSD_decodeXUL(vl_snapshot); |
| //action(vl_snapshotXUL) |
| var Widgets c_HP46174_tabExpected := { |
| window := { |
| about := omit, height := tsp_EPTF_GUI_Main_Window_Height, help := omit, id := tsp_EPTF_GUI_Main_Window_WidgetId, |
| orientation := vertical, title := tsp_EPTF_GUI_Main_Window_Title, width := tsp_EPTF_GUI_Main_Window_Width, |
| image_list := { }, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| tabpages := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := "EPTF_Main_Tabbox", |
| layout := omit, |
| tabpagegroups := {{}} |
| } |
| } |
| } |
| } |
| } |
| } |
| if(not match ( vl_snapshotXUL, c_HP46174_tabExpected )){ |
| setverdict ( fail, log2str(match ( vl_snapshotXUL, c_HP46174_tabExpected )) ); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| } |
| |
| type component EPTF_UIHandler_Var_CT extends EPTF_UIHandler_CT, EPTF_Var_CT, EPTF_UIHandlerClient_CT{} |
| |
| testcase tc_UIHandler_reconnect_HP58489_treecell() runs on EPTF_UIHandler_Var_CT{ |
| //TODO DTE erre |
| const Tree c_HP58489_tree:= { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 12.000000, |
| /*hidecolumnpicker :=*/ true, |
| /*id :=*/ "EPTF_Main_LED_Panel", |
| /*rows :=*/ 2.000000, |
| /*treecols :=*/ { |
| /*treecolgroups :=*/ { |
| /*treecolgroup_list :=*/ { } |
| } |
| }, |
| /*treechildren :=*/ {} |
| } |
| |
| |
| const Tree c_HP46174_tree:= { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 12.000000, |
| /*hidecolumnpicker :=*/ true, |
| /*id :=*/ "EPTF_Main_LED_Panel", |
| /*rows :=*/ 2.000000, |
| /*treecols :=*/ { |
| /*treecolgroups :=*/ { |
| /*treecolgroup_list :=*/ { } |
| } |
| }, |
| /*treechildren :=*/ { |
| treeitemgroups := { |
| treeitemgroup_list := { |
| { |
| treeitem := { |
| treerowgroups := { |
| treerowgroup_list := { |
| { |
| treerow := { |
| treecellgroups := { |
| treecellgroup_list := { } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| |
| |
| f_EPTF_Var_init_CT(%definitionId); |
| f_EPTF_UIHandler_init_CT(%definitionId, true); |
| f_EPTF_UIHandlerClient_init_CT(%definitionId, self); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| var boolean vl_widgetExists; |
| f_EPTF_UIHandler_XSD_addElementToGui({tree := c_HP46174_tree}, tsp_EPTF_GUI_Main_Window_WidgetId, vl_widgetExists); |
| |
| action("What do we see"); |
| timer T_timer; |
| T_timer.start(1.0); |
| T_timer.timeout; |
| |
| var charstring vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treecol editable='true' label='collabel 0' widgetType='statusLEDWithText'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_LED_Panel"); |
| |
| vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treecol editable='true' label='collabel 1' widgetType='statusLEDWithText'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_LED_Panel"); |
| |
| action("1 row"); |
| T_timer.start(1.0); |
| T_timer.timeout; |
| |
| var EPTF_IntegerList vl_LEDs; |
| //Put status LEDs onto the GUI |
| for(var integer vl_j := 0; vl_j < 2; vl_j := vl_j + 1) |
| { |
| f_EPTF_Var_newStatusLED( "SCCP_Active 0"&"."&int2str(vl_j), |
| {color:=led_red,text := "down0"&"."&int2str(vl_j)}, |
| vl_LEDs[vl_j]); |
| f_EPTF_UIHandlerClient_subscribeMe("SCCP_Active 0."&int2str(vl_j), |
| "SCCP_Active 0."&int2str(vl_j)&"_widget", |
| "EPTF_Main_LED_Panel"&"."&int2str(vl_j)&".0", |
| realtime); |
| } |
| |
| action("2 rows"); |
| T_timer.start(1.0); |
| T_timer.timeout; |
| |
| //Put status LEDs onto the GUI |
| for(var integer vl_j := 0; vl_j < 2; vl_j := vl_j + 1) |
| { |
| f_EPTF_Var_newStatusLED( "SCCP_Active 1"&"."&int2str(vl_j), |
| {color:=led_red,text := "down1"&"."&int2str(vl_j)}, |
| vl_LEDs[vl_j+2]); |
| f_EPTF_UIHandlerClient_subscribeMe("SCCP_Active 1."&int2str(vl_j), |
| "SCCP_Active 1."&int2str(vl_j)&"_widget", |
| "EPTF_Main_LED_Panel"&"."&int2str(vl_j)&".1", |
| realtime); |
| } |
| |
| action("before adding a column"); |
| T_timer.start(2.0); |
| T_timer.timeout; |
| vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treecol editable='true' label='collabel 2' widgetType='statusLEDWithText'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_LED_Panel"); |
| |
| action("After adding new column, putting LEDs into them"); |
| T_timer.start(2.0); |
| T_timer.timeout; |
| |
| //Put status LEDs onto the GUI |
| for(var integer vl_j := 0; vl_j < 2; vl_j := vl_j + 1) |
| { |
| f_EPTF_Var_newStatusLED( "SCCP_Active 2"&"."&int2str(vl_j), |
| {color:=led_red,text := "down2"&"."&int2str(vl_j)}, |
| vl_LEDs[vl_j+4]); |
| f_EPTF_UIHandlerClient_subscribeMe("SCCP_Active 2."&int2str(vl_j), |
| "SCCP_Active 2."&int2str(vl_j)&"_widget", |
| "EPTF_Main_LED_Panel"&"."&int2str(vl_j)&".2", |
| realtime); |
| } |
| |
| action("Adding new column without LEDs"); |
| vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treecol editable='true' label='collabel 3' widgetType='statusLEDWithText'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_LED_Panel"); |
| |
| action("Adding new column with LEDs"); |
| T_timer.start(2.0); |
| T_timer.timeout; |
| vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<treecol editable='true' label='collabel 4' widgetType='statusLEDWithText'/>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "EPTF_Main_LED_Panel"); |
| |
| //Put status LEDs onto the GUI |
| for(var integer vl_j := 0; vl_j < 2; vl_j := vl_j + 1) |
| { |
| f_EPTF_Var_newStatusLED( "SCCP_Active 4"&"."&int2str(vl_j), |
| {color:=led_red,text := "down4"&"."&int2str(vl_j)}, |
| vl_LEDs[vl_j+6]); |
| f_EPTF_UIHandlerClient_subscribeMe("SCCP_Active 4."&int2str(vl_j), |
| "SCCP_Active 4."&int2str(vl_j)&"_widget", |
| "EPTF_Main_LED_Panel"&"."&int2str(vl_j)&".4", |
| realtime); |
| } |
| |
| action("please reconnect final"); |
| T_timer.start(60.0); |
| T_timer.timeout; |
| |
| f_EPTF_Base_stop(pass); |
| } |
| |
| testcase tc_UIHandler_WidgetIdContainsSpaceBar() runs on EPTF_UIHandler_Var_CT{ |
| const Tree c_WidgetIdContainsSpaceBar_tree:= { |
| /*customclass :=*/ omit, |
| /*disabled :=*/ omit, |
| /*disabledongui :=*/ omit, |
| /*flex :=*/ 12.000000, |
| /*hidecolumnpicker :=*/ true, |
| /*id :=*/ "EPTF_Main_LED_Panel", |
| /*rows :=*/ 2.000000, |
| /*treecols :=*/ { |
| /*treecolgroups :=*/ { |
| /*treecolgroup_list :=*/ { } |
| } |
| }, |
| /*treechildren :=*/ { |
| treeitemgroups := { |
| treeitemgroup_list := { |
| { |
| treeitem := { |
| treerowgroups := { |
| treerowgroup_list := { |
| { |
| treerow := { |
| treecellgroups := { |
| treecellgroup_list := { } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| |
| f_EPTF_Var_init_CT(%definitionId); |
| f_EPTF_UIHandler_init_CT(%definitionId, true); |
| f_EPTF_UIHandlerClient_init_CT(%definitionId, self); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| var boolean vl_dummyRetVal; |
| vl_dummyRetVal := f_EPTF_UIHandlerClient_XUL_XSD_addEmptyTabbox(tsp_EPTF_GUI_Main_Window_WidgetId, "tabbox_widget_id"); |
| vl_dummyRetVal := f_EPTF_UIHandlerClient_XUL_addTab("tabbox_widget_id", "tab widget id", "Tab label"); |
| vl_dummyRetVal := f_EPTF_UIHandlerClient_XUL_addLabel("tab widget id", "NewLabel on a tab with space id") |
| |
| action("wait"); |
| timer T_timer; |
| T_timer.start(3.0); |
| T_timer.timeout; |
| |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_snapshotXUL := f_EPTF_UIHandler_XSD_decodeXUL(vl_snapshot); |
| |
| var Widgets c_tabExpected := { window := { |
| about := omit, |
| height := tsp_EPTF_GUI_Main_Window_Height, |
| help := omit, |
| id := tsp_EPTF_GUI_Main_Window_WidgetId, |
| orientation := vertical, |
| title := tsp_EPTF_GUI_Main_Window_Title, |
| width := tsp_EPTF_GUI_Main_Window_Width, |
| image_list := { }, |
| embeddedwidgets := { embeddedwidget_list := { |
| { tabpages := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := 1.000000, |
| id := "tabbox_widget_id", |
| layout := omit, |
| tabpagegroups := { tabpagegroup_list := { |
| { tabpage := { |
| customclass := omit, |
| disabledongui := omit, |
| id := "tab widget id", |
| label_ := "Tab label", |
| maxheight := omit, |
| orientation := vertical, |
| tooltiptext := omit, |
| embeddedwidgets := { embeddedwidget_list := { |
| { label_ := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| id := omit, // paradox: "UIHandler_widgetId_0" |
| style := omit, |
| tooltiptext := omit, |
| value_ := "NewLabel on a tab with space id", |
| externaldata := omit } } } } } } } } } } } } } } |
| if(not match ( vl_snapshotXUL, c_tabExpected )){ |
| setverdict ( fail, log2str(match ( vl_snapshotXUL, c_tabExpected )) ); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| testcase tc_UIHandler_WidgetIdContainsSpaceBar2() runs on EPTF_UIHandler_Var_CT{ |
| |
| |
| f_EPTF_Var_init_CT(%definitionId); |
| f_EPTF_UIHandler_init_CT(%definitionId, true); |
| f_EPTF_UIHandlerClient_init_CT(%definitionId, self); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| var boolean vl_dummyRetVal; |
| vl_dummyRetVal := f_EPTF_UIHandlerClient_XUL_XSD_addEmptyTabbox(tsp_EPTF_GUI_Main_Window_WidgetId, "tabbox widget id"); |
| vl_dummyRetVal := f_EPTF_UIHandlerClient_XUL_addTab("tabbox widget id", "tab widget id", "Tab label"); |
| vl_dummyRetVal := f_EPTF_UIHandlerClient_XUL_addLabel("tab widget id", "NewLabel on a tab with space id") |
| |
| |
| |
| action("What do we see"); |
| timer T_timer; |
| T_timer.start(1.0); |
| T_timer.timeout; |
| |
| var charstring vl_xul :="<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<textbox flex='1.000000' id='text with spaces' multiline='false' readonly='true' value=''>\n\t<externaldata element='Sources' source='DataSource'></externaldata>\n\t</textbox>\n</Widgets>\n\n" |
| f_EPTF_UIHandlerClient_createGUI(vl_xul, "tab widget id"); |
| |
| |
| action("wait"); |
| T_timer.start(3.0); |
| T_timer.timeout; |
| |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_snapshotXUL := f_EPTF_UIHandler_XSD_decodeXUL(vl_snapshot); |
| f_EPTF_UIHandler_printAllXMLfor_Tests(); |
| // action("K.I. - vl_snapshotXUL:", vl_snapshotXUL); |
| |
| var Widgets c_tabExpected := { window := { about := omit, height := 300.000000, help := omit, id := "MyNewEPTFMainWindow", orientation := vertical, |
| title := "My TTCN constructed window", width := 800.000000, image_list := { }, |
| embeddedwidgets := { embeddedwidget_list := { { tabpages := { customclass := omit, |
| disabled := omit, disabledongui := omit, flex := 1.000000, |
| id := "tabbox widget id", layout := omit, tabpagegroups := { |
| tabpagegroup_list := { { tabpage := { customclass := omit, disabledongui := omit, |
| id := "tab widget id", label_ := "Tab label", maxheight := omit, |
| orientation := vertical, tooltiptext := omit, |
| embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := omit, |
| disabledongui := omit, flex := omit, id := omit, style := omit, tooltiptext := omit, |
| value_ := "NewLabel on a tab with space id", externaldata := omit } }, |
| { textbox := { customclass := omit, disabled := true, disabledongui := omit, flex := omit, focusafterchange := omit, |
| id := "text with spaces", multiline := omit, readonly := true, rows := omit, tooltiptext := omit, |
| value_ := "{ \"DataSource\", \"StatManager\", \"UIHandler\" }", widgetType := omit, wrap := omit, externaldata := omit } |
| } } } } } } } } } } } } }; |
| |
| if(match(vl_snapshotXUL, c_tabExpected)){ |
| setverdict(pass, "GUI is the same as expected."); |
| }else{ |
| setverdict(fail,log2str(match (vl_snapshotXUL, c_tabExpected))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_buildXUL |
| // |
| // Purpose: Testing of the snapshot generation and measure the time needed for generating a snapshot. |
| // |
| // Action: The testcase creates a gui from an xml file after the initialization. The gui does not connect to the runtime gui. |
| // The testcase creates a snapshot when the gui is created. The snapshot is checked based on a reference snapshot that was created with |
| // the previous version of the f_EPTF_UIHandler_buildXUL() function. The snapshots are checked after decoding. The testcase measures |
| // the average time needed for creating a snapshot. |
| // |
| // Expected Result: pass verdict. The testcase checks if the created snapshot is the same as the reference one. The testcase has pass verdict |
| // if the match function has a true outcome. If the two snapshots are different, the test fails. |
| /////////////////////////////////////////////////////////// |
| |
| modulepar integer tsp_snapshotRuns := 500; |
| testcase tc_EPTF_UIHandler_Test_buildXUL() |
| runs on EPTF_UIHandler_Test_CT{ |
| |
| var charstring vl_fileName := "UIHandlerTest_initGUI.xml"; |
| var charstring vl_fileNameSnapshot := "UIHandlerTest_snapshot.xml"; |
| var charstring vl_snapshotOld; |
| const float cl_timerRun := 1000000000.0; |
| var boolean vl_createGUI := false; |
| var charstring vl_snapshotNew; |
| var float vl_sumSnaphotGenerate := 0.0; |
| var float vl_averageSnaphotGenerate := 0.0; |
| |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent", vl_createGUI ); |
| f_EPTF_UIHandler_clearGUI(); |
| |
| vl_createGUI := f_EPTF_UIHandler_createGUIFromFile(vl_fileName); |
| if(not(vl_createGUI)){ |
| setverdict(fail, "Cannot create GUI from file!"); |
| } |
| |
| for(var integer vl_i := 0; vl_i < tsp_snapshotRuns; vl_i := vl_i + 1){ |
| timer TL_createSnapshot := cl_timerRun; |
| TL_createSnapshot.start; |
| vl_snapshotNew := f_EPTF_UIHandler_snapshot(); |
| vl_sumSnaphotGenerate := vl_sumSnaphotGenerate + TL_createSnapshot.read; |
| |
| TL_createSnapshot.stop; |
| |
| } |
| |
| vl_averageSnaphotGenerate := vl_sumSnaphotGenerate/int2float(tsp_snapshotRuns); |
| log("Average snapshot generation time: "&float2str(vl_averageSnaphotGenerate)); |
| |
| if(not(f_EPTF_UIHandler_readFileToCharstring(vl_fileNameSnapshot, vl_snapshotOld))){ |
| setverdict(fail, "Cannot read old file!"); |
| } |
| var Widgets vl_newWidgets := f_EPTF_UIHandler_XSD_decodeXUL(vl_snapshotNew); |
| var Widgets vl_oldWidgets := f_EPTF_UIHandler_XSD_decodeXUL(vl_snapshotOld); |
| if(not(match ( vl_newWidgets, vl_oldWidgets ))){ |
| setverdict(fail, match ( vl_newWidgets, vl_oldWidgets )); |
| } |
| f_EPTF_Base_stopAll(pass); |
| |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<xul:Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <xul:window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <xul:hbox flex='1.000000' id='hbox_1' orientation='horizontal'>"& |
| " <xul:label id='label_rep_1' value='0 and pair'/>"& |
| " <xul:tabpages flex='1.000000' id='tabpages_1'>"& |
| " <xul:iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <xul:condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <xul:params>"& |
| " <xul:dataparam name='Scenarios' value='%sc%'/>"& |
| " </xul:params>"& |
| " <xul:insertif id='w' negate='true'>"& |
| " <xul:tabpage label='pair %sc%' id='tabpage_insertif_1_%sc::idx%'>"& |
| " <xul:label value='pair::idx %sc::idx%' id='label_1_%sc::idx%' />"& |
| " <xul:label value='pair::count %sc::count%' id='label_1_count_%sc::idx%'/>"& |
| " <xul:label value='pair::ref %sc::ref%' id='label_1_ref_%sc::idx%'/>"& |
| " <xul:iterator element='LGenList' id='lgen' source='ExecCtrl'>"& |
| " <xul:label value='%sc% - %lgen%' id='label_0_%sc::idx%_%lgen::idx%'/>"& |
| " <xul:iterator element='EntityGroups' id='eg' source='ExecCtrl'>"& |
| " <xul:label value='%sc% - %lgen% - %eg%' id='label_100_%sc::idx%_%lgen::idx%_%eg::idx%'/>"& |
| " </xul:iterator>"& |
| " </xul:iterator>"& |
| " </xul:tabpage>"& |
| " </xul:insertif>"& |
| " </xul:condition>"& |
| " </xul:iterator>"& |
| " </xul:tabpages>"& |
| " </xul:hbox>"& |
| " <xul:hbox flex='1.000000' id='hbox_2' orientation='horizontal'>"& |
| " <xul:label value='unpair' id='label_2_unpair' />"& |
| " <xul:tabpages flex='1.000000' id='tabpages_2'>"& |
| " <xul:iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <xul:condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <xul:params>"& |
| " <xul:dataparam name='Scenarios' value='%sc%'/>"& |
| " </xul:params>"& |
| " <xul:insertif id='w' negate='true'>"& |
| " <xul:tabpage label='unpair %sc%' id='tabpage_insertif_2_%sc::idx%'>"& |
| " <xul:label value='unpair %sc%' id='label_3_unpair' />"& |
| " </xul:tabpage>"& |
| " </xul:insertif>"& |
| " </xul:condition>"& |
| |
| " <xul:externalvalue element='EntityCount' id='EntityCount' source='ExecCtrl'>"& |
| " <xul:params>"& |
| " <xul:dataparam name='EG' value='EG%sc::count%'/>"& |
| " </xul:params>"& |
| " <xul:tabpage label='EntityCountLabel' id='tabpage_externalvalue_3_%sc::idx%'>"& |
| " <xul:label value='EG%sc%: %EntityCount%' id='label_4_entitycount_%sc::idx%'/>"& |
| " </xul:tabpage>"& |
| " </xul:externalvalue>"& |
| " </xul:iterator>"& |
| |
| " </xul:tabpages>"& |
| " </xul:hbox>"& |
| " <xul:hbox flex='1.000000' id='hbox_3' orientation='horizontal'>"& |
| " <xul:iterator element='LGenList' id='lgen' source='ExecCtrl'>"& |
| " <xul:label value='lgenin_%lgen%' id='label_lgenin_%lgen::idx%' />"& |
| " <xul:iterator element='Scenarios' id='sc' source='ExecCtrl'>"& |
| " <xul:label value='sc_%sc%_lgen_%lgen%' id='label_sclgen_%sc::idx%_%lgen::idx%' />"& |
| " <xul:label value='lgen_%lgen%' id='label_lgen_%lgen::idx%' />"& |
| " <xul:label value='sc_%sc%' id='label_sc_%sc::idx%' />"& |
| " </xul:iterator>"& |
| " </xul:iterator>"& |
| " </xul:hbox>"& |
| " </xul:window>"& |
| "</xul:Widgets>"; |
| const charstring c_insert1 :="<xul:label id='label_rep_1_changed' value='LABEL CHANGED'/>"& |
| "<xul:label id='label_rep_1_second' value='LABEL SECOND'/>"; |
| const charstring c_insert2 :="<xul:label id='tabpage_externalvalue_3_2_changed' value='LABEL CHANGED1'/>"& |
| "<xul:label id='tabpage_externalvalue_3_2_second' value='LABEL SECOND1'/>"; |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| var charstring vl_XSD_Path := tsp_EPTF_UIHandler_WidgetFunctions_XTDP_XSD_filepath; |
| f_EPTF_UIHandler_WidgetFunctions_setXTDP_XSDFilepath(vl_XSD_Path); |
| action("tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML: XTDP_XSDFilepath=",f_EPTF_UIHandler_WidgetFunctions_getXTDP_XSDFilepath()); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| var charstring vl_snapshot := ""; |
| f_EPTF_UIHandler_clearGUI(); |
| action("tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML: f_EPTF_UIHandler_clearGUI: ",c_gui); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| action("tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML: f_EPTF_UIHandler_createGUI: ",c_insert1); |
| f_EPTF_UIHandler_createGUI(c_insert1,"label_rep_1"); |
| action("tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML: f_EPTF_UIHandler_createGUI: ",c_insert2); |
| f_EPTF_UIHandler_createGUI(c_insert2,"tabpage_externalvalue_3_2"); |
| f_EPTF_UIHandler_printAllXMLfor_Tests(); |
| f_EPTF_UIHandler_removeElementFromGui("label_1_count_1"); |
| action("tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML: f_EPTF_UIHandler_removeElementFromGui: ","label_1_count_1"); |
| f_EPTF_UIHandler_removeElementFromGui("tabpage_externalvalue_3_2_changed"); |
| action("tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML: f_EPTF_UIHandler_removeElementFromGui: ","tabpage_externalvalue_3_2_changed"); |
| f_EPTF_UIHandler_removeElementFromGui("hbox_3"); |
| action("tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML: f_EPTF_UIHandler_removeElementFromGui: ","hbox_3"); |
| f_EPTF_UIHandler_printAllXMLfor_Tests(); |
| vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| // action("tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML: vl_snapshot",vl_snapshot); |
| var Widgets vl_received; |
| dec_Widgets(char2oct(vl_snapshot),vl_received); |
| var EPTF_UIHandler_GuiItemRecList vl_UIHandler_guiItemList := f_EPTF_UIHandler_guiItemList(); |
| action("vl_UIHandler_guiItemList:",vl_UIHandler_guiItemList); |
| |
| var Widgets vl_expected := { window := { about := omit, height := 300.000000, help := omit, id := "Window", orientation := vertical, |
| title := "tc_EPTF_UIHandler_Test_emptyTextboxId window", width := 800.000000, image_list := { }, |
| embeddedwidgets := { embeddedwidget_list := { { hbox := { customclass := omit, disabled := omit, |
| disabledongui := omit, fixedposition := omit, flex := 1.000000, id := "hbox_1", |
| orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_rep_1", style := omit, tooltiptext := omit, value_ := "0 and pair", externaldata := omit } }, |
| { tabpages := { customclass := omit, disabled := omit, disabledongui := omit, flex := 1.000000, |
| id := "tabpages_1", layout := omit, tabpagegroups := { tabpagegroup_list := { |
| { tabpage := { customclass := omit, disabledongui := omit, |
| id := "tabpage_insertif_1_1", label_ := "pair SC2", maxheight := omit, orientation := horizontal, |
| tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_1_1", style := omit, tooltiptext := omit, value_ := "pair::idx 1", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_1_ref_1", style := omit, tooltiptext := omit, |
| value_ := "pair::ref EPTF_DataSource_szevasz-tavaszScenarios.ExecCtrl@.Scenarios:{ }", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_0_1_0", style := omit, tooltiptext := omit, value_ := "SC2 - LGen1", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_0_0", style := omit, tooltiptext := omit, value_ := "SC2 - LGen1 - EG1", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_0_1", style := omit, tooltiptext := omit, value_ := "SC2 - LGen1 - EG2", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_0_2", style := omit, tooltiptext := omit, value_ := "SC2 - LGen1 - EG3", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_0_3", style := omit, tooltiptext := omit, value_ := "SC2 - LGen1 - EG4", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_0_1_1", style := omit, tooltiptext := omit, value_ := "SC2 - LGen2", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_1_0", style := omit, tooltiptext := omit, value_ := "SC2 - LGen2 - EG1", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_1_1", style := omit, tooltiptext := omit, value_ := "SC2 - LGen2 - EG2", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_1_2", style := omit, tooltiptext := omit, value_ := "SC2 - LGen2 - EG3", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_1_3", style := omit, tooltiptext := omit, value_ := "SC2 - LGen2 - EG4", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_0_1_2", style := omit, tooltiptext := omit, value_ := "SC2 - LGen3", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_2_0", style := omit, tooltiptext := omit, value_ := "SC2 - LGen3 - EG1", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_2_1", style := omit, tooltiptext := omit, value_ := "SC2 - LGen3 - EG2", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_2_2", style := omit, tooltiptext := omit, value_ := "SC2 - LGen3 - EG3", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_100_1_2_3", style := omit, tooltiptext := omit, value_ := "SC2 - LGen3 - EG4", externaldata := omit } } } } } } } } } } } } } }, |
| { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "hbox_2", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_2_unpair", style := omit, tooltiptext := omit, value_ := "unpair", externaldata := omit } }, |
| { tabpages := { customclass := omit, disabled := omit, disabledongui := omit, flex := 1.000000, |
| id := "tabpages_2", layout := omit, tabpagegroups := { tabpagegroup_list := { |
| { tabpage := { customclass := omit, disabledongui := omit, |
| id := "tabpage_externalvalue_3_0", label_ := "EntityCountLabel", maxheight := omit, orientation := horizontal, |
| tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_4_entitycount_0", style := omit, tooltiptext := omit, value_ := "EGSC1: 103", externaldata := omit } } } } } }, |
| { tabpage := { customclass := omit, disabledongui := omit, |
| id := "tabpage_insertif_2_1", label_ := "unpair SC2", maxheight := omit, orientation := horizontal, |
| tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_3_unpair", style := omit, tooltiptext := omit, value_ := "unpair SC2", externaldata := omit } } } } } }, |
| { tabpage := { customclass := omit, disabledongui := omit, |
| id := "tabpage_externalvalue_3_1", label_ := "EntityCountLabel", maxheight := omit, orientation := horizontal, |
| tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_4_entitycount_1", style := omit, tooltiptext := omit, value_ := "EGSC2: 103", externaldata := omit } } } } } }, |
| { tabpage := { customclass := omit, disabledongui := omit, |
| id := "tabpage_externalvalue_3_2", label_ := "EntityCountLabel", maxheight := omit, orientation := horizontal, |
| tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, |
| id := "label_4_entitycount_2", style := omit, tooltiptext := omit, value_ := "EGSC3: 103", externaldata := omit } } } } } } } } } } } } } }, |
| { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := omit, orientation := omit, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { } } } } } } } }; |
| |
| |
| action("tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML: vl_received=",vl_received); |
| |
| if(not match(vl_received, vl_expected)){ |
| setverdict(fail, log2str(match(vl_received, vl_expected))); |
| } |
| |
| |
| f_EPTF_Base_stop(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_newGUIDumpXUL_XML() runs on EPTF_UIHandler_Test_CT{ |
| |
| var charstring vl_fileName := "dumpxul.xml"; |
| var boolean vl_createGUI := false; |
| |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| |
| vl_createGUI := f_EPTF_UIHandler_createGUIFromFile(vl_fileName); |
| if(not(vl_createGUI)){ |
| setverdict(fail, "Cannot create GUI from file!"); |
| } |
| timer T_guard; |
| T_guard.start( 5.0 ); |
| // wait until the gui is completed |
| T_guard.timeout; |
| |
| |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_result2; |
| dec_Widgets(char2oct(vl_snapshot), vl_result2); |
| setverdict(pass); |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| group simulation { |
| testcase tc_EPTF_UIHandler_Test_simulation_directcontentDB_encdec() runs on EPTF_UIHandler_Test_CT{ |
| var EPTF_UIHandler_simulation_directContentDB vl_decodedDB; |
| var EPTF_UIHandler_simulation_directContentDB vl_mysimpledb:= { |
| { |
| directContent := { intVal := 42 }, |
| key := "1" |
| }, |
| { |
| directContent := { charstringVal := "hello" }, |
| key := "2" |
| }, |
| { |
| directContent := { floatVal := 3.14 }, |
| key := "3" |
| }, |
| { |
| directContent := { boolVal := true }, |
| key := "4" |
| }, |
| { |
| directContent := { octetstringVal := 'DEADBEEF'O }, |
| key := "5" |
| }, |
| { |
| directContent := { hexstringVal := 'BABEFACE'H }, |
| key := "6" |
| }, |
| { |
| directContent := { bitstringVal := '001100'B }, |
| key := "7" |
| }, |
| { |
| directContent := { integerlistVal := {1, 2, 3, 4} }, |
| key := "8" |
| }, |
| { |
| directContent := { statusLEDVal := { led_green, "my_led"} }, |
| key := "9" |
| } |
| } |
| var charstring vl_encoded_DB := f_EPTF_UIHandler_simulation_encode_directContentDB(vl_mysimpledb); |
| f_EPTF_UIHandler_simulation_decode_directContentDB(vl_encoded_DB, vl_decodedDB); |
| if(match(vl_decodedDB, vl_mysimpledb)) { |
| setverdict(pass); |
| } else { |
| setverdict(fail, match(vl_decodedDB, vl_mysimpledb)); |
| } |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_Manual_saveDBToFile() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='window' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <tree disabled='false' hidecolumnpicker='false' id='tree'>"& |
| " <treecols>"& |
| " <treecol flex='1.000000' label='1' widgetType='integerField'/>"& |
| " <treecol flex='1.000000' label='2' widgetType='integerField'/>"& |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='treecell1' label='1'/>"& |
| " <treecell id='treecell2' label='2'/>"& |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " <button disabled='false' flex='1.000000' id='EPTF_savedb_ttcn_button' label='SaveDB' >"& |
| " <externaldata element='savedbtofile' source='UIHandler'>"& |
| " </externaldata>"& |
| " </button>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>"; |
| v_ready := false; |
| f_EPTF_DataSource_init_CT("UIHandlerTestComponent"); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReadyUIHandler )); |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent",-,-,-,-,true,"teszt.db"); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{T_guard.stop;} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| setverdict(pass); |
| f_EPTF_Base_wait4Shutdown(); |
| } |
| testcase tc_EPTF_UIHandler_Test_Manual_openDBFromFile() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='window' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <tabpages disabled='false' flex='1.000000' id='EPTF_ExecCtrl.Statistics.tabbox' layout='LISTCARD'>"& |
| " <iterator element='EntityGroupssssssssss' id='EGrp' source='ExecCtrl'>"& |
| " <tabpage id='EPTF_ExecCtrl.Statistics.EG.%EGrp%.tab' label='%EGrp%' orientation='vertical'>"& |
| " <textbox flex='1.000000' id='EPTF_ExecCtrl.Statistics.EG.%EGrp%.eCount' multiline='false' readonly='true' value=''>"& |
| " <externaldata element='EGrpSizeeeeeeee' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='EntityGroup' value='%EGrp%' />"& |
| " </params>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " </tabpage>"& |
| " </iterator>"& |
| " </tabpages>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>"; |
| v_ready := false; |
| f_EPTF_DataSource_init_CT("UIHandlerTestComponent"); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReadyUIHandler )); |
| |
| //simulationDB.db contains Dataelements from execCtrl |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent",-,-,-,-,true,"simulationDB.db"); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{T_guard.stop;} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| setverdict(pass); |
| f_EPTF_Base_wait4Shutdown(); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_treeCellVisibility() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_StatManager_Test_base' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <tree flex='1.0' hidecolumnpicker='true' id='myTable'>"& |
| " <treecols>"& |
| " <treecol label='Status' widgetType='statusLEDWithText'/>"& |
| " <treecol label='Value' widgetType='string'/>"& |
| " <treecol label='box' widgetType='checkBox'/>"& |
| " <treecol label='button' widgetType='pushButton'/>"& |
| " <treecol label='togglebutton' widgetType='toggleButton'/>"& |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell visible='false' label='[led:green]'/>"& |
| " <treecell visible='false' label='value0'/>"& |
| " <treecell visible='false' label='false'/> "& |
| " <treecell visible='false'/> "& |
| " <treecell visible='false'/> "& |
| " </treerow>"& |
| " <treerow>"& |
| " <treecell label='[led:yellow]'/>"& |
| " <treecell label='value1'/>"& |
| " <treecell label='false'/>"& |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| " </window>"& |
| " </Widgets>"; |
| |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent"); |
| timer t_Wait; |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| var Widgets vl_received; |
| dec_Widgets(char2oct(f_EPTF_UIHandler_snapshot()), vl_received); |
| |
| var integer vl_i; |
| for(vl_i:=0; vl_i < sizeof(vl_received.window.embeddedwidgets.embeddedwidget_list[0].hbox.embeddedwidgets.embeddedwidget_list[0].tree.treechildren.treeitemgroups.treeitemgroup_list[0].treeitem.treerowgroups.treerowgroup_list[0].treerow.treecellgroups.treecellgroup_list); vl_i := vl_i + 1) |
| { |
| if (vl_received.window.embeddedwidgets.embeddedwidget_list[0].hbox.embeddedwidgets.embeddedwidget_list[0].tree.treechildren.treeitemgroups.treeitemgroup_list[0].treeitem.treerowgroups.treerowgroup_list[0].treerow.treecellgroups.treecellgroup_list[vl_i].treecell.visible != false) |
| { |
| setverdict(fail, "The cell is not visible"); |
| } |
| } |
| |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_tabpageToTabpages() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui_1 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_tabpageToTabpages' width='800.000000'>"& |
| " <tabpages id=\"tabpages_id\">"& |
| " <tabpage label=\"first tabpage\">"& |
| " <hbox>"& |
| " <label value=\"first tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </tabpages>"& |
| " </window>"& |
| " </Widgets>"; |
| const charstring c_gui_2 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <tabpage label=\"second tabpage\">"& |
| " <hbox>"& |
| " <label value=\"second tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </Widgets>"; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent"); |
| timer t_Wait; |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui_1); |
| f_EPTF_UIHandler_createGUI(c_gui_2, "tabpages_id"); |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| if(not match(vl_snapshot, pattern "*second tabpage*")) { |
| setverdict(fail, match(vl_snapshot, pattern "*second tabpage*")); |
| } else { |
| setverdict(pass); |
| } |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_tabpagewithIteratorToTabpages() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui_1 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_tabpagewithIteratorToTabpages' width='800.000000'>"& |
| " <tabpages id=\"tabpages_id\">"& |
| " <tabpage label=\"first tabpage\">"& |
| " <hbox>"& |
| " <label value=\"first tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </tabpages>"& |
| " </window>"& |
| " </Widgets>"; |
| const charstring c_gui_2 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <tabpagelist>"& |
| " <iterator element=\"my_iterator\" id=\"tabs\" source=\"UIHandlerIterator\">"& |
| " <tabpage label=\"%tabs% tabpage\">"& |
| " <hbox>"& |
| " <label value=\"%tabs% tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </iterator>"& |
| " <tabpage label=\"forth tabpage\">"& |
| " <hbox>"& |
| " <label value=\"forth tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </tabpagelist>"& |
| " </Widgets>"; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent"); |
| |
| var integer vl_idx; |
| f_EPTF_Var_newCharstringlist("my_iterator", {"second", "third"}, vl_idx); |
| f_EPTF_DataSourceClient_registerData( |
| pl_source := "UIHandlerIterator", |
| pl_ptcName := f_EPTF_Base_selfName(), |
| pl_dataHandler := refers(f_EPTF_UIHandler_Test_Data_Handler), |
| pl_sourceCompRef := self |
| ); |
| timer t_Wait; |
| f_EPTF_UIHandler_clearGUI(); |
| t_Wait.start( 3.0 ); |
| t_Wait.timeout; |
| f_EPTF_UIHandler_createGUI(c_gui_1); |
| f_EPTF_UIHandler_createGUI(c_gui_2, "tabpages_id"); |
| t_Wait.start( 3.0 ); |
| t_Wait.timeout; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| if(not match(vl_snapshot, pattern "*third tabpage*forth tabpage*")) { |
| setverdict(fail, match(vl_snapshot, pattern "*third tabpage*forth tabpage*")); |
| } else { |
| setverdict(pass); |
| } |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_tabpagelistTotabpages() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui_1 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_tabpageToTabpages' width='800.000000'>"& |
| " <tabpages id=\"tabpages_id\">"& |
| " <tabpage label=\"first tabpage\">"& |
| " <hbox>"& |
| " <label value=\"first tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </tabpages>"& |
| " </window>"& |
| " </Widgets>"; |
| const charstring c_gui_2 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <tabpagelist>"& |
| " <tabpage label=\"second tabpage\">"& |
| " <hbox>"& |
| " <label value=\"second tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " <tabpage label=\"third tabpage\">"& |
| " <hbox>"& |
| " <label value=\"third tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </tabpagelist>"& |
| " </Widgets>"; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent"); |
| timer t_Wait; |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui_1); |
| f_EPTF_UIHandler_createGUI(c_gui_2, "tabpages_id"); |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| if(not match(vl_snapshot, pattern "*third tabpage*")) { |
| setverdict(fail, match(vl_snapshot, pattern "*third tabpage*")); |
| } else { |
| setverdict(pass); |
| } |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_tabpagelistTotabpages2() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui_1 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_tabpageToTabpages' width='800.000000'>"& |
| " <tabpages id=\"tabpages_id\">"& |
| " <tabpage label=\"first tabpage\">"& |
| " <hbox>"& |
| " <label value=\"first tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " <tabpage label=\"second tabpage\">"& |
| " <hbox>"& |
| " <label value=\"second tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </tabpages>"& |
| " </window>"& |
| " </Widgets>"; |
| const charstring c_gui_2 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <tabpagelist>"& |
| " <tabpage label=\"third tabpage\">"& |
| " <hbox>"& |
| " <label value=\"third tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " <tabpage label=\"fourth tabpage\">"& |
| " <hbox>"& |
| " <label value=\"fourth tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </tabpagelist>"& |
| " </Widgets>"; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent"); |
| timer t_Wait; |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui_1); |
| f_EPTF_UIHandler_createGUI(c_gui_2, "tabpages_id"); |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| if(not match(vl_snapshot, pattern "*second tabpage*fourth tabpage*")) { |
| setverdict(fail, match(vl_snapshot, pattern "*second tabpage*fourth tabpage*")); |
| } else { |
| setverdict(pass); |
| } |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_tabpagelistTotabpages3() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui_1 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_tabpageToTabpages' width='800.000000'>"& |
| " <tabpages id=\"tabpages_id\">"& |
| " </tabpages>"& |
| " </window>"& |
| " </Widgets>"; |
| const charstring c_gui_2 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <tabpagelist>"& |
| " <tabpage label=\"first tabpage\">"& |
| " <hbox>"& |
| " <label value=\"first tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " <tabpage label=\"second tabpage\">"& |
| " <hbox>"& |
| " <label value=\"second tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </tabpagelist>"& |
| " </Widgets>"; |
| const charstring c_gui_3 := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <tabpage label=\"third tabpage\">"& |
| " <hbox>"& |
| " <label value=\"third tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </Widgets>"; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent"); |
| timer t_Wait; |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui_1); |
| f_EPTF_UIHandler_createGUI(c_gui_2, "tabpages_id"); |
| f_EPTF_UIHandler_createGUI(c_gui_3, "tabpages_id"); |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| if(not match(vl_snapshot, pattern "*first tabpage*third tabpage*")) { |
| setverdict(fail, match(vl_snapshot, pattern "*first tabpage*third tabpage*")); |
| } else { |
| setverdict(pass); |
| } |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_treecellNoIdBeforeCondition() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='window' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <tree disabled='false' hidecolumnpicker='false' id='tree'>"& |
| " <treecols>"& |
| " <treecol flex='1.000000' label='1' widgetType='string'/>"& |
| " <treecol flex='1.000000' label='2' widgetType='string'/>"& |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell label='first treecell without id'/>"& |
| " <condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Scenarios' value='SC1'/>"& |
| " </params>"& |
| " <insertif id='w'>"& |
| " <treecell label='unpair'/>"& |
| " </insertif>"& |
| " </condition>"& |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| f_EPTF_UIHandler_init_CT("treecellNoIdBeforeCondition"); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self)); |
| |
| timer t_Wait; |
| f_EPTF_UIHandler_clearGUI(); |
| t_Wait.start( 3.0 ); |
| t_Wait.timeout; |
| f_EPTF_UIHandler_createGUI(c_gui); |
| t_Wait.start( 3.0 ); |
| t_Wait.timeout; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| if(not match(vl_snapshot, pattern "*unpair*")) { |
| setverdict(fail, match(vl_snapshot, pattern "*unpair*")); |
| } else { |
| setverdict(pass); |
| } |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_newGUIIteratorInHboxIterator |
| // |
| // Purpose: |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_HQ10231_WarningDuringCustomGUI() |
| runs on EPTF_UIHandler_Test_CT{ |
| f_EPTF_UIHandler_Test_CheckGUIFromFile("HQ10231.xml" , "HQ10231_result.xml", "HQ10231_2.xml", false, "*The widget's already connected to the same variable!*", ""); |
| setverdict(pass); |
| } |
| |
| } |
| |
| group BrowserGUI_Test { |
| |
| testcase tc_EPTF_UIHandler_Test_htmlcodeExternalData() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_StatManager_Test_base' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <htmlcode>"& |
| " <externaldata element='mylink' source='HtmlTest'>"& |
| " </externaldata>"& |
| " <value>"& |
| " </value>"& |
| " </htmlcode>"& |
| " </hbox>"& |
| " </window>"& |
| " </Widgets>"; |
| const charstring c_gui_expected := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_StatManager_Test_base' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <htmlcode>"& |
| " <value>"& |
| " <a href=\"http://www.ttcn.ericsson.se\">ttcn</a>"& |
| " </value>"& |
| " </htmlcode>"& |
| " </hbox>"& |
| " </window>"& |
| " </Widgets>"; |
| f_EPTF_UIHandler_init_CT( "HtmlTest"); |
| var integer vl_idx; |
| f_EPTF_Var_newCharstring("mylink", "<a href=\"http://www.ttcn.ericsson.se\">ttcn</a>", vl_idx) |
| timer t_Wait; |
| |
| f_EPTF_DataSourceClient_registerData( |
| pl_source := "HtmlTest", |
| pl_ptcName := f_EPTF_Base_selfName(), |
| pl_dataHandler := refers(f_EPTF_UIHandler_Test_Data_Handler), |
| pl_sourceCompRef := self |
| ); |
| f_EPTF_DataSourceClient_sendReady("HtmlTest",f_EPTF_Base_selfName()); |
| |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| |
| var Widgets vl_widgets; |
| f_EPTF_UIHandler_buildXUL(vl_widgets, false); |
| var charstring vl_received_gui := oct2char(enc_Widgets(vl_widgets)); |
| action("vl_received_gui->", vl_received_gui); |
| if(not match(vl_received_gui, pattern "*<a href="http://www.ttcn.ericsson.se">ttcn</a>*")) { |
| setverdict(fail, match(vl_received_gui,pattern "*<a href="http://www.ttcn.ericsson.se">ttcn</a>*")); |
| } |
| |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_BasicTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*label*value='BrowserGUI Test'*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_TabrequestSamePageTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/?tabrequest_samepage_second_tabpage", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*label*value='Second tabpage label'*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_TabrequestTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/?tabrequest_second_tabpage", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*label*value='Second tabpage label'*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_AjaxupdateTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/?ajaxupdate_{\"mydata_id\":\"5\"}", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*ajaxupdate_OK*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| if(f_EPTF_Var_getIntValue(f_EPTF_Var_getId("mydata")) != 5) { |
| setverdict(fail,"The data doesn't updated in server side, but ajaxrequest_OK message was sent"); |
| } |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_AjaxupdateWrongTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/?ajaxupdate_{\"mydata_wrongid\":\"5\"}", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*ajaxupdate_ERROR_NOVAR*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_AjaxupdateWrong2Test() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/?ajaxupdate_{\"mydata_id\":\"wrongvalue\"}", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*ajaxupdate_NOK_WRONG_VALUE_GIVEN*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_AjaxrefreshTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/?ajaxrefresh_{\"mydata_id\":\"\"}", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*\"mydata_id\": \"110\",\"ajaxReload\"*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_Ajaxrefresh2Test() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/?ajaxrefresh_{\"mydata_id\":\"anyvalue\"}", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*\"mydata_id\": \"110\",\"ajaxReload\"*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 3.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_GetJSTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/htmlbrowser.js", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*javascript*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_GetJSWrongTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/htmlbrowser_wrong.js", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*window.location*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_GetCSSTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/main.css", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*COLOR*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_GetCSSWrongTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/main2.css", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*404*main2.css*Not Found*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg, pl_expectedStatus := 404); // 404 status received |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_GetImageWrongTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/mmrzzz.jpg", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*404*mmrzzz.jpg*Not Found*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg, pl_expectedStatus := 404); // 404 status received |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_GetXSLTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/" & tsp_EPTF_UIHandler_Browser_xsl2send, |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*<xsl:choose>*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_GetXSLWrongTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/" & "wrong_" & tsp_EPTF_UIHandler_Browser_xsl2send, |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*window.location*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_GetExtWrongTest() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/" & tsp_EPTF_UIHandler_Browser_xsl2send & "_wrong", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*Unhandled Request from Browser*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_Browser_Manual_RTGUIvsBrowser() runs on EPTF_Base_CT { |
| f_EPTF_Base_init_CT("mainComponent"); |
| var EPTF_UIHandler_Test_CT vc_uiHandler := EPTF_UIHandler_Test_CT.create; |
| var EPTF_HostAdminServer_CT vc_hostAdmin := EPTF_HostAdminServer_CT.create; |
| var EPTF_DataSourceClient_CT vc_dsclient1 := EPTF_DataSourceClient_CT.create; |
| var EPTF_DataSourceClient_CT vc_dsclient2 := EPTF_DataSourceClient_CT.create; |
| var EPTF_DataSourceClient_CT vc_dsclient3 := EPTF_DataSourceClient_CT.create; |
| |
| vc_uiHandler.start(f_EPTF_UIHandler_TestDSBehaviour("UIHandler_Component")); |
| |
| vc_dsclient1.start(f_EPTF_UIHandler_TestDSClientBehaviour("DSClient1_Component", vc_uiHandler)); |
| vc_dsclient2.start(f_EPTF_UIHandler_TestDSClientBehaviour("DSClient2_Component", vc_uiHandler)); |
| vc_dsclient3.start(f_EPTF_UIHandler_TestDSClientBehaviour("DSClient3_Component", vc_uiHandler)); |
| |
| vc_hostAdmin.start(f_EPTF_UIHandler_TestHostAdminBehaviour("HostAdmin_Component", vc_uiHandler)); |
| |
| f_EPTF_Base_wait4Shutdown(); |
| |
| } |
| |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_DataSourceInit() runs on EPTF_UIHandler_CT { |
| f_EPTF_UIHandler_init_CT("mainComponent"); |
| var charstring vl_varName := ""; |
| var integer vl_returnVal := f_EPTF_DataSource_checkData( |
| pl_dataVarName := vl_varName, |
| pl_source := c_UIHandler_DS_sourceId, |
| pl_ptcName := "", |
| pl_element := c_UIHandler_dataElement_progressBar, |
| pl_params := {}); |
| if( vl_returnVal != 3 /*source is not registered*/){ |
| setverdict(pass); |
| } else { |
| setverdict(fail, "Source is not registered, altought the init function has returned!"); |
| } |
| |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_setRemoteHosts() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*label*value='BrowserGUI Test'*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg, -, - , fail, "pass"); |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Browser_setRemoteHosts( { {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort} } ); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort, fail, "pass") |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, - , - , pass, "fail") |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_clearRemoteHosts() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*label*value='BrowserGUI Test'*"; |
| |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg, -, - , fail, "pass"); |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Browser_clearRemoteHosts( ); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort, pass, "fail") |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, - , - , pass, "fail") |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_addRemoteHosts() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| |
| var charstring vl_expectedMsg := "*label*value='BrowserGUI Test'*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg, -, - , fail, "pass"); |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Browser_addRemoteHosts( { {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort} } ); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort, fail, "pass") |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, - , - , fail, "pass") |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_removeRemoteHosts() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*label*value='BrowserGUI Test'*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg, -, - , fail, "pass"); |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Browser_addRemoteHosts( { {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort} } ); |
| f_EPTF_UIHandler_Browser_removeRemoteHosts( { {tsp_EPTF_UIHandler_Browser_RemoteAddress, tsp_EPTF_UIHandler_Browser_RemotePort} } ); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort, fail, "pass") |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, - , - , pass, "fail") |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_addRemoteHosts2() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*label*value='BrowserGUI Test'*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg, -, - , fail, "pass"); |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Browser_addRemoteHosts( { {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort} } ); |
| f_EPTF_UIHandler_Browser_removeRemoteHosts( { {tsp_EPTF_UIHandler_Browser_RemoteAddress, tsp_EPTF_UIHandler_Browser_RemotePort} } ); |
| f_EPTF_UIHandler_Browser_addRemoteHosts( { {tsp_EPTF_UIHandler_Browser_RemoteAddress, tsp_EPTF_UIHandler_Browser_RemotePort} } ); |
| f_EPTF_UIHandler_Browser_removeRemoteHosts( { {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort} } ); |
| f_EPTF_UIHandler_Browser_addRemoteHosts( { {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort} } ); |
| f_EPTF_UIHandler_Browser_removeRemoteHosts( { {tsp_EPTF_UIHandler_Browser_RemoteAddress, tsp_EPTF_UIHandler_Browser_RemotePort} } ); |
| |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort, fail, "pass") |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, - , - , pass, "fail") |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_negative_RemoteHosts() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*label*value='BrowserGUI Test'*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg, -, - , fail, "pass"); |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Browser_setRemoteHosts( { {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort} } ); |
| var boolean vl_success := f_EPTF_UIHandler_Browser_addRemoteHosts( { {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort} } ); |
| if(vl_success != false){ |
| setverdict(fail, "No error reported, although the parameters were wrong, duplicated by add!"); |
| } |
| |
| vl_success := f_EPTF_UIHandler_Browser_addRemoteHosts( { {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort}, {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort} } ); |
| if(vl_success != false){ |
| setverdict(fail, "No error reported, although the parameters were wrong, duplicated by add!"); |
| } |
| |
| vl_success := f_EPTF_UIHandler_Browser_setRemoteHosts( { {tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort},{tsp_EPTF_Test_newBrowserHost, tsp_EPTF_Test_newBrowserPort} } ); |
| if(vl_success != false){ |
| setverdict(fail, "No error reported, although the parameters were wrong, duplicated in set!"); |
| } |
| |
| f_EPTF_UIHandler_Browser_clearRemoteHosts( ); |
| vl_success := f_EPTF_UIHandler_Browser_removeRemoteHosts( { {tsp_EPTF_UIHandler_Browser_RemoteAddress, tsp_EPTF_UIHandler_Browser_RemotePort} } ); |
| if(vl_success != false){ |
| setverdict(fail, "No error reported, although the parameters were wrong!"); |
| } |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_align() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_Align_Test' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <tree id='tree' disabled='false' flex='1.000000' hidecolumnpicker='true' rows='1.000000'>"& |
| " <treecols>"& |
| " <treecol editable='false' align='right' flex='1.000000' label='right' widgetType='string' />"& |
| " <treecol editable='false' align='center' treecellalign='left' flex='1.000000' label='center' widgetType='string' />"& |
| " <treecol editable='false' flex='1.000000' treecellalign='center' label='default center' widgetType='string' />"& |
| " <treecol editable='false' flex='1.000000' label='default centercenter' widgetType='string' />"& |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell label='right' tooltiptext=''/>"& |
| " <treecell label='left' tooltiptext=''/>"& |
| " <treecell label='center' tooltiptext=''/>"& |
| " <treecell label='default left' tooltiptext=''/>"& |
| " </treerow>"& |
| " <treerow>"& |
| " <treecell align='left' label='left' tooltiptext=''/>"& |
| " <treecell align='right' label='right' tooltiptext=''/>"& |
| " <treecell align='left' label='left' tooltiptext=''/>"& |
| " <treecell align='right' label='right' tooltiptext=''/>"& |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| " </window>"& |
| " </Widgets>"; |
| |
| f_EPTF_UIHandler_init_CT( "HtmlTest"); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| |
| timer t_Wait; |
| t_Wait.start( 10.0 ); |
| t_Wait.timeout; |
| |
| var Widgets vl_widgets; |
| f_EPTF_UIHandler_buildXUL(vl_widgets, false); |
| var charstring vl_received_gui := oct2char(enc_Widgets(vl_widgets)); |
| if(not match(vl_received_gui, pattern "*align='right'*treecellalign='left'*align='right'*")) { |
| setverdict(fail, match(vl_received_gui,pattern "*align='right'*treecellalign='left'*align='right'*")); |
| } |
| |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_BrowserGUI_iteratorInTabpage |
| // |
| // Purpose: To test if the createGUI builds the GUI without error |
| // when there is an iterator in a tabpage. |
| // The BrowserGUI is checked by a HTPP tabrequest. |
| // |
| // This test checks the artifact artf260060, which is |
| // the first part of artf254751 |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_iteratorInTabpage() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := " |
| <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'> |
| <window |
| height='800.000000' id='EPTF_Main_Window2' orientation='vertical' |
| title='TitanSim Custom GUI' width='1000.000000'> |
| |
| <tabpages flex='1.0' id='Tabpage Test'> |
| <tabpage label='Control' orientation='vertical'> |
| <label flex='0.5' value='Control Label 1' /> |
| <iterator element='PTCs' id='EGrp' source='DataSource'> |
| <params> |
| <dataparam name='Source' value='DataSource2' /> |
| </params> |
| <label flex='0.5' value='Control Label: %EGrp%' /> |
| </iterator> |
| <label flex='0.5' value='Control Label 2' /> |
| </tabpage> |
| </tabpages> |
| </window> |
| </Widgets> |
| " |
| |
| f_EPTF_UIHandler_init_CT( "HtmlTest"); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| |
| timer t_Wait; |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/?tabrequest_samepage_{1374054137426}UIHandler_widgetId_0", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*label*value='Control Label*'*"; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, pl_expectedStatus := 0) |
| |
| t_Wait.start( 10.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_ManualAboutAndHelpButton() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := ""& |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window about='TitanSimAbout.html' height='300.000000' help='http://ttcn.ericsson.se/TitanSim/Help/' id='Window' orientation='vertical' title='tc_EPTF_StatManager_Test_base' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <htmlcode>"& |
| " <externaldata element='mylink' source='HtmlTest'>"& |
| " </externaldata>"& |
| " <value>"& |
| " </value>"& |
| " </htmlcode>"& |
| " </hbox>"& |
| " </window>"& |
| " </Widgets>"; |
| f_EPTF_UIHandler_init_CT( "HtmlTest"); |
| var integer vl_idx; |
| f_EPTF_Var_newCharstring("mylink", "<a href=\"http://www.ttcn.ericsson.se\">ttcn</a>", vl_idx) |
| timer t_Wait; |
| |
| f_EPTF_DataSourceClient_registerData( |
| pl_source := "HtmlTest", |
| pl_ptcName := f_EPTF_Base_selfName(), |
| pl_dataHandler := refers(f_EPTF_UIHandler_Test_Data_Handler), |
| pl_sourceCompRef := self |
| ); |
| f_EPTF_DataSourceClient_sendReady("HtmlTest",f_EPTF_Base_selfName()); |
| |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_createGUI(c_gui); |
| |
| t_Wait.start( 20.0 ); |
| t_Wait.timeout; |
| |
| var Widgets vl_widgets; |
| f_EPTF_UIHandler_buildXUL(vl_widgets, false); |
| var charstring vl_received_gui := oct2char(enc_Widgets(vl_widgets)); |
| action("vl_received_gui->", vl_received_gui); |
| |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| } // group BrowserGUI_Test |
| |
| testcase tc_EPTF_UIHandler_Test_RTG_setGUIAddrPorts() runs on EPTF_UIHandler_Test_CT{ |
| |
| f_EPTF_UIHandler_Test_RTG_createFunction( -, tsp_xtdp_listen_port + 4, - ,fail, pass); |
| timer t_Wait; |
| t_Wait.start( 10.0 ); |
| t_Wait.timeout; |
| f_EPTF_UIHandler_setGUIAddrPorts(tsp_EPTF_Test_newGUIHost, tsp_EPTF_Test_newGUIPort, tsp_EPTF_Test_newGUIReconnectPort); |
| |
| var charstring vl_EPTF_Test_newGUIHost; |
| var integer vl_EPTF_Test_newGUIPort, vl_EPTF_Test_newGUIReconnectPort; |
| f_EPTF_UIHandler_getGUIAddrPorts(vl_EPTF_Test_newGUIHost, vl_EPTF_Test_newGUIPort, vl_EPTF_Test_newGUIReconnectPort); |
| if(vl_EPTF_Test_newGUIHost != tsp_EPTF_Test_newGUIHost or vl_EPTF_Test_newGUIPort != tsp_EPTF_Test_newGUIPort or vl_EPTF_Test_newGUIReconnectPort != tsp_EPTF_Test_newGUIReconnectPort){ |
| setverdict(fail, "f_EPTF_UIHandler_getGUIAddrPorts() does not gives back the values set by the f_EPTF_UIHandler_setGUIAddrPorts(). One of them is wrong!"); |
| } |
| |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_createRTGSimulation( tsp_EPTF_Test_newGUIHost, tsp_EPTF_Test_newGUIPort, tsp_EPTF_Test_newGUIReconnectPort , fail, pass) |
| t_Wait.start( 10.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_createRTGSimulation( tsp_xtdp_listen_addr , tsp_xtdp_listen_port + 4 , tsp_EPTF_UIHandler_udp_port , pass, fail) |
| t_Wait.start( 10.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_RTG_Manual_setGUIAddrPorts() runs on EPTF_UIHandler_CT { |
| const Widgets c_gui := { |
| window := { |
| height := 300.000000, |
| id := "Window", |
| orientation := vertical, |
| title := "tc_EPTF_UIHandler_Test_emptyTextboxId window", |
| width := 800.000000, |
| image_list := {}, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| {hbox := { |
| disabled := omit, |
| fixedposition := omit, |
| flex := 0.000000, |
| id := omit, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| textbox := { |
| disabled := omit, |
| flex := omit, |
| id := "", |
| multiline := omit, |
| readonly := true, |
| rows := omit, |
| tooltiptext := omit, |
| value_ := "Can you see this text? Test Phase 1 - Old parameters", |
| widgetType := omit, |
| wrap := omit, |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| var charstring vl_gui := oct2char(enc_Widgets(c_gui)); |
| |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| f_EPTF_UIHandler_createGUI(vl_gui); |
| action("Connect to the GUI with : ", tsp_xtdp_listen_addr, ":", tsp_xtdp_listen_port); |
| action("Please start GUI with the following:"); |
| action("nice java -Xmx1024m -jar /vobs/ttcn/TCC_Common/Libraries/Runtime_GUI_CNL113437/bin/TitanRuntimeGUI.jar $1 -p "&log2str(tsp_xtdp_listen_port)&" -r "&log2str(tsp_EPTF_UIHandler_udp_port)); |
| action("Is it working on the old ip/port? (It ought to.)"); |
| action("If you see the message: Can you see this text? Test Phase 1 - Old parameters, close the GUI. Else verdict : fail."); |
| |
| |
| timer t_wait := 10.0; |
| t_wait.start; |
| t_wait.timeout{}; |
| action("20sec remaining..."); |
| t_wait.start; |
| t_wait.timeout{}; |
| action("10sec remaining..."); |
| t_wait.start; |
| t_wait.timeout{}; |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| vl_gui := oct2char(enc_Widgets( { |
| window := { |
| about := "", |
| height := 300.000000, |
| help := "", |
| id := "Window", |
| orientation := vertical, |
| title := "tc_EPTF_UIHandler_Test_emptyTextboxId window", |
| width := 800.000000, |
| image_list := {}, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| {hbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 0.000000, |
| id := omit, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| textbox := { |
| customclass := omit, |
| disabled := omit, |
| disabledongui := omit, |
| flex := omit, |
| focusafterchange := omit, |
| id := "", |
| multiline := omit, |
| readonly := true, |
| rows := omit, |
| tooltiptext := omit, |
| value_ := "Can you see this text? Test Phase 3 - New parameters", |
| widgetType := omit, |
| wrap := omit, |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| })); |
| f_EPTF_UIHandler_createGUI(vl_gui); |
| f_EPTF_UIHandler_setGUIAddrPorts(tsp_EPTF_Test_newGUIHost, tsp_EPTF_Test_newGUIPort, tsp_EPTF_Test_newGUIReconnectPort); |
| |
| action("Connect to the GUI with : ", tsp_EPTF_Test_newGUIHost, ":", tsp_EPTF_Test_newGUIPort); |
| action("Please restart GUI with the following:"); |
| action("nice java -Xmx1024m -jar /vobs/ttcn/TCC_Common/Libraries/Runtime_GUI_CNL113437/bin/TitanRuntimeGUI.jar $1 -p "&log2str(tsp_EPTF_Test_newGUIPort)&" -r "&log2str(tsp_EPTF_UIHandler_udp_port)); |
| action("Is it working on the new ip/port? (It should NOT.) "); |
| action("If you see any message, verdict : fail. If any, after a few seconds, close the GUI."); |
| t_wait.start; |
| t_wait.timeout{}; |
| action("20sec remaining..."); |
| t_wait.start; |
| t_wait.timeout{}; |
| action("10sec remaining..."); |
| t_wait.start; |
| t_wait.timeout{}; |
| |
| action("Please restart GUI with the following:"); |
| action("nice java -Xmx1024m -jar /vobs/ttcn/TCC_Common/Libraries/Runtime_GUI_CNL113437/bin/TitanRuntimeGUI.jar $1 -p "&log2str(tsp_EPTF_Test_newGUIPort)&" -r "&log2str(tsp_EPTF_Test_newGUIReconnectPort)); |
| action("Is it working now? (It ought to.)"); |
| action("If you see the message: Can you see this text? Test Phase 3 - New parameters, verdict : pass"); |
| |
| t_wait.start; |
| t_wait.timeout{}; |
| action("20sec remaining..."); |
| t_wait.start; |
| t_wait.timeout{}; |
| action("10sec remaining..."); |
| t_wait.start; |
| t_wait.timeout{}; |
| |
| |
| setverdict(none,"Manual test, verdict should be determined by the eye"); |
| f_EPTF_Base_stop(none); |
| |
| } |
| |
| const charstring cg_UIHandler_WidgetDisabledInXUL_Test_title := "UIHandler WidgetDisabledInXUL TEST" |
| const charstring cg_varNameEnd := "VarWDXUL"; |
| const charstring cg_varNameEndReadOnly := "VarWDXULRON"; |
| const charstring cg_varNameStart_integerField := "integerField"; |
| const charstring cg_varNameStart_floatField := "floatField"; |
| const charstring cg_varNameStart_string := "string"; |
| const charstring cg_varNameStart_statusLED := "statusLED"; |
| const charstring cg_varNameStart_statusLEDWithText := "statusLEDWithText"; |
| const charstring cg_varNameStart_checkBox := "checkBox"; |
| const charstring cg_varNameStart_pushButton := "pushButton"; |
| const charstring cg_varNameStart_toolbarButton := "toolbarButton"; |
| const charstring cg_varNameStart_toggleButton := "toggleButton"; |
| const charstring cg_varNameStart_valueList := "valueList"; |
| const charstring cg_varNameStart_stringList := "stringList"; |
| const charstring cg_varNameStart_listIdx := "listidxField"; |
| const charstring cg_varNameStart_listItem := "listItem"; |
| const charstring cg_varNameStart_listIdxDisabled := "listidxDisabledField"; |
| const charstring cg_varNameStart_listIdxList := "listidxListField"; |
| const charstring cg_varNameStart_htmlstring := "htmlstring"; |
| const charstring cg_varNameStart_htmlstring_image_found := "htmlstring_image_found"; |
| const charstring cg_varNameStart_htmlstring_image_not_found := "htmlstring_image_not_found"; |
| const charstring cg_UIHandler_WidgetDisabledInXUL_Test_source := "UIHandler_WidgetDisabledInXUL"; |
| const float cg_waitForVariables := 60.0; |
| const float cg_waitForTest := 20.0; |
| const float cg_waitForTestStep := 5.0; |
| |
| private function f_EPTF_UIHandler_Test_WidgetDisabledInXUL_DataSourceClientReady( |
| in charstring pl_source, |
| in charstring pl_ptcName) |
| runs on EPTF_UIHandler_Test_CT{ |
| action("Ready received[",pl_source,"]:",pl_ptcName); |
| v_startBecauseDSIsReady := v_startBecauseDSIsReady + 1; |
| } |
| private function f_EPTF_UIHandlerTest_WidgetDisabledInXUL_dataHandler( |
| out charstring pl_dataVarName, |
| in charstring pl_source, |
| in charstring pl_ptcName, |
| in charstring pl_element, |
| in EPTF_DataSource_Params pl_params) runs on EPTF_UIHandler_Test_CT return integer |
| { |
| if(pl_source!=cg_UIHandler_WidgetDisabledInXUL_Test_source) |
| { |
| return 1; |
| } |
| if(f_EPTF_Var_getId(pl_element)!=-1) |
| { |
| var EPTF_Var_DirectContent vl_currentContent; |
| f_EPTF_Var_getContent(f_EPTF_Var_getId(pl_element), vl_currentContent); |
| pl_dataVarName := pl_element; |
| // action("f_EPTF_UIHandlerTest_WidgetDisabledInXUL_dataHandler[",log2str(pl_source,"-",pl_ptcName,"]:",pl_element,"-",pl_dataVarName,"-",pl_source,"-",pl_ptcName,"]:",pl_element,"-",pl_params)); |
| return 0; |
| } |
| return 2; |
| } |
| private function f_EPTF_UIHandlerTest_WidgetDisabledInXUL_CheckChart_Manual_preProcessorData( |
| out charstring pl_dataVarName, |
| in charstring pl_source, |
| in charstring pl_ptcName, |
| in charstring pl_element, |
| in EPTF_DataSource_Params pl_params |
| ) runs on EPTF_UIHandler_Test_CT return integer { |
| |
| if (pl_source!="CheckChart_Provider") { |
| return 1; |
| } |
| if (pl_element != "ChartData" or sizeof(pl_params) != 1) { |
| return 2; |
| } |
| if (pl_params[0].paramValue == "trace1") { |
| pl_dataVarName := "trace1" & cg_varNameEnd; |
| } else if (pl_params[0].paramValue == "trace2") { |
| pl_dataVarName := "trace2" & cg_varNameEnd; |
| } else { |
| return 3; |
| } |
| action("f_EPTF_UIHandlerTest_WidgetDisabledInXUL_CheckChart_Manual_preProcessorData[",log2str(pl_source,"-",pl_ptcName,"]:",pl_element,"-",pl_dataVarName,"-",pl_source,"-",pl_ptcName,"]:",pl_element,"-",pl_params)); |
| return 0; |
| } |
| private function f_UIHandler_WidgetDisabledInXUL_Test_init_CT(in charstring pl_selfName) runs on EPTF_UIHandler_Test_CT { |
| // call all the init functions { |
| if (v_UIHandler_WidgetDisabledInXUL_Test_initialized) { |
| return; |
| } |
| v_UIHandler_WidgetDisabledInXUL_Test_initialized := true; |
| v_startBecauseDSIsReady := 0; |
| f_EPTF_UIHandler_init_CT(pl_selfName, true); |
| f_EPTF_Var_init_CT(pl_selfName); |
| f_EPTF_DataSourceClient_init_CT(pl_selfName,self); |
| // f_initVariables(); { |
| var integer vl_intVarIdx; |
| f_EPTF_Var_newInt(cg_varNameStart_integerField & cg_varNameEnd, 123, vl_intVarIdx); |
| f_EPTF_Var_newFloat(cg_varNameStart_floatField & cg_varNameEnd, 234.56, vl_intVarIdx); |
| f_EPTF_Var_newFloat(cg_varNameStart_floatField & "1" & cg_varNameEnd, 123.45, vl_intVarIdx); |
| f_EPTF_Var_newFloat(cg_varNameStart_floatField & "2" & cg_varNameEnd, 223.45, vl_intVarIdx); |
| f_EPTF_Var_newFloat(cg_varNameStart_floatField & "3" & cg_varNameEnd, 323.45, vl_intVarIdx); |
| f_EPTF_Var_newFloat(cg_varNameStart_floatField & "4" & cg_varNameEnd, 423.45, vl_intVarIdx); |
| f_EPTF_Var_newCharstring(cg_varNameStart_string & cg_varNameEnd,"IGEN", vl_intVarIdx); |
| f_EPTF_Var_newStatusLED(cg_varNameStart_statusLED & cg_varNameEnd, {led_green, omit}, vl_intVarIdx); |
| f_EPTF_Var_newStatusLED(cg_varNameStart_statusLEDWithText & cg_varNameEnd, {led_red, "ONE"}, vl_intVarIdx); |
| f_EPTF_Var_newBool(cg_varNameStart_checkBox & cg_varNameEnd, true, vl_intVarIdx); |
| f_EPTF_Var_newInt(cg_varNameStart_pushButton & cg_varNameEnd, 11, vl_intVarIdx); |
| f_EPTF_Var_newBool(cg_varNameStart_toolbarButton & cg_varNameEnd, true, vl_intVarIdx); |
| f_EPTF_Var_newBool(cg_varNameStart_toggleButton & cg_varNameEnd, true, vl_intVarIdx); |
| f_EPTF_Var_newIntegerlist(cg_varNameStart_valueList & cg_varNameEnd, {11,22,33,44,55,66,77,88,99}, vl_intVarIdx); |
| f_EPTF_Var_newCharstringlist(cg_varNameStart_stringList & cg_varNameEnd, {"STR1", "STR2", "STR3"}, vl_intVarIdx); |
| f_EPTF_Var_newInt(cg_varNameStart_listIdx & cg_varNameEnd, 1, vl_intVarIdx); |
| f_EPTF_Var_newCharstring(cg_varNameStart_listItem & cg_varNameEnd, "STR2", vl_intVarIdx); |
| f_EPTF_Var_newIntegerlist(cg_varNameStart_listIdxList & cg_varNameEnd, {0,1}, vl_intVarIdx); |
| f_EPTF_Var_newInt(cg_varNameStart_listIdxDisabled & cg_varNameEnd, 0, vl_intVarIdx); |
| f_EPTF_Var_newFloat("trace1" & cg_varNameEnd,0.1,vl_intVarIdx); |
| f_EPTF_Var_newFloat("trace2" & cg_varNameEnd,0.2,vl_intVarIdx); |
| f_EPTF_Var_newCharstring(cg_varNameStart_htmlstring & cg_varNameEnd,"http://ericsson.se", vl_intVarIdx); |
| f_EPTF_Var_newCharstring(cg_varNameStart_htmlstring_image_found & cg_varNameEnd,"<A HREF=\"mailto:info@noescape.hu\"><img src=\"/ericsson_logo_top.png\" width=\"300\" height=\"200\" /></A>", vl_intVarIdx); |
| f_EPTF_Var_newCharstring(cg_varNameStart_htmlstring_image_not_found & cg_varNameEnd,"<A HREF=\"mailto:info@noescape.hu\"><img src=\"/notfoundimage007.jpg\" width=\"300\" height=\"200\" /></A>", vl_intVarIdx); |
| |
| f_EPTF_Var_newInt(cg_varNameStart_integerField & cg_varNameEndReadOnly, 9123, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newFloat(cg_varNameStart_floatField & cg_varNameEndReadOnly, 9234.56, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newFloat(cg_varNameStart_floatField & "1" & cg_varNameEndReadOnly, 9123.45, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newFloat(cg_varNameStart_floatField & "2" & cg_varNameEndReadOnly, 9223.45, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newFloat(cg_varNameStart_floatField & "3" & cg_varNameEndReadOnly, 9323.45, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newFloat(cg_varNameStart_floatField & "4" & cg_varNameEndReadOnly, 9423.45, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newCharstring(cg_varNameStart_string & cg_varNameEndReadOnly,"readIGEN", vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newStatusLED(cg_varNameStart_statusLED & cg_varNameEndReadOnly, {led_yellow, omit}, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newStatusLED(cg_varNameStart_statusLEDWithText & cg_varNameEndReadOnly, {led_red, "readONE"}, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newBool(cg_varNameStart_checkBox & cg_varNameEndReadOnly, false, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newInt(cg_varNameStart_pushButton & cg_varNameEndReadOnly, 911, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newBool(cg_varNameStart_toolbarButton & cg_varNameEndReadOnly, true, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newBool(cg_varNameStart_toggleButton & cg_varNameEndReadOnly, false, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newIntegerlist(cg_varNameStart_valueList & cg_varNameEndReadOnly, {911,922,933,944,955,966,977,988,999}, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newCharstringlist(cg_varNameStart_stringList & cg_varNameEndReadOnly, {"9STR1", "9STR2", "9STR3"}, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newInt(cg_varNameStart_listIdx & cg_varNameEndReadOnly, 2, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newCharstring(cg_varNameStart_listItem & cg_varNameEndReadOnly, "STR2", vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newIntegerlist(cg_varNameStart_listIdxList & cg_varNameEndReadOnly, {1,2}, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newInt(cg_varNameStart_listIdxDisabled & cg_varNameEndReadOnly, 1, vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| f_EPTF_Var_newCharstring(cg_varNameStart_htmlstring & cg_varNameEndReadOnly,"https://ericsson.se", vl_intVarIdx); |
| f_EPTF_Var_setSubsCanAdjust(vl_intVarIdx,false); |
| |
| // } |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_UIHandler_Test_WidgetDisabledInXUL_DataSourceClientReady )); |
| /* in charstring pl_source, |
| in charstring pl_ptcName := "", |
| in fcb_EPTF_DataSourceClient_dataHandler pl_dataHandler, |
| in EPTF_DataSource_CT pl_sourceCompRef := null*/ |
| f_EPTF_DataSourceClient_registerData( |
| pl_source:=pl_selfName, |
| pl_ptcName:=f_EPTF_Base_selfName(), |
| pl_dataHandler:=refers(f_EPTF_UIHandlerTest_WidgetDisabledInXUL_dataHandler) |
| ); |
| |
| f_EPTF_DataSourceClient_registerData( |
| pl_source:="CheckChart_Provider", |
| pl_ptcName:=pl_selfName, |
| pl_dataHandler:=refers(f_EPTF_UIHandlerTest_WidgetDisabledInXUL_CheckChart_Manual_preProcessorData) |
| ); |
| |
| f_EPTF_DataSourceClient_sendReady( |
| pl_source:=cg_UIHandler_WidgetDisabledInXUL_Test_source, |
| pl_ptcName:=f_EPTF_Base_selfName() |
| ); |
| |
| // register your cleanup function: |
| f_EPTF_Base_registerCleanup(refers(f_UIHandler_WidgetDisabledInXUL_Test_cleanup_CT)); |
| // } - call all the init functions |
| } |
| private function f_UIHandler_WidgetDisabledInXUL_Test_cleanup_CT() runs on EPTF_UIHandler_Test_CT { |
| if (v_UIHandler_WidgetDisabledInXUL_Test_initialized == false) { |
| return; |
| } |
| v_UIHandler_WidgetDisabledInXUL_Test_initialized := false; |
| } |
| private function f_EPTF_UIHandler_get_XUL() runs on EPTF_UIHandler_Test_CT return charstring |
| { |
| var charstring vl_gui := ""; |
| vl_gui := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| /* window - */ |
| " <window height='800.0' id='MyNewEPTFMainWindow' orientation='vertical'"& |
| " title='"&cg_UIHandler_WidgetDisabledInXUL_Test_title&"' width='800.0'>"& |
| " <image id='image_id' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKTSURBVHjaYvz//z8DLQBAADEx0AgABBDN DAYIIBZGRkaqGca3ikGBlYmhnpWZIQAggBgZFzLsBwZzIUMCwwWyTZzPoMAANJCZEWgKA8MHZmYG R4AAYmSYzfAeLPmPwZEhnUTDZwINZGSo5+LgSvj28xsDkP0AiAMZkhkuAAQQE8Mvhg3ifOICDH8Y 9jNMZjAgysBJQAOnMMznYOa472DokKAiosIANOcCw28GQ5ChICUAAQQyeCPQFgYzBzMBoMR+hh48 hvcADexlmM/KzHpf01gzwSPUg+HKjSsMl25eOgB0mCNDJsMHmFKAAGJg6GIQYOhg+K/9Xfu/xGWJ /0D2e4Y2NMNbgQa2M8xn6mf6L3hE8L/GDw2weu553P8ZOoEhjAUABBAkSTQx7GcOZXZgUmdi+HPx D8P/Tf8/MPwHuuA/0AXAMGTgBEaKOQMDixkLAyMHUMsLBoY/i4Hqfv5fwFDHkIjNYIAAYgGTPxk2 /r301+Gv/F8GBnUg3w3oiy3AYGEH0mZAPghzAA0DQoaHQPYSsJ5EhhaGBbhCDSCAIC4uA3qVjeE+ QwGSzCsg5gdidiSxK0C8hwEUUYnAIFyAL34BAgiRO/KABscDLRDDofIqEG8DBg0TMIgmEE6WAAHE DGcZAg1lZ7BgkGAA+RkVg1y5H2goKK1PIS6tAwQQoqz4xXAQ7KrvaHgjEJ8AGvaHQZFhOvEZCCCA UAuKGGBSiwdGGC84ckBeZ2B4CjSMEejSxchplDAACCDU0u0/wwFgSDMwfATitUD8BBhB/0k3FAQA AogZhacHTLGfGQIYbgHZ74CGLgXG/mWGH+SUSwABhIqigcEQDXRjNErCIwsABBAjraomgACiWQ0C EEA0MxggwAAC5K2bqnDzRQAAAABJRU5ErkJggg==' />"& |
| |
| |
| |
| /* tree { + disabled |
| treecols { |
| - treecol + editable |
| } |
| treechildren { |
| - treeitem { |
| - treerow { |
| - treecell [visible] |
| } |
| } |
| } |
| |
| }*/ |
| " <hbox disabled='false' id='UIHandler_hbox_tree_0' flex='1.000000' orientation='vertical'>"& |
| |
| " <hbox disabled='false' id='UIHandler_hbox_tree_1' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Tree[EE]' id='Label_tree_1' ></label>"& |
| " <tree disabled='false' hidecolumnpicker='false' id='Tree_1'>"& |
| " <treecols>"& |
| " <treecol editable='true' id='Treecol_1_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol editable='true' id='Treecol_1_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol editable='true' id='Treecol_1_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol editable='true' id='Treecol_1_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol editable='true' id='Treecol_1_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol editable='true' id='Treecol_1_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol editable='true' id='Treecol_1_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol editable='true' id='Treecol_1_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='Treecell_1_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_1_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_1_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " <hbox disabled='false' id='UIHandler_hbox_tree_2' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Tree[EN]' id='Label_tree_2' ></label>"& |
| " <tree disabled='false' hidecolumnpicker='false' id='Tree_2'>"& |
| " <treecols>"& |
| " <treecol disabledongui='true' editable='true' id='Treecol_2_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol disabledongui='true' editable='true' id='Treecol_2_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol disabledongui='true' editable='true' id='Treecol_2_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol disabledongui='true' editable='true' id='Treecol_2_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol disabledongui='true' editable='true' id='Treecol_2_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol disabledongui='true' editable='true' id='Treecol_2_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol disabledongui='true' editable='true' id='Treecol_2_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol disabledongui='true' editable='true' id='Treecol_2_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='Treecell_2_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_2_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_2_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "2" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_2_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_2_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_2_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_2_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_2_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| |
| " <hbox disabled='false' id='UIHandler_hbox_tree_3' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Tree[DE]' id='Label_tree_3' ></label>"& |
| " <tree disabledongui='true' hidecolumnpicker='false' id='Tree_3'>"& |
| " <treecols>"& |
| " <treecol editable='true' id='Treecol_3_1' flex='1.000000' label='string' widgetType='string'/>"& |
| " <treecol editable='true' id='Treecol_3_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol editable='true' id='Treecol_3_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| " <treecol editable='true' id='Treecol_3_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol editable='true' id='Treecol_3_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol editable='true' id='Treecol_3_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol editable='true' id='Treecol_3_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol editable='true' id='Treecol_3_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='Treecell_3_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_3_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_3_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "3" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_3_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_3_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_3_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_3_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_3_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " <hbox disabled='false' id='UIHandler_hbox_tree_4' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Tree[DN]' id='Label_tree_4' ></label>"& |
| " <tree disabledongui='true' hidecolumnpicker='false' id='Tree_4'>"& |
| " <treecols>"& |
| " <treecol disabledongui='true' id='Treecol_4_1' flex='1.000000' label='string' widgetType='string'/>"& |
| " <treecol disabledongui='true' id='Treecol_4_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol disabledongui='true' id='Treecol_4_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| " <treecol disabledongui='true' id='Treecol_4_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol disabledongui='true' id='Treecol_4_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol disabledongui='true' id='Treecol_4_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol disabledongui='true' id='Treecol_4_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol disabledongui='true' id='Treecol_4_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='Treecell_4_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_4_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_4_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "4" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_4_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_4_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_4_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_4_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_4_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " </hbox>"& |
| |
| /* tabpages { + disabled |
| tabpage |
| }*/ |
| " <hbox disabledongui='true' id='UIHandler_tbpages_1' flex='0.000000' orientation='horizontal'>"& |
| " <tabpages flex='1.0' id='EPTF_WidgetDisabledInXUL_Tabpages_1' disabled='false'>"& |
| " <tabpage id='GUIVariables_Tabpage1_Id_1' label='UIHandler_Tabpage_1' orientation='vertical'>"& |
| |
| " </tabpage>"& |
| " <tabpage id='GUIVariables_Tabpage1_Id_2' label='UIHandler_Tabpage_2' orientation='vertical' disabledongui='true'>"& |
| |
| " </tabpage>"& |
| " </tabpages>"& |
| |
| " <tabpages flex='1.0' id='EPTF_WidgetDisabledInXUL_Tabpages_2' disabledongui='true' layout='LISTCARD'>"& |
| " <tabpage id='GUIVariables_Tabpage2_Id_1' label='Tabpage On Disabled Pages 1' orientation='vertical'>"& |
| |
| " </tabpage>"& |
| " <tabpage id='GUIVariables_Tabpage2_Id_2' label='Tabpage On Disabled Pages 2' orientation='vertical'>"& |
| |
| " </tabpage>"& |
| |
| " </tabpages>"& |
| " </hbox>"& |
| |
| " <hbox disabled='false' id='UIHandler_hbox_2' flex='1.000000' orientation='vertical'>"& |
| " <hbox disabled='false' id='UIHandler_hbox_label' flex='1.000000' orientation='horizontal'>"& |
| |
| /* label + disabled */ |
| " <label disabled='false' flex='1.000000' value='Labels[EW ER DW DR]' id='Label_ID_1' >"& |
| " </label>"& |
| " <label disabled='false' flex='1.000000' value='EW' id='Label_ID_2' >"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </label>"& |
| " <label disabled='false' flex='1.000000' value='ER' id='Label_ID_3' >"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </label>"& |
| " <label disabledongui='true' flex='1.000000' value='DW' id='Label_ID_4' >"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </label>"& |
| " <label disabledongui='true' disabled='false' flex='1.000000' value='DR' id='Label_ID_5' >"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </label>"& |
| " </hbox>"& |
| |
| /* textbox + disabled ; readonly */ |
| " <hbox disabled='false' id='UIHandler_hbox_textbox' flex='1.000000' orientation='vertical'>"& |
| " <hbox disabled='false' id='UIHandler_hbox_textbox_1' flex='1.000000' orientation='horizontal'>"& |
| |
| " <textbox flex='1.000000' id='textbox_002' multiline='false' readonly='true' disabled='false' value='Textbox[RES REW RER EW ER]' />"& |
| " <textbox flex='1.000000' id='textbox_003' multiline='false' readonly='true' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_004' multiline='false' readonly='true' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_005' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_006' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " </hbox>"& |
| |
| " <hbox disabled='false' id='UIHandler_hbox_textbox_2' flex='1.000000' orientation='horizontal'>"& |
| " <textbox flex='1.000000' id='textbox_007' multiline='false' readonly='true' disabledongui='true' value='Textbox[RDS RDW RDR DW DR]' />"& |
| " <textbox flex='1.000000' id='textbox_008' multiline='false' readonly='true' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_009' multiline='false' readonly='true' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_010' multiline='false' readonly='false' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_011' multiline='false' readonly='false' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| |
| " </hbox>"& |
| " </hbox>"& |
| |
| /* numericalwidget + disabled; readonly */ |
| |
| " <hbox disabled='false' id='UIHandler_hbox_numericalwidget_1' flex='1.000000' orientation='vertical'>"& |
| " <hbox disabled='false' id='UIHandler_hbox_numericalwidget_2' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Numericalwidget[REW RER EW ER]' id='Label_numericalwidget_1' >"& |
| " </label>"& |
| " <numericalwidget disabledongui='true' readonly='false' disabled='false' flex='1.000000' id='numericalwidget_01' tooltiptext='REW' widgetType='floatField' slider='true' minvalue='0.0' maxvalue='1000000.0' stepsize='2.0' >"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </numericalwidget>"& |
| " <numericalwidget readonly='false' disabled='false' flex='1.000000' id='numericalwidget_02' tooltiptext='RER' widgetType='floatField' slider='true' value='20.0' minvalue='0.0' maxvalue='1000000.0' stepsize='2.0' >"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </numericalwidget>"& |
| |
| /* More widget from this type results => |
| ---------------------------------------------- |
| java.lang.reflect.InvocationTargetException |
| at java.awt.EventQueue.invokeAndWait(Unknown Source) |
| at javax.swing.SwingUtilities.invokeAndWait(Unknown Source) |
| at com.ericsson.titan.runtime_gui.TitanRuntimeGUI_XTDPConnection.run(TitanRuntimeGUI_XTDPConnection.java:676) |
| Caused by: java.lang.NullPointerException |
| at com.ericsson.titan.runtime_gui.widget_library.TitanXULNumericalWidget.updateSlider(TitanXULNumericalWidget.java:333) |
| at com.ericsson.titan.runtime_gui.widget_library.TitanXULNumericalWidget.updateComponent(TitanXULNumericalWidget.java:387) |
| at com.ericsson.titan.runtime_gui.TitanXULLoader.setElementsWithNewType(TitanXULLoader.java:383) |
| at com.ericsson.titan.runtime_gui.TitanRuntimeGUI_XTDPConnection.handleRequests(TitanRuntimeGUI_XTDPConnection.java:1130) |
| at com.ericsson.titan.runtime_gui.TitanRuntimeGUI_XTDPConnection.processMessage(TitanRuntimeGUI_XTDPConnection.java:847) |
| at com.ericsson.titan.runtime_gui.TitanRuntimeGUI_XTDPConnection.access$200(TitanRuntimeGUI_XTDPConnection.java:77) |
| at com.ericsson.titan.runtime_gui.TitanRuntimeGUI_XTDPConnection$1.run(TitanRuntimeGUI_XTDPConnection.java:198) |
| at java.awt.event.InvocationEvent.dispatch(Unknown Source) |
| at java.awt.EventQueue.dispatchEvent(Unknown Source) |
| at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) |
| at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) |
| at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) |
| at java.awt.EventDispatchThread.pumpEvents(Unknown Source) |
| at java.awt.EventDispatchThread.pumpEvents(Unknown Source) |
| at java.awt.EventDispatchThread.run(Unknown Source) |
| ---------------------------------------------- |
| |
| " <numericalwidget readonly='true' disabled='false' flex='1.000000' id='numericalwidget_03' tooltiptext='EW' widgetType='floatField' slider='true' value='30.0' minvalue='0.0' maxvalue='1000000.0' stepsize='2.0' >"& |
| " <externaldata element='"&cg_varNameStart_floatField & "2" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </numericalwidget>"& |
| " <numericalwidget readonly='true' disabled='false' flex='1.000000' id='numericalwidget_04' tooltiptext='ER' widgetType='floatField' slider='true' value='40.0' minvalue='0.0' maxvalue='1000000.0' stepsize='2.0' >"& |
| " <externaldata element='"&cg_varNameStart_floatField & "2" & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </numericalwidget>"& |
| " </hbox>"& |
| |
| " <hbox disabled='false' id='UIHandler_hbox_numericalwidget_3' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Numericalwidget[RDW RDR DW DR]' id='Label_numericalwidget_2' >"& |
| " </label>"& |
| |
| " <numericalwidget readonly='true' disabledongui='true' flex='1.000000' id='numericalwidget_05' tooltiptext='RDW' widgetType='floatField' slider='true' value='50.0' minvalue='0.0' maxvalue='1000000.0' stepsize='2.0' >"& |
| " <externaldata element='"&cg_varNameStart_floatField & "3" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </numericalwidget>"& |
| |
| " <numericalwidget readonly='true' disabledongui='true' flex='1.000000' id='numericalwidget_06' tooltiptext='RDR' widgetType='floatField' slider='true' value='60.0' minvalue='0.0' maxvalue='1000000.0' stepsize='2.0' >"& |
| " <externaldata element='"&cg_varNameStart_floatField & "3" & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </numericalwidget>"& |
| " <numericalwidget readonly='false' disabledongui='true' flex='1.000000' id='numericalwidget_07' tooltiptext='DW' widgetType='floatField' slider='true' value='70.0' minvalue='0.0' maxvalue='1000000.0' stepsize='2.0' >"& |
| " <externaldata element='"&cg_varNameStart_floatField & "4" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </numericalwidget>"& |
| " <numericalwidget readonly='false' disabledongui='true' flex='1.000000' id='numericalwidget_08' tooltiptext='DR' widgetType='floatField' slider='true' value='80.0' minvalue='0.0' maxvalue='1000000.0' stepsize='2.0' >"& |
| " <externaldata element='"&cg_varNameStart_floatField & "4" & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </numericalwidget>"& |
| */ |
| " </hbox>"& |
| " </hbox>"& |
| |
| |
| /* button + disabled */ |
| " <hbox disabled='false' id='UIHandler_hbox_button_1' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Button[EW ER DW DR]' id='Label_button_1' >"& |
| " </label>"& |
| " <button disabled='false' flex='1.000000' id='button_01' label='EW' >"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </button>"& |
| " <button disabled='false' flex='1.000000' id='button_02' label='ER' >"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </button>"& |
| " <button disabledongui='true' flex='1.000000' id='button_03' label='DW' >"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </button>"& |
| " <button disabledongui='true' flex='1.000000' id='button_04' label='DR' >"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </button>"& |
| " </hbox>"& |
| |
| |
| |
| /* listbox + disabled */ |
| " <hbox disabled='false' id='UIHandler_hbox_listbox_1' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Listbox[EW ER DW DR]' id='Label_listbox_1' ></label>"& |
| |
| " <listbox flex='1.000000' id='list_1' seltype='single' disabled='false'>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " <iterator id='testIteratorList_1' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <listitem id='listitem_1_%testIteratorList_1%' label='%testIteratorList_1%' selected='false'/>"& |
| " </iterator>"& |
| " </listbox>"& |
| |
| " <listbox flex='1.000000' id='list_2' seltype='multiple' disabled='false'>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdxList & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " <iterator id='testIteratorList_2' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <listitem id='listitem_2_%testIteratorList_2%' label='%testIteratorList_2%' selected='false'/>"& |
| " </iterator>"& |
| " </listbox>"& |
| |
| " <listbox flex='1.000000' id='list_3' seltype='multiple' disabledongui='true'>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " <iterator id='testIteratorList_3' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <listitem id='listitem_3_%testIteratorList_3%' label='%testIteratorList_3%' selected='false'/>"& |
| " </iterator>"& |
| " </listbox>"& |
| |
| " <listbox flex='1.000000' id='list_4' seltype='single' disabledongui='true'>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdxDisabled & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " <iterator id='testIteratorList_4' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <listitem id='listitem_4_%testIteratorList_4%' label='%testIteratorList_4%' selected='false'/>"& |
| " </iterator>"& |
| " </listbox>"& |
| |
| " </hbox>"& |
| |
| /* menulist + disabled ; readonly ; editable */ |
| /* menuitem - */ |
| " <hbox disabled='false' id='UIHandler_hbox_menulist_1' flex='1.000000' orientation='vertical'>"& |
| " <hbox disabled='false' id='UIHandler_hbox_menulist_2' flex='1.000000' orientation='horizontal'>"& |
| |
| " <label disabled='false' flex='1.000000' value='Menulist[EEW EER NEW NER]' id='Label_menulist_1' >"& |
| " </label>"& |
| " <menulist flex='1.000000' id='menulist_1' disabled='false' editable='true'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_1' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_1_%menuitemIteratorList_1%' label='%menuitemIteratorList_1%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listItem & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist flex='1.000000' id='menulist_2' disabled='false' editable='true'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_2' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_2_%menuitemIteratorList_2%' label='%menuitemIteratorList_2%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listItem & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist flex='1.000000' id='menulist_3' disabled='false' editable='false'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_3' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_3_%menuitemIteratorList_3%' label='%menuitemIteratorList_3%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listItem & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist flex='1.000000' id='menulist_4' disabled='false' editable='false'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_4' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_4_%menuitemIteratorList_4%' label='%menuitemIteratorList_4%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listItem & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| |
| " </hbox>"& |
| |
| " <hbox disabled='false' id='UIHandler_hbox_menulist_3' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Menulist[EDW EDR NDW NDR]' id='Label_menulist_2' >"& |
| " </label>"& |
| " <menulist flex='1.000000' id='menulist_5' disabledongui='true' editable='true'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_5' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_5_%menuitemIteratorList_5%' label='%menuitemIteratorList_5%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listItem & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist flex='1.000000' id='menulist_6' disabledongui='true' editable='true'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_6' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_6_%menuitemIteratorList_6%' label='%menuitemIteratorList_6%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listItem & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist flex='1.000000' id='menulist_7' disabledongui='true' editable='false'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_7' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_7_%menuitemIteratorList_7%' label='%menuitemIteratorList_7%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listItem & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist flex='1.000000' id='menulist_8' disabledongui='true' editable='false'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_8' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_8_%menuitemIteratorList_8%' label='%menuitemIteratorList_8%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listItem & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " </hbox>"& |
| " </hbox>"& |
| |
| /* chart + disabled */ |
| " <hbox disabled='false' id='UIHandler_hbox_chart_1' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Chart[E D]' id='Label_chart_1' ></label>"& |
| " <chart disabled='false' flex='1.000000' id='chart_1' title='Chart enabled'>"& |
| " <trace color='blue' fill='false' id='trace_blue_1' maxPoints='2048' name='CPS' physicalUnitX='sec' physicalUnitY='call/sec'>"& |
| " <externaldata element='ChartData' source='CheckChart_Provider'>"& |
| " <params>"& |
| " <dataparam name='TraceName' value='trace1'></dataparam>"& |
| " </params>"& |
| " </externaldata>"& |
| " </trace>"& |
| " </chart>"& |
| " <chart disabledongui='true' flex='1.000000' id='chart_2' title='Chart disabled'>"& |
| " <trace color='blue' fill='false' id='trace_blue_2' maxPoints='2048' name='CPS' physicalUnitX='sec' physicalUnitY='call/sec'>"& |
| " <externaldata element='ChartData' source='CheckChart_Provider'>"& |
| " <params>"& |
| " <dataparam name='TraceName' value='trace2'></dataparam>"& |
| " </params>"& |
| " </externaldata>"& |
| " </trace>"& |
| " </chart>"& |
| " </hbox>"& |
| |
| /* toolbar + disabled */ |
| /* toolbarelements { |
| toolbarbutton + disabled |
| pushbutton + disabled |
| togglebutton + disabled |
| separator - |
| } */ |
| |
| " <hbox disabled='false' id='UIHandler_hbox_toolbar_1' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Toolbar[EW DR DW DR]' id='Label_toolbar_1' ></label>"& |
| |
| " <toolbar disabled='false' id='toolbar_01' placement='east'>"& |
| " <toolbarbutton disabled='false' id='toolbarbutton_01_01' tooltiptext='EW' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton disabled='false' id='toolbarbutton_01_02' tooltiptext='ER' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton disabledongui='true' id='toolbarbutton_01_03' tooltiptext='DW' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton disabledongui='true' id='toolbarbutton_01_04' tooltiptext='DR' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " </toolbar>"& |
| |
| |
| " </hbox>"& |
| |
| " <hbox disabledongui='true' id='UIHandler_hbox_toolbar_2' flex='1.000000' orientation='horizontal'>"& |
| " <toolbar disabledongui='true' id='toolbar_02' placement='west'>"& |
| " <toolbarbutton disabled='false' id='toolbarbutton_02_01' tooltiptext='EW' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton disabled='false' id='toolbarbutton_02_02' tooltiptext='ER' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton disabledongui='true' id='toolbarbutton_02_03' tooltiptext='DW' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton disabledongui='true' id='toolbarbutton_02_04' tooltiptext='DR' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " </toolbar>"& |
| " </hbox>"& |
| |
| |
| /* hbox + disabled */ |
| " <hbox disabledongui='true' id='UIHandler_hbox_1' flex='0.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='0.000000' value='Label On Disabled HBOX' id='Label_ID_0' >"& |
| " </label>"& |
| " <textbox flex='1.000000' id='textbox_101' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_201' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_301' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdx & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_d301' multiline='false' readonly='false' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdx & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_401' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdxDisabled & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_d401' multiline='false' readonly='false' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdxDisabled & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_d401RO' multiline='false' readonly='false' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdxDisabled & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_501' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdx & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_601' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdxList & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_701' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdxList & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='textbox_801' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " </hbox>"& |
| |
| /* htmlcode + disabled */ |
| |
| |
| " <hbox disabled='false' id='UIHandler_hbox_htmlcode_1' flex='1.000000' orientation='horizontal'>"& |
| " <label disabled='false' flex='1.000000' value='Htmlcode[EW ER DW DR]' id='Label_htmlcode_1' ></label>"& |
| " <htmlcode disabled='false' id='htmlcode_01' >"& |
| " <externaldata element='"&cg_varNameStart_htmlstring & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " <value>value1</value>"& |
| " </htmlcode>"& |
| " <textbox flex='1.000000' id='textbox_901' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </textbox>"& |
| " <htmlcode disabled='false' id='htmlcode_02' >"& |
| " <externaldata element='"&cg_varNameStart_htmlstring & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " <value>value2</value>"& |
| " </htmlcode>"& |
| " <textbox flex='1.000000' id='textbox_902' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "2" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </textbox>"& |
| " <htmlcode disabledongui='true' id='htmlcode_03' >"& |
| " <externaldata element='"&cg_varNameStart_htmlstring & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " <value>value3</value>"& |
| " </htmlcode>"& |
| " <textbox flex='1.000000' id='textbox_903' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "3" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </textbox>"& |
| " <htmlcode disabledongui='true' id='htmlcode_04' >"& |
| " <externaldata element='"&cg_varNameStart_htmlstring & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " <value>value4</value>"& |
| " </htmlcode>"& |
| " <textbox flex='1.000000' id='textbox_904' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "4" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </textbox>"& |
| " </hbox>"& |
| |
| |
| |
| /* distributionchart + disabled */ |
| |
| |
| |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>"; |
| |
| return(vl_gui); |
| } |
| |
| |
| //" \([0-9]+\)" -> "" |
| // "xy_value := \{ x := [0-9]+[.][0-9]+" -> "xy_value := \{ x := *" |
| // "imagedata := "[^"]+"" -> imagedata := * |
| |
| |
| template Widgets c_EPTF_UIHandler_Test_WidgetDisabledInXUL_expected_widgets := { window := { about := omit, height := 800.000000, help := omit, id := "MyNewEPTFMainWindow", |
| orientation := vertical, title := "UIHandler WidgetDisabledInXUL TEST", width := 800.000000, image_list := { { |
| id := "image_id", imagedata := *, imageurl := omit } }, embeddedwidgets := { embeddedwidget_list := { { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_tree_0", orientation := vertical, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_tree_1", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_tree_1", style := omit, tooltiptext := omit, value_ := "Tree[EE]", externaldata := omit } }, { tree := { customclass := omit, disabled := false, disabledongui := omit, flex := omit, hidecolumnpicker := false, |
| id := "Tree_1", rows := 0.000000, treecols := { treecolgroups := { treecolgroup_list := { { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_1_1", label_ := "string", tooltiptext := omit, treecellalign := omit, widgetType := string } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_1_2", label_ := "integerField", tooltiptext := omit, treecellalign := omit, widgetType := integerField } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_1_3", label_ := "floatField", tooltiptext := omit, treecellalign := omit, widgetType := floatField } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_1_4", label_ := "checkBox", tooltiptext := omit, treecellalign := omit, widgetType := checkBox } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_1_5", label_ := "statusLED", tooltiptext := omit, treecellalign := omit, widgetType := statusLED } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_1_6", label_ := "statusLEDWithText", tooltiptext := omit, treecellalign := omit, widgetType := statusLEDWithText } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_1_7", label_ := "pushButton", tooltiptext := omit, treecellalign := omit, widgetType := pushButton } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_1_8", label_ := "toggleButton", tooltiptext := omit, treecellalign := omit, widgetType := toggleButton } } } } }, treechildren := { treeitemgroups := { treeitemgroup_list := { { treeitem := { treerowgroups := { treerowgroup_list := { { treerow := { treecellgroups := { treecellgroup_list := { { treecell := { align := omit, customclass := omit, |
| id := "Treecell_1_1", imageid := omit, label_ := "IGEN", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_1_2", imageid := omit, label_ := "123", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_1_3", imageid := omit, label_ := "123.450000", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_1_4", imageid := omit, label_ := "true", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_1_5", imageid := omit, label_ := "[led:green]", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_1_6", imageid := omit, label_ := "[led:red]ONE", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_1_7", imageid := omit, label_ := omit, tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_1_8", imageid := omit, label_ := "true", tooltiptext := omit, visible := omit, externaldata := omit } } } } } } } } } } } } } } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_tree_2", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_tree_2", style := omit, tooltiptext := omit, value_ := "Tree[EN]", externaldata := omit } }, { tree := { customclass := omit, disabled := false, disabledongui := omit, flex := omit, hidecolumnpicker := false, |
| id := "Tree_2", rows := 0.000000, treecols := { treecolgroups := { treecolgroup_list := { { treecol := { align := omit, customclass := omit, disabledongui := true, editable := true, flex := 1.000000, |
| id := "Treecol_2_1", label_ := "string", tooltiptext := omit, treecellalign := omit, widgetType := string } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := true, flex := 1.000000, |
| id := "Treecol_2_2", label_ := "integerField", tooltiptext := omit, treecellalign := omit, widgetType := integerField } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := true, flex := 1.000000, |
| id := "Treecol_2_3", label_ := "floatField", tooltiptext := omit, treecellalign := omit, widgetType := floatField } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := true, flex := 1.000000, |
| id := "Treecol_2_4", label_ := "checkBox", tooltiptext := omit, treecellalign := omit, widgetType := checkBox } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := true, flex := 1.000000, |
| id := "Treecol_2_5", label_ := "statusLED", tooltiptext := omit, treecellalign := omit, widgetType := statusLED } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := true, flex := 1.000000, |
| id := "Treecol_2_6", label_ := "statusLEDWithText", tooltiptext := omit, treecellalign := omit, widgetType := statusLEDWithText } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := true, flex := 1.000000, |
| id := "Treecol_2_7", label_ := "pushButton", tooltiptext := omit, treecellalign := omit, widgetType := pushButton } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := true, flex := 1.000000, |
| id := "Treecol_2_8", label_ := "toggleButton", tooltiptext := omit, treecellalign := omit, widgetType := toggleButton } } } } }, treechildren := { treeitemgroups := { treeitemgroup_list := { { treeitem := { treerowgroups := { treerowgroup_list := { { treerow := { treecellgroups := { treecellgroup_list := { { treecell := { align := omit, customclass := omit, |
| id := "Treecell_2_1", imageid := omit, label_ := "IGEN", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_2_2", imageid := omit, label_ := "123", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_2_3", imageid := omit, label_ := "223.450000", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_2_4", imageid := omit, label_ := "true", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_2_5", imageid := omit, label_ := "[led:green]", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_2_6", imageid := omit, label_ := "[led:red]ONE", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_2_7", imageid := omit, label_ := omit, tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_2_8", imageid := omit, label_ := "true", tooltiptext := omit, visible := omit, externaldata := omit } } } } } } } } } } } } } } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_tree_3", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_tree_3", style := omit, tooltiptext := omit, value_ := "Tree[DE]", externaldata := omit } }, { tree := { customclass := omit, disabled := omit, disabledongui := true, flex := omit, hidecolumnpicker := false, |
| id := "Tree_3", rows := 0.000000, treecols := { treecolgroups := { treecolgroup_list := { { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_3_1", label_ := "string", tooltiptext := omit, treecellalign := omit, widgetType := string } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_3_2", label_ := "integerField", tooltiptext := omit, treecellalign := omit, widgetType := integerField } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_3_3", label_ := "floatField", tooltiptext := omit, treecellalign := omit, widgetType := floatField } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_3_4", label_ := "checkBox", tooltiptext := omit, treecellalign := omit, widgetType := checkBox } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_3_5", label_ := "statusLED", tooltiptext := omit, treecellalign := omit, widgetType := statusLED } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_3_6", label_ := "statusLEDWithText", tooltiptext := omit, treecellalign := omit, widgetType := statusLEDWithText } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_3_7", label_ := "pushButton", tooltiptext := omit, treecellalign := omit, widgetType := pushButton } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "Treecol_3_8", label_ := "toggleButton", tooltiptext := omit, treecellalign := omit, widgetType := toggleButton } } } } }, treechildren := { treeitemgroups := { treeitemgroup_list := { { treeitem := { treerowgroups := { treerowgroup_list := { { treerow := { treecellgroups := { treecellgroup_list := { { treecell := { align := omit, customclass := omit, |
| id := "Treecell_3_1", imageid := omit, label_ := "IGEN", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_3_2", imageid := omit, label_ := "123", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_3_3", imageid := omit, label_ := "323.450000", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_3_4", imageid := omit, label_ := "true", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_3_5", imageid := omit, label_ := "[led:green]", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_3_6", imageid := omit, label_ := "[led:red]ONE", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_3_7", imageid := omit, label_ := omit, tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_3_8", imageid := omit, label_ := "true", tooltiptext := omit, visible := omit, externaldata := omit } } } } } } } } } } } } } } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_tree_4", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_tree_4", style := omit, tooltiptext := omit, value_ := "Tree[DN]", externaldata := omit } }, { tree := { customclass := omit, disabled := omit, disabledongui := true, flex := omit, hidecolumnpicker := false, |
| id := "Tree_4", rows := 0.000000, treecols := { treecolgroups := { treecolgroup_list := { { treecol := { align := omit, customclass := omit, disabledongui := true, editable := omit, flex := 1.000000, |
| id := "Treecol_4_1", label_ := "string", tooltiptext := omit, treecellalign := omit, widgetType := string } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := omit, flex := 1.000000, |
| id := "Treecol_4_2", label_ := "integerField", tooltiptext := omit, treecellalign := omit, widgetType := integerField } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := omit, flex := 1.000000, |
| id := "Treecol_4_3", label_ := "floatField", tooltiptext := omit, treecellalign := omit, widgetType := floatField } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := omit, flex := 1.000000, |
| id := "Treecol_4_4", label_ := "checkBox", tooltiptext := omit, treecellalign := omit, widgetType := checkBox } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := omit, flex := 1.000000, |
| id := "Treecol_4_5", label_ := "statusLED", tooltiptext := omit, treecellalign := omit, widgetType := statusLED } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := omit, flex := 1.000000, |
| id := "Treecol_4_6", label_ := "statusLEDWithText", tooltiptext := omit, treecellalign := omit, widgetType := statusLEDWithText } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := omit, flex := 1.000000, |
| id := "Treecol_4_7", label_ := "pushButton", tooltiptext := omit, treecellalign := omit, widgetType := pushButton } }, { treecol := { align := omit, customclass := omit, disabledongui := true, editable := omit, flex := 1.000000, |
| id := "Treecol_4_8", label_ := "toggleButton", tooltiptext := omit, treecellalign := omit, widgetType := toggleButton } } } } }, treechildren := { treeitemgroups := { treeitemgroup_list := { { treeitem := { treerowgroups := { treerowgroup_list := { { treerow := { treecellgroups := { treecellgroup_list := { { treecell := { align := omit, customclass := omit, |
| id := "Treecell_4_1", imageid := omit, label_ := "IGEN", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_4_2", imageid := omit, label_ := "123", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_4_3", imageid := omit, label_ := "423.450000", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_4_4", imageid := omit, label_ := "true", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_4_5", imageid := omit, label_ := "[led:green]", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_4_6", imageid := omit, label_ := "[led:red]ONE", tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_4_7", imageid := omit, label_ := omit, tooltiptext := omit, visible := omit, externaldata := omit } }, { treecell := { align := omit, customclass := omit, |
| id := "Treecell_4_8", imageid := omit, label_ := "true", tooltiptext := omit, visible := omit, externaldata := omit } } } } } } } } } } } } } } } } } } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := true, fixedposition := omit, flex := 0.000000, |
| id := "UIHandler_tbpages_1", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { tabpages := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "EPTF_WidgetDisabledInXUL_Tabpages_1", layout := omit, tabpagegroups := { tabpagegroup_list := { { tabpage := { customclass := omit, disabledongui := omit, |
| id := "GUIVariables_Tabpage1_Id_1", label_ := "UIHandler_Tabpage_1", maxheight := omit, orientation := vertical, tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { } } } }, { tabpage := { customclass := omit, disabledongui := true, |
| id := "GUIVariables_Tabpage1_Id_2", label_ := "UIHandler_Tabpage_2", maxheight := omit, orientation := vertical, tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { } } } } } } } }, { tabpages := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, |
| id := "EPTF_WidgetDisabledInXUL_Tabpages_2", layout := lISTCARD, tabpagegroups := { tabpagegroup_list := { { tabpage := { customclass := omit, disabledongui := omit, |
| id := "GUIVariables_Tabpage2_Id_1", label_ := "Tabpage On Disabled Pages 1", maxheight := omit, orientation := vertical, tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { } } } }, { tabpage := { customclass := omit, disabledongui := omit, |
| id := "GUIVariables_Tabpage2_Id_2", label_ := "Tabpage On Disabled Pages 2", maxheight := omit, orientation := vertical, tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { } } } } } } } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_2", orientation := vertical, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_label", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_ID_1", style := omit, tooltiptext := omit, value_ := "Labels[EW ER DW DR]", externaldata := omit } }, { label_ := { customclass := "HasExternalData", disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_ID_2", style := omit, tooltiptext := omit, value_ := "IGEN", externaldata := omit } }, { label_ := { customclass := "HasExternalData", disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_ID_3", style := omit, tooltiptext := omit, value_ := "readIGEN", externaldata := omit } }, { label_ := { customclass := "HasExternalData", disabled := omit, disabledongui := true, flex := 1.000000, |
| id := "Label_ID_4", style := omit, tooltiptext := omit, value_ := "IGEN", externaldata := omit } }, { label_ := { customclass := "HasExternalData", disabled := false, disabledongui := true, flex := 1.000000, |
| id := "Label_ID_5", style := omit, tooltiptext := omit, value_ := "readIGEN", externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_textbox", orientation := vertical, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_textbox_1", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_002", multiline := false, readonly := true, rows := omit, tooltiptext := omit, value_ := "Textbox[RES REW RER EW ER]", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_003", multiline := false, readonly := true, rows := omit, tooltiptext := omit, value_ := "IGEN", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_004", multiline := false, readonly := true, rows := omit, tooltiptext := omit, value_ := "readIGEN", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_005", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "IGEN", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := true, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_006", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "readIGEN", widgetType := omit, wrap := omit, externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_textbox_2", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { textbox := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_007", multiline := false, readonly := true, rows := omit, tooltiptext := omit, value_ := "Textbox[RDS RDW RDR DW DR]", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_008", multiline := false, readonly := true, rows := omit, tooltiptext := omit, value_ := "IGEN", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_009", multiline := false, readonly := true, rows := omit, tooltiptext := omit, value_ := "readIGEN", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_010", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "IGEN", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_011", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "readIGEN", widgetType := omit, wrap := omit, externaldata := omit } } } } } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_numericalwidget_1", orientation := vertical, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_numericalwidget_2", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_numericalwidget_1", style := omit, tooltiptext := omit, value_ := "Numericalwidget[REW RER EW ER]", externaldata := omit } }, { numericalwidget := { customclass := omit, disabled := false, disabledongui := true, flex := 1.000000, |
| id := "numericalwidget_01", maxvalue := 1000000.000000, minvalue := 0.000000, readonly := false, slider := true, spinner := omit, stepsize := 2.000000, tooltiptext := "REW", value_ := 123.450000, widgetType := floatField, externaldata := omit } }, { numericalwidget := { customclass := omit, disabled := true, disabledongui := omit, flex := 1.000000, |
| id := "numericalwidget_02", maxvalue := 1000000.000000, minvalue := 0.000000, readonly := false, slider := true, spinner := omit, stepsize := 2.000000, tooltiptext := "RER", value_ := 9123.450000, widgetType := floatField, externaldata := omit } } } } } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_button_1", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_button_1", style := omit, tooltiptext := omit, value_ := "Button[EW ER DW DR]", externaldata := omit } }, { button := { checked := omit, customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "button_01", imageid := omit, label_ := "EW", tooltiptext := omit, type_ := omit, externaldata := omit } }, { button := { checked := omit, customclass := omit, disabled := true, disabledongui := omit, flex := 1.000000, |
| id := "button_02", imageid := omit, label_ := "ER", tooltiptext := omit, type_ := omit, externaldata := omit } }, { button := { checked := omit, customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, |
| id := "button_03", imageid := omit, label_ := "DW", tooltiptext := omit, type_ := omit, externaldata := omit } }, { button := { checked := omit, customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, |
| id := "button_04", imageid := omit, label_ := "DR", tooltiptext := omit, type_ := omit, externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_listbox_1", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_listbox_1", style := omit, tooltiptext := omit, value_ := "Listbox[EW ER DW DR]", externaldata := omit } }, { listbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "list_1", rows := omit, seltype := single, tooltiptext := omit, externaldata := omit, listitemgroups := { listitemgroup_list := { { listitem := { |
| id := "listitem_1_STR1", label_ := "STR1", selected := false } }, { listitem := { |
| id := "listitem_1_STR2", label_ := "STR2", selected := false } }, { listitem := { |
| id := "listitem_1_STR3", label_ := "STR3", selected := false } } } } } }, { listbox := { customclass := omit, disabled := true, disabledongui := omit, flex := 1.000000, |
| id := "list_2", rows := omit, seltype := multiple, tooltiptext := omit, externaldata := omit, listitemgroups := { listitemgroup_list := { { listitem := { |
| id := "listitem_2_STR1", label_ := "STR1", selected := false } }, { listitem := { |
| id := "listitem_2_STR2", label_ := "STR2", selected := false } }, { listitem := { |
| id := "listitem_2_STR3", label_ := "STR3", selected := true } } } } } }, { listbox := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, |
| id := "list_3", rows := omit, seltype := multiple, tooltiptext := omit, externaldata := omit, listitemgroups := { listitemgroup_list := { { listitem := { |
| id := "listitem_3_STR1", label_ := "STR1", selected := false } }, { listitem := { |
| id := "listitem_3_STR2", label_ := "STR2", selected := false } }, { listitem := { |
| id := "listitem_3_STR3", label_ := "STR3", selected := false } } } } } }, { listbox := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, |
| id := "list_4", rows := omit, seltype := single, tooltiptext := omit, externaldata := omit, listitemgroups := { listitemgroup_list := { { listitem := { |
| id := "listitem_4_STR1", label_ := "STR1", selected := false } }, { listitem := { |
| id := "listitem_4_STR2", label_ := "STR2", selected := false } }, { listitem := { |
| id := "listitem_4_STR3", label_ := "STR3", selected := false } } } } } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_menulist_1", orientation := vertical, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_menulist_2", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_menulist_1", style := omit, tooltiptext := omit, value_ := "Menulist[EEW EER NEW NER]", externaldata := omit } }, { menulist := { customclass := omit, disabled := false, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "menulist_1", label_ := omit, readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { |
| id := "menuitem_1_STR1", label_ := "STR1", selected := false, externaldata := omit } }, { menuitem := { |
| id := "menuitem_1_STR2", label_ := "STR2", selected := true, externaldata := omit } }, { menuitem := { |
| id := "menuitem_1_STR3", label_ := "STR3", selected := false, externaldata := omit } } } } } }, externaldata := omit } }, { menulist := { customclass := omit, disabled := true, disabledongui := omit, editable := true, flex := 1.000000, |
| id := "menulist_2", label_ := omit, readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { |
| id := "menuitem_2_STR1", label_ := "STR1", selected := false, externaldata := omit } }, { menuitem := { |
| id := "menuitem_2_STR2", label_ := "STR2", selected := true, externaldata := omit } }, { menuitem := { |
| id := "menuitem_2_STR3", label_ := "STR3", selected := false, externaldata := omit } } } } } }, externaldata := omit } }, { menulist := { customclass := omit, disabled := false, disabledongui := omit, editable := false, flex := 1.000000, |
| id := "menulist_3", label_ := omit, readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { |
| id := "menuitem_3_STR1", label_ := "STR1", selected := false, externaldata := omit } }, { menuitem := { |
| id := "menuitem_3_STR2", label_ := "STR2", selected := true, externaldata := omit } }, { menuitem := { |
| id := "menuitem_3_STR3", label_ := "STR3", selected := false, externaldata := omit } } } } } }, externaldata := omit } }, { menulist := { customclass := omit, disabled := true, disabledongui := omit, editable := false, flex := 1.000000, |
| id := "menulist_4", label_ := omit, readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { |
| id := "menuitem_4_STR1", label_ := "STR1", selected := false, externaldata := omit } }, { menuitem := { |
| id := "menuitem_4_STR2", label_ := "STR2", selected := true, externaldata := omit } }, { menuitem := { |
| id := "menuitem_4_STR3", label_ := "STR3", selected := false, externaldata := omit } } } } } }, externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_menulist_3", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_menulist_2", style := omit, tooltiptext := omit, value_ := "Menulist[EDW EDR NDW NDR]", externaldata := omit } }, { menulist := { customclass := omit, disabled := omit, disabledongui := true, editable := true, flex := 1.000000, |
| id := "menulist_5", label_ := omit, readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { |
| id := "menuitem_5_STR1", label_ := "STR1", selected := false, externaldata := omit } }, { menuitem := { |
| id := "menuitem_5_STR2", label_ := "STR2", selected := true, externaldata := omit } }, { menuitem := { |
| id := "menuitem_5_STR3", label_ := "STR3", selected := false, externaldata := omit } } } } } }, externaldata := omit } }, { menulist := { customclass := omit, disabled := omit, disabledongui := true, editable := true, flex := 1.000000, |
| id := "menulist_6", label_ := omit, readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { |
| id := "menuitem_6_STR1", label_ := "STR1", selected := false, externaldata := omit } }, { menuitem := { |
| id := "menuitem_6_STR2", label_ := "STR2", selected := true, externaldata := omit } }, { menuitem := { |
| id := "menuitem_6_STR3", label_ := "STR3", selected := false, externaldata := omit } } } } } }, externaldata := omit } }, { menulist := { customclass := omit, disabled := omit, disabledongui := true, editable := false, flex := 1.000000, |
| id := "menulist_7", label_ := omit, readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { |
| id := "menuitem_7_STR1", label_ := "STR1", selected := false, externaldata := omit } }, { menuitem := { |
| id := "menuitem_7_STR2", label_ := "STR2", selected := true, externaldata := omit } }, { menuitem := { |
| id := "menuitem_7_STR3", label_ := "STR3", selected := false, externaldata := omit } } } } } }, externaldata := omit } }, { menulist := { customclass := omit, disabled := omit, disabledongui := true, editable := false, flex := 1.000000, |
| id := "menulist_8", label_ := omit, readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { |
| id := "menuitem_8_STR1", label_ := "STR1", selected := false, externaldata := omit } }, { menuitem := { |
| id := "menuitem_8_STR2", label_ := "STR2", selected := true, externaldata := omit } }, { menuitem := { |
| id := "menuitem_8_STR3", label_ := "STR3", selected := false, externaldata := omit } } } } } }, externaldata := omit } } } } } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_chart_1", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_chart_1", style := omit, tooltiptext := omit, value_ := "Chart[E D]", externaldata := omit } }, { chart := { axisXType := omit, axisYType := omit, backgroundColor := omit, customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, foregroundColor := omit, gridColor := omit, gridX := omit, gridY := omit, |
| id := "chart_1", title := "Chart enabled", tooltiptext := omit, zoomable := omit, tracegroups := { tracegroup_list := { { trace := { color := "blue", fill := false, |
| id := "trace_blue_1", maxPoints := 2048, name := "CPS", physicalUnitX := "sec", physicalUnitY := "call/sec", tooltiptext := omit, externaldata := omit, choice_list := { { xy_value := { x := ?, y := 0.100000 } }, { xy_value := { x := ?, y := 0.100000 } }, { xy_value := { x := ?, y := 0.100000 } } } } } } } } }, { chart := { axisXType := omit, axisYType := omit, backgroundColor := omit, customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, foregroundColor := omit, gridColor := omit, gridX := omit, gridY := omit, |
| id := "chart_2", title := "Chart disabled", tooltiptext := omit, zoomable := omit, tracegroups := { tracegroup_list := { { trace := { color := "blue", fill := false, |
| id := "trace_blue_2", maxPoints := 2048, name := "CPS", physicalUnitX := "sec", physicalUnitY := "call/sec", tooltiptext := omit, externaldata := omit, choice_list := { { xy_value := { x := ?, y := 0.200000 } }, { xy_value := { x := ?, y := 0.200000 } }, { xy_value := { x := ?, y := 0.200000 } } } } } } } } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_toolbar_1", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_toolbar_1", style := omit, tooltiptext := omit, value_ := "Toolbar[EW DR DW DR]", externaldata := omit } }, { toolbar := { customclass := omit, disabled := false, disabledongui := omit, |
| id := "toolbar_01", placement := east, choice_list := { { toolbarbutton := { customclass := omit, disabled := false, disabledongui := omit, |
| id := "toolbarbutton_01_01", imageid := "image_id", tooltiptext := "EW", externaldata := omit } }, { toolbarbutton := { customclass := omit, disabled := false, disabledongui := omit, |
| id := "toolbarbutton_01_02", imageid := "image_id", tooltiptext := "ER", externaldata := omit } }, { toolbarbutton := { customclass := omit, disabled := omit, disabledongui := true, |
| id := "toolbarbutton_01_03", imageid := "image_id", tooltiptext := "DW", externaldata := omit } }, { toolbarbutton := { customclass := omit, disabled := omit, disabledongui := true, |
| id := "toolbarbutton_01_04", imageid := "image_id", tooltiptext := "DR", externaldata := omit } } } } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := true, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_toolbar_2", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { toolbar := { customclass := omit, disabled := omit, disabledongui := true, |
| id := "toolbar_02", placement := west, choice_list := { { toolbarbutton := { customclass := omit, disabled := false, disabledongui := omit, |
| id := "toolbarbutton_02_01", imageid := "image_id", tooltiptext := "EW", externaldata := omit } }, { toolbarbutton := { customclass := omit, disabled := false, disabledongui := omit, |
| id := "toolbarbutton_02_02", imageid := "image_id", tooltiptext := "ER", externaldata := omit } }, { toolbarbutton := { customclass := omit, disabled := omit, disabledongui := true, |
| id := "toolbarbutton_02_03", imageid := "image_id", tooltiptext := "DW", externaldata := omit } }, { toolbarbutton := { customclass := omit, disabled := omit, disabledongui := true, |
| id := "toolbarbutton_02_04", imageid := "image_id", tooltiptext := "DR", externaldata := omit } } } } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := true, fixedposition := omit, flex := 0.000000, |
| id := "UIHandler_hbox_1", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 0.000000, |
| id := "Label_ID_0", style := omit, tooltiptext := omit, value_ := "Label On Disabled HBOX", externaldata := omit } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_101", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "IGEN", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := true, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_201", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "readIGEN", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_301", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "1", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_d301", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "1", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_401", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "0", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_d401", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "0", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := omit, disabledongui := true, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_d401RO", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "1", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := true, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_501", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "2", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_601", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "{ 0, 1 }", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := true, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_701", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "{ 1, 2 }", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := true, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_801", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "9123", widgetType := omit, wrap := omit, externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, |
| id := "UIHandler_hbox_htmlcode_1", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, |
| id := "Label_htmlcode_1", style := omit, tooltiptext := omit, value_ := "Htmlcode[EW ER DW DR]", externaldata := omit } }, { htmlcode := { customclass := omit, disabled := false, disabledongui := omit, flex := omit, |
| id := "htmlcode_01", externaldata := omit, value_ := "http://ericsson.se" } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_901", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "123.450000", widgetType := omit, wrap := omit, externaldata := omit } }, { htmlcode := { customclass := omit, disabled := true, disabledongui := omit, flex := omit, |
| id := "htmlcode_02", externaldata := omit, value_ := "https://ericsson.se" } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_902", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "223.450000", widgetType := omit, wrap := omit, externaldata := omit } }, { htmlcode := { customclass := omit, disabled := omit, disabledongui := true, flex := omit, |
| id := "htmlcode_03", externaldata := omit, value_ := "http://ericsson.se" } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_903", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "323.450000", widgetType := omit, wrap := omit, externaldata := omit } }, { htmlcode := { customclass := omit, disabled := omit, disabledongui := true, flex := omit, |
| id := "htmlcode_04", externaldata := omit, value_ := "https://ericsson.se" } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, |
| id := "textbox_904", multiline := false, readonly := false, rows := omit, tooltiptext := omit, value_ := "423.450000", widgetType := omit, wrap := omit, externaldata := omit } } } } } } } } } } } } } } |
| |
| |
| |
| // ============================================================================== |
| // widgetfunctions - widget disabled|readonly|editable setup in xul |
| testcase tc_EPTF_UIHandler_Test_WidgetDisabledInXUL() runs on EPTF_UIHandler_Test_CT{ |
| |
| f_UIHandler_WidgetDisabledInXUL_Test_init_CT(cg_UIHandler_WidgetDisabledInXUL_Test_source); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| timer TL_guard, TL_alt; |
| TL_guard.start( cg_waitForVariables ); |
| TL_alt.start( 0.0 ); |
| alt{ |
| [] TL_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_startBecauseDSIsReady > 0] TL_alt.timeout{} |
| }; |
| |
| var charstring vl_lastgui := f_EPTF_UIHandler_get_XUL(); |
| // action("UIHandler_Test_WidgetDisabledInXULLastGUI",log2str("[",vl_lastgui,"]")); |
| if(false == f_EPTF_UIHandler_createGUI(vl_lastgui, tsp_EPTF_GUI_Main_Window_WidgetId)) { |
| setverdict(fail, "UIHandler_Test_WidgetDisabledInXUL: CreateGUI failed."); |
| } else { |
| |
| timer TL_wait; |
| TL_wait.start( cg_waitForTest*2.0 ); |
| TL_wait.timeout; |
| |
| var Widgets vl_xul; |
| f_EPTF_UIHandler_buildXUL(vl_xul); |
| |
| // action("UIHandler_Test_WidgetDisabledInXULLastGUI-vl_xul->",log2str("[",vl_xul,"]")); |
| if (not match(vl_xul,c_EPTF_UIHandler_Test_WidgetDisabledInXUL_expected_widgets)) { |
| setverdict(fail, log2str("vl_layout and vl_lastgui does not match:",match(vl_xul,c_EPTF_UIHandler_Test_WidgetDisabledInXUL_expected_widgets))); |
| } |
| setverdict(pass); |
| } |
| |
| |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| const charstring c_MainWidgetsOldGUI := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<hbox id='EPTF_Main_hbox' orientation='vertical'>\n\t\t<tree id='tree1' rows='1.000000'>\n\t\t\t<treecols>\n\t\t\t\t<treecol id='treecol_01_omit' label='column[omit]-float' widgetType='floatField'/>\n\t\t\t\t<treecol editable='false' id='treecol_01_disabled' label='column[disabled]-text' widgetType='string'/>\n\t\t\t\t<treecol editable='true' id='treecol_01_enabled' label='olumn[enabled]-check' widgetType='checkBox'/>\n\t\t\t</treecols>\n\t\t\t<treechildren>\n\t\t\t\t<treeitem>\n\t\t\t\t\t<treerow>\n\t\t\t\t\t\t<treecell id='cellFloat_01' label='1234.5678901234567890'/>\n\t\t\t\t\t</treerow>\n\t\t\t\t\t<treerow>\n\t\t\t\t\t\t<treecell id='cellText_01' label='disabledText'/>\n\t\t\t\t\t</treerow>\n\t\t\t\t\t<treerow>\n\t\t\t\t\t\t<treecell id='cellCheck_01' label='true'/>\n\t\t\t\t\t</treerow>\n\t\t\t\t</treeitem>\n\t\t\t</treechildren>\n\t\t</tree>\n\t\t<hbox id='EPTF_Main_hbox_tabpages' orientation='horizontal'>\n\t\t\t<tabpages id='EPTF_Main_Tabbox_int_001'>\n\t\t\t\t<tabpage id='panels_int1_001' label='test tab 1 - omit' orientation='vertical'/>\n\t\t\t\t<tabpage id='panels_int2_001' label='test tab 2 - omit' orientation='vertical'/>\n\t\t\t</tabpages>\n\t\t\t<tabpages disabled='true' id='EPTF_Main_Tabbox_int_002'>\n\t\t\t\t<tabpage id='panels_int1_002' label='test tab 1 - disabled' orientation='vertical'/>\n\t\t\t\t<tabpage id='panels_int2_002' label='test tab 2 - disabled' orientation='vertical'/>\n\t\t\t</tabpages>\n\t\t\t<tabpages disabled='false' id='EPTF_Main_Tabbox_int_003'>\n\t\t\t\t<tabpage id='panels_int1_003' label='test tab 1 - enabled' orientation='vertical'/>\n\t\t\t\t<tabpage id='panels_int2_003' label='test tab 2 - enabled' orientation='vertical'/>\n\t\t\t</tabpages>\n\t\t</hbox>\n\t\t<hbox id='EPTF_Main_hbox_labels' orientation='horizontal'>\n\t\t\t<label id='omit textlabel' value='omit textlabel'/>\n\t\t\t<label disabled='false' id='enabled textlabel' value='enabled textlabel'/>\n\t\t\t<label disabled='true' id='disabled textlabel' value='disabled textlabel'/>\n\t\t</hbox>\n\t\t<hbox disabled='false' flex='1.000000' id='EPTF_Main_hbox_textboxs' orientation='horizontal'>\n\t\t\t<textbox flex='1.000000' id='textbox_001' multiline='false' readonly='true' value='textbox-omit'/>\n\t\t\t<textbox disabled='true' flex='1.000000' id='textbox_002' multiline='false' readonly='true' value='textbox-disabled'/>\n\t\t\t<textbox disabled='false' flex='1.000000' id='textbox_003' multiline='false' readonly='true' value='textbox-enabled'/>\n\t\t</hbox>\n\t\t<hbox id='EPTF_Main_hbox_numericalwidget' orientation='horizontal'>\n\t\t\t<numericalwidget disabled='true' id='fnumw_01' readonly='false' value='12.000000' widgetType='integerField'/>\n\t\t\t<numericalwidget disabled='false' id='fnumw_02' readonly='false' value='24.000000' widgetType='integerField'/>\n\t\t</hbox>\n\t\t<hbox id='EPTF_Main_hbox_buttons' orientation='horizontal'>\n\t\t\t<button id='EPTF_run_test_button' label='omit button'/>\n\t\t\t<button disabled='false' id='EPTF_snapshot_button' label='enabled button'/>\n\t\t\t<spacer flex='0.000000'/>\n\t\t\t<button disabled='true' id='EPTF_exit_ttcn_button' label='disabled button'/>\n\t\t</hbox>\n\t\t<hbox id='EPTF_Main_hbox_listbox' orientation='horizontal'>\n\t\t\t<listbox id='listbox_001' rows='2' seltype='multiple'>\n\t\t\t\t<listitem id='item1-omit' label='Item1-omit' selected='false'/>\n\t\t\t\t<listitem id='item2-omit' label='Item2-omit' selected='false'/>\n\t\t\t</listbox>\n\t\t\t<listbox disabled='true' id='listbox_002' rows='2' seltype='multiple'>\n\t\t\t\t<listitem id='item1-disabled' label='Item1-disabled' selected='false'/>\n\t\t\t\t<listitem id='item2-disabled' label='Item2-disabled' selected='false'/>\n\t\t\t</listbox>\n\t\t\t<listbox disabled='false' id='listbox_003' rows='2' seltype='multiple'>\n\t\t\t\t<listitem id='item1-enabled' label='Item1-enabled' selected='false'/>\n\t\t\t\t<listitem id='item2-enabled' label='Item2-enabled' selected='false'/>\n\t\t\t</listbox>\n\t\t</hbox>\n\t\t<hbox id='EPTF_Main_hbox_menulist' orientation='horizontal'>\n\t\t\t<menulist editable='true' id='menulist_001' label='menulist-omit'>\n\t\t\t\t<menupopup>\n\t\t\t\t\t<menuitem id='menu1-omit' label='Menu1-omit' selected='false'/>\n\t\t\t\t\t<menuitem id='menu2-omit' label='Menu2-omit' selected='true'/>\n\t\t\t\t</menupopup>\n\t\t\t</menulist>\n\t\t\t<menulist disabled='true' editable='true' id='menulist_002' label='menulist-disabled'>\n\t\t\t\t<menupopup>\n\t\t\t\t\t<menuitem id='menu1-disabled' label='Menu1-disabled' selected='false'/>\n\t\t\t\t\t<menuitem id='menu2-disabled' label='Menu2-disabled' selected='true'/>\n\t\t\t\t</menupopup>\n\t\t\t</menulist>\n\t\t\t<menulist disabled='false' editable='true' id='menulist_003' label='menulist-enabled'>\n\t\t\t\t<menupopup>\n\t\t\t\t\t<menuitem id='menu1-enabled' label='Menu1-enabled' selected='false'/>\n\t\t\t\t\t<menuitem id='menu2-enabled' label='Menu2-enabled' selected='true'/>\n\t\t\t\t</menupopup>\n\t\t\t</menulist>\n\t\t</hbox>\n\t\t<hbox id='EPTF_Main_hbox_chart' orientation='horizontal'>\n\t\t\t<chart axisXType='linear' axisYType='linear' backgroundColor='RGB:180:200:200' foregroundColor='Black' gridColor='black' gridX='true' gridY='false' id='chart_001' title='Chart - omit' zoomable='true'>\n\t\t\t\t<trace color='RGB:0:0:255' id='trace02_001' name='Blue line'/>\n\t\t\t\t<trace color='RGB:255:0:0' id='trace01_001' name='Red line'/>\n\t\t\t</chart>\n\t\t\t<chart axisXType='linear' axisYType='linear' backgroundColor='RGB:180:200:200' disabled='true' foregroundColor='Black' gridColor='black' gridX='true' gridY='false' id='chart_002' title='Chart - disabled' zoomable='true'>\n\t\t\t\t<trace color='RGB:0:0:255' id='trace02_002' name='Blue line'/>\n\t\t\t\t<trace color='RGB:255:0:0' id='trace01_002' name='Red line'/>\n\t\t\t</chart>\n\t\t\t<chart axisXType='linear' axisYType='linear' backgroundColor='RGB:180:200:200' disabled='false' foregroundColor='Black' gridColor='black' gridX='true' gridY='false' id='chart_003' title='Chart - enabled' zoomable='true'>\n\t\t\t\t<trace color='RGB:0:0:255' id='trace02_003' name='Blue line'/>\n\t\t\t\t<trace color='RGB:255:0:0' id='trace01_003' name='Red line'/>\n\t\t\t</chart>\n\t\t</hbox>\n\t\t<hbox id='EPTF_Main_hbox_toolbar' orientation='horizontal'>\n\t\t\t<toolbar id='toolbar_001'>\n\t\t\t\t<toolbarbutton id='toolbarbutton_001' tooltiptext='toolbarbutton-omit'/>\n\t\t\t</toolbar>\n\t\t\t<toolbar disabled='true' id='toolbar_002'>\n\t\t\t\t<toolbarbutton id='toolbarbutton_002' tooltiptext='toolbarbutton-disabled'/>\n\t\t\t</toolbar>\n\t\t\t<toolbar disabled='false' id='toolbar_003'>\n\t\t\t\t<toolbarbutton id='toolbarbutton_003' tooltiptext='toolbarbutton-enabled'/>\n\t\t\t</toolbar>\n\t\t</hbox>\n\t\t<hbox id='EPTF_Main_hbox_hbox' orientation='horizontal'>\n\t\t\t<hbox id='EPTF_Main_hbox_hbox_001' orientation='horizontal'>\n\t\t\t\t<label id='omit_textlabel_001' value='omit textlabel_onhbox'/>\n\t\t\t</hbox>\n\t\t\t<hbox disabled='true' id='EPTF_Main_hbox_hbox_002' orientation='horizontal'>\n\t\t\t\t<label id='disabled_textlabel_002' value='disabled textlabel_onhbox_002'/>\n\t\t\t</hbox>\n\t\t\t<hbox disabled='false' id='EPTF_Main_hbox_hbox_003' orientation='horizontal'>\n\t\t\t\t<label id='enabled_textlabel_003' value='enabled textlabel_onhbox_003'/>\n\t\t\t</hbox>\n\t\t</hbox>\n\t\t<hbox id='EPTF_Main_hbox_htmlcode' orientation='horizontal'/>\n\t\t<hbox id='EPTF_Main_hbox_distributionchart' orientation='horizontal'>\n\t\t\t<distributionchart axisXLabel='foo' axisYLabel='linear' id='dchart_001' orientation='horizontal' title='Demo DChart 01-omit'>\n\t\t\t\t<intervallimits id='intvallid_001'>\n\t\t\t\t\t<value>2.300000</value>\n\t\t\t\t\t<value>4.500000</value>\n\t\t\t\t\t<value>8.500000</value>\n\t\t\t\t</intervallimits>\n\t\t\t\t<valuelist id='vlid1_001'>\n\t\t\t\t\t<value>2</value>\n\t\t\t\t\t<value>3</value>\n\t\t\t\t</valuelist>\n\t\t\t\t<valuelist id='vlid2_001'>\n\t\t\t\t\t<value>4</value>\n\t\t\t\t\t<value>6</value>\n\t\t\t\t</valuelist>\n\t\t\t</distributionchart>\n\t\t\t<distributionchart axisXLabel='foo' axisYLabel='linear' disabled='true' id='dchart_002' orientation='horizontal' title='Demo DChart 02-disabled'>\n\t\t\t\t<intervallimits id='intvallid_002'>\n\t\t\t\t\t<value>2.300000</value>\n\t\t\t\t\t<value>4.500000</value>\n\t\t\t\t\t<value>8.500000</value>\n\t\t\t\t</intervallimits>\n\t\t\t\t<valuelist id='vlid1_002'>\n\t\t\t\t\t<value>2</value>\n\t\t\t\t\t<value>3</value>\n\t\t\t\t</valuelist>\n\t\t\t\t<valuelist id='vlid2_002'>\n\t\t\t\t\t<value>4</value>\n\t\t\t\t\t<value>6</value>\n\t\t\t\t</valuelist>\n\t\t\t</distributionchart>\n\t\t\t<distributionchart axisXLabel='foo' axisYLabel='linear' disabled='false' id='dchart_003' orientation='horizontal' title='Demo DChart 03-enabled'>\n\t\t\t\t<intervallimits id='intvallid_003'>\n\t\t\t\t\t<value>2.300000</value>\n\t\t\t\t\t<value>4.500000</value>\n\t\t\t\t\t<value>8.500000</value>\n\t\t\t\t</intervallimits>\n\t\t\t\t<valuelist id='vlid1_003'>\n\t\t\t\t\t<value>2</value>\n\t\t\t\t\t<value>3</value>\n\t\t\t\t</valuelist>\n\t\t\t\t<valuelist id='vlid2_003'>\n\t\t\t\t\t<value>4</value>\n\t\t\t\t\t<value>6</value>\n\t\t\t\t</valuelist>\n\t\t\t</distributionchart>\n\t\t</hbox>\n\t</hbox>\n</Widgets>\n\n" |
| |
| |
| template Widgets t_EPTF_UIHandler_Test_WidgetDisabledInXULOldGUI_expectedWidgets := { window := { about := omit, height := 300.000000, help := omit, id := "MyNewEPTFMainWindow", orientation := vertical, title := "My TTCN constructed window", width := 800.000000, image_list := { }, embeddedwidgets := { embeddedwidget_list := { { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox", orientation := vertical, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { tree := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, hidecolumnpicker := omit, id := "tree1", rows := 1.000000, treecols := { treecolgroups := { treecolgroup_list := { { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := omit, flex := omit, id := "treecol_01_omit", label_ := "column[omit]-float", tooltiptext := omit, treecellalign := omit, widgetType := floatField } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := false, flex := omit, id := "treecol_01_disabled", label_ := "column[disabled]-text", tooltiptext := omit, treecellalign := omit, widgetType := string } }, { treecol := { align := omit, customclass := omit, disabledongui := omit, editable := true, flex := omit, id := "treecol_01_enabled", label_ := "olumn[enabled]-check", tooltiptext := omit, treecellalign := omit, widgetType := checkBox } } } } }, treechildren := { treeitemgroups := { treeitemgroup_list := { { treeitem := { treerowgroups := { treerowgroup_list := { { treerow := { treecellgroups := { treecellgroup_list := { { treecell := { align := omit, customclass := omit, id := "cellFloat_01", imageid := omit, label_ := "1234.5678901234567890", tooltiptext := omit, visible := omit, externaldata := omit } } } } } }, { treerow := { treecellgroups := { treecellgroup_list := { { treecell := { align := omit, customclass := omit, id := "cellText_01", imageid := omit, label_ := "disabledText", tooltiptext := omit, visible := omit, externaldata := omit } } } } } }, { treerow := { treecellgroups := { treecellgroup_list := { { treecell := { align := omit, customclass := omit, id := "cellCheck_01", imageid := omit, label_ := "true", tooltiptext := omit, visible := omit, externaldata := omit } } } } } } } } } } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_tabpages", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { tabpages := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, id := "EPTF_Main_Tabbox_int_001", layout := omit, tabpagegroups := { tabpagegroup_list := { { tabpage := { customclass := omit, disabledongui := omit, id := "panels_int1_001", label_ := "test tab 1 - omit", maxheight := omit, orientation := vertical, tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { } } } }, { tabpage := { customclass := omit, disabledongui := omit, id := "panels_int2_001", label_ := "test tab 2 - omit", maxheight := omit, orientation := vertical, tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { } } } } } } } }, { tabpages := { customclass := omit, disabled := true, disabledongui := omit, flex := omit, id := "EPTF_Main_Tabbox_int_002", layout := omit, tabpagegroups := { tabpagegroup_list := { { tabpage := { customclass := omit, disabledongui := omit, id := "panels_int1_002", label_ := "test tab 1 - disabled", maxheight := omit, orientation := vertical, tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { } } } }, { tabpage := { customclass := omit, disabledongui := omit, id := "panels_int2_002", label_ := "test tab 2 - disabled", maxheight := omit, orientation := vertical, tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { } } } } } } } }, { tabpages := { customclass := omit, disabled := false, disabledongui := omit, flex := omit, id := "EPTF_Main_Tabbox_int_003", layout := omit, tabpagegroups := { tabpagegroup_list := { { tabpage := { customclass := omit, disabledongui := omit, id := "panels_int1_003", label_ := "test tab 1 - enabled", maxheight := omit, orientation := vertical, tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { } } } }, { tabpage := { customclass := omit, disabledongui := omit, id := "panels_int2_003", label_ := "test tab 2 - enabled", maxheight := omit, orientation := vertical, tooltiptext := omit, embeddedwidgets := { embeddedwidget_list := { } } } } } } } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_labels", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, id := "omit textlabel", style := omit, tooltiptext := omit, value_ := "omit textlabel", externaldata := omit } }, { label_ := { customclass := omit, disabled := false, disabledongui := omit, flex := omit, id := "enabled textlabel", style := omit, tooltiptext := omit, value_ := "enabled textlabel", externaldata := omit } }, { label_ := { customclass := omit, disabled := true, disabledongui := omit, flex := omit, id := "disabled textlabel", style := omit, tooltiptext := omit, value_ := "disabled textlabel", externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := 1.000000, id := "EPTF_Main_hbox_textboxs", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { textbox := { customclass := omit, disabled := omit, disabledongui := omit, flex := 1.000000, focusafterchange := omit, id := "textbox_001", multiline := false, readonly := true, rows := omit, tooltiptext := omit, value_ := "textbox-omit", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := true, disabledongui := omit, flex := 1.000000, focusafterchange := omit, id := "textbox_002", multiline := false, readonly := true, rows := omit, tooltiptext := omit, value_ := "textbox-disabled", widgetType := omit, wrap := omit, externaldata := omit } }, { textbox := { customclass := omit, disabled := false, disabledongui := omit, flex := 1.000000, focusafterchange := omit, id := "textbox_003", multiline := false, readonly := true, rows := omit, tooltiptext := omit, value_ := "textbox-enabled", widgetType := omit, wrap := omit, externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_numericalwidget", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { numericalwidget := { customclass := omit, disabled := true, disabledongui := omit, flex := omit, id := "fnumw_01", maxvalue := omit, minvalue := omit, readonly := false, slider := omit, spinner := omit, stepsize := omit, tooltiptext := omit, value_ := 12.000000, widgetType := integerField, externaldata := omit } }, { numericalwidget := { customclass := omit, disabled := false, disabledongui := omit, flex := omit, id := "fnumw_02", maxvalue := omit, minvalue := omit, readonly := false, slider := omit, spinner := omit, stepsize := omit, tooltiptext := omit, value_ := 24.000000, widgetType := integerField, externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_buttons", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { button := { checked := omit, customclass := omit, disabled := omit, disabledongui := omit, flex := omit, id := "EPTF_run_test_button", imageid := omit, label_ := "omit button", tooltiptext := omit, type_ := omit, externaldata := omit } }, { button := { checked := omit, customclass := omit, disabled := false, disabledongui := omit, flex := omit, id := "EPTF_snapshot_button", imageid := omit, label_ := "enabled button", tooltiptext := omit, type_ := omit, externaldata := omit } }, { spacer := { flex := 0.000000, id := "UIHandler_widgetId_0" } }, { button := { checked := omit, customclass := omit, disabled := true, disabledongui := omit, flex := omit, id := "EPTF_exit_ttcn_button", imageid := omit, label_ := "disabled button", tooltiptext := omit, type_ := omit, externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_listbox", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { listbox := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, id := "listbox_001", rows := 2, seltype := multiple, tooltiptext := omit, externaldata := omit, listitemgroups := { listitemgroup_list := { { listitem := { id := "item1-omit", label_ := "Item1-omit", selected := false } }, { listitem := { id := "item2-omit", label_ := "Item2-omit", selected := false } } } } } }, { listbox := { customclass := omit, disabled := true, disabledongui := omit, flex := omit, id := "listbox_002", rows := 2, seltype := multiple, tooltiptext := omit, externaldata := omit, listitemgroups := { listitemgroup_list := { { listitem := { id := "item1-disabled", label_ := "Item1-disabled", selected := false } }, { listitem := { id := "item2-disabled", label_ := "Item2-disabled", selected := false } } } } } }, { listbox := { customclass := omit, disabled := false, disabledongui := omit, flex := omit, id := "listbox_003", rows := 2, seltype := multiple, tooltiptext := omit, externaldata := omit, listitemgroups := { listitemgroup_list := { { listitem := { id := "item1-enabled", label_ := "Item1-enabled", selected := false } }, { listitem := { id := "item2-enabled", label_ := "Item2-enabled", selected := false } } } } } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_menulist", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { menulist := { customclass := omit, disabled := omit, disabledongui := omit, editable := true, flex := omit, id := "menulist_001", label_ := "menulist-omit", readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { id := "menu1-omit", label_ := "Menu1-omit", selected := false, externaldata := omit } }, { menuitem := { id := "menu2-omit", label_ := "Menu2-omit", selected := true, externaldata := omit } } } } } }, externaldata := omit } }, { menulist := { customclass := omit, disabled := true, disabledongui := omit, editable := true, flex := omit, id := "menulist_002", label_ := "menulist-disabled", readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { id := "menu1-disabled", label_ := "Menu1-disabled", selected := false, externaldata := omit } }, { menuitem := { id := "menu2-disabled", label_ := "Menu2-disabled", selected := true, externaldata := omit } } } } } }, externaldata := omit } }, { menulist := { customclass := omit, disabled := false, disabledongui := omit, editable := true, flex := omit, id := "menulist_003", label_ := "menulist-enabled", readonly := omit, tooltiptext := omit, menupopup := { choice := { menuitemgroups := { menuitemgroup_list := { { menuitem := { id := "menu1-enabled", label_ := "Menu1-enabled", selected := false, externaldata := omit } }, { menuitem := { id := "menu2-enabled", label_ := "Menu2-enabled", selected := true, externaldata := omit } } } } } }, externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_chart", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { chart := { axisXType := linear, axisYType := linear, backgroundColor := "RGB:180:200:200", customclass := omit, disabled := omit, disabledongui := omit, flex := omit, foregroundColor := "Black", gridColor := "black", gridX := true, gridY := false, id := "chart_001", title := "Chart - omit", tooltiptext := omit, zoomable := true, tracegroups := { tracegroup_list := { { trace := { color := "RGB:0:0:255", fill := omit, id := "trace02_001", maxPoints := omit, name := "Blue line", physicalUnitX := omit, physicalUnitY := omit, tooltiptext := omit, externaldata := omit, choice_list := { } } }, { trace := { color := "RGB:255:0:0", fill := omit, id := "trace01_001", maxPoints := omit, name := "Red line", physicalUnitX := omit, physicalUnitY := omit, tooltiptext := omit, externaldata := omit, choice_list := { } } } } } } }, { chart := { axisXType := linear, axisYType := linear, backgroundColor := "RGB:180:200:200", customclass := omit, disabled := true, disabledongui := omit, flex := omit, foregroundColor := "Black", gridColor := "black", gridX := true, gridY := false, id := "chart_002", title := "Chart - disabled", tooltiptext := omit, zoomable := true, tracegroups := { tracegroup_list := { { trace := { color := "RGB:0:0:255", fill := omit, id := "trace02_002", maxPoints := omit, name := "Blue line", physicalUnitX := omit, physicalUnitY := omit, tooltiptext := omit, externaldata := omit, choice_list := { } } }, { trace := { color := "RGB:255:0:0", fill := omit, id := "trace01_002", maxPoints := omit, name := "Red line", physicalUnitX := omit, physicalUnitY := omit, tooltiptext := omit, externaldata := omit, choice_list := { } } } } } } }, { chart := { axisXType := linear, axisYType := linear, backgroundColor := "RGB:180:200:200", customclass := omit, disabled := false, disabledongui := omit, flex := omit, foregroundColor := "Black", gridColor := "black", gridX := true, gridY := false, id := "chart_003", title := "Chart - enabled", tooltiptext := omit, zoomable := true, tracegroups := { tracegroup_list := { { trace := { color := "RGB:0:0:255", fill := omit, id := "trace02_003", maxPoints := omit, name := "Blue line", physicalUnitX := omit, physicalUnitY := omit, tooltiptext := omit, externaldata := omit, choice_list := { } } }, { trace := { color := "RGB:255:0:0", fill := omit, id := "trace01_003", maxPoints := omit, name := "Red line", physicalUnitX := omit, physicalUnitY := omit, tooltiptext := omit, externaldata := omit, choice_list := { } } } } } } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_toolbar", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { toolbar := { customclass := omit, disabled := omit, disabledongui := omit, id := "toolbar_001", placement := omit, choice_list := { { toolbarbutton := { customclass := omit, disabled := omit, disabledongui := omit, id := "toolbarbutton_001", imageid := omit, tooltiptext := "toolbarbutton-omit", externaldata := omit } } } } }, { toolbar := { customclass := omit, disabled := true, disabledongui := omit, id := "toolbar_002", placement := omit, choice_list := { { toolbarbutton := { customclass := omit, disabled := omit, disabledongui := omit, id := "toolbarbutton_002", imageid := omit, tooltiptext := "toolbarbutton-disabled", externaldata := omit } } } } }, { toolbar := { customclass := omit, disabled := false, disabledongui := omit, id := "toolbar_003", placement := omit, choice_list := { { toolbarbutton := { customclass := omit, disabled := omit, disabledongui := omit, id := "toolbarbutton_003", imageid := omit, tooltiptext := "toolbarbutton-enabled", externaldata := omit } } } } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_hbox", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_hbox_001", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, id := "omit_textlabel_001", style := omit, tooltiptext := omit, value_ := "omit textlabel_onhbox", externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := true, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_hbox_002", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, id := "disabled_textlabel_002", style := omit, tooltiptext := omit, value_ := "disabled textlabel_onhbox_002", externaldata := omit } } } } } }, { hbox := { customclass := omit, disabled := false, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_hbox_003", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { label_ := { customclass := omit, disabled := omit, disabledongui := omit, flex := omit, id := "enabled_textlabel_003", style := omit, tooltiptext := omit, value_ := "enabled textlabel_onhbox_003", externaldata := omit } } } } } } } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_htmlcode", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { } } } }, { hbox := { customclass := omit, disabled := omit, disabledongui := omit, fixedposition := omit, flex := omit, id := "EPTF_Main_hbox_distributionchart", orientation := horizontal, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { { distributionchart := { axisXLabel := "foo", axisYLabel := "linear", backgroundcolor := omit, customclass := omit, disabled := omit, disabledongui := omit, flex := omit, gridcolor := omit, id := "dchart_001", labeltype := omit, orientation := horizontal, showlegend := omit, title := "Demo DChart 01-omit", tooltiptext := omit, externaldatagroups := { externaldatagroup_list := { { intervallimits := { id := "intvallid_001", choice := { value_list := { 2.300000, 4.500000, 8.500000 } } } }, { valuelist_list := { { color := omit, id := "vlid1_001", labeltype := omit, legend := omit, tooltiptext := omit, externaldata := omit, value_list := { 2, 3 } }, { color := omit, id := "vlid2_001", labeltype := omit, legend := omit, tooltiptext := omit, externaldata := omit, value_list := { 4, 6 } } } } } } } }, { distributionchart := { axisXLabel := "foo", axisYLabel := "linear", backgroundcolor := omit, customclass := omit, disabled := true, disabledongui := omit, flex := omit, gridcolor := omit, id := "dchart_002", labeltype := omit, orientation := horizontal, showlegend := omit, title := "Demo DChart 02-disabled", tooltiptext := omit, externaldatagroups := { externaldatagroup_list := { { intervallimits := { id := "intvallid_002", choice := { value_list := { 2.300000, 4.500000, 8.500000 } } } }, { valuelist_list := { { color := omit, id := "vlid1_002", labeltype := omit, legend := omit, tooltiptext := omit, externaldata := omit, value_list := { 2, 3 } }, { color := omit, id := "vlid2_002", labeltype := omit, legend := omit, tooltiptext := omit, externaldata := omit, value_list := { 4, 6 } } } } } } } }, { distributionchart := { axisXLabel := "foo", axisYLabel := "linear", backgroundcolor := omit, customclass := omit, disabled := false, disabledongui := omit, flex := omit, gridcolor := omit, id := "dchart_003", labeltype := omit, orientation := horizontal, showlegend := omit, title := "Demo DChart 03-enabled", tooltiptext := omit, externaldatagroups := { externaldatagroup_list := { { intervallimits := { id := "intvallid_003", choice := { value_list := { 2.300000, 4.500000, 8.500000 } } } }, { valuelist_list := { { color := omit, id := "vlid1_003", labeltype := omit, legend := omit, tooltiptext := omit, externaldata := omit, value_list := { 2, 3 } }, { color := omit, id := "vlid2_003", labeltype := omit, legend := omit, tooltiptext := omit, externaldata := omit, value_list := { 4, 6 } } } } } } } } } } } } } } } } } } } }; |
| |
| testcase tc_EPTF_UIHandler_Test_WidgetDisabledInXULOldGUI() runs on EPTF_UIHandler_Test_CT{ |
| f_UIHandler_WidgetDisabledInXUL_Test_init_CT(cg_UIHandler_WidgetDisabledInXUL_Test_source); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| timer TL_guard, TL_alt; |
| TL_guard.start( cg_waitForVariables ); |
| TL_alt.start( 0.0 ); |
| alt{ |
| [] TL_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_startBecauseDSIsReady > 0] TL_alt.timeout{} |
| }; |
| |
| // Creating GUI layout for CS ApplAdmin |
| if(f_EPTF_UIHandler_createGUI(c_MainWidgetsOldGUI, tsp_EPTF_GUI_Main_Window_WidgetId)){ |
| timer TL_wait; |
| TL_wait.start( cg_waitForTestStep ); |
| TL_wait.timeout; |
| } |
| |
| timer TL_wait; |
| TL_wait.start( cg_waitForTest ); |
| TL_wait.timeout; |
| |
| var Widgets vl_xul; |
| f_EPTF_UIHandler_buildXUL(vl_xul); |
| |
| if (not match(vl_xul,t_EPTF_UIHandler_Test_WidgetDisabledInXULOldGUI_expectedWidgets)) { |
| setverdict(fail, log2str("vl_layout and vl_lastgui does not match:",match(vl_xul,t_EPTF_UIHandler_Test_WidgetDisabledInXULOldGUI_expectedWidgets))); |
| } |
| |
| /**/ |
| setverdict(pass); |
| |
| f_EPTF_Base_stopAll(none); |
| |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_RuntimeGUIConnectDuringCreateGUI |
| // |
| // Purpose: |
| // - |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_RuntimeGUIConnectDuringCreateGUI() |
| runs on EPTF_UIHandler_Test_CT{ |
| |
| var charstring vl_fileName := "longduration.xml"; |
| var boolean vl_createGUI := false; |
| |
| v_ready := false; |
| f_EPTF_UIHandler_setGuiHostPort(tsp_EPTF_Test_newGUIHost, tsp_EPTF_Test_newGUIPort); |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_UIHandler_setGUIAddrPorts(tsp_EPTF_Test_newGUIHost, tsp_EPTF_Test_newGUIPort, tsp_EPTF_Test_newGUIReconnectPort); |
| action("UIHandler listening on: ", tsp_EPTF_Test_newGUIHost,":",tsp_EPTF_Test_newGUIPort, " Reconnect port: ", tsp_EPTF_Test_newGUIReconnectPort ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self)); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| |
| f_EPTF_UIHandler_Test_createRTGSimulation( tsp_EPTF_Test_newGUIHost, tsp_EPTF_Test_newGUIPort, tsp_EPTF_Test_newGUIReconnectPort , -, -, 2.0); |
| vl_createGUI := f_EPTF_UIHandler_createGUIFromFile("label2.xml"); |
| vl_createGUI := f_EPTF_UIHandler_createGUIFromFile(vl_fileName); |
| if(not(vl_createGUI)){ |
| setverdict(fail, "Cannot create GUI from file!"); |
| } |
| |
| T_guard.start( 25.0 ); |
| // wait until the gui is completed |
| T_guard.timeout; |
| |
| |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_result2; |
| dec_Widgets(char2oct(vl_snapshot), vl_result2); |
| setverdict(pass); |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_manual_WelcomeScreenWithProgressBar |
| // |
| // Purpose: |
| // Welcome screen could contain ProgressBar information |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_manual_WelcomeScreenWithProgressBar() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window id='EPTF_Main_Window' orientation='vertical'"& |
| " title='TTCN constructed window' height='100.000000' width='300.000000'>"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <textbox flex='1.000000' id='bubu' multiline='true' rows='5.0'"& |
| " readonly='true' value='starting value' focusafterchange='top'>"& |
| " <externaldata element='selected' source='ExecCtrl'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox flex='1.000000' id='bubupbh' multiline='true' rows='5.0'"& |
| " readonly='true' value='starting value' focusafterchange='bottom'>"& |
| " <externaldata element='progressBarHistory' source='UIHandler'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_UIHandler_Browser_enableWelcomeScreen(); |
| action("Enable WelcomeScreen"); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| var integer vl_varSubscribedIdx |
| f_EPTF_UIHandler_clearGUI(); |
| if(false == f_EPTF_UIHandler_createGUI(c_gui)){ |
| setverdict(fail, "CreateGUI failed."); |
| } |
| |
| action("CreateGUI end"); |
| |
| f_EPTF_UIHandler_updateProgress("Demonstrate progress info",20.0); |
| action("ProgressInfo Update 1"); |
| T_guard.start( 5.0 ); |
| T_guard.timeout; |
| |
| f_EPTF_UIHandler_updateProgress("Demonstrate progress info",40.0); |
| action("ProgressInfo Update 2"); |
| |
| T_guard.start( 5.0 ); |
| T_guard.timeout; |
| |
| f_EPTF_UIHandler_updateProgress("Demonstrate progress info",60.0); |
| action("ProgressInfo Update 3"); |
| |
| T_guard.start( 5.0 ); |
| T_guard.timeout; |
| |
| f_EPTF_UIHandler_updateProgress("Demonstrate progress info",80.0); |
| action("ProgressInfo Update 4"); |
| |
| T_guard.start( 5.0 ); |
| T_guard.timeout; |
| |
| f_EPTF_UIHandler_updateProgress("Demonstrate progress info",100.0); |
| action("ProgressInfo Update 5"); |
| |
| f_EPTF_UIHandler_Browser_disableWelcomeScreen(); |
| action("Disable WelcomeScreen"); |
| |
| T_guard.start( 15.0 ); |
| T_guard.timeout; |
| |
| action("End"); |
| |
| setverdict(pass); |
| f_EPTF_Base_stop(pass); |
| |
| } |
| |
| |
| // ============================================================================== |
| // Menupopup gui element cannot be initialized nor updated by an empty charstringlist via the use of an externaldata. |
| private function f_UIHandler_WidgetMenuPopup_Test_init_CT(in charstring pl_selfName) runs on EPTF_UIHandler_Test_CT { |
| // call all the init functions { |
| if (v_UIHandler_WidgetDisabledInXUL_Test_initialized) { |
| return; |
| } |
| v_UIHandler_WidgetDisabledInXUL_Test_initialized := true; |
| v_startBecauseDSIsReady := 0; |
| f_EPTF_UIHandler_init_CT(cg_UIHandler_WidgetDisabledInXUL_Test_source, true); |
| f_EPTF_Var_init_CT(pl_selfName); |
| f_EPTF_DataSourceClient_init_CT(pl_selfName,self); |
| // f_initVariables(); { |
| var integer vl_intVarIdx; |
| f_EPTF_Var_newCharstringlist(cg_varNameStart_stringList & cg_varNameEnd, {}, vl_intVarIdx); |
| vl_intStringlistIdx := vl_intVarIdx; |
| f_EPTF_Var_newInt(cg_varNameStart_listIdx & cg_varNameEnd, 0, vl_intVarIdx); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_UIHandler_Test_WidgetDisabledInXUL_DataSourceClientReady )); |
| f_EPTF_DataSourceClient_registerData( |
| pl_source:=pl_selfName, |
| pl_ptcName:=f_EPTF_Base_selfName(), |
| pl_dataHandler:=refers(f_EPTF_UIHandlerTest_WidgetDisabledInXUL_dataHandler) |
| ); |
| f_EPTF_DataSourceClient_registerData( |
| pl_source:="CheckChart_Provider", |
| pl_ptcName:=pl_selfName, |
| pl_dataHandler:=refers(f_EPTF_UIHandlerTest_WidgetDisabledInXUL_CheckChart_Manual_preProcessorData) |
| ); |
| |
| f_EPTF_DataSourceClient_sendReady( |
| pl_source:=pl_selfName, |
| pl_ptcName:=f_EPTF_Base_selfName() |
| ); |
| // register your cleanup function: |
| f_EPTF_Base_registerCleanup(refers(f_UIHandler_WidgetMenuPopup_Test_cleanup_CT)); |
| } |
| |
| private function f_UIHandler_WidgetMenuPopup_Test_cleanup_CT() runs on EPTF_UIHandler_Test_CT { |
| v_UIHandler_WidgetDisabledInXUL_Test_initialized := false; |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_WidgetMenuPopup() runs on EPTF_UIHandler_Test_CT{ |
| |
| f_UIHandler_WidgetMenuPopup_Test_init_CT(cg_UIHandler_WidgetDisabledInXUL_Test_source); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| timer TL_guard, TL_alt; |
| TL_guard.start( cg_waitForVariables ); |
| TL_alt.start( 0.0 ); |
| alt{ |
| [] TL_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_startBecauseDSIsReady > 0] TL_alt.timeout{} |
| }; |
| |
| var charstring vl_lastgui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window id='"&tsp_EPTF_GUI_Main_Window_WidgetId&"' orientation='vertical'"& |
| " title='TTCN constructed window' height='100.000000' width='300.000000'>"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <menulist disabled='false' editable='true' flex='0.000000' id='menuList' label='Empty menulist'>"& |
| " <menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>"; |
| |
| action("tc_EPTF_UIHandler_Test_WidgetMenuPopup",log2str("[",vl_lastgui,"]")); |
| if(false == f_EPTF_UIHandler_createGUI(vl_lastgui, tsp_EPTF_GUI_Main_Window_WidgetId)) { |
| setverdict(fail, "tc_EPTF_UIHandler_Test_WidgetMenuPopup: CreateGUI failed."); |
| } else { |
| |
| timer TL_wait; |
| TL_wait.start( cg_waitForTest ); |
| TL_wait.timeout; |
| |
| setverdict(pass); |
| } |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| const charstring c_MainWidgetsMenuPopupOldGUI := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<hbox id='"&c_EPTF_GUI_Main_hbox_WidgetId&"' orientation='vertical'>\n\t\t<hbox id='EPTF_Main_hbox_menulist' orientation='horizontal'>\n\t\t\t<menulist disabled='false' editable='true' flex='0.000000' id='menuList' label='Empty menulist'>\n\t\t\t\t<menupopup/>\n\t\t\t</menulist>\n\t\t</hbox>\n\t</hbox>\n</Widgets>\n\n" |
| |
| testcase tc_EPTF_UIHandler_Test_WidgetMenuPopupOldGUI() runs on EPTF_UIHandler_Test_CT{ |
| |
| |
| f_UIHandler_WidgetMenuPopup_Test_init_CT(cg_UIHandler_WidgetDisabledInXUL_Test_source); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| timer TL_guard, TL_alt; |
| TL_guard.start( cg_waitForVariables ); |
| TL_alt.start( 0.0 ); |
| alt{ |
| [] TL_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_startBecauseDSIsReady > 0] TL_alt.timeout{} |
| }; |
| |
| // Creating GUI layout for CS ApplAdmin |
| if(f_EPTF_UIHandler_createGUI(c_MainWidgetsMenuPopupOldGUI, tsp_EPTF_GUI_Main_Window_WidgetId)){ |
| // jobb => |
| var EPTF_UIHandler_GuiItemRecList vl_guiItems := f_EPTF_UIHandler_guiItemList(); |
| var integer vl_actIdx := 0; |
| for(var integer i := 0; i < sizeof(vl_guiItems); i := i + 1){ |
| if(vl_guiItems[i].id=="menuList"){ |
| vl_actIdx := i; |
| } |
| } |
| f_EPTF_UIHandler_updateMenulistItemsFromExternaldata(vl_intStringlistIdx,{vl_actIdx}); |
| |
| timer TL_wait; |
| TL_wait.start( cg_waitForTestStep ); |
| TL_wait.timeout; |
| } |
| |
| setverdict(pass); |
| |
| f_EPTF_Base_stopAll(none); |
| |
| } |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_manual_menuListExternalDataDoubleChange |
| // |
| // Purpose: |
| // |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_manual_menuListExternalDataDoubleChange() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window id='EPTF_Main_Window' orientation='vertical'"& |
| " title='TTCN constructed window' height='100.000000' width='300.000000'>"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <menulist disabled='false' editable='true' flex='0.000000'"& |
| " id='menuList' label='Select regulator'>"& |
| " <menupopup>"& |
| " <menuitem id='noItem' label='' selected='false' />"& |
| " <iterator id='LGen' source='ExecCtrl' element='LGenList'>"& |
| " <condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Param' value='%LGen%' />"& |
| " </params>"& |
| " <insertif id='w'>"& |
| " <menuitem id='%LGen%' label='%LGen%' selected='false'>"& |
| " </menuitem>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata element='selected' source='ExecCtrl'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist disabled='false' editable='true' flex='0.000000'"& |
| " id='menuList2' label='Select regulator2'>"& |
| " <menupopup>"& |
| " <menuitem id='kettesnoItem' label='' selected='false' />"& |
| " <iterator id='LGen' source='ExecCtrl' element='LGenList'>"& |
| " <condition element='isUnpair' id='w' source='ExecCtrl'>"& |
| " <params>"& |
| " <dataparam name='Param' value='%LGen%' />"& |
| " </params>"& |
| " <insertif id='w'>"& |
| " <menuitem id='kettes%LGen%' label='kettes%LGen%' selected='false'>"& |
| " </menuitem>"& |
| " </insertif>"& |
| " </condition>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata element='selected2' source='ExecCtrl'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>"; |
| var template Widgets c_expected := { |
| window := { height := 100.000000, id := "EPTF_Main_Window", orientation := vertical, title := "TTCN constructed window", width := 300.000000, image_list := { }, embeddedwidgets := { embeddedwidget_list := { { |
| hbox := { |
| disabled := *, |
| disabledongui := omit, |
| fixedposition := omit, |
| flex := 0.000000, |
| id := tr_EPTF_UIHandler_Test_anyWidgetID, |
| orientation := vertical, |
| scrollable := omit, |
| embeddedwidgets := { |
| embeddedwidget_list := { |
| { |
| textbox := { |
| disabled := omit, |
| disabledongui := omit, |
| flex := *, |
| focusafterchange := omit, |
| id := "bubu", |
| multiline := *, |
| readonly := true, |
| rows := omit, |
| tooltiptext := omit, |
| value_ := "Regulated by", |
| widgetType := omit, |
| wrap := omit, |
| externaldata := omit |
| } |
| }, |
| { |
| menulist := { |
| disabled := *, |
| disabledongui := omit, |
| editable := true, |
| flex := 0.000000, |
| id := "menuList", |
| label_ := "Select regulator", |
| readonly := omit, |
| tooltiptext := omit, |
| menupopup := { choice := { menuitemgroups := { |
| menuitemgroup_list := { |
| { |
| menuitem := { |
| id := "noItem", |
| label_ := "", |
| selected := *, |
| externaldata := omit |
| } |
| }, |
| { |
| menuitem := { |
| id := "LGen1", |
| label_ := "LGen1", |
| selected := true, |
| externaldata := omit |
| } |
| }, |
| { |
| menuitem := { |
| id := "LGen3", |
| label_ := "LGen3", |
| selected := *, |
| externaldata := omit |
| } |
| } |
| } |
| }}}, |
| externaldata := omit |
| } |
| } |
| } |
| } |
| } |
| } |
| }}}} |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}, |
| {"selected2","selected2",{charstringVal := ""}}}, true)); |
| |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| var integer vl_varSubscribedIdx |
| f_EPTF_Var_subscribeRemote(vl_client1, "selected", realtime, vl_varSubscribedIdx); |
| // f_EPTF_Var_addPostProcFn(vl_varSubscribedIdx, {refers(f_EPTF_Test_PostProc),{}}) |
| f_EPTF_UIHandler_clearGUI(); |
| if(false == f_EPTF_UIHandler_createGUI(c_gui)){ |
| setverdict(fail, "CreateGUI failed."); |
| } |
| |
| var EPTF_Var_DirectContent vl_content := {charstringVal := "LGen1"}; |
| f_EPTF_Var_adjustContent(vl_varSubscribedIdx, vl_content); |
| T_guard.start( tsp_EPTF_Var_SyncInterval+0.2 ); |
| T_guard.timeout; |
| var Widgets vl_received |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| dec_Widgets(char2oct(vl_snapshot), vl_received); |
| //action(vl_received); |
| //f_EPTF_Base_wait4Shutdown(); |
| /* if(match(vl_received, c_expected)){ |
| setverdict(pass); |
| }else{ |
| setverdict(fail,log2str(match(vl_received, c_expected))); |
| } |
| */ |
| T_alt.start( 60.0 ); |
| T_alt.timeout{}; |
| |
| f_EPTF_Base_stop(pass); |
| } |
| |
| |
| // CUSTOM CSS |
| modulepar charstring tsp_EPTF_UIHandler_Browser_custom_css1 := ""; |
| modulepar charstring tsp_EPTF_UIHandler_Browser_custom_css2 := ""; |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_CustomCSSTest() runs on EPTF_UIHandler_Test_CT{ |
| |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent"); |
| |
| const charstring c_gui := " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_StatManager_Test_base' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <label value=\"BrowserGUI Test\" customclass=\"custom_title\"></label>"& |
| " <textbox id=\"mydata_id\" value=\"\" customclass=\"custom_title\">"& |
| " <externaldata element='mydata' source='HtmlTest'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <tabpages flex='1.000000'>"& |
| " <tabpage id='first_tabpage' label='First tabpage' >"& |
| " <label value='First tabpage label'/>"& |
| " </tabpage>"& |
| " <tabpage id='second_tabpage' label='Second tabpage' >"& |
| " <label value='Second tabpage label'/>"& |
| " </tabpage>"& |
| " </tabpages>"& |
| " </hbox>"& |
| " </window>"& |
| " </Widgets>"; |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/main.css", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedStrInCSS1 := "CUSTOM1.CSS"; |
| var charstring vl_expectedStrInCSS2 := "CUSTOM2.CSS"; |
| var charstring vl_expectedMsgInCSS1 := "*" & vl_expectedStrInCSS1 & "*"; |
| var charstring vl_expectedMsgInCSS2 := "*" & vl_expectedStrInCSS2 & "*"; |
| var charstring vl_expectedStrInCSS1Str := "CUSTOM1_STR"; |
| var charstring vl_expectedStrInCSS2Str := "CUSTOM2_STR"; |
| var charstring vl_expectedMsgInCSS1Str := "*" & vl_expectedStrInCSS1Str & "*"; |
| var charstring vl_expectedMsgInCSS2Str := "*" & vl_expectedStrInCSS2Str & "*"; |
| var charstring vl_customCSS1Str := "/* CUSTOM1_STR */\n" & |
| "LABEL { \n" & |
| " COLOR: #002222;\n" & |
| "}\n" & |
| ".custom_title {\n" & |
| " COLOR: #FF0000; \n"& |
| "}\n"; |
| var charstring vl_customCSS2Str := "/* CUSTOM2_STR */\n" & |
| "LABEL { \n" & |
| " COLOR: #222200;\n" & |
| "}\n" & |
| ".custom_title {\n" & |
| " COLOR: #00FF00; \n"& |
| "}\n"; |
| |
| var charstring vl_actCustomCSS := ""; |
| var EPTF_Base_ComponentInfo vl_info; |
| var integer vl_compidx := 1; |
| var charstring vl_compName := ""; |
| |
| |
| var integer vl_idx; |
| f_EPTF_Var_newInt("mydata", 10, vl_idx) |
| |
| f_EPTF_DataSourceClient_registerData( |
| pl_source := "HtmlTest", |
| pl_ptcName := f_EPTF_Base_selfName(), |
| pl_dataHandler := refers(f_EPTF_UIHandler_Test_Data_Handler), |
| pl_sourceCompRef := self |
| ); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| // ADD {1} = {1} |
| // action("ADD {1} = {1}"); |
| if(tsp_EPTF_UIHandler_Browser_custom_css1 != ""){ |
| f_EPTF_UIHandler_Browser_addCustomStyle(tsp_EPTF_UIHandler_Browser_custom_css1); |
| vl_actCustomCSS := f_EPTF_UIHandler_Browser_getCustomStyle(); |
| // Check 1 - [1] |
| if(0<=f_strstr(vl_actCustomCSS, vl_expectedStrInCSS1)){ |
| vl_compName := "BrowserComponent_" & int2str(vl_compidx); |
| vl_compidx := vl_compidx + 1; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation(vl_HTTPMsg, |
| vl_expectedMsgInCSS1, tsp_EPTF_UIHandler_Browser_RemoteAddress, |
| tsp_EPTF_UIHandler_Browser_RemotePort, inconc, "",vl_compName); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| if(0 == f_EPTF_Base_getComponentInfoByName(vl_compName,vl_info)){ |
| f_EPTF_Base_stopRemote(vl_info.compRef); |
| } |
| } else { |
| setverdict(fail,"CSS File{" & tsp_EPTF_UIHandler_Browser_custom_css1 & "} not added!"); |
| } |
| } else { |
| setverdict(fail,"CSS File{" & tsp_EPTF_UIHandler_Browser_custom_css1 & "} not found!"); |
| } |
| // ADD {2Str} = {1, 2Str} |
| // action("ADD {2Str} = {1, 2Str}"); |
| if(vl_customCSS2Str != ""){ |
| f_EPTF_UIHandler_Browser_addCustomStyleStr(vl_customCSS2Str); |
| vl_actCustomCSS := f_EPTF_UIHandler_Browser_getCustomStyle(); |
| // Check 1 - [2] |
| if(0<=f_strstr(vl_actCustomCSS, vl_expectedStrInCSS1)){ |
| vl_compName := "BrowserComponent_" & int2str(vl_compidx); |
| vl_compidx := vl_compidx + 1; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation(vl_HTTPMsg, |
| vl_expectedMsgInCSS1, tsp_EPTF_UIHandler_Browser_RemoteAddress, |
| tsp_EPTF_UIHandler_Browser_RemotePort, inconc, "", vl_compName); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| if(0 == f_EPTF_Base_getComponentInfoByName(vl_compName, vl_info)){ |
| f_EPTF_Base_stopRemote(vl_info.compRef); |
| } |
| } else { |
| setverdict(fail,"CSS File{" & tsp_EPTF_UIHandler_Browser_custom_css1 & "} not added!"); |
| } |
| // Check 2 - [3] |
| if(0<=f_strstr(vl_actCustomCSS, vl_expectedStrInCSS2Str)){ |
| vl_compName := "BrowserComponent_" & int2str(vl_compidx); |
| vl_compidx := vl_compidx + 1; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation(vl_HTTPMsg, |
| vl_expectedMsgInCSS2Str, tsp_EPTF_UIHandler_Browser_RemoteAddress, |
| tsp_EPTF_UIHandler_Browser_RemotePort, inconc, "", vl_compName); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| if(0 == f_EPTF_Base_getComponentInfoByName(vl_compName, vl_info)){ |
| f_EPTF_Base_stopRemote(vl_info.compRef); |
| } |
| } else { |
| setverdict(fail,"CSS Str{" & vl_expectedStrInCSS2Str & "} not added!"); |
| } |
| } else { |
| setverdict(fail,"CSS File{" & tsp_EPTF_UIHandler_Browser_custom_css2 & "} not found!"); |
| } |
| // REMOVE {1} = {2Str} |
| // action("REMOVE {1} = {2Str}"); |
| if(tsp_EPTF_UIHandler_Browser_custom_css1 != ""){ |
| f_EPTF_UIHandler_Browser_removeCustomStyle(tsp_EPTF_UIHandler_Browser_custom_css1); |
| vl_actCustomCSS := f_EPTF_UIHandler_Browser_getCustomStyle(); |
| // Check 1- NEGATIVE - [4] |
| if(f_strstr(vl_actCustomCSS, vl_expectedStrInCSS1)<0){ |
| vl_compName := "BrowserComponent_" & int2str(vl_compidx); |
| vl_compidx := vl_compidx + 1; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation(vl_HTTPMsg, |
| vl_expectedMsgInCSS1, tsp_EPTF_UIHandler_Browser_RemoteAddress, |
| tsp_EPTF_UIHandler_Browser_RemotePort, inconc, "", vl_compName, true); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| if(0 == f_EPTF_Base_getComponentInfoByName(vl_compName, vl_info)){ |
| f_EPTF_Base_stopRemote(vl_info.compRef); |
| } |
| } else { |
| setverdict(fail,"CSS File{" & tsp_EPTF_UIHandler_Browser_custom_css1 & "} not removed!"); |
| } |
| // Check 2Str - [5] |
| if(0<=f_strstr(vl_actCustomCSS, vl_expectedStrInCSS2Str)){ |
| vl_compName := "BrowserComponent_" & int2str(vl_compidx); |
| vl_compidx := vl_compidx + 1; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation(vl_HTTPMsg, |
| vl_expectedMsgInCSS2Str, tsp_EPTF_UIHandler_Browser_RemoteAddress, |
| tsp_EPTF_UIHandler_Browser_RemotePort, inconc, "", vl_compName); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| if(0 == f_EPTF_Base_getComponentInfoByName(vl_compName, vl_info)){ |
| f_EPTF_Base_stopRemote(vl_info.compRef); |
| } |
| } else { |
| setverdict(fail,"CSS Str{" & vl_expectedStrInCSS2Str & "} not in place after remove!"); |
| } |
| } |
| // SET {1Str} = {1Str} |
| // action("SET {1Str} = {1Str}"); |
| if(vl_customCSS1Str != ""){ |
| f_EPTF_UIHandler_Browser_setCustomStyleStr(vl_customCSS1Str); |
| vl_actCustomCSS := f_EPTF_UIHandler_Browser_getCustomStyle(); |
| // Check 1 - [6] |
| if(0<=f_strstr(vl_actCustomCSS, vl_expectedStrInCSS1Str)){ |
| vl_compName := "BrowserComponent_" & int2str(vl_compidx); |
| vl_compidx := vl_compidx + 1; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation(vl_HTTPMsg, |
| vl_expectedMsgInCSS1Str, tsp_EPTF_UIHandler_Browser_RemoteAddress, |
| tsp_EPTF_UIHandler_Browser_RemotePort, inconc, "", vl_compName); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| if(0 == f_EPTF_Base_getComponentInfoByName(vl_compName, vl_info)){ |
| f_EPTF_Base_stopRemote(vl_info.compRef); |
| } |
| } else { |
| setverdict(fail,"CSS Str{" & vl_customCSS1Str & "} not set!"); |
| } |
| // Check 2 - NEGATIVE - [7] |
| if(f_strstr(vl_actCustomCSS, vl_expectedStrInCSS2)<0){ |
| vl_compName := "BrowserComponent_" & int2str(vl_compidx); |
| vl_compidx := vl_compidx + 1; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation(vl_HTTPMsg, |
| vl_expectedMsgInCSS2, tsp_EPTF_UIHandler_Browser_RemoteAddress, |
| tsp_EPTF_UIHandler_Browser_RemotePort, inconc, "", vl_compName, true); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| if(0 == f_EPTF_Base_getComponentInfoByName(vl_compName, vl_info)){ |
| f_EPTF_Base_stopRemote(vl_info.compRef); |
| } |
| } else { |
| setverdict(fail,"CSS File{" & tsp_EPTF_UIHandler_Browser_custom_css2 & "} not cleared after set!"); |
| } |
| } |
| // CLEAR = {} |
| // action("CLEAR = {}"); |
| f_EPTF_UIHandler_Browser_clearCustomStyle(); |
| vl_actCustomCSS := f_EPTF_UIHandler_Browser_getCustomStyle(); |
| // Check 1 - NEGATIVE - [8] |
| if(f_strstr(vl_actCustomCSS, vl_expectedStrInCSS1)<0){ |
| vl_compName := "BrowserComponent_" & int2str(vl_compidx); |
| vl_compidx := vl_compidx + 1; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation(vl_HTTPMsg, |
| vl_expectedMsgInCSS1, tsp_EPTF_UIHandler_Browser_RemoteAddress, |
| tsp_EPTF_UIHandler_Browser_RemotePort, inconc, "", vl_compName, true); |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| if(0 == f_EPTF_Base_getComponentInfoByName(vl_compName, vl_info)){ |
| f_EPTF_Base_stopRemote(vl_info.compRef); |
| } |
| } else { |
| setverdict(fail,"CSS File{" & tsp_EPTF_UIHandler_Browser_custom_css1 & "} not cleared!"); |
| } |
| // Check 2 - NEGATIVE - [9] |
| if(f_strstr(vl_actCustomCSS, vl_expectedStrInCSS2)<0){ |
| vl_compName := "BrowserComponent_" & int2str(vl_compidx); |
| vl_compidx := vl_compidx + 1; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation(vl_HTTPMsg, |
| vl_expectedMsgInCSS2, tsp_EPTF_UIHandler_Browser_RemoteAddress, |
| tsp_EPTF_UIHandler_Browser_RemotePort, inconc, "", vl_compName, true); |
| t_Wait.start( 20.0 ); |
| t_Wait.timeout; |
| if(0 == f_EPTF_Base_getComponentInfoByName(vl_compName, vl_info)){ |
| f_EPTF_Base_stopRemote(vl_info.compRef); |
| } |
| } else { |
| setverdict(fail,"CSS File{" & tsp_EPTF_UIHandler_Browser_custom_css2 & "} not cleared!"); |
| } |
| // all right :)! |
| setverdict(pass); |
| f_EPTF_Base_stopAll(none); |
| } |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_RuntimeGUINoConnectHappens_CheckWarning |
| // |
| // Purpose: |
| // - |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_RuntimeGUINoConnectHappens_CheckWarning() |
| runs on EPTF_UIHandler_Test_CT{ |
| f_EPTF_Base_init_CT("UIHandlerTestComponent"); |
| f_EPTF_Logging_init_CT("UIHandlerTestComponent"); |
| f_EPTF_UIHandler_Test_ExpectedWarning_setExpectedWarning("*In client mode connecting to the RuntimeGUI on *"); |
| f_EPTF_UIHandler_Test_createRTGSimulation( tsp_EPTF_Test_newGUIHost, tsp_EPTF_Test_newGUIPort, tsp_EPTF_Test_newGUIReconnectPort, -, - , 0.1); |
| |
| timer T_guard; |
| T_guard.start( 2.0 ); |
| // wait until the timer expires |
| T_guard.timeout; |
| |
| var boolean vl_createGUI := false; |
| |
| v_ready := false; |
| f_EPTF_UIHandler_setGuiHostPort(tsp_EPTF_Test_newGUIHost, tsp_EPTF_Test_newGUIPort); |
| |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent", true,-,-,-,-,-, true, false, "passwardyoudontknow" ); |
| action("UIHandler listening on: ", tsp_EPTF_Test_newGUIHost,":",tsp_EPTF_Test_newGUIPort); |
| |
| action("Waiting starts"); |
| T_guard.start( tsp_EPTF_UIHandler_maxGUIWaitTime + 10.0 ); |
| // wait until the timer expires |
| T_guard.timeout; |
| action("Waiting ends"); |
| //setverdict(pass); |
| f_EPTF_Base_cleanup_CT(); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_RuntimeGUINoConnectHappens_CheckWarningGUIWorking |
| // |
| // Purpose: |
| // - |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_RuntimeGUINoConnectHappens_CheckWarningGUIWorking() |
| runs on EPTF_UIHandler_Test_CT{ |
| var charstring vl_fileName := "UIHandlerTest_initGUI.xml"; |
| |
| const charstring c_gui := |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_RuntimeGUINoConnectHappens_CheckWarningGUIWorking' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <label value=\"BrowserGUI Test\">"& |
| " <externaldata element='mydata' source='HtmlTest'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </label>"& |
| " </hbox>"& |
| " </window>"& |
| " </Widgets>"; |
| |
| f_EPTF_Base_init_CT("UIHandlerTestComponent"); |
| f_EPTF_Logging_init_CT("UIHandlerTestComponent"); |
| f_EPTF_UIHandler_Test_ExpectedWarning_setExpectedWarning("*In client mode connecting to the RuntimeGUI on *"); |
| f_EPTF_UIHandler_Test_createRTGSimulation( tsp_EPTF_Test_newGUIHost, tsp_EPTF_Test_newGUIPort, tsp_EPTF_Test_newGUIReconnectPort, -, - , 0.1); |
| |
| timer T_guard; |
| T_guard.start( 2.0 ); |
| // wait until the timer expires |
| T_guard.timeout; |
| |
| var boolean vl_createGUI := true; |
| |
| v_ready := false; |
| f_EPTF_UIHandler_setGuiHostPort(tsp_EPTF_Test_newGUIHost, tsp_EPTF_Test_newGUIPort); |
| |
| f_EPTF_UIHandler_init_CT( |
| pl_selfName := "UIHandlerTestComponent", |
| pl_connectGUI := vl_createGUI, |
| pl_windowLayout := -, |
| pl_CLI_compRef := -, |
| pl_prefix := -, |
| pl_simulationMode := -, |
| pl_simulation_buildDB_file := -, |
| pl_headlessmode := true, |
| pl_servermode := false, |
| pl_authresp := "passwardyoudontknow" ); |
| |
| var integer vl_idx; |
| f_EPTF_Var_newCharstring("mydata", "This String LABEL Refresh", vl_idx) |
| |
| f_EPTF_DataSourceClient_registerData( |
| pl_source := "HtmlTest", |
| pl_ptcName := f_EPTF_Base_selfName(), |
| pl_dataHandler := refers(f_EPTF_UIHandler_Test_Data_Handler), |
| pl_sourceCompRef := self |
| ); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| action("tc_EPTF_UIHandler_Test_RuntimeGUINoConnectHappens_CheckWarningGUIWorking: f_EPTF_UIHandler_createGUI"); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| |
| action("tc_EPTF_UIHandler_Test_RuntimeGUINoConnectHappens_CheckWarningGUIWorking: f_EPTF_Var_setContent"); |
| var EPTF_Var_DirectContent vl_nexVar; |
| vl_nexVar.charstringVal := "SEEMS TO WORK!!! - ITS WORKING!!! WORKS!!!"; |
| f_EPTF_Var_adjustContent(vl_idx, vl_nexVar); |
| |
| action("Waiting starts"); |
| T_guard.start( tsp_EPTF_UIHandler_maxGUIWaitTime + 10.0 ); |
| // wait until the timer expires |
| T_guard.timeout; |
| |
| // all right :)! |
| //setverdict(pass); |
| f_EPTF_Base_cleanup_CT(); |
| } |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_NotTabpageUnderTabpages |
| // |
| // Purpose: If Not a Tabpage Under a Tabpages widget is |
| // added, warning should appear |
| // - |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_NotTabpageUnderTabpages() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_guiTabpages := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window id='EPTF_Main_Window' orientation='vertical'"& |
| " title='TTCN constructed window' height='100.000000' width='300.000000'>"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <tabpages id='demo_tabpage'>"& |
| " </tabpages>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>"; |
| |
| const charstring c_guiTabpage := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| //" <tabpage id='tabpage1' >"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <textbox flex='1.000000' id='bubu' multiline='false'"& |
| " readonly='true' value='textboxXYS' /> "& |
| " </hbox>"& |
| //" </tabpage>"& |
| "</Widgets>"; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent", false ); |
| f_EPTF_UIHandler_Test_ExpectedWarning_setExpectedWarning("*Under a tabpages widget only widgets with type tabpage is allowed*") |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| timer T_guard; |
| T_guard.start( 5.0 ); |
| // wait until the timer expires |
| T_guard.timeout; |
| |
| // Creating GUI layout for CS ApplAdmin |
| var boolean vl_widgetExists := false; |
| if(not f_EPTF_UIHandler_createGUI(c_guiTabpages, "")){ |
| setverdict(fail, "GUI can not be created"); |
| } |
| if(f_EPTF_UIHandler_createGUI(c_guiTabpage, "demo_tabpage")){ |
| setverdict(fail, "GUI can not be created"); |
| } |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| |
| const charstring c_MainTabsOldGUI := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tabpages id='EPTF_Main_Tabbox' layout='LISTCARD'>\n\t\t<tabpage id='panels_int1_001' label='test tab 1' orientation='vertical'>\n\t\t\t<tabpages disabled='false' id='EPTF_Sub_Tabbox'>\n\t\t\t\t<tabpage id='panels_int1_002' label='test tab 1.1' orientation='vertical'/>\n\t\t\t\t<tabpage id='panels_int2_002' label='test tab 1.2' orientation='vertical'/>\n\t\t\t</tabpages>\n\t\t</tabpage>\n\t\t<tabpage id='panels_int2_001' label='test tab 2' orientation='vertical'/>\n\t</tabpages>\n</Widgets>\n\n" |
| |
| testcase tc_EPTF_UIHandler_Test_OldGUIUpdateTab() runs on EPTF_UIHandler_Test_CT{ |
| |
| |
| f_UIHandler_WidgetDisabledInXUL_Test_init_CT(cg_UIHandler_WidgetDisabledInXUL_Test_source); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| timer TL_guard, TL_alt, TL_wait; |
| TL_guard.start( cg_waitForVariables ); |
| TL_alt.start( 0.0 ); |
| alt{ |
| [] TL_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_startBecauseDSIsReady > 0] TL_alt.timeout{} |
| }; |
| |
| // Creating GUI layout for CS ApplAdmin |
| if(f_EPTF_UIHandler_createGUI(c_MainTabsOldGUI, tsp_EPTF_GUI_Main_Window_WidgetId)){ |
| TL_wait.start( cg_waitForTestStep ); |
| TL_wait.timeout; |
| } |
| if(not f_EPTF_UIHandler_createGUI("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tabpage id='TestTab3_int_001' label='PLUSZ 3' orientation='vertical'/>\n</Widgets>\n\n","EPTF_Main_Tabbox" )) { |
| } |
| TL_wait.start( cg_waitForTestStep ); |
| TL_wait.timeout; |
| |
| if(not f_EPTF_UIHandler_createGUI("<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>\n\t<tabpage id='TestTab3_int_002' label='PLUSZ 1.3' orientation='vertical'/>\n</Widgets>\n\n", "EPTF_Sub_Tabbox")) { |
| } |
| TL_wait.start( cg_waitForTestStep ); |
| TL_wait.timeout; |
| /* |
| if(not f_EPTF_UIHandler_addElementToGui( |
| { xtdp_labeltype := { |
| id := "Label1", |
| flex := 1.0, |
| disabled := false, |
| style := omit, |
| textvalue := "1stTabLabel" |
| } |
| }, |
| "panels_int1_002", |
| vl_dummyBool)) { |
| } |
| */ |
| |
| TL_wait.start( cg_waitForTestStep ); |
| TL_wait.timeout; |
| |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| action("tc_EPTF_UIHandler_Test_WidgetDisabledInXULOldGUIStr[",log2str(vl_snapshot,"]")); |
| |
| TL_wait.start( cg_waitForTest ); |
| TL_wait.timeout; |
| |
| |
| setverdict(pass); |
| |
| f_EPTF_Base_stopAll(none); |
| |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_LabelRefreshTest() runs on EPTF_UIHandler_Test_CT{ |
| |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent"); |
| |
| const charstring c_gui := |
| " <Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_BrowserGUI_LabelRefreshTest' width='800.000000'>"& |
| " <hbox flex='1.000000' orientation='horizontal'>"& |
| " <label value=\"BrowserGUI Test\">"& |
| " <externaldata element='mydata' source='HtmlTest'>"& |
| " <params>"& |
| " </params>"& |
| " </externaldata>"& |
| " </label>"& |
| " </hbox>"& |
| " </window>"& |
| " </Widgets>"; |
| |
| action("tc_EPTF_UIHandler_Test_BrowserGUI_LabelRefreshTest: f_EPTF_Var_newCharstring"); |
| var integer vl_idx; |
| f_EPTF_Var_newCharstring("mydata", "first string", vl_idx) |
| |
| f_EPTF_DataSourceClient_registerData( |
| pl_source := "HtmlTest", |
| pl_ptcName := f_EPTF_Base_selfName(), |
| pl_dataHandler := refers(f_EPTF_UIHandler_Test_Data_Handler), |
| pl_sourceCompRef := self |
| ); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| action("tc_EPTF_UIHandler_Test_BrowserGUI_LabelRefreshTest: f_EPTF_UIHandler_createGUI"); |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| |
| t_Wait.start( 10.0 ); |
| t_Wait.timeout; |
| action("tc_EPTF_UIHandler_Test_BrowserGUI_LabelRefreshTest: f_EPTF_Var_setContent"); |
| var EPTF_Var_DirectContent vl_nexVar; |
| vl_nexVar.charstringVal := "SECOND STRING"; |
| f_EPTF_Var_adjustContent(vl_idx, vl_nexVar); |
| |
| t_Wait.start( 20.0 ); |
| t_Wait.timeout; |
| // all right :)! |
| setverdict(pass); |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| modulepar charstring tsp_EPTF_UIHandler_Browser_directory := "../BrowserGUI/../BrowserGUI/"; |
| |
| |
| const charstring c_test_BrowserGuiDirWrong := "~"; |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_getSetBrowserDir() runs on EPTF_UIHandler_Test_CT{ |
| var charstring vl_test_BrowserGuiDir := tsp_EPTF_UIHandler_Browser_directory; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent"); |
| f_EPTF_UIHandler_Test_ExpectedWarning_setExpectedWarning("*f_EPTF_UIHandler_Browser_directory: Directory does not exist: *. Trying working directory*"); |
| f_EPTF_UIHandler_Browser_setBrowserDirectory(c_test_BrowserGuiDirWrong); |
| |
| var charstring vl_browserDir := f_EPTF_UIHandler_Browser_getBrowserDirectory(); |
| if(c_test_BrowserGuiDirWrong != vl_browserDir){ |
| setverdict(fail, "BrowserGUI directory not changed. "); |
| } |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| var HTTPMessage vl_HTTPMsgNotFound := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/notfoundit.css", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/main.css", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*COLOR*"; |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsgNotFound, "*404*notfoundit.css*Not Found*", -, - , fail, "pass", -, pl_negativeTest := false,pl_expectedStatus := 404) |
| |
| t_Wait.start( 10.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Browser_setBrowserDirectory(vl_test_BrowserGuiDir) |
| vl_browserDir := f_EPTF_UIHandler_Browser_getBrowserDirectory(); |
| if(vl_test_BrowserGuiDir != vl_browserDir){ |
| setverdict(fail, "BrowserGUI directory not changed. "); |
| } |
| |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| |
| f_EPTF_UIHandler_Test_Browser_createBrowserSimulation( vl_HTTPMsg, vl_expectedMsg, -, - , fail, "", -, false) |
| |
| t_Wait.start( 10.0 ); |
| t_Wait.timeout; |
| setverdict(pass); |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| |
| testcase tc_EPTF_UIHandler_XTDPTpPm_Convert2XML() runs on EPTF_UIHandler_Test_CT{ |
| var Widgets vl_xul := { tree := { disabled := omit, disabledongui := omit, flex := omit, hidecolumnpicker := false, id := "test_tree", rows := 1.000000, |
| treecols := { treecolgroups := { {{ treecol := { align := omit, disabledongui := omit, editable := false, flex := 1.000000, id := omit, label_ := "label", tooltiptext := omit, treecellalign := omit, widgetType := string } } } } }, |
| treechildren := { treeitemgroups := { {{ treeitem := { {{{ treerow := { { {{ treecell := { |
| align := omit, id := "theString", imageid := omit, label_ := " _ &_ \' _ < _ > _ \" _ ", tooltiptext := omit, visible := omit, externaldata := omit |
| }}}} }}}} } }}}} |
| } } ; |
| action("The original value: "); |
| action(vl_xul); |
| |
| var charstring vl_return := f_EPTF_UIHandler_XSD_encodeXUL(vl_xul); |
| vl_return := f_replaceEveryOccurenceOfSubstring( vl_return, "tq0001:", ""); |
| vl_return := f_replaceEveryOccurenceOfSubstring( vl_return, ":tq0001", ""); |
| action("The final value: "); |
| action(vl_return); |
| |
| } |
| |
| |
| // ============================================================================================================== |
| |
| private function f_EPTF_UIHandler_getCustomCSSClass_XUL() runs on EPTF_UIHandler_Test_CT return charstring |
| { |
| var charstring vl_gui := ""; |
| vl_gui := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| /* window - */ |
| " <window height='800.0' id='MyNewEPTFMainWindow' orientation='vertical'"& |
| " title='"&cg_UIHandler_WidgetDisabledInXUL_Test_title&"' width='800.0'>"& |
| " <image id='image_id' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKTSURBVHjaYvz//z8DLQBAADEx0AgABBDN DAYIIBZGRkaqGca3ikGBlYmhnpWZIQAggBgZFzLsBwZzIUMCwwWyTZzPoMAANJCZEWgKA8MHZmYG R4AAYmSYzfAeLPmPwZEhnUTDZwINZGSo5+LgSvj28xsDkP0AiAMZkhkuAAQQE8Mvhg3ifOICDH8Y 9jNMZjAgysBJQAOnMMznYOa472DokKAiosIANOcCw28GQ5ChICUAAQQyeCPQFgYzBzMBoMR+hh48 hvcADexlmM/KzHpf01gzwSPUg+HKjSsMl25eOgB0mCNDJsMHmFKAAGJg6GIQYOhg+K/9Xfu/xGWJ /0D2e4Y2NMNbgQa2M8xn6mf6L3hE8L/GDw2weu553P8ZOoEhjAUABBAkSTQx7GcOZXZgUmdi+HPx D8P/Tf8/MPwHuuA/0AXAMGTgBEaKOQMDixkLAyMHUMsLBoY/i4Hqfv5fwFDHkIjNYIAAYgGTPxk2 /r301+Gv/F8GBnUg3w3oiy3AYGEH0mZAPghzAA0DQoaHQPYSsJ5EhhaGBbhCDSCAIC4uA3qVjeE+ QwGSzCsg5gdidiSxK0C8hwEUUYnAIFyAL34BAgiRO/KABscDLRDDofIqEG8DBg0TMIgmEE6WAAHE DGcZAg1lZ7BgkGAA+RkVg1y5H2goKK1PIS6tAwQQoqz4xXAQ7KrvaHgjEJ8AGvaHQZFhOvEZCCCA UAuKGGBSiwdGGC84ckBeZ2B4CjSMEejSxchplDAACCDU0u0/wwFgSDMwfATitUD8BBhB/0k3FAQA AogZhacHTLGfGQIYbgHZ74CGLgXG/mWGH+SUSwABhIqigcEQDXRjNErCIwsABBAjraomgACiWQ0C EEA0MxggwAAC5K2bqnDzRQAAAABJRU5ErkJggg==' />"& |
| |
| |
| |
| /* tree { + disabled |
| treecols { |
| - treecol + editable |
| } |
| treechildren { |
| - treeitem { |
| - treerow { |
| - treecell [visible] |
| } |
| } |
| } |
| |
| }*/ |
| " <hbox customclass='bordered_class' id='UIHandler_hbox_tree_0' flex='1.000000' orientation='vertical'>"& |
| |
| //treecolnak van sajatja, treecell orokli a treecoltol |
| " <hbox customclass='bordered_class' id='UIHandler_hbox_tree_1' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[EE] - OnlyTreeColHasCustomClass' id='Label_tree_1' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='Tree_1'>"& |
| " <treecols>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol customclass='bordered_class' id='Treecol_1_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol customclass='bordered_class' id='Treecol_1_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='Treecell_1_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_1_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_1_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' id='UIHandler_hbox_tree_2' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[EN] - OnlyTreeColHasCustomClass' id='Label_tree_2' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='Tree_2'>"& |
| " <treecols>"& |
| " <treecol customclass='bordered_class' editable='true' id='Treecol_2_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol customclass='bordered_class' editable='true' id='Treecol_2_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol customclass='bordered_class' editable='true' id='Treecol_2_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol customclass='bordered_class' editable='true' id='Treecol_2_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol customclass='bordered_class' editable='true' id='Treecol_2_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol customclass='bordered_class' editable='true' id='Treecol_2_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol customclass='bordered_class' editable='true' id='Treecol_2_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol customclass='bordered_class' editable='true' id='Treecol_2_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='Treecell_2_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_2_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_2_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "2" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_2_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_2_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_2_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_2_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_2_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| |
| " <hbox customclass='bordered_class' id='UIHandler_hbox_tree_3' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[DE] - OnlyTreeColHasCustomClass' id='Label_tree_3' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='Tree_3'>"& |
| " <treecols>"& |
| " <treecol customclass='bordered_class' id='Treecol_3_1' flex='1.000000' label='string' widgetType='string'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_3_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_3_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_3_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_3_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_3_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_3_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_3_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='Treecell_3_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_3_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_3_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "3" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_3_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_3_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_3_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_3_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_3_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' id='UIHandler_hbox_tree_4' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[DN] - OnlyTreeColHasCustomClass' id='Label_tree_4' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='Tree_4'>"& |
| " <treecols>"& |
| " <treecol customclass='bordered_class' id='Treecol_4_1' flex='1.000000' label='string' widgetType='string'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_4_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_4_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_4_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_4_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_4_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_4_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_4_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='Treecell_4_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_4_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_4_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "4" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_4_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_4_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_4_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_4_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_4_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| |
| //2_ treecellnek van sajatja meg a treecollnak is, de a treecell hasznalodik |
| " <hbox customclass='bordered_class' id='2_UIHandler_hbox_tree_1' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[EE] - BothTreeColAndTreeCellHasCustomClass' id='2_Label_tree_1' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='2_Tree_1'>"& |
| " <treecols>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_1_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol customclass='bordered_class' id='2_Treecol_1_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_1_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol customclass='bordered_class' id='2_Treecol_1_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_1_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_1_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_1_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_1_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_1_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_1_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_1_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_1_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_1_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_1_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_1_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_1_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' id='2_UIHandler_hbox_tree_2' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[EN] - BothTreeColAndTreeCellHasCustomClass' id='2_Label_tree_2' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='2_Tree_2'>"& |
| " <treecols>"& |
| " <treecol customclass='bordered_class' editable='true' id='2_Treecol_2_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol customclass='bordered_class' editable='true' id='2_Treecol_2_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol customclass='bordered_class' editable='true' id='2_Treecol_2_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol customclass='bordered_class' editable='true' id='2_Treecol_2_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol customclass='bordered_class' editable='true' id='2_Treecol_2_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol customclass='bordered_class' editable='true' id='2_Treecol_2_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol customclass='bordered_class' editable='true' id='2_Treecol_2_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol customclass='bordered_class' editable='true' id='2_Treecol_2_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_2_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_2_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_2_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "2" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_2_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_2_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_2_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_2_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_2_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| |
| " <hbox customclass='bordered_class' id='2_UIHandler_hbox_tree_3' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[DE] - BothTreeColAndTreeCellHasCustomClass' id='2_Label_tree_3' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='2_Tree_3'>"& |
| " <treecols>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_3_1' flex='1.000000' label='string' widgetType='string'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_3_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_3_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_3_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_3_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_3_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_3_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_3_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_3_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_3_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_3_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "3" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_3_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_3_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_3_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_3_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_3_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' id='2_UIHandler_hbox_tree_4' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[DN] - BothTreeColAndTreeCellHasCustomClass' id='2_Label_tree_4' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='2_Tree_4'>"& |
| " <treecols>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_4_1' flex='1.000000' label='string' widgetType='string'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_4_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_4_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_4_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_4_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_4_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_4_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol customclass='bordered_class' id='2_Treecol_4_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_4_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_4_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_4_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "4" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_4_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_4_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_4_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_4_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='2_Treecell_4_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| |
| |
| //3_ treecolnak nincs, csak a treecellnek |
| " <hbox customclass='bordered_class' id='3_UIHandler_hbox_tree_1' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[EE] - OnlyTreeCellHasCustomClass' id='3_Label_tree_1' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='3_Tree_1'>"& |
| " <treecols>"& |
| " <treecol id='3_Treecol_1_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol id='3_Treecol_1_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol id='3_Treecol_1_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol id='3_Treecol_1_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol id='3_Treecol_1_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol id='3_Treecol_1_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol id='3_Treecol_1_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol id='3_Treecol_1_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_1_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_1_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_1_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_1_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_1_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_1_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_1_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_1_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' id='3_UIHandler_hbox_tree_2' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[EN] - OnlyTreeCellHasCustomClass' id='3_Label_tree_2' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='3_Tree_2'>"& |
| " <treecols>"& |
| " <treecol editable='true' id='3_Treecol_2_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol editable='true' id='3_Treecol_2_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol editable='true' id='3_Treecol_2_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol editable='true' id='3_Treecol_2_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol editable='true' id='3_Treecol_2_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol editable='true' id='3_Treecol_2_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol editable='true' id='3_Treecol_2_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol editable='true' id='3_Treecol_2_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_2_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_2_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_2_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "2" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_2_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_2_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_2_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_2_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_2_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| |
| " <hbox customclass='bordered_class' id='3_UIHandler_hbox_tree_3' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[DE] - OnlyTreeCellHasCustomClass' id='3_Label_tree_3' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='3_Tree_3'>"& |
| " <treecols>"& |
| " <treecol id='3_Treecol_3_1' flex='1.000000' label='string' widgetType='string'/>"& |
| " <treecol id='3_Treecol_3_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol id='3_Treecol_3_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| " <treecol id='3_Treecol_3_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol id='3_Treecol_3_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol id='3_Treecol_3_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol id='3_Treecol_3_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol id='3_Treecol_3_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_3_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_3_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_3_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "3" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_3_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_3_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_3_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_3_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_3_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' id='3_UIHandler_hbox_tree_4' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[DN] - OnlyTreeCellHasCustomClass' id='3_Label_tree_4' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='3_Tree_4'>"& |
| " <treecols>"& |
| " <treecol id='3_Treecol_4_1' flex='1.000000' label='string' widgetType='string'/>"& |
| " <treecol id='3_Treecol_4_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol id='3_Treecol_4_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| " <treecol id='3_Treecol_4_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol id='3_Treecol_4_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol id='3_Treecol_4_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol id='3_Treecol_4_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol id='3_Treecol_4_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_4_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_4_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_4_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "4" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_4_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_4_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_4_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_4_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell customclass='bordered_class_blue' id='3_Treecell_4_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| |
| |
| //4_ egyiknek sincs customclassja |
| " <hbox customclass='bordered_class' id='4_UIHandler_hbox_tree_1' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[EE] - NoOneHasCustomClass' id='4_Label_tree_1' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='4_Tree_1'>"& |
| " <treecols>"& |
| " <treecol id='4_Treecol_1_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol id='4_Treecol_1_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol id='4_Treecol_1_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol id='4_Treecol_1_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol id='4_Treecol_1_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol id='4_Treecol_1_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol id='4_Treecol_1_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol id='4_Treecol_1_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='4_Treecell_1_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='4_Treecell_1_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_1_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='4_Treecell_1_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_1_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_1_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_1_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_1_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' id='4_UIHandler_hbox_tree_2' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[EN] - NoOneHasCustomClass' id='4_Label_tree_2' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='4_Tree_2'>"& |
| " <treecols>"& |
| " <treecol editable='true' id='4_Treecol_2_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol editable='true' id='4_Treecol_2_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol editable='true' id='4_Treecol_2_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol editable='true' id='4_Treecol_2_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol editable='true' id='4_Treecol_2_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol editable='true' id='4_Treecol_2_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol editable='true' id='4_Treecol_2_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol editable='true' id='4_Treecol_2_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='4_Treecell_2_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='4_Treecell_2_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_2_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "2" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='4_Treecell_2_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_2_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_2_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_2_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_2_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| |
| " <hbox customclass='bordered_class' id='4_UIHandler_hbox_tree_3' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[DE] - NoOneHasCustomClass' id='4_Label_tree_3' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='4_Tree_3'>"& |
| " <treecols>"& |
| " <treecol id='4_Treecol_3_1' flex='1.000000' label='string' widgetType='string'/>"& |
| " <treecol id='4_Treecol_3_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol id='4_Treecol_3_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| " <treecol id='4_Treecol_3_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol id='4_Treecol_3_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol id='4_Treecol_3_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol id='4_Treecol_3_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol id='4_Treecol_3_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='4_Treecell_3_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='4_Treecell_3_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_3_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "3" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='4_Treecell_3_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_3_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_3_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_3_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_3_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' id='4_UIHandler_hbox_tree_4' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[DN] - NoOneHasCustomClass' id='4_Label_tree_4' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='4_Tree_4'>"& |
| " <treecols>"& |
| " <treecol id='4_Treecol_4_1' flex='1.000000' label='string' widgetType='string'/>"& |
| " <treecol id='4_Treecol_4_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol id='4_Treecol_4_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| " <treecol id='4_Treecol_4_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol id='4_Treecol_4_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol id='4_Treecol_4_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol id='4_Treecol_4_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol id='4_Treecol_4_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='4_Treecell_4_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='4_Treecell_4_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_4_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "4" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='4_Treecell_4_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_4_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_4_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_4_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='4_Treecell_4_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| |
| |
| |
| |
| " </hbox>"& |
| |
| /* tabpages { + disabled |
| tabpage |
| }*/ |
| " <hbox customclass='bordered_class' id='UIHandler_tbpages_1' flex='0.000000' orientation='horizontal'>"& |
| " <tabpages customclass='bordered_class' flex='1.0' id='EPTF_WidgetDisabledInXUL_Tabpages_1' disabled='false'>"& |
| " <tabpage customclass='bordered_class' id='GUIVariables_Tabpage1_Id_1' label='UIHandler_Tabpage_1' orientation='vertical'>"& |
| |
| " </tabpage>"& |
| " <tabpage customclass='bordered_class' id='GUIVariables_Tabpage1_Id_2' label='UIHandler_Tabpage_2' orientation='vertical' disabledongui='true'>"& |
| |
| " </tabpage>"& |
| " </tabpages>"& |
| |
| " <tabpages customclass='bordered_class' flex='1.0' id='EPTF_WidgetDisabledInXUL_Tabpages_2' disabledongui='true' layout='LISTCARD'>"& |
| " <tabpage customclass='bordered_class' id='GUIVariables_Tabpage2_Id_1' label='Tabpage On Disabled Pages 1' orientation='vertical'>"& |
| |
| " </tabpage>"& |
| " <tabpage customclass='bordered_class' id='GUIVariables_Tabpage2_Id_2' label='Tabpage On Disabled Pages 2' orientation='vertical'>"& |
| |
| " </tabpage>"& |
| |
| " </tabpages>"& |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_2' flex='1.000000' orientation='vertical'>"& |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_label' flex='1.000000' orientation='horizontal'>"& |
| |
| /* label + disabled */ |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='Labels[EW ER DW DR]' id='Label_ID_1' >"& |
| " </label>"& |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='EW' id='Label_ID_2' >"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </label>"& |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='ER' id='Label_ID_3' >"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </label>"& |
| " <label customclass='bordered_class' disabledongui='true' flex='1.000000' value='DW' id='Label_ID_4' >"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </label>"& |
| " <label customclass='bordered_class' disabledongui='true' disabled='false' flex='1.000000' value='DR' id='Label_ID_5' >"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </label>"& |
| " </hbox>"& |
| |
| /* textbox + disabled ; readonly */ |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_textbox' flex='1.000000' orientation='vertical'>"& |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_textbox_1' flex='1.000000' orientation='horizontal'>"& |
| |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_002' multiline='false' readonly='true' disabled='false' value='Textbox[RES REW RER EW ER]' />"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_003' multiline='false' readonly='true' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_004' multiline='false' readonly='true' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_005' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_006' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " </hbox>"& |
| |
| " <hbox disabled='false' id='UIHandler_hbox_textbox_2' flex='1.000000' orientation='horizontal'>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_007' multiline='false' readonly='true' disabledongui='true' value='Textbox[RDS RDW RDR DW DR]' />"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_008' multiline='false' readonly='true' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_009' multiline='false' readonly='true' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_010' multiline='false' readonly='false' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_011' multiline='false' readonly='false' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| |
| " </hbox>"& |
| " </hbox>"& |
| |
| /* numericalwidget + disabled; readonly */ |
| |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_numericalwidget_1' flex='1.000000' orientation='vertical'>"& |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_numericalwidget_2' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='Numericalwidget[REW RER EW ER]' id='Label_numericalwidget_1' >"& |
| " </label>"& |
| " <numericalwidget customclass='bordered_class' disabledongui='true' readonly='false' disabled='false' flex='1.000000' id='numericalwidget_01' tooltiptext='REW' widgetType='floatField' slider='true' minvalue='0.0' maxvalue='1000000.0' stepsize='2.0' >"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </numericalwidget>"& |
| " <numericalwidget customclass='bordered_class' readonly='false' disabled='false' flex='1.000000' id='numericalwidget_02' tooltiptext='RER' widgetType='floatField' slider='true' value='20.0' minvalue='0.0' maxvalue='1000000.0' stepsize='2.0' >"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </numericalwidget>"& |
| |
| " </hbox>"& |
| " </hbox>"& |
| |
| |
| /* button + disabled */ |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_button_1' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='Button[EW ER DW DR]' id='Label_button_1' >"& |
| " </label>"& |
| " <button customclass='bordered_class' disabled='false' flex='1.000000' id='button_01' label='EW' >"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </button>"& |
| " <button customclass='bordered_class' disabled='false' flex='1.000000' id='button_02' label='ER' >"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </button>"& |
| " <button customclass='bordered_class' disabledongui='true' flex='1.000000' id='button_03' label='DW' >"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </button>"& |
| " <button customclass='bordered_class' disabledongui='true' flex='1.000000' id='button_04' label='DR' >"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </button>"& |
| " </hbox>"& |
| |
| |
| |
| /* listbox + disabled */ |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_listbox_1' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='Listbox[EW ER DW DR]' id='Label_listbox_1' ></label>"& |
| |
| " <listbox customclass='bordered_class' flex='1.000000' id='list_1' seltype='single' disabled='false'>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " <iterator id='testIteratorList_1' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <listitem id='listitem_1_%testIteratorList_1%' label='%testIteratorList_1%' selected='false'/>"& |
| " </iterator>"& |
| " </listbox>"& |
| |
| " <listbox customclass='bordered_class' flex='1.000000' id='list_2' seltype='multiple' disabled='false'>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdxList & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " <iterator id='testIteratorList_2' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <listitem id='listitem_2_%testIteratorList_2%' label='%testIteratorList_2%' selected='false'/>"& |
| " </iterator>"& |
| " </listbox>"& |
| |
| " <listbox customclass='bordered_class' flex='1.000000' id='list_3' seltype='multiple' disabledongui='true'>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdxList & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " <iterator id='testIteratorList_3' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <listitem id='listitem_3_%testIteratorList_3%' label='%testIteratorList_3%' selected='false'/>"& |
| " </iterator>"& |
| " </listbox>"& |
| |
| " <listbox customclass='bordered_class' flex='1.000000' id='list_4' seltype='single' disabledongui='true'>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdxDisabled & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " <iterator id='testIteratorList_4' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <listitem id='listitem_4_%testIteratorList_4%' label='%testIteratorList_4%' selected='false'/>"& |
| " </iterator>"& |
| " </listbox>"& |
| |
| " </hbox>"& |
| |
| /* menulist + disabled ; readonly ; editable */ |
| /* menuitem - */ |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_menulist_1' flex='1.000000' orientation='vertical'>"& |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_menulist_2' flex='1.000000' orientation='horizontal'>"& |
| |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='Menulist[EEW EER NEW NER]' id='Label_menulist_1' >"& |
| " </label>"& |
| " <menulist customclass='bordered_class' flex='1.000000' id='menulist_1' disabled='false' editable='true'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_1' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_1_%menuitemIteratorList_1%' label='%menuitemIteratorList_1%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist customclass='bordered_class' flex='1.000000' id='menulist_2' disabled='false' editable='true'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_2' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_2_%menuitemIteratorList_2%' label='%menuitemIteratorList_2%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist customclass='bordered_class' flex='1.000000' id='menulist_3' disabled='false' editable='false'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_3' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_3_%menuitemIteratorList_3%' label='%menuitemIteratorList_3%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist customclass='bordered_class' flex='1.000000' id='menulist_4' disabled='false' editable='false'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_4' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_4_%menuitemIteratorList_4%' label='%menuitemIteratorList_4%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_menulist_3' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='Menulist[EDW EDR NDW NDR]' id='Label_menulist_2' >"& |
| " </label>"& |
| " <menulist customclass='bordered_class' flex='1.000000' id='menulist_5' disabledongui='true' editable='true'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_5' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_5_%menuitemIteratorList_5%' label='%menuitemIteratorList_5%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist customclass='bordered_class' flex='1.000000' id='menulist_6' disabledongui='true' editable='true'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_6' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_6_%menuitemIteratorList_6%' label='%menuitemIteratorList_6%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist customclass='bordered_class' flex='1.000000' id='menulist_7' disabledongui='true' editable='false'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_7' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_7_%menuitemIteratorList_7%' label='%menuitemIteratorList_7%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEnd&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " <menulist customclass='bordered_class' flex='1.000000' id='menulist_8' disabledongui='true' editable='false'>"& |
| " <menupopup>"& |
| " <iterator id='menuitemIteratorList_8' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_stringList & cg_varNameEnd&"'>"& |
| " <menuitem id='menuitem_8_%menuitemIteratorList_8%' label='%menuitemIteratorList_8%' selected='false'/>"& |
| " </iterator>"& |
| " </menupopup>"& |
| " <externaldata source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"' element='"&cg_varNameStart_listIdx & cg_varNameEndReadOnly&"'>"& |
| " </externaldata>"& |
| " </menulist>"& |
| " </hbox>"& |
| " </hbox>"& |
| |
| /* chart + disabled */ |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_chart_1' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='Chart[E D]' id='Label_chart_1' ></label>"& |
| " <chart customclass='bordered_class' disabled='false' flex='1.000000' id='chart_1' title='Chart enabled'>"& |
| " <trace color='blue' fill='false' id='trace_blue_1' maxPoints='2048' name='CPS' physicalUnitX='sec' physicalUnitY='call/sec'>"& |
| " <externaldata element='ChartData' source='CheckChart_Provider'>"& |
| " <params>"& |
| " <dataparam name='TraceName' value='trace1'></dataparam>"& |
| " </params>"& |
| " </externaldata>"& |
| " </trace>"& |
| " </chart>"& |
| " <chart customclass='bordered_class' disabledongui='true' flex='1.000000' id='chart_2' title='Chart disabled'>"& |
| " <trace color='blue' fill='false' id='trace_blue_2' maxPoints='2048' name='CPS' physicalUnitX='sec' physicalUnitY='call/sec'>"& |
| " <externaldata element='ChartData' source='CheckChart_Provider'>"& |
| " <params>"& |
| " <dataparam name='TraceName' value='trace2'></dataparam>"& |
| " </params>"& |
| " </externaldata>"& |
| " </trace>"& |
| " </chart>"& |
| " </hbox>"& |
| |
| /* toolbar + disabled */ |
| /* toolbarelements { |
| toolbarbutton + disabled |
| pushbutton + disabled |
| togglebutton + disabled |
| separator - |
| } */ |
| |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_toolbar_1' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='Toolbar[EW DR DW DR]' id='Label_toolbar_1' ></label>"& |
| |
| " <toolbar customclass='bordered_class' disabled='false' id='toolbar_01' placement='east'>"& |
| " <toolbarbutton customclass='bordered_class' disabled='false' id='toolbarbutton_01_01' tooltiptext='EW' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton customclass='bordered_class' disabled='false' id='toolbarbutton_01_02' tooltiptext='ER' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton customclass='bordered_class' disabledongui='true' id='toolbarbutton_01_03' tooltiptext='DW' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton customclass='bordered_class' disabledongui='true' id='toolbarbutton_01_04' tooltiptext='DR' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " </toolbar>"& |
| |
| |
| " </hbox>"& |
| |
| " <hbox customclass='bordered_class' disabledongui='true' id='UIHandler_hbox_toolbar_2' flex='1.000000' orientation='horizontal'>"& |
| " <toolbar customclass='bordered_class' disabledongui='true' id='toolbar_02' placement='west'>"& |
| " <toolbarbutton customclass='bordered_class' disabled='false' id='toolbarbutton_02_01' tooltiptext='EW' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton customclass='bordered_class' disabled='false' id='toolbarbutton_02_02' tooltiptext='ER' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton customclass='bordered_class' disabledongui='true' id='toolbarbutton_02_03' tooltiptext='DW' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " <toolbarbutton customclass='bordered_class' disabledongui='true' id='toolbarbutton_02_04' tooltiptext='DR' imageid='image_id' >"& |
| " <externaldata element='"&cg_varNameStart_toolbarButton & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </toolbarbutton>"& |
| " </toolbar>"& |
| " </hbox>"& |
| |
| |
| /* hbox + disabled */ |
| " <hbox customclass='bordered_class' disabledongui='true' id='UIHandler_hbox_1' flex='0.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' disabled='false' flex='0.000000' value='Label On Disabled HBOX' id='Label_ID_0' >"& |
| " </label>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_101' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_201' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_301' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdx & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_d301' multiline='false' readonly='false' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdx & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_401' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdxDisabled & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_d401' multiline='false' readonly='false' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdxDisabled & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_d401RO' multiline='false' readonly='false' disabledongui='true' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdxDisabled & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_501' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdx & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_601' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdxList & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_701' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_listIdxList & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_801' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </textbox>"& |
| " </hbox>"& |
| |
| /* htmlcode + disabled */ |
| |
| |
| " <hbox customclass='bordered_class' disabled='false' id='UIHandler_hbox_htmlcode_1' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' disabled='false' flex='1.000000' value='Htmlcode[EW ER DW DR]' id='Label_htmlcode_1' ></label>"& |
| " <htmlcode customclass='bordered_class' disabled='false' id='htmlcode_01' >"& |
| " <externaldata element='"&cg_varNameStart_htmlstring & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " <value>value1</value>"& |
| " </htmlcode>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_901' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </textbox>"& |
| " <htmlcode customclass='bordered_class' disabled='false' id='htmlcode_02' >"& |
| " <externaldata element='"&cg_varNameStart_htmlstring & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " <value>value2</value>"& |
| " </htmlcode>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_902' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "2" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </textbox>"& |
| " <htmlcode customclass='bordered_class' disabledongui='true' id='htmlcode_03' >"& |
| " <externaldata element='"&cg_varNameStart_htmlstring & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " <value>value3</value>"& |
| " </htmlcode>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_903' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "3" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </textbox>"& |
| " <htmlcode customclass='bordered_class' disabledongui='true' id='htmlcode_04' >"& |
| " <externaldata element='"&cg_varNameStart_htmlstring & cg_varNameEndReadOnly&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " <value>value4</value>"& |
| " </htmlcode>"& |
| " <textbox customclass='bordered_class' flex='1.000000' id='textbox_904' multiline='false' readonly='false' disabled='false' value=''>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "4" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </textbox>"& |
| " </hbox>"& |
| |
| |
| |
| /* distributionchart + disabled */ |
| |
| |
| |
| " </hbox>"& |
| " <hbox customclass='bordered_class' id=\"EPTF_Main_hbox\" orientation=\"vertical\" fixedposition=\"BottomLeft\" >"& |
| " <button customclass='bordered_class' flex=\"1.0\" id=\"EPTF_exit_ttcn_button\" label=\"Exit\"/>"& |
| " </hbox>"& |
| |
| " </window>"& |
| "</Widgets>"; |
| |
| return(vl_gui); |
| } |
| |
| // ------------------------------------------------------------------------------------------------------------------- |
| private function f_EPTF_UIHandler_getImageNotFound_XUL() runs on EPTF_UIHandler_Test_CT return charstring |
| { |
| var charstring vl_gui := ""; |
| vl_gui := "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| /* window - */ |
| " <window height='800.0' id='MyNewEPTFMainWindow' orientation='vertical'"& |
| " title='"&cg_UIHandler_WidgetDisabledInXUL_Test_title&"' width='800.0'>"& |
| " <image id='image_id' imagedata='iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKTSURBVHjaYvz//z8DLQBAADEx0AgABBDN DAYIIBZGRkaqGca3ikGBlYmhnpWZIQAggBgZFzLsBwZzIUMCwwWyTZzPoMAANJCZEWgKA8MHZmYG R4AAYmSYzfAeLPmPwZEhnUTDZwINZGSo5+LgSvj28xsDkP0AiAMZkhkuAAQQE8Mvhg3ifOICDH8Y 9jNMZjAgysBJQAOnMMznYOa472DokKAiosIANOcCw28GQ5ChICUAAQQyeCPQFgYzBzMBoMR+hh48 hvcADexlmM/KzHpf01gzwSPUg+HKjSsMl25eOgB0mCNDJsMHmFKAAGJg6GIQYOhg+K/9Xfu/xGWJ /0D2e4Y2NMNbgQa2M8xn6mf6L3hE8L/GDw2weu553P8ZOoEhjAUABBAkSTQx7GcOZXZgUmdi+HPx D8P/Tf8/MPwHuuA/0AXAMGTgBEaKOQMDixkLAyMHUMsLBoY/i4Hqfv5fwFDHkIjNYIAAYgGTPxk2 /r301+Gv/F8GBnUg3w3oiy3AYGEH0mZAPghzAA0DQoaHQPYSsJ5EhhaGBbhCDSCAIC4uA3qVjeE+ QwGSzCsg5gdidiSxK0C8hwEUUYnAIFyAL34BAgiRO/KABscDLRDDofIqEG8DBg0TMIgmEE6WAAHE DGcZAg1lZ7BgkGAA+RkVg1y5H2goKK1PIS6tAwQQoqz4xXAQ7KrvaHgjEJ8AGvaHQZFhOvEZCCCA UAuKGGBSiwdGGC84ckBeZ2B4CjSMEejSxchplDAACCDU0u0/wwFgSDMwfATitUD8BBhB/0k3FAQA AogZhacHTLGfGQIYbgHZ74CGLgXG/mWGH+SUSwABhIqigcEQDXRjNErCIwsABBAjraomgACiWQ0C EEA0MxggwAAC5K2bqnDzRQAAAABJRU5ErkJggg==' />"& |
| " <hbox customclass='bordered_class' id='UIHandler_hbox_tree_0' flex='1.000000' orientation='vertical'>"& |
| " <hbox customclass='bordered_class' id='UIHandler_hbox_tree_1' flex='1.000000' orientation='horizontal'>"& |
| " <label customclass='bordered_class' flex='1.000000' value='Tree[EE] - OnlyTreeColHasCustomClass' id='Label_tree_1' ></label>"& |
| " <tree customclass='bordered_class' hidecolumnpicker='false' id='Tree_1'>"& |
| " <treecols>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_1' flex='1.000000' label='string' widgetType='string'/>"& |
| |
| " <treecol customclass='bordered_class' id='Treecol_1_2' flex='1.000000' label='integerField' widgetType='integerField'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_3' flex='1.000000' label='floatField' widgetType='floatField'/>"& |
| |
| " <treecol customclass='bordered_class' id='Treecol_1_4' flex='1.000000' label='checkBox' widgetType='checkBox'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_5' flex='1.000000' label='statusLED' widgetType='statusLED'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_6' flex='1.000000' label='statusLEDWithText' widgetType='statusLEDWithText'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_7' flex='1.000000' label='pushButton' widgetType='pushButton'/>"& |
| " <treecol customclass='bordered_class' id='Treecol_1_8' flex='1.000000' label='toggleButton' widgetType='toggleButton'/>"& |
| |
| " </treecols>"& |
| " <treechildren>"& |
| " <treeitem>"& |
| " <treerow>"& |
| " <treecell id='Treecell_1_1'>"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_1_2'>"& |
| " <externaldata element='"&cg_varNameStart_integerField & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_3'>"& |
| " <externaldata element='"&cg_varNameStart_floatField & "1" & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " <treecell id='Treecell_1_4'>"& |
| " <externaldata element='"&cg_varNameStart_checkBox & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_5'>"& |
| " <externaldata element='"&cg_varNameStart_statusLED & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_6'>"& |
| " <externaldata element='"&cg_varNameStart_statusLEDWithText & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_7'>"& |
| " <externaldata element='"&cg_varNameStart_pushButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| " <treecell id='Treecell_1_8'>"& |
| " <externaldata element='"&cg_varNameStart_toggleButton & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'></externaldata>"& |
| " </treecell>"& |
| |
| " </treerow>"& |
| " </treeitem>"& |
| " </treechildren>"& |
| " </tree>"& |
| " </hbox>"& |
| " <hbox id='UIHandler_hbox_tree_2' flex='1.000000' orientation='horizontal'>"& |
| " <htmlcode>"& |
| " <externaldata element='"&cg_varNameStart_htmlstring_image_not_found & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " <value>"& |
| " </value>"& |
| " </htmlcode>"& |
| |
| " <htmlcode>"& |
| " <value><![CDATA[<A HREF=\"mailto:info@noescape.hu\"><img src=\"/notfoundimage007.jpg\" width=\"300\" height=\"200\" /></A>]]></value>"& |
| " </htmlcode>"& |
| " </hbox>"& |
| " <hbox id='UIHandler_hbox_tree_3' flex='1.000000' orientation='horizontal'>"& |
| " <htmlcode>"& |
| " <externaldata element='"&cg_varNameStart_htmlstring_image_found & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " <value>"& |
| " </value>"& |
| " </htmlcode>"& |
| " <htmlcode>"& |
| " <value><![CDATA[<A HREF=\"mailto:info@noescape.hu\"><img src=\"/ericsson_logo_top.png\" width=\"300\" height=\"200\" /></A>]]></value>"& |
| " </htmlcode>"& |
| " </hbox>"& |
| |
| " </hbox>"& |
| " <hbox customclass='bordered_class' id=\"EPTF_Main_hbox\" orientation=\"vertical\" fixedposition=\"BottomLeft\" >"& |
| " <button customclass='bordered_class' flex=\"1.0\" id=\"EPTF_exit_ttcn_button\" label=\"Exit\"/>"& |
| " </hbox>"& |
| |
| " </window>"& |
| "</Widgets>"; |
| |
| return(vl_gui); |
| } |
| |
| |
| // ============================================================================== |
| // widgetfunctions - widget customclass setup in xul |
| testcase tc_EPTF_UIHandler_Test_WidgetCustomClassInXUL_Manual() runs on EPTF_UIHandler_Test_CT{ |
| |
| var charstring vl_customCSSStrBorder := "/* bordered_class */\n" & |
| ".bordered_class { \n" & |
| " BORDER-COLOR: #ED6B9F !important;\n" & |
| " border-style:solid !important;\n" & |
| " border-width:5px !important;\n" & |
| " BACKGROUND-COLOR: #6C8CD5 !important;\n" & |
| "}\n" & |
| "/* bordered_class_blue */\n" & |
| ".bordered_class_blue { \n" & |
| " BORDER-COLOR: #959bba !important;\n" & |
| " border-style:solid !important;\n" & |
| " border-width:5px !important;\n" & |
| " BACKGROUND-COLOR: #6C8CD5 !important;\n" & |
| "}\n"; |
| f_UIHandler_WidgetDisabledInXUL_Test_init_CT(cg_UIHandler_WidgetDisabledInXUL_Test_source); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| f_EPTF_UIHandler_Browser_setCustomStyleStr(vl_customCSSStrBorder); |
| |
| timer TL_guard, TL_alt; |
| TL_guard.start( cg_waitForVariables ); |
| TL_alt.start( 0.0 ); |
| alt{ |
| [] TL_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_startBecauseDSIsReady > 0] TL_alt.timeout{} |
| }; |
| |
| var charstring vl_lastgui := f_EPTF_UIHandler_getCustomCSSClass_XUL(); |
| action("tc_EPTF_UIHandler_Test_WidgetCustomClassInXUL_Manual",log2str("[",vl_lastgui,"]")); |
| if(false == f_EPTF_UIHandler_createGUI(vl_lastgui, tsp_EPTF_GUI_Main_Window_WidgetId)) { |
| setverdict(fail, "tc_EPTF_UIHandler_Test_WidgetCustomClassInXUL_Manual: CreateGUI failed."); |
| } else { |
| |
| action("tc_EPTF_UIHandler_Test_WidgetCustomClassInXUL_Manual - TIMEOUT START >>"); |
| timer TL_wait; |
| TL_wait.start( 160.0 ); |
| TL_wait.timeout; |
| |
| action("tc_EPTF_UIHandler_Test_WidgetCustomClassInXUL_Manual - TIMEOUT!!!"); |
| //f_EPTF_Base_wait4Shutdown() |
| setverdict(pass); |
| } |
| |
| |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_BrowserGUI_CheckTitleOfTabpage() runs on EPTF_UIHandler_Test_CT{ |
| var HTTPMessage vl_HTTPMsg := { |
| request := { |
| client_id := omit, |
| method := "GET", |
| uri := "/?tabrequest_second_tabpage", |
| version_major := 1, |
| version_minor := 1, |
| header := {}, |
| body := "" |
| } |
| }; |
| var charstring vl_expectedMsg := "*window*title*WindowTitle - UIHandler Test : Second tabpage*"; |
| f_EPTF_UIHandler_Test_Browser_createFunction(vl_HTTPMsg, vl_expectedMsg); |
| |
| timer t_Wait; |
| t_Wait.start( 2.0 ); |
| t_Wait.timeout; |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| // Image not found manual test |
| testcase tc_EPTF_UIHandler_Test_ImageNotFoundInXUL_Manual() runs on EPTF_UIHandler_Test_CT{ |
| |
| f_UIHandler_WidgetDisabledInXUL_Test_init_CT(cg_UIHandler_WidgetDisabledInXUL_Test_source); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| timer TL_guard, TL_alt; |
| TL_guard.start( cg_waitForVariables ); |
| TL_alt.start( 0.0 ); |
| alt{ |
| [] TL_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_startBecauseDSIsReady > 0] TL_alt.timeout{} |
| }; |
| |
| var charstring vl_lastgui := f_EPTF_UIHandler_getImageNotFound_XUL(); |
| action("tc_EPTF_UIHandler_Test_ImageNotFoundInXUL_Manual",log2str("[",vl_lastgui,"]")); |
| if(false == f_EPTF_UIHandler_createGUI(vl_lastgui, tsp_EPTF_GUI_Main_Window_WidgetId)) { |
| setverdict(fail, "tc_EPTF_UIHandler_Test_ImageNotFoundInXUL_Manual: CreateGUI failed."); |
| } else { |
| |
| action("tc_EPTF_UIHandler_Test_ImageNotFoundInXUL_Manual - TIMEOUT START >>"); |
| timer TL_wait; |
| TL_wait.start( 160.0 ); |
| TL_wait.timeout; |
| var Widgets vl_widgets; |
| f_EPTF_UIHandler_buildXUL(vl_widgets, false); |
| var charstring vl_received_gui := oct2char(enc_Widgets(vl_widgets)); |
| action("tc_EPTF_UIHandler_Test_ImageNotFoundInXUL_Manual - vl_received_gui >>", vl_received_gui); |
| |
| action("tc_EPTF_UIHandler_Test_ImageNotFoundInXUL_Manual - TIMEOUT!!!"); |
| //f_EPTF_Base_wait4Shutdown() |
| setverdict(pass); |
| } |
| |
| |
| f_EPTF_Base_stopAll(none); |
| } |
| |
| // this test loads two GUI XMLS with lot of externalData. The sources are on different PTCs. |
| // When the second GUI is loaded would block should be present (with the CLL version R18A02) |
| // This test should be run without runtime GUI! => servermode set to true to prevent connection |
| testcase tc_EPTF_UIHandler_Test_wouldBlock() runs on EPTF_UIHandler_Test_CT { |
| |
| f_EPTF_Base_init_CT("WouldBlockTest_main"); |
| |
| var integer vl_numSources := 10; |
| var integer vl_numTreeCols := 2000; |
| var integer vl_numTreeRows := 3; |
| |
| // start UIHandler: |
| var EPTF_UIHandler_Test_CT vl_uiHandler := EPTF_UIHandler_Test_CT.create; |
| |
| vl_uiHandler.start(f_EPTF_UIHandler_Test_wouldBlock_UIHandlerBehaviour(vl_numSources)); |
| |
| timer t_wait := 0.5; |
| t_wait.start; |
| t_wait.timeout; |
| |
| |
| // start main source: |
| var EPTF_UIHandler_Test_WouldBlockMain_CT vl_wouldBlockMain := EPTF_UIHandler_Test_WouldBlockMain_CT.create; |
| vl_wouldBlockMain.start(f_EPTF_UIHandler_Test_wouldBlock_MainBehaviour(vl_uiHandler,vl_numSources)); |
| |
| |
| // start other sources: |
| for(var integer i:=0 ; i<vl_numSources; i:=i+1) { |
| var EPTF_UIHandler_Test_WouldBlockSource_CT vl_wouldBlockSource := EPTF_UIHandler_Test_WouldBlockSource_CT.create; |
| vl_wouldBlockSource.start(f_EPTF_UIHandler_Test_wouldBlock_SourceBehaviour(vl_uiHandler,i, vl_numTreeCols, vl_numTreeRows)); |
| } |
| |
| |
| f_EPTF_Base_wait4Shutdown(); |
| |
| } |
| |
| |
| // this test loads two GUI XMLS with lot of externalData. The sources are on different PTCs. |
| // When the second GUI is loaded would block should be present (with the CLL version R18A) |
| // when getCondition messages are sent |
| // This test should be run without runtime GUI! => servermode set to true to prevent connection |
| testcase tc_EPTF_UIHandler_Test_wouldBlockWithCondition() runs on EPTF_UIHandler_Test_CT { |
| |
| f_EPTF_Base_init_CT("WouldBlockTestWithCondition_main"); |
| |
| var integer vl_numSources := 10; |
| var integer vl_numTreeCols := 40; |
| var integer vl_numTreeRows := 3; |
| |
| // start UIHandler: |
| var EPTF_UIHandler_Test_CT vl_uiHandler := EPTF_UIHandler_Test_CT.create; |
| |
| vl_uiHandler.start(f_EPTF_UIHandler_Test_wouldBlock_UIHandlerBehaviour( |
| vl_numSources, |
| {"WouldBlockTest_GUIFileWithCondition1.xml", "WouldBlockTest_GUIFileWithCondition2.xml"} |
| )); |
| |
| timer t_wait := 0.5; |
| t_wait.start; |
| t_wait.timeout; |
| |
| |
| // start main source: |
| var EPTF_UIHandler_Test_WouldBlockMain_CT vl_wouldBlockMain := EPTF_UIHandler_Test_WouldBlockMain_CT.create; |
| vl_wouldBlockMain.start(f_EPTF_UIHandler_Test_wouldBlock_MainBehaviour(vl_uiHandler,vl_numSources)); |
| |
| |
| // start other sources: |
| for(var integer i:=0 ; i<vl_numSources; i:=i+1) { |
| var EPTF_UIHandler_Test_WouldBlockSource_CT vl_wouldBlockSource := EPTF_UIHandler_Test_WouldBlockSource_CT.create; |
| vl_wouldBlockSource.start(f_EPTF_UIHandler_Test_wouldBlock_SourceBehaviour(vl_uiHandler,i, vl_numTreeCols, vl_numTreeRows)); |
| } |
| |
| |
| f_EPTF_Base_wait4Shutdown(); |
| |
| } |
| |
| testcase tc_EPTF_UIHandler_GUIFunctions_Tests() runs on EPTF_UIHandler_Test_CT{ |
| action("tc_EPTF_UIHandler_GUIFunctions_Tests started"); |
| var integer vl_dummy; |
| f_EPTF_UIHandler_Test_startDataSource(vl_dummy,vl_dummy,vl_dummy); |
| var charstring vl_success := f_EPTF_UIHandler_GUIFunctions_Tests(); |
| if(vl_success == ""){ |
| setverdict(pass); |
| } else { |
| setverdict(fail, vl_success); |
| } |
| action("tc_EPTF_UIHandler_GUIFunctions_Tests ended"); |
| } |
| |
| |
| |
| testcase tc_EPTF_UIHandler_Test_metaiterator_read1() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui_1 := ""& |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_tabpageToTabpages' width='800.000000'>"& |
| " <tabpages id=\"tabpages_id\">"& |
| " <metaiterator id=\"mt1\">"& |
| " <tabpage label=\"first tabpage\">"& |
| " <hbox>"& |
| " <label value=\"first tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " <tabpage label=\"second tabpage\">"& |
| " <hbox>"& |
| " <label value=\"second tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </metaiterator>"& |
| " </tabpages>"& |
| " </window>"& |
| "</Widgets>"; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent"); |
| timer t_Wait; |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui_1); |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| if(not match(vl_snapshot, pattern "*first tabpage*second tabpage*")) { |
| setverdict(fail, match(vl_snapshot, pattern "*first tabpage*second tabpage*")); |
| } else { |
| setverdict(pass); |
| } |
| f_EPTF_Base_stopAll(pass); |
| } |
| |
| group ParallelCreateGUI { |
| |
| // call two createGUI in parallel (same iterator IDs are used in the two xml-s): This will result in an error or core dump in the 2014-02-03 dev version of the CLL |
| testcase tc_EPTF_UIHandler_Test_parallelCreateGUI() runs on EPTF_UIHandler_Test_CT{ |
| |
| // create a basic gui to which the new elements will be added: |
| const charstring c_gui_1 := ""& |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_parallelCreateGUI' width='800.000000'>"& |
| " <tabpages id=\"tabpages_id\">"& |
| " <tabpage label=\"first tabpage\">"& |
| " <hbox id = '"&c_ParallelCreateGUI_Main_wid1&"'>"& |
| " <label value=\"first tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " <tabpage label=\"second tabpage\">"& |
| " <hbox id = '"&c_ParallelCreateGUI_Main_wid2&"'>"& |
| " <label value=\"second tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </tabpages>"& |
| " </window>"& |
| "</Widgets>"; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestParallelCreateGUI"); |
| timer t_Wait; |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui_1); |
| |
| //register a DS ready handler to create a GUI if the corresponding DS is ready. |
| //it should be big enough so that the second call should be started before the first finishes |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_UIHandler_Test_parallelCreateGUI_readyCallback )); |
| |
| // start two PTCs with different dataSources |
| var EPTF_DataSourceClient_CT vl_client1 := EPTF_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_parallelCreateGUI_DSClient_Behaviour("DS1", self)); |
| var EPTF_DataSourceClient_CT vl_client2 := EPTF_DataSourceClient_CT.create; |
| vl_client2.start(f_EPTF_UIHandler_Test_parallelCreateGUI_DSClient_Behaviour("DS2", self)); |
| |
| //if the GUI is loaded without error, the test passes. |
| |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| if(not match(vl_snapshot, pattern "*first tabpage*second tabpage*")) { |
| setverdict(fail, match(vl_snapshot, pattern "*first tabpage*second tabpage*")); |
| } else { |
| setverdict(pass); |
| } |
| f_EPTF_Base_stopAll(pass); |
| |
| } |
| |
| // call two createGUI in parallel (different iterator id): This will result in an error or core dump in the 2014-02-03 dev version of the CLL |
| testcase tc_EPTF_UIHandler_Test_parallelCreateGUI_differentITIds() runs on EPTF_UIHandler_Test_CT{ |
| |
| // create a basic gui to which the new elements will be added: |
| const charstring c_gui_1 := ""& |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_parallelCreateGUI' width='800.000000'>"& |
| " <tabpages id=\"tabpages_id\">"& |
| " <tabpage label=\"first tabpage\">"& |
| " <hbox id = '"&c_ParallelCreateGUI_Main_wid1&"'>"& |
| " <label value=\"first tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " <tabpage label=\"second tabpage\">"& |
| " <hbox id = '"&c_ParallelCreateGUI_Main_wid2&"'>"& |
| " <label value=\"second tabpage label\"/>"& |
| " </hbox>"& |
| " </tabpage>"& |
| " </tabpages>"& |
| " </window>"& |
| "</Widgets>"; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestParallelCreateGUI"); |
| timer t_Wait; |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui_1); |
| |
| //register a DS ready handler to create a GUI if the corresponding DS is ready. |
| //it should be big enough so that the second call should be started before the first finishes |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_UIHandler_Test_parallelCreateGUI_readyCallback_differentITIds )); |
| |
| // start two PTCs with different dataSources |
| var EPTF_DataSourceClient_CT vl_client1 := EPTF_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_parallelCreateGUI_DSClient_Behaviour("DS1", self)); |
| var EPTF_DataSourceClient_CT vl_client2 := EPTF_DataSourceClient_CT.create; |
| vl_client2.start(f_EPTF_UIHandler_Test_parallelCreateGUI_DSClient_Behaviour("DS2", self)); |
| |
| //if the GUI is loaded without error, the test passes. |
| |
| t_Wait.start( 5.0 ); |
| t_Wait.timeout; |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| if(not match(vl_snapshot, pattern "*first tabpage*second tabpage*")) { |
| setverdict(fail, match(vl_snapshot, pattern "*first tabpage*second tabpage*")); |
| } else { |
| setverdict(pass); |
| } |
| f_EPTF_Base_stopAll(pass); |
| |
| } |
| }// group ParallelCreateGUI |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_NoNestedIteratorsWithSameName |
| // |
| // Purpose: Test the nested existence of iterator id error |
| // - |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_NoNestedIteratorsWithSameName() runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_guiIterators := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window id='EPTF_Main_Window' orientation='vertical'"& |
| " title='TTCN constructed window' height='100.000000' width='300.000000'>"& |
| " <hbox disabled='false' flex='0.000000' orientation='vertical'>"& |
| " <tabpages id='demo_tabpage'>"& |
| " <iterator id='LGen' source='ExecCtrl' element='LGenList'>"& |
| " <menuitem id='%LGen%' label='%LGen%' selected='false'>"& |
| " </menuitem>"& |
| " <iterator id='LGen' source='ExecCtrl' element='LGenList'>"& |
| " </iterator>"& |
| " </iterator>"& |
| " </tabpages>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>"; |
| |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_Base_setExpectedErrorMsg("*Configuration error - an iterator with name LGen already exists in the resolving scope*"); |
| f_EPTF_UIHandler_createGUI(c_guiIterators); |
| f_EPTF_Base_stop(pass); |
| } |
| |
| |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_HasExternalData |
| // |
| // Purpose: |
| // Tests the HasExternalData custom classL. |
| // |
| // The test starts base data source. |
| // The c_gui GUI description contains label with |
| // and without externaldata. |
| // The test processes the XML, and checks if the built gui |
| // matches the expected one. |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_HasExternalData() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_tabpageToTabpages' width='800.000000'>"& |
| " <hbox>"& |
| " <label value=\"label with data\">"& |
| " <externaldata element='"&cg_varNameStart_string & cg_varNameEnd&"' source='"&cg_UIHandler_WidgetDisabledInXUL_Test_source&"'>"& |
| " </externaldata>"& |
| " </label>"& |
| " <label value=\"label without data\"/>"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>"; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_UIHandler_WidgetDisabledInXUL_Test_init_CT(cg_UIHandler_WidgetDisabledInXUL_Test_source); |
| |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_addWindow(); |
| |
| timer TL_guard, TL_alt; |
| TL_guard.start( cg_waitForVariables ); |
| TL_alt.start( 0.0 ); |
| alt{ |
| [] TL_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_startBecauseDSIsReady > 0] TL_alt.timeout{} |
| }; |
| f_EPTF_UIHandler_createGUI(c_gui); |
| var Widgets vl_received; |
| f_EPTF_UIHandler_buildXUL(vl_received); |
| // action("K.I. - tc_EPTF_UIHandler_Test_HasExternalData->",vl_received); |
| var template Widgets c_expected := { window := { height := 300.000000, id := "Window", |
| orientation := vertical, title := "tc_EPTF_UIHandler_Test_tabpageToTabpages", |
| width := 800.000000, image_list := { }, embeddedwidgets := |
| { embeddedwidget_list := { { hbox := { customclass := omit, disabled := omit, |
| disabledongui := omit, fixedposition := omit, flex := omit, id := "UIHandler_widgetId_0", |
| orientation := omit, scrollable := omit, embeddedwidgets := { embeddedwidget_list := { |
| { label_ := { customclass := "HasExternalData", disabled := false, disabledongui := omit, |
| flex := omit, id := "UIHandler_widgetId_1", style := omit, tooltiptext := omit, value_ := "IGEN", externaldata := omit } }, |
| { label_ := { customclass := omit, disabled := omit, disabledongui := omit, |
| flex := omit, id := "UIHandler_widgetId_2", style := omit, tooltiptext := omit, value_ := "label without data", externaldata := omit |
| } } } } } } } } } }; |
| if(not match(vl_received,c_expected)){ |
| setverdict(fail,log2str(match(vl_received,c_expected))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Testcase: tc_EPTF_UIHandler_Test_itemsAfterEmptyIterator |
| // |
| // Purpose: |
| // Test, if the items shows correctly after empty iterator |
| // |
| /////////////////////////////////////////////////////////// |
| testcase tc_EPTF_UIHandler_Test_itemsAfterEmptyIterator() |
| runs on EPTF_UIHandler_Test_CT{ |
| const charstring c_gui := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <hbox flex='0.000000' id='hbox1' orientation='vertical'>"& |
| " <label flex='1.0' id='label1' value='label1' />"& |
| " <iterator element='PTCs' id='ptc' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Source' value='NotExists' />"& |
| " </params>"& |
| " <label flex='1.0' value='Control Label: %ptc%' />"& |
| " </iterator>"& |
| " <label flex='1.0' id='label2' value='label2' />"& |
| " <externalvalue element='PTCs' id='ptc' source='DataSource'>"& |
| " <params>"& |
| " <dataparam name='Source' value='NotExists' />"& |
| " </params>"& |
| " <label flex='1.0' value='Control Label: %ptc%VALUE' />"& |
| " </externalvalue>"& |
| " <label flex='1.0' id='label3' value='label3' />"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| |
| const charstring c_gui_expected := |
| "<Widgets xmlns='http://ttcn.ericsson.se/protocolModules/xtdp/xtdl'>"& |
| " <window height='300.000000' id='Window' orientation='vertical' title='tc_EPTF_UIHandler_Test_emptyTextboxId window' width='800.000000'>"& |
| " <hbox flex='0.000000' id='hbox1' orientation='vertical'>"& |
| " <label flex='1.0' id='label1' value='label1' />"& |
| " <label flex='1.0' id='label2' value='label2' />"& |
| " <label flex='1.0' id='label3' value='label3' />"& |
| " </hbox>"& |
| " </window>"& |
| "</Widgets>" |
| v_ready := false; |
| f_EPTF_UIHandler_init_CT( "UIHandlerTestComponent" ); |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_ExecCtrl_Test_DataSourceClientReady )); |
| var EPTF_UIHandler_Test_DataSourceClient_CT vl_client1 := EPTF_UIHandler_Test_DataSourceClient_CT.create; |
| vl_client1.start(f_EPTF_UIHandler_Test_clientBehavior(self,{{"selected","selected",{charstringVal := ""}}})); |
| timer T_guard, T_alt; |
| T_alt.start( 0.0 ); |
| T_guard.start( 5.0 ); |
| // wait until DataSource is registered |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_ready] T_alt.timeout{} |
| } |
| f_EPTF_UIHandler_clearGUI(); |
| f_EPTF_UIHandler_createGUI(c_gui); |
| var charstring vl_snapshot := f_EPTF_UIHandler_snapshot(); |
| var Widgets vl_received, vl_expected; |
| dec_Widgets(char2oct(vl_snapshot),vl_received) |
| dec_Widgets(char2oct(c_gui_expected),vl_expected) |
| action("tc_EPTF_UIHandler_Test_itemsAfterEmptyIterator - vl_received", vl_snapshot) |
| if(not match(vl_received,vl_expected)){ |
| setverdict(fail,log2str(match(vl_received,vl_expected))); |
| } |
| f_EPTF_Base_stop(pass); |
| } |
| |
| group Help { |
| |
| type component UIHandler_HelpTest_CT extends EPTF_DataSource_CT, EPTF_UIHandler_CT { |
| var boolean v_UIHandler_ready := false; |
| } |
| |
| function f_EPTF_UIHandler_Test_checkUIHandlerReady( |
| in charstring pl_source, |
| in charstring pl_ptcName |
| ) runs on UIHandler_HelpTest_CT { |
| if (pl_source==c_UIHandler_DS_sourceId) { |
| v_UIHandler_ready := true; |
| } |
| } |
| |
| function f_EPTF_UIHandler_Test_helpCheck(in charstring pl_source := "", in charstring pl_element := "", in charstring pl_expectedPattern := "") runs on UIHandler_HelpTest_CT { |
| var charstring vl_helpTEXT; |
| var octetstring vl_helpJSON; |
| vl_helpTEXT := f_EPTF_DataSource_getHelpTEXT(pl_source, pl_element); |
| action("Help for "&pl_source&": ", vl_helpTEXT); |
| if (pl_expectedPattern!="") { |
| // check if the TEXT help contains the pattern: |
| if(not match(vl_helpTEXT,pattern pl_expectedPattern)) { |
| setverdict(fail,"The TEXT help does not match the expected pattern: ", match(vl_helpTEXT,pattern pl_expectedPattern)); |
| f_EPTF_Base_stop(none); |
| } |
| } |
| |
| vl_helpJSON := f_EPTF_DataSource_getHelpJSON(pl_source,pl_element); |
| action("HelpJSON for "&pl_source&": ", vl_helpJSON); |
| } |
| |
| testcase tc_EPTF_UIHandler_Test_help() runs on UIHandler_HelpTest_CT { |
| f_EPTF_DataSource_init_CT("MTC"); |
| v_UIHandler_ready := false; |
| f_EPTF_DataSource_registerReadyCallback(refers(f_EPTF_UIHandler_Test_checkUIHandlerReady)); |
| |
| f_EPTF_UIHandler_init_CT("UIHandler_Test_help"); |
| |
| |
| timer T_guard, T_alt; |
| T_guard.start( 100.0 ); |
| T_alt.start( 0.0 ); |
| alt{ |
| [] T_guard.timeout{ |
| setverdict(fail,"Timeout during config"); |
| f_EPTF_Base_stopAll(); |
| } |
| [v_UIHandler_ready] T_alt.timeout{} |
| }; |
| |
| //UIHandler |
| f_EPTF_UIHandler_Test_helpCheck(pl_source := c_UIHandler_DS_sourceId,pl_expectedPattern := "*Source: \""&c_UIHandler_DS_sourceId&"\"\n\n*DataElement: \"help\"*") |
| |
| |
| |
| setverdict(pass); |
| f_EPTF_Base_stop(none); |
| |
| |
| } |
| } //group Help |
| //========================================================================= |
| // Control |
| //========================================================================= |
| control{ |
| |
| execute(tc_Messages()); // added by egbotat, to test HN57133 |
| execute(tc_EPTF_UIHandler_Test_UIHandler_init_withoutGui());//1 |
| execute(tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromConfigFile()); |
| execute(tc_EPTF_UIHandler_Test_UIHandler_requestLayout_layoutFromArg()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_init()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerCli_init());//TR: HJ86376, although Passed |
| execute(tc_EPTF_UIHandler_Test_UIHandler_clearGui());//TR://TR:HJH6681 and TR:HJ83594 |
| execute(tc_EPTF_UIHandler_Test_UIHandler_clearGuiWithAddWindow()); |
| execute(tc_EPTF_UIHandler_Test_UIHandler_addWindowTwice()); |
| execute(tc_EPTF_UIHandler_Test_UIHandler_addElementsToGui());//TR: HJ83617 //TR HJ83569 |
| execute(tc_EPTF_UIHandler_Test_UIHandler_saveLayout()); |
| execute(tc_EPTF_UIHandler_Test_UIHandler_convertLayout()); |
| execute(tc_EPTF_UIHandler_Test_UIHandler_revertLayout()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_subscribe()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeMe()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeMeTo()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeVariable()); //TR HJ86333 |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_subscribeVariableTo());//TR HJ86333 |
| //execute(tc_EPTF_UIHandler_Test_UIHandlerClient_bigIntSupport());//HM80281 |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_addElementToGUI()); //TR: HJ83617 |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_addElementToGUITo()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_removeElementFromGUI());//20 |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_removeElementFromGUITo()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_enableDisableGUIElement()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_enableDisableGUIElementTo()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_setFocusToGUIElement()); |
| execute(tc_EPTF_UIHandler_VariableUI_Test_init()); |
| execute(tc_EPTF_UIHandler_VariableUI_Test_putVarbyName()); |
| execute(tc_EPTF_UIHandler_VariableUI_Test_putlastconnections()); |
| execute(tc_EPTF_UIHandler_VariableUI_Test_addsimpleconnection()); |
| execute(tc_EPTF_UIHandler_Test_UIHandlerClient_addwidgetconnection()); |
| execute(tc_EPTF_UIHandler_VariableUI_Test_holdingwidget()); |
| execute(tc_EPTF_UIHandler_VariableUI_Test_removeconnection());//TR:HJ87274 //30 |
| //execute(tc_EPTF_UIHandler_Test_HostAdminUI_behavior());//31 |
| //execute(tc_EPTF_UIHandler_Test_CLICommandParser()); |
| execute(tc_EPTF_UIHandler_Test_HL37208()); |
| execute(tc_EPTF_UIHandler_Test_varList()) |
| execute(tc_EPTF_UIHandler_Test_cliCommands1()) |
| execute(tc_EPTF_UIHandler_Test_cliCommands2()) |
| execute(tc_EPTF_UIHandler_Test_NoGui_Blocking()); |
| //execute(tc_EPTF_UIHandler_PerfTest_subscribeMe()); |
| //execute(tc_EPTF_UIHandler_Test_HN24006()); |
| //execute(tc_EPTF_UIHandler_Test_HN24006_ProtMod()); |
| execute(tc_EPTF_UIHandler_Test_addnewElementsToGui()); |
| execute(tc_EPTF_UIHandler_Test_newGUIBasic()); |
| execute(tc_EPTF_UIHandler_Test_newGUIIterator()); |
| execute(tc_EPTF_UIHandler_Test_newGUIIteratorInIterator()); |
| execute(tc_EPTF_UIHandler_Test_newGUIIteratorInHBoxIterator()); |
| |
| execute(tc_EPTF_UIHandler_Test_newGUItabIterator()); // error |
| |
| execute(tc_EPTF_UIHandler_Test_newGUIButton()); |
| execute(tc_EPTF_UIHandler_Test_newGUIIteratorButton()); |
| execute(tc_EPTF_UIHandler_Test_appendTreeCell()); |
| execute(tc_EPTF_UIHandler_Test_menuListExternalData()); |
| execute(tc_EPTF_UIHandler_Test_menuListFromExternalData()); |
| //HO29288 |
| //execute(tc_EPTF_UIHandler_Test_emptyTextboxId()); |
| execute(tc_EPTF_UIHandler_Test_conditionAndInsertif()); |
| execute(tc_EPTF_UIHandler_Test_tabif()); |
| execute(tc_EPTF_UIHandler_Test_treeConditionAndInsertif()); |
| execute(tc_EPTF_UIHandler_Test_listConditionAndInsertif()); |
| execute(tc_EPTF_UIHandler_Test_traceConditionAndInsertif()); |
| execute(tc_EPTF_UIHandler_Test_newGUI_distributionChart()); |
| execute(tc_EPTF_UIHandler_Test_newGUI_distributionChart_ExternalValue()); |
| // execute(tc_EPTF_UIHandler_Test_newGUI_distributionChartIntervallLimitFromExternalData()); |
| execute(tc_EPTF_UIHandler_Test_newGUIIteratorExtension()); // fail |
| execute(tc_EPTF_UIHandler_Test_newGUILabelWithExternalData_XML()); |
| execute(tc_EPTF_UIHandler_Test_BadXML_noCloseTag()); |
| |
| execute(tc_EPTF_UIHandler_Test_BadXML_openText()); |
| //This test can be executed when the TR HO48185 corrected |
| //execute(tc_EPTF_UIHandler_Test_BadXML_noBubu()); |
| execute(tc_EPTF_UIHandler_Test_treeExternalNoID()); |
| execute(tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromConfigFileNewInit()); |
| execute(tc_EPTF_UIHandler_Test_UIHandler_init_layoutFromParamNewInit()); |
| execute(tc_EPTF_UIHandler_Test_UIHandler_init_layoutEmptyParamNewInit()); |
| execute(tc_UIHandler_reconnect_HP46174_tree()); |
| execute(tc_UIHandler_reconnect_HP46174_tabs()); |
| |
| execute(tc_UIHandler_WidgetIdContainsSpaceBar()); |
| execute(tc_UIHandler_WidgetIdContainsSpaceBar2()); |
| |
| execute(tc_EPTF_UIHandler_Test_buildXUL()); |
| |
| |
| // execute(tc_EPTF_UIHandler_Test_newGUIDumpXUL_XML()) |
| |
| //simulation |
| execute(tc_EPTF_UIHandler_Test_simulation_directcontentDB_encdec()); |
| execute(tc_EPTF_UIHandler_Test_treeCellVisibility()); |
| execute(tc_EPTF_UIHandler_Test_HQ10231_WarningDuringCustomGUI()); |
| |
| //browsergui |
| execute(tc_EPTF_UIHandler_Test_htmlcodeExternalData()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_BasicTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_TabrequestSamePageTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_TabrequestTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_AjaxupdateTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_AjaxupdateWrongTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_AjaxupdateWrong2Test()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_AjaxrefreshTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_Ajaxrefresh2Test()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_GetJSTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_GetJSWrongTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_GetCSSTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_GetCSSWrongTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_GetImageWrongTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_GetXSLTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_GetXSLWrongTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_GetExtWrongTest()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_DataSourceInit()); |
| |
| execute(tc_EPTF_UIHandler_Test_tabpageToTabpages()); |
| execute(tc_EPTF_UIHandler_Test_tabpagelistTotabpages()); |
| execute(tc_EPTF_UIHandler_Test_tabpagelistTotabpages2()); |
| execute(tc_EPTF_UIHandler_Test_tabpagelistTotabpages3()); |
| execute(tc_EPTF_UIHandler_Test_tabpagewithIteratorToTabpages()); |
| execute(tc_EPTF_UIHandler_Test_treecellNoIdBeforeCondition()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_setRemoteHosts()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_clearRemoteHosts()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_addRemoteHosts()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_removeRemoteHosts()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_addRemoteHosts2()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_negative_RemoteHosts()); |
| execute(tc_EPTF_UIHandler_Test_RTG_setGUIAddrPorts()); |
| |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_align()); |
| |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_iteratorInTabpage()); // INCONC |
| |
| // widgetfunctions - disabledonxml |
| execute(tc_EPTF_UIHandler_Test_WidgetDisabledInXUL()); |
| |
| execute(tc_EPTF_UIHandler_Test_WidgetDisabledInXULOldGUI()); |
| |
| execute(tc_EPTF_UIHandler_Test_RuntimeGUIConnectDuringCreateGUI()); |
| |
| // Menupopup gui element cannot be initialized nor updated by an empty charstringlist via the use of an externaldata. |
| execute(tc_EPTF_UIHandler_Test_WidgetMenuPopup()); |
| execute(tc_EPTF_UIHandler_Test_WidgetMenuPopupOldGUI()); |
| |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_CustomCSSTest()); |
| execute(tc_EPTF_UIHandler_Test_RuntimeGUINoConnectHappens_CheckWarning()); |
| execute(tc_EPTF_UIHandler_Test_RuntimeGUINoConnectHappens_CheckWarningGUIWorking()); |
| execute(tc_EPTF_UIHandler_Test_NotTabpageUnderTabpages()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_getSetBrowserDir()); |
| execute(tc_EPTF_UIHandler_Test_BrowserGUI_CheckTitleOfTabpage()); |
| |
| execute(tc_EPTF_UIHandler_Test_wouldBlock()); |
| execute(tc_EPTF_UIHandler_Test_wouldBlockWithCondition()); |
| execute(tc_EPTF_UIHandler_GUIFunctions_Tests()); |
| execute(tc_EPTF_UIHandler_Test_metaiterator_read1()); |
| execute(tc_EPTF_UIHandler_Test_GUIFunctions_expand_XML()); |
| |
| execute(tc_EPTF_UIHandler_Test_parallelCreateGUI()); |
| execute(tc_EPTF_UIHandler_Test_parallelCreateGUI_differentITIds()); |
| |
| execute(tc_EPTF_UIHandler_Test_NoNestedIteratorsWithSameName()); |
| |
| execute(tc_EPTF_UIHandler_Test_HasExternalData()); |
| |
| execute(tc_EPTF_UIHandler_Test_itemsAfterEmptyIterator()); |
| |
| execute(tc_EPTF_UIHandler_Test_help()); |
| |
| } |
| |
| |
| } // end of module |