#{selenium 'Just test the simple scenario'} open('/databinding/changeLanguage/fr/') open('/databinding/showLocaleDateFormat/24-01-1902/') assertTextPresent('24/01/02 00:00:00') open('/databinding/showLocaleDateFormat?date=24-01-1902') assertTextPresent('24/01/02 00:00:00') open('/databinding/changeLanguage/ch/') open('/databinding/showDefaultLocaleDateFormat/1902-01-24/') assertTextPresent('24/01/02 00:00:00') open('/databinding/showDefaultLocaleDateFormat?date=1902-01-24') assertTextPresent('24/01/02 00:00:00') open('/databinding/showDateFormat/01-24-1902T12:01:01/') assertTextPresent('24/01/02 12:01:01') open('/databinding/showDateFormat?date=01-24-1902T12:01:01') assertTextPresent('24/01/02 12:01:01') open('/databinding/showList/01/02/04/') assertTextPresent('[01, 02, 04]') open('/databinding/changeLanguage/en/') open('/databinding/showCalendar/24-Jan-1902/') assertTextPresent('24/01/02 00:00:00') open('/databinding/showCalendar?cal=24-Jan-1902') assertTextPresent('24/01/02 00:00:00') open('/databinding/changeLanguage/en/') open('/databinding/showCalendar2/01-24-1902/') assertTextPresent('24/01/02 00:00:00') open('/databinding/showCalendar2?cal=01-24-1902') assertTextPresent('24/01/02 00:00:00') open('/databinding/changeLanguage/fr/') open('/databinding/showCalendar2/24-01-1902/') assertTextPresent('24/01/02 00:00:00') open('/databinding/showCalendar2?cal=24-01-1902') assertTextPresent('24/01/02 00:00:00') open('@{DataBinding.signinPage()}') type('userName', 'x') type('password', 'x') clickAndWait('submit') assertTextPresent('Authentication failed!') assertText('userNameResult', 'x') assertText('passwordResult', 'x') assertText('roleResult', '') type('userName', 'nicolas') type('password', 'nicolas') clickAndWait('submit') assertTextPresent('Authentication successful!') assertText('userNameResult', 'nicolas') assertText('passwordResult', 'nicolas') assertText('roleResult', '') open('@{DataBinding.customeBinding('kiki')}') assertTextPresent('--kiki--') open('@{DataBinding.globalBinder('9,5')}') assertTextPresent('9|5') open('@{DataBinding.globalBinder('8')}') assertTextPresent('Incorrect value') open('/databinding/changeLanguage/en/') open('@{Application.generateBookWithDateLink(2879964256556)}') clickAndWait('timeLink') assertTextPresent('Booked at 05/04/61 !!') open('/databinding/createFactory?factory.name=Nestle&factory.color=RED') assertTextPresent('false -> Nestle,Color RED') open('/databinding/createFactory?factory.name=Nestle&factory.color=REDX') assertTextPresent('true -> Nestle,null') open('/databinding/createFactory?factory.name=Nestle&factory.color=') assertTextPresent('false -> Nestle,null') open('@{DataBinding.printParams()}?noValue&noValue2&key=value&noValue3') assertTextPresent('noValue null') assertTextPresent('noValue2 null') assertTextPresent('key value') assertTextPresent('noValue3 null') open('@{DataBinding.dispatchAnEntity()}') type('//input[@id='entity_date']','2013-10-03 11:33:05:125 AM') type('//input[@id='entity_yop']','yop') type('//input[@id='entity_yap']','--yap--') type('//input[@id='entity_yip']','yip') clickAndWait('id=submit') assertHtmlSource('*2013-10-03 11:33:05:125 AM*') assertHtmlSource('*yop*') assertNotHtmlSource('*----yop----*') assertHtmlSource('*yap*') assertNotHtmlSource('*--yap--*') assertHtmlSource('*yip*') assertHtmlSource('*--##yip##--*') assertNotHtmlSource('*----yip----*') #{/selenium}