Attualmente sto eseguendo comandi Selenium tramite PHPUnit su un server remoto. Ho incontrato un problema in cui sto cercando di caricare un'immagine su un modulo di input.Selenium, PHPUnit e AttachFile()
Nel mio PHPUnit, ho il comando
$this->attachFile('file', 'file://test.png');
Il mio server Selenio restituisce un errore
PHPUnit_Framework_Exception: Response from Selenium RC server for testComplete().
java.lang.RuntimeException: Output already exists: /tmp/selenium2070373138020433468upload.
Il mio file test.png si trova attualmente solo nella cartella in cui sto eseguendo la mia. test di unità php da.
Come posso caricare correttamente un file tramite PHPUnit e Selenium e farlo in modo da non generare un'eccezione?
Selezionare la risposta corretta. – bikedorkseattle