Hi,

A good idea about using COM/GD. Let's talk about some pro/cons of it and the 
solution I gave.
1. COM never worked with default IIS configuration because of permission 
issues. This means again you are not simulating a real world scenario.
2. COM based solution will never have the ability to be ported to UNIX world.
3. GD can be used for screenshot comparison but any screenshot comparison will 
have some error of margin. Plus your thing (expected output) will be dependent 
on screen resolution/display settings etc. If your code has to be portable 
going this route is not a good idea in my view.

Regarding dependency on IE, I see no reason why we cannot use a Mozilla based 
browser and automate it. That way it can work on any platform though it will 
have its own challenges but not the ones we will face using GD and COM.

Thanks,
Don.
-----Original Message-----
From: Pierre Joye [mailto:pierre....@gmail.com] 
Sent: Monday, February 01, 2010 12:09 PM
To: Venkat Raman Don
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] A way available to test PHP CGI builds.

On Mon, Feb 1, 2010 at 8:59 PM, Venkat Raman Don <don.ra...@microsoft.com> 
wrote:
> Hi Pierre,
>
> Thanks for the comments.
>
> I am aware of the fact that we can test php-cgi.exe in various scenarios 
> which is  very close to real world. But my code gives the ability to test 
> php-cgi.exe exactly like real world. Most of the people use PHP to host some 
> application. It can be home grown application, a community application or a 
> variance of a community application. This is exactly what the code simulates. 
> And one more clarification it is not dependent on any server or how one has 
> configured to run PHP. It can be IIS/APACHE (or any other server for that 
> matter) and is also not dependent on how you server is configured. It can be 
> mod_php/FastCGI/ISAPI etc. So far as your code can run in the browser, the 
> driver has the ability to test it. The only flaw is that it runs primarily on 
> WINDOWS as it takes a hard dependency on Internet Explorer being the browser. 
> I believe if we found this useful the hard dependency can be removed.

Right, but you don't need IE for that unless you want to test the JS script 
inside IE (but that's not cgi related then), or do screenshots/compare 
contents. The later can done using php only with COM btw (and gd for the shots) 
:)

The server scripts in our source could be a good start (at least to get some 
ideas), I got some inspiration from them for our tests suite.

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to