testLayoutWidget
setTimeout 120000
open layoutDemo
open layoutDemo/layoutWidget
assertTextNotPresent ERROR
verifyTextNotPresent Value is required
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_textareaWidget_1
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_datetimeWidget_1
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_intWidget_1
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_checkboxWidget_1 No
watchA4jRequests
click id=layoutWidgetLayout_edit_form:layoutWidgetLayout_edit_form_submitButton
waitForA4jRequest 10000
verifyTextPresent Value is required
verifyText id=layoutWidgetLayout_edit_form:nxl_layoutWidgetLayout:nxl_demoLayout:nxw_textareaWidget_message Value is required
verifyText id=layoutWidgetLayout_edit_form:nxl_layoutWidgetLayout:nxl_demoLayout:nxw_datetimeWidget_message Value is required
verifyText id=layoutWidgetLayout_edit_form:nxl_layoutWidgetLayout:nxl_demoLayout:nxw_intWidget_message Value is required
type id=layoutWidgetLayout_edit_form:nxl_layoutWidgetLayout:nxl_demoLayout:nxw_textareaWidget test
type id=layoutWidgetLayout_edit_form:nxl_layoutWidgetLayout:nxl_demoLayout:nxw_datetimeWidgetInputDate 4/4/2013 12:00 PM
type id=layoutWidgetLayout_edit_form:nxl_layoutWidgetLayout:nxl_demoLayout:nxw_intWidget 42
watchA4jRequests
click id=layoutWidgetLayout_edit_form:layoutWidgetLayout_edit_form_submitButton
waitForA4jRequest 10000
verifyTextNotPresent Value is required
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_textareaWidget_1 test
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_datetimeWidget_1 4/4/2013
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_intWidget_1 42
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_checkboxWidget_1 No
verifyElementPresent link=Layout
clickAndWait link=Layout
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_textareaWidget_1 test
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_datetimeWidget_1 4/4/2013
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_intWidget_1 42
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_checkboxWidget_1 No
open layoutDemo
open layoutDemo/layoutWidget
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_textareaWidget_1
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_datetimeWidget_1
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_intWidget_1
verifyText id=layoutWidgetLayout_view_form:nxl_layoutWidgetLayout_1:nxl_demoLayout_1:nxw_checkboxWidget_1 No