Slide 1
Calidad de Software
SIKULIAutomatizacin de GUI y Testing
Acosta LucasCarb SebastianV1.201/06/2015FechaDescripcinAutor26/5/2014Versin inicialSebastin Carb07/11/2014RevisinSebastin Carb01/06/2015RevisinSebastin CarbHistorial de cambiosComo les decimos a las computadores que hacer?Shell script case $rtval in 1) rm -f /tmp/dirip.$$ ; return ;; 255) rm -f /tmp/dirip.$$ ; return ;;esac
mfile=`cat /tmp/dirip.$$`
if [ -z $mfile ] then mfile=`pwd`/* SHELL SCRIPT else grep "*" /tmp/dirip.$$ if [ $? -eq 1 ] then mfile=$mfile/* fifi
for i in $mfile do if [ -f $i ] thenecho "$i Delete?" >> /tmp/finallist.$$ fidoneGUI interfaces5
Vaciar la papelera6
Verificar play/pause7
Verificar play/pause8
Sikuli script9
Sikuli test10
Referenciar un GUI widget11
Using screenshots12
find(path_to_image_file)
Busca una imagen en la pantalla que concuerde con el patrn
findAll(path_to_image_file)
Busca todas las imgenes en la pantalla que concuerden con el patrn
Ejemplo:
Encontrar objetos13
13Se utiliza un patrn, para asociar un archivo de imagen con atributos adicionales que se utilizan en las operaciones de bsqueda y al actuar sobre un objeto partido.
Patrones14
click(path_to_image_file)
doubleClick(path_to_image_file)
rightClick(path_to_image_file)
dragDrop(path_to_image_file_target, path_to_image_file_destination)
type(text)
type(path_to_image_file, text)
Acciones15
Asserts visuales16
assert exist(path_to_image_file)
assert not exist(path_to_image_file)
Legibilidad de cdigo17
Sirve para cualquier aplicacion que pueda correr en Windows/Linux/Mac
Maquinas virtuales
Escritorios remotos
Simuladores mobiles: Android, iPhone Web: Flash, HTML+JavascriptIndependiente de la platafoma18Limitaciones19
Desarrollar los siguientes test Limpiar la papelera de reciclajeMover todos los archivos txt del escritorio a un directorio especifico en el escritorioCrear un documento en Word, que contenga el texto Probando sikuli en negrita y guardarlo en Mis documentos con el nombre PruebaSikuli.docxVerificar que exista un documento PruebaSikuli.docx en mis documentos y abrirlo.
Demo:Enviar mensaje de Whatsapp utilizando una conexin remota a un dispositivo mvil y Sikuli.
Practica20
Top Related