PHP Objects, Patterns and Practice (3rd edition)

(Barry) #1

CHAPTER 18 ■ TESTING WITH PHPUNIT


Figure 18–1. The Selenium IDE control panel


As you can see, I have used the base URL http://localhost/webwoo/. This is the address of an
installed instance of the WOO application. I’m going to begin my test at
http://localhost/webwoo/?cmd=AddVenue, so I point my browser to that URL. Having arrived there, I
want to begin with a sanity test. The AddVenue page includes the string “no name provided.” I’d like my
test to verify this. So I right-click on the text in the browser. I’m given the option to select a Selenium
command 'verifyWebText'. You can see this in Figure 18–2.

Free download pdf