Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Selenium + PHP, jak zacząć
Olimpia_ona
post
Post #1





Grupa: Zarejestrowani
Postów: 71
Pomógł: 2
Dołączył: 10.03.2005
Skąd: Elbląg

Ostrzeżenie: (0%)
-----


Witam, czy ktoś z Was pisał testy w selenium za pomocą PHP?

Mam zainstalowane selenium IDE, nagrany test, wyeksportowany do PHP. Uruchomiłam serwer Selenium RC i apacha (na xampp).
W wyeksportowanych plikach mam takie odniesienie:
1. require_once 'Testing/Selenium.php';

ale nigdzie na dysku nie mam takiego pliku jak Selenium.php

Mam też drugi plik wyeksportowany do PHP (PHPUnit), a w nim:

2. class Example extends PHPUnit_Extensions_SeleniumTestCase

po uruchomieniu dostaję komunikat:
Fatal error: Class 'PHPUnit_Extensions_SeleniumTestCase' not found

Czy ktoś może mi pomóc? Jak przygotować środowisko do testów selenium w php?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
rocktech.pl
post
Post #2





Grupa: Zarejestrowani
Postów: 587
Pomógł: 131
Dołączył: 8.02.2010

Ostrzeżenie: (0%)
-----


Witam.

W skrócie potrzebujesz PEAR + PHPUnit.

http://pear.php.net/manual/en/installation.getting.php
http://phpunit.de/manual/3.0/en/installation.html

  1. pear install pear.phpunit.de/PHPUnit
  2. pear install phpunit/PHPUnit_Selenium
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 8.10.2025 - 03:20