On Wed, Jun 01 2016, anu sree wrote:

> Hi,
>
> I am looking for a framework which helps to write functional test
> cases.  Right now i am using unittest framework to do that, but that
> is ugly.

I consider py.test as one of Python's "killer applications". I've used
it since 2010 or so for almost all my non trivial python projects.

I've even recently started using it to test my C libraries. It's got a
compatibility wrapper to run unittest tests so you can start using it
without changing any of your existing tests. I could go on and on but
it'll just be fanboyism.

> How you guys are writing functional test cases.

Often, for servers, I use subprocess to launch my application as a
completely separate process and then poke it from the outside. 

> I also want to do stress test by sending thousands of concurrent
> requests (run functional test cases in different threads).

Are these http requests? I'm not sure py.test and related infrastructure
is the best to do raw performance tests. Something like ab, siege or
boom might be better.


[...]


-- 
Cordially,
Noufal
http://nibrahim.net.in
_______________________________________________
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers

Reply via email to