Subversion Repositories eFlore/Applications.cel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 375 → Rev 795

/trunk/test/test_controle.sh
New file
0,0 → 1,7
# Controle insertion
 
xdotool windowfocus $CWID
sleep 1
 
/opt/lampp/bin/mysql -u root cel --execute="select * from cel_inventory where lieudit like '%$obsid%' ;"
 
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/trunk/test/saisie.simple.sh
New file
0,0 → 1,47
#!/bin/bash
# Scenario nominal : saisie observation avec completion commune et espece, tous champs renseignes
 
# initialisation
source test_init.sh
 
# Saisie Commune : Montpellier + completion
xdotool key "shift+alt+1"
xdotool type --delay 150 "montpell"
sleep 1
xdotool key "Return"
 
# Saisie Lieu dit
xdotool key "Tab"
xdotool key "Tab"
xdotool type --delay 100 "Jardin des plantes " $obsid
 
# Saisie Station
xdotool key "Tab"
xdotool type --delay 100 "Bord de la mare"
 
# Saisie Milieu
xdotool key "Tab"
xdotool type --delay 100 "Pelouse"
 
# Saisie Note
xdotool key "Tab"
xdotool key "Tab"
xdotool type --delay 100 "Test"
 
# Saisie Date
xdotool key "Tab"
xdotool type --delay 100 "10/10/2009"
 
# Saisie Espece : Acer monspessulanum
xdotool key "Tab"
xdotool type --delay 150 "Acer monspes"
sleep 2
xdotool key "Return"
 
# Validation
 
xdotool key "Tab"
xdotool key "Return"
 
# Controle
source test_controle.sh
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/trunk/test/saisie.complexe.sh
New file
0,0 → 1,55
#!/bin/bash
# Scenario nominal : saisie observation avec completion commune et espece, tous champs renseignes
# Extension : validation de chaque entree
 
# initialisation
source test_init.sh
 
# Saisie Commune : Montpellier + completion
xdotool key "shift+alt+1"
xdotool type --delay 150 "montpell"
sleep 1
xdotool key "Return"
xdotool key "Return"
 
# Saisie Lieu dit
xdotool key "Tab"
xdotool key "Tab"
xdotool type --delay 150 "Jardin des plantes " $obsid
xdotool key "Return"
 
# Saisie Station
xdotool key "Tab"
xdotool type --delay 150 "Bord de la mare"
xdotool key "Return"
 
# Saisie Milieu
xdotool key "Tab"
xdotool type --delay 150 "Pelouse"
xdotool key "Return"
 
# Saisie Note
xdotool key "Tab"
xdotool key "Tab"
xdotool type --delay 150 "Test"
xdotool key "Return"
 
# Saisie Date
xdotool key "Tab"
xdotool type --delay 150 "10/10/2009"
xdotool key "Return"
 
# Saisie Espece : Acer monspessulanum
xdotool key "Tab"
xdotool type --delay 200 "Acer monspes"
sleep 2
xdotool key "Return"
xdotool key "Return"
 
# Validation
 
xdotool key "Tab"
xdotool key "Return"
 
# Controle
source test_controle.sh
Property changes:
Added: svn:executable
+*
\ No newline at end of property
/trunk/test/test_init.sh
New file
0,0 → 1,20
#!/bin/bash
# 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 Cel
firefox http://localhost/cel2/war/cel2.html
sleep 7
 
# Timestamps
 
obsid=`date +%s`
 
# Init
CWID=`xdotool getwindowfocus`
WID=`xdotool search "Mozilla Firefox" | head -1`
xdotool windowactivate $WID
sleep 1
Property changes:
Added: svn:executable
+*
\ No newline at end of property