<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 04/11/2010 17:32, Ronny Pfannschmidt wrote:
    <blockquote cite="mid:1288891964.22688.2.camel@Klappe2" type="cite">
      <pre wrap="">On Thu, 2010-11-04 at 17:03 +0100, Alex wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">2010/11/3 Olemis Lang <a class="moz-txt-link-rfc2396E" href="mailto:olemis@gmail.com">&lt;olemis@gmail.com&gt;</a>:
</pre>
        <blockquote type="cite">
          <pre wrap="">Probably I didn't understand your original question . If that's the
case , please tell so that we can refine the answer .
</pre>
        </blockquote>
        <pre wrap="">
I am writing the test of a C++ application. I have access the C++
source code but prefer not to alter it.

2010/11/3 Olemis Lang <a class="moz-txt-link-rfc2396E" href="mailto:olemis@gmail.com">&lt;olemis@gmail.com&gt;</a>:
</pre>
        <blockquote type="cite">
          <pre wrap="">Fiddler : A really good proxy for dev-ing with scripting
              support (Python ?) , pause , stop , replay ,
              request builder, plugin system,
              programmatic API ... for Windows
              AFAIK (if you find a -multiplatform ?-
              FOSS alternative please let me know)
</pre>
        </blockquote>
        <pre wrap="">
This is what I am trying but not yet have a conclusion.

</pre>
        <blockquote type="cite">
          <pre wrap="">wsgi_intercept : To intercept HTTP requests
twill | mechanize : For high-level HTTP commands (and more ...)
</pre>
        </blockquote>
        <pre wrap="">
The target to be tested is a C++ application, so  Python tools like
wsgi_intercept, twill, mechanize do not apply.

</pre>
        <blockquote type="cite">
          <pre wrap="">Integrating pycap is really not trivial, IMO .
</pre>
        </blockquote>
        <pre wrap="">
That's why I am looking for some alternatives here.

2010/11/3 C. Titus Brown <a class="moz-txt-link-rfc2396E" href="mailto:ctb@msu.edu">&lt;ctb@msu.edu&gt;</a>:
</pre>
        <blockquote type="cite">
          <pre wrap="">you could write a simple HTTP server of your own, and run it in another
thread.  That doesn't help if you need to call remote URLs, though.
</pre>
        </blockquote>
        <pre wrap="">
It requires a lot of work to mock the HTTP server. Besides, I need
some reliable mechanism to redirect the HTTP requests issued by the
test target (C++ application) to 'localhost'.
</pre>
      </blockquote>
      <pre wrap="">
you might want to either hijac the hosts configuration on the test
system or just use a selective transparent proxying scheme

</pre>
    </blockquote>
    <br>
    This looks like an interesting project:<br>
    <br>
        <a class="moz-txt-link-freetext" href="https://code.google.com/p/twistedsim/">https://code.google.com/p/twistedsim/</a><br>
    <br>
    TwistedSim enables the user to run his code in a reproducible
    network environment.<br>
    <br>
    It may be Python specific though.<br>
    <br>
    Michael<br>
    <br>
    <blockquote cite="mid:1288891964.22688.2.camel@Klappe2" type="cite">
      <pre wrap=""></pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
testing-in-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a>
<a class="moz-txt-link-freetext" href="http://lists.idyll.org/listinfo/testing-in-python">http://lists.idyll.org/listinfo/testing-in-python</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 

<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/">http://www.voidspace.org.uk/</a>

READ CAREFULLY. By accepting and reading this email you agree,
on behalf of your employer, to release me from all obligations
and waivers arising from any and all NON-NEGOTIATED agreements,
licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap,
confidentiality, non-disclosure, non-compete and acceptable use
policies (”BOGUS AGREEMENTS”) that I have entered into with your
employer, its partners, licensors, agents and assigns, in
perpetuity, without prejudice to my ongoing rights and privileges.
You further represent that you have the authority to release me
from any BOGUS AGREEMENTS on behalf of your employer.
</pre>
  </body>
</html>