Mostrando entradas con la etiqueta problem. Mostrar todas las entradas
Mostrando entradas con la etiqueta problem. Mostrar todas las entradas

martes, 29 de octubre de 2013

Solucionar problema con Wifi (Broadcom 43xx) en ubuntu después de la actualizacion

http://ubuntuforums.org/showthread.php?t=1634291

  • First, remove the r8169 module from the linux kernel.

# rmmod r8169
  • Download the official realtek driver from here
  • Unpack the download and install the driver as per the readme instructions included with the driver. Here’s the relevant part of the readme file; well, the “Quick Install” anyway:


Unpack the tarball :
# tar vjxf r8168-8.aaa.bb.tar.bz2
Change to the directory:
# cd r8168-8.aaa.bb
If you are running the target kernel, then you should be able to do :
# ./autorun.sh (as root or with sudo)
You can check whether the driver is loaded by using following commands.
# lsmod | grep r8168
# ifconfig -a
If there is a device name, ethX, shown on the monitor, the linux
driver is loaded. Then, you can use the following command to activate
the ethX.
# ifconfig ethX up
  • Finally, blacklist the r8169 driver add the following to /etc/modprobe.d/blacklist.conf:


#blacklist r8169 driver
blacklist r8169

martes, 6 de agosto de 2013

FileSync

Sirve para forzar la sincronización del target de Eclipse con el tomcat. A veces no se copian ficheros que se añaden en los profiles de maven.

http://andrei.gmxhome.de/filesync/

miércoles, 19 de junio de 2013

Tests jsf2 con Selenium y sobre Liferay

Al usar selenium ide todo el codigo que se genera utiliza los ids de los elementos del html, con jsf2 tenemos un problema debido a que a veces se autogeneran ids y estos cambian cada vez que se abre la página.
Ejemplo de ids autogenerados:

Nuevo

<div id="A1087:form:menubar" ............

Para evitar esto se pueden modificar los tests generados con selenium para seleccionar los elementos usando xpath.
Lo que he utilizado de momento ha sido:
Para seleccionar un elemento que contenga una parte de un id:

   
type

    //input[contains(@id,'name')]

    NOMBRE


Para seleccionar un elemento del cual su contenido es:

   
clickAndWait

    //span[contains(., 'Nuevo')]

   

Generar fechas automáticas 2 meses en adelante:
 
   
store

    javascript{var dates = new Date();var day = 1;if (day < 10){day = '0' + day;} month = dates.getMonth() + 3;if (month < 10){month = '0' + month;}var year = dates.getFullYear();day + '/' + month + '/' + year}

    dateFrom


   
type

    //input[contains(@id,'date-from_input')]

    ${dateFrom}



Despues estoy intentando que mis tests pasados a junit se ejecuten mediante maven con el siguiente tutorial:

http://www.integratingstuff.com/2011/09/29/continuous-integration-on-liferay-running-your-selenium-2-tests-on-the-tomcat-6-bundle/