14
Great that passed and just like the Selenium based tests it can be easily incorporated into a test suite.
Zend_Http does not currently have all the capabilities that Selenium has, such as for example the ability to test
javascript, however, as we can see it is a relatively simple way to make functional tests.
10.4 Scripting the deployment
We briefly mentioned using the svn export command to get a clean version of an SVN repository which we
could transfer via FTP to a production server. That solution would be useful if, for example, you are working
with a client's production server over which you have no control. If you did have control over the server there
is no reason why the production server could not also be under version control and updated with the svn update
command. Since we've already spent a lot of time discussing methods of automating tests the natural follow on
would be to automate the testing and deployment of your code between the different environments.
Unfortunately, as with svn branching, scripting your deployment is not only too deep a topic for a few
paragraphs of this chapter but also one quite specific to each team's work requirements. We can, however,
point you to the Zend Framework build-tools/Makefile for inspiration. This file contains a series of shell
scripts which export from the repository, generate the documentation and generate the zip and tarball archives
that can be downloaded from the Zend Framework download page.
Pages:
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302