<div dir="ltr">Leonid,<br><br>I'm pretty sure there are two possible non-DIY alternatives<br>1) maybe ratproxy - it's pretty cool for webapp software security assessment and it might cover some of your test use cases....<br>
<br>2) probably Mochitest - <a href="https://developer.mozilla.org/en/Mochitest">https://developer.mozilla.org/en/Mochitest</a><br><br>Just a thought.<br><br>Danny<br><br><div class="gmail_quote">On Thu, Sep 3, 2009 at 3:48 PM, Leonid Podolny <span dir="ltr"><<a href="mailto:leonidp.lists@gmail.com">leonidp.lists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, all,<br>
At my work we encountered a problem and it looks like we are<br>
re-inventing the bicycle. Someone here surely has an experience with<br>
that.<br>
We have a regressions testing lab. As a part of the testing we have to<br>
work with the web-interface of our product. (I'm intentionally vague,<br>
the details are quite irrelevant to the problem). The testing scenario<br>
includes action items like "press the button with caption 'Advanced<br>
Settings' on it".<br>
This is implemented as a C program with sockets interface, so "find a<br>
button" actually means "look for a substring in the received HTML<br>
code" and "press the button" means "create an HTTP POST message and<br>
send it".<br>
However, recently we have added some JavaScript and AJAX to the<br>
web-interface and now the testing environment must be able to run JS<br>
and even cope with things like replacing part of the DOM tree. We can<br>
see three possible directions to tackle the problem:<br>
- Further fix our great testing program. After all, we know what AJAX<br>
can return -- we can manually open the connection it would open, parse<br>
the response, etc. Looks ugly and has a potential to turn into<br>
maintenance nightmare.<br>
- Setup a headless X server with Firefox running inside and some sort<br>
of scripting/management add-on. If someone has an experience with such<br>
a setup, I would appreciate pointers to specific add-ons you used.<br>
- Somehow hack off the GUI from any open-source browser and link it to<br>
our program, i.e. use it as HTML parser and JS machine. Looks<br>
unpredictably complicated, maybe not even feasible.<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Danny Lieberman<br>-------------------------------------------------------------------------------------------------<br><a href="http://www.dannylieberman.info">http://www.dannylieberman.info</a><br>
Twitter: <a href="http://twitter.com/onlyjazz">http://twitter.com/onlyjazz</a><br>Skype: dannyl50<br>Warsaw:+48-79-609-5964<br>Israel: +972 8 9701485<br>Mobile: +972 - 54 447 1114<br>
</div>