- From: James Graham <james@hoppipolla.co.uk>
- Date: Tue, 06 Aug 2013 18:11:54 -0700
- To: "Wang, Jing J" <jing.j.wang@intel.com>
- Cc: Robin Berjon <robin@w3.org>, Tobie Langel <tobie@w3.org>, <public-test-infra@w3.org>
On 2013-08-06 17:45, Wang, Jing J wrote: > On 06/08/2013 18:26 , Robin Berjon wrote: >>> You need more than CGI, you actually need NPH. > I am not familiar with NPH, looks it provide more flexibility to > operate low level headers, but not as popular as CGI. Could you tell > what kind of web test that CGI is not capable to support? AFAWIK, > websocket is the only thing I can image. > >>> That said, it would be useful if the server we have could itself run >>> dynamic code. Maybe we could use something like >>> http://code.google.com/p/pyv8/ to make it developer-friendly? That sounds like a bad idea :) It introduces significant complexity through a dependence on v8 and the glue code, merely to get javascript rather than python. > Yes, we need a server which provide significant flexibility to > extend, especially on low level header. Actually, I have used a > lightweight http server lib https://github.com/valenok/mongoose for a > while in really web testing, and the feedback from internally is > good.le > On top of the mongoose lib, I added websocket dynamic extension (by c > language). Plus mongoose already well supported CGI, so far, I don't > see obvious gap. Another good point of this solution is, very > lightweight and less dependency, which can run even inside a phone. > Thus , it is easy to setup testing environment without resort to real > network, especially benefit full automated testing. Another option is to build atop the mozbase http server [1]. This is already used internally for testing in Mozilla, so there is no problem deploying it in a large automated testing scenario. It is also relatively easy to customise, and doesn't require people running tests to have the ability to compile C code (or to ship binaries for lots of platforms). For websockets we already have pywebsocket which afaik meets all our requirements. In principle one might require support for other protocols like ftp or similar, but I think it is OK to do without those at first. [1] https://mozbase.readthedocs.org/en/latest/mozhttpd.html#module-mozhttpd
Received on Wednesday, 7 August 2013 01:12:16 UTC