#{selenium 'Try simple binding'} // byte open('@{Users.wbyte(8, 90)}') assertTextPresent('8,90') open('@{Users.wbyte(8, 930)}') assertTextPresent('8,null') // open('@{Users.index()}') type('name','Guillaume') clickAndWait('go') assertText('name', 'Guillaume') assertText('b', '') assertText('c', 'false') assertText('i', '') assertText('j', '0') assertText('l', '0') assertText('k', '') assertText('birth', '') // open('@{Users.changeColor()}?color=') assertTextPresent('null,null. Errors:false') open('@{Users.changeColor()}?color=RED') assertTextPresent('RED,null. Errors:false') open('@{Users.changeColor()}?color=XXX') assertTextPresent('null,null. Errors:true') open('@{Users.changeColors()}?colors=XXX') assertTextPresent('[]') open('@{Users.changeColors()}?colors=RED&colors=GREEN') assertTextPresent('[Color RED, Color GREEN]') // open('@{Users.index()}') type('name','日本語') type('i','-34') type('k','1455555') clickAndWait('go') assertText('name', '日本語') assertText('b', '') assertText('c', 'false') assertText('i', '-34') assertText('j', '0') assertText('l', '0') assertText('k', '1455555') assertText('birth', '') // open('@{Users.index()}') type('name','日本語') type('j','-34') type('l','1455555') clickAndWait('go') assertText('name', '日本語') assertText('b', '') assertText('c', 'false') assertText('i', '') assertText('j', '-34') assertText('l', '1455555') assertText('k', '') assertText('birth', '') // open('@{Users.index()}') type('name','日本語') type('j','xxx') type('l','yy') clickAndWait('go') assertText('name', '日本語') assertText('b', '') assertText('c', 'false') assertText('i', '') assertText('j', '0') assertText('l', '0') assertText('k', '') assertText('birth', '') assertTextPresent('u.j: Incorrect value') assertTextPresent('u.l: Incorrect value') // open('@{Users.index()}') type('name','日本語') type('i','xxx') type('k','yy') clickAndWait('go') assertText('name', '日本語') assertText('b', '') assertText('c', 'false') assertText('i', '') assertText('j', '0') assertText('l', '0') assertText('k', '') assertText('birth', '') assertTextPresent('u.i: Incorrect value') assertTextPresent('u.k: Incorrect value') // open('@{Users.index()}') type('name','日本語') type('b','false') clickAndWait('go') assertText('name', '日本語') assertText('b', 'false') assertText('c', 'false') assertText('i', '') assertText('j', '0') assertText('l', '0') assertText('k', '') assertText('birth', '') // open('@{Users.index()}') type('name','日本語') type('b','true') type('c','true') clickAndWait('go') assertText('name', '日本語') assertText('b', 'true') assertText('c', 'true') assertText('i', '') assertText('j', '0') assertText('l', '0') assertText('k', '') assertText('birth', '') // open('@{Users.index()}') type('name','日本語') type('b','nimp') type('c','nimp') clickAndWait('go') assertText('name', '日本語') assertText('b', 'false') assertText('c', 'false') assertText('i', '') assertText('j', '0') assertText('l', '0') assertText('k', '') assertText('birth', '') // open('@{Users.index()}') type('birth','21/12/1980') type('c','nimp') clickAndWait('go') assertText('name', '') assertText('b', '') assertText('c', 'false') assertText('i', '') assertText('j', '0') assertText('l', '0') assertText('k', '') assertText('birth', '21/12/1980') // open('@{Users.index()}') type('birth','nimp') type('c','nimp') clickAndWait('go') assertText('name', '') assertText('b', '') assertText('c', 'false') assertText('i', '') assertText('j', '0') assertText('l', '0') assertText('k', '') assertText('birth', '') assertTextPresent('u.birth: Incorrect value') #{/selenium}