2011-01-11 10 views
8

muszę uruchomić testy selenu w trybie bezgłowe wykorzystaniem Xvfb w pom.xml mam:selen w trybie bezgłowe z Xvfb

 <plugin> 
     <groupId>org.codehaus.mojo</groupId> 
     <artifactId>selenium-maven-plugin</artifactId> 
     <version>1.1</version> 

     <executions> 
      <execution> 
       <id>xvfb</id> 
       <phase>pre-integration-test</phase> 
       <goals> 
        <goal>xvfb</goal> 
       </goals> 
       <!-- 
       <configuration> 
        <display>:2</display> 
       </configuration> 
        --> 
      </execution> 

      <execution> 
       <id>selenium</id> 
       <phase>pre-integration-test</phase> 
       <goals> 
        <goal>start-server</goal> 
       </goals> 
       <configuration> 
        <background>true</background> 
       </configuration> 
      </execution> 
     </executions> 
     </plugin> 

gdy uruchomię mvn test integracji, nie udało się załadować Xvfb, testy selenu wciąż działały w firefoxie, sprawdziłem następujące:

(EE) AIGLX error: dlopen of /usr/X11/lib/dri/swrast_dri.so failed (dlopen(/usr/X11/lib/dri/swrast_dri.so, 5): image not found) 
(EE) GLX: could not load software renderer 
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base 
(EE) XKB: No components provided for device Virtual core keyboard 

ktoś wie co to znaczy? Dzięki.

Odpowiedz

6

Dodanie rozszerzenia GLX do linii poleceń Xvfb może usunąć dwa pierwsze błędy.

+0

Czy to znaczy '+ przedłużacz GLX'? – Ben

4

Znalazłem, że brakuje sterowników mesa w mojej konfiguracji.

Rozwiązał problem.

3

w Debianie/Ubuntu, pakiet jest "libgl1-mesa-dri", jak w:

apt-get install libgl1-mesa-dri 
Powiązane problemy