- If you don't have it already,
sudo apt-get install phpunit
- start the selenium server (at minimum:
java -jar selenium-server
) - Generate the PHP testcase from the IDE.
- rename the class from Example to whatever you're testing.
- rename the file to be the same as the classname plus .php
- In the class, add a __construct() which calls $this->setUp() and $this->start()
- After the class is defined, instantiate the class and call its testcase method.
There may be syntax errors. The code generation is not perfect. Fix those.
No comments:
Post a Comment