16.05.2013 Views

de Dattatec.com SRL. - Pixels & Code

de Dattatec.com SRL. - Pixels & Code

de Dattatec.com SRL. - Pixels & Code

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

30<br />

TESTING DE<br />

APLICACIONES<br />

No importa la cantidad <strong>de</strong> tiempo<br />

que se invierte en el diseño <strong>de</strong><br />

una aplicación Android, o incluso<br />

qué tan cuidadosos somos en la<br />

programación, los errores son<br />

inevitables y los errores aparecerán.<br />

En esta nota, queremos ayudar a<br />

todos los lectores <strong>de</strong> <strong>Pixels</strong>&Co<strong>de</strong><br />

a conseguir rápidamente tener<br />

algunos test <strong>de</strong> unidad, y luego<br />

presentaremos un framework<br />

para testear <strong>de</strong> forma automática<br />

la interfaz <strong>de</strong> usuario, llamado<br />

Robotium.<br />

COMENZANDO<br />

Al momento <strong>de</strong> crear un proyecto<br />

Android po<strong>de</strong>mos crear el Proyecto<br />

Android que realice el Testing. Pero<br />

en este caso, vamos a trabajar<br />

sobre un Proyecto Android ya<br />

creado anteriormente, y le vamos<br />

a crear su Proyecto <strong>de</strong> Testing<br />

asociado. Usaremos el «Hola Mundo<br />

Android», aquel que realizamos la<br />

primera vez que instalamos el Kit <strong>de</strong><br />

Desarrollo <strong>de</strong> Android. Para quienes<br />

quieran tener ya un proyecto «Hola<br />

Mundo Android» andando <strong>de</strong> forma<br />

súper rápida (sin usar el wizard<br />

<strong>de</strong> Eclipse), en este link pue<strong>de</strong>n<br />

<strong>de</strong>scargar un «Hello Pixel&Co<strong>de</strong> «:<br />

http://pixelsco<strong>de</strong>.<strong>com</strong>/downloads/<br />

HelloPixelAndCo<strong>de</strong>.zip

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!