Skip to content

Instantly share code, notes, and snippets.

@framiere
Last active December 24, 2015 09:29
Show Gist options
  • Save framiere/6777281 to your computer and use it in GitHub Desktop.
Save framiere/6777281 to your computer and use it in GitHub Desktop.
user
open /books/
clickAndWait id=form:selectAccounts
assertTitle Identification
type id=j_username admin
clickAndWait id=login
assertTitle Application books
clickAndWait id=form:selectAccounts
assertTitle Recherche de Compte Utilisateur
click //div[@id='form:username_panel']/ul/li
clickAndWait css=td.isEnabled
assertTitle Édition de homer
type id=form:username cnorris
type id=form:password kickass
type id=form:email gmail@chucknorris.com
click xpath=(//button[@type='button'])[4]
click //div[@id='form:homeAddress_panel']/ul/li
click link=Droits attribués
clickAndWait //a[@id='form:tabs:securityRolesList:selectSecurityRole']/div
assertTitle Recherche de Droit
click //div[@id='form:roleName_panel']/ul/li[2]
clickAndWait //a[@id='form:searchResults:0:j_idt88']/div
assertTitle Édition de cnorris
clickAndWait //a[@id='form:tabs:securityRolesList:addSecurityRole']/div
assertTitle Création de Droit
type id=form:roleName ROLE_GOD
clickAndWait id=form:ok
assertTitle Édition de cnorris
click link=Documents attachés
clickAndWait //a[@id='form:tabs:edocsList:addEdoc']/div
assertTitle Création de Document
clickAndWait id=form:ok
assertTitle Édition de cnorris
clickAndWait id=form:saveAndClose
assertTitle Recherche de Compte Utilisateur
clickAndWait id=form:logout_link
assertTitle Application books
assertTitle Identification
type id=j_username cnorris
type id=j_password kickass
clickAndWait id=login
assertTitle Application books
clickAndWait id=form:logout_link
assertTitle Application books
assertTitle Identification
type id=j_username admin
clickAndWait id=login
assertTitle Application books
clickAndWait id=form:selectAccounts
assertTitle Recherche de Compte Utilisateur
click css=li.ui-autocomplete-input-token
click //div[@id='form:username_panel']/ul/li
clickAndWait css=td.isEnabled
assertTitle Édition de cnorris
type id=form:username homer
type id=form:password homer
type id=form:email homer@simpson.com
click xpath=(//button[@type='button'])[4]
click //div[@id='form:homeAddress_panel']/ul/li[4]
click link=Documents attachés
click //a[@id='form:tabs:edocsList:0:j_idt134']/div
click id=form:askForRemoveEdocDialogYes
click link=Droits attribués
click //a[@id='form:tabs:securityRolesList:0:j_idt143']/div
click id=form:askForRemoveSecurityRoleDialogYes
click //a[@id='form:tabs:securityRolesList:0:j_idt143']/div
click id=form:askForRemoveSecurityRoleDialogYes
clickAndWait id=form:saveAndClose
assertTitle Recherche de Compte Utilisateur
click id=form:j_idt30_button
clickAndWait id=form:j_idt36
assertTitle Recherche de Droit
click //a[@id='form:searchResults:1:j_idt94']/div
click id=form:askForDeleteItemDialogYes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment