Rev 194 | Blame | Compare with Previous | Last modification | View Log | RSS feed
# Scenario nominal : saisie observation avec completion commune et espece, tous champs renseignes# Necessite xdotool >= 20090815 (commande delay)# Todo : en faire une brique pour inclusion dans autres scenario# Lancement Celfirefox http://localhost/cel/www/org.tela_botanica.cel2/cel2.htmlsleep 4# Timestampsobsid=`date +%s`# InitCWID=`xdotool getwindowfocus`WID=`xdotool search "Mozilla Firefox" | head -1`xdotool windowfocus $WIDsleep 1# Saisie Commune : Montpellier + completionxdotool key "shift+alt+1"xdotool type --delay 100 "montpell"sleep 1xdotool key "Return"# Saisie Lieu ditxdotool key "Tab"xdotool type --delay 100 "Jardin des plantes " $obsid# Saisie Stationxdotool key "Tab"xdotool type --delay 100 "Bord de la mare"# Saisie Milieuxdotool key "Tab"xdotool type --delay 100 "Pelouse"# Saisie Datexdotool key "Tab"xdotool type --delay 100 "10/10/2009"# Saisie Espece : Acer monspessulanumxdotool key "Tab"xdotool type --delay 100 "Acer monspes"sleep 1xdotool key "Return"# Saisie notexdotool key "Tab"xdotool type --delay 100 "Test"# Validationxdotool key "Tab"xdotool key "Return"# Controle insertionxdotool windowfocus $CWIDsleep 1/opt/lampp/bin/mysql -u root cel --execute="select * from cel_inventory where lieudit like '%$obsid%' ;"