|
From: Marcus B. <ma...@la...> - 2004-02-21 19:55:28
|
Hi... Jason Sweat wrote: > A thought just crossed my mind that SimpleTest may be the answer to another > problem I am having at work. I have used a previous incarnation of SimpleTest to do web site monitoring before. As far as e-mailing and the like goes, there is a nearly finished tool called Midas. It makes sense that SimpleTest is scriptable so that it can be used within such applications. Getting SimpleTest to do this kind of stuff straight is certainly possible though. EmailReporter anyone? Also there is an XML transport system in there already. Just run the visual_test.php from the command line and then remote_test.php from the browser. You have to edit remote_test.php to set the document root which is why it is not run in the main test suite. > I was thinking that with a php-cli and simpletest I might be able to do the > same thing. Off the top of my head I did not know if the web tester would > handle: > a) SSL connections Not scheduled, but for testing outside the LAN this is essential. I haven't read up on the Curl support because PHP5 is supposed to be getting https support anyway. How easy is it to use? I am going to try to squeeze in simple HTTP authentication into version 1.0 at least, as I have a requirement for it at work. > b) session cookie passing Already done. > c) some kind of AssertMaxTime() for the fetch This has been implemented at the socket level, but not yet exposed higher up. I will stick it onto the TODO. It all boils down to the SimpleUserAgent class talking to the SimpleHttpRequest class. > d) frames (I was just fetching the frameset and ignoring it becuase I knew > where I wanted to go anyway) This is scheduled for version 1.0 and I think I know how to do this now the browser is a separate entity. > > Am I on the right track? I hope so. I would like to think of SimpleTest as a toolkit that other open source developers can turn into other tools. I think it is going to have to go through a lot more evolution before that is realised, though :(. yours, Marcus -- Marcus Baker, ma...@la..., no...@ap... |