[Twisted-Python] How to debug the client-server pyqt project using twisted framework?

Hi, all! I'm developing an client-server pyqt application. Is there an easier way to debug? Now, I can only run client and server, then click the button on the client and watch responce of the server? What's the method and what's the tool? Thanks all.

Yangyouxiu, I was recently trying to solve the same problem for my own project. Twisted apparently has some built-in testing facilities: http://twistedmatrix.com/documents/current/core/howto/trial.html Does this help at all?

Daniel Sank, Thank you very much. Trial may be a solution. But i have no idea about using trail in qt application testing. From: Daniel Sank Date: 2013-11-25 13:52 To: Twisted general discussion Subject: Re: [Twisted-Python] How to debug the client-server pyqt project using twisted framework? Yangyouxiu, I was recently trying to solve the same problem for my own project. Twisted apparently has some built-in testing facilities: http://twistedmatrix.com/documents/current/core/howto/trial.html Does this help at all? _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

But i have no idea about using trail in qt application testing.
Neither do I. As I said I'm trying to figure this out for myself as well. If I learn anything useful I'll let you know. I would say that you probably can write most of your application without worrying about the GUI at all. In that case you should be able to unit-test your program as you would any other program. What I've been doing is just programming callbacks to do what will eventually be done by users clicking buttons and that sort of thing. I should add to this that I have _not_ figured out how to use Trial with perspective broker yet.

Daniel Sank, Thanks very much. ^_^ From: Daniel Sank Date: 2013-11-25 15:30 To: Twisted general discussion Subject: Re: [Twisted-Python] How to debug the client-server pyqt project using twisted framework?
But i have no idea about using trail in qt application testing.
Neither do I. As I said I'm trying to figure this out for myself as well. If I learn anything useful I'll let you know. I would say that you probably can write most of your application without worrying about the GUI at all. In that case you should be able to unit-test your program as you would any other program. What I've been doing is just programming callbacks to do what will eventually be done by users clicking buttons and that sort of thing. I should add to this that I have _not_ figured out how to use Trial with perspective broker yet. _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Yangyouxiu, I was recently trying to solve the same problem for my own project. Twisted apparently has some built-in testing facilities: http://twistedmatrix.com/documents/current/core/howto/trial.html Does this help at all?

Daniel Sank, Thank you very much. Trial may be a solution. But i have no idea about using trail in qt application testing. From: Daniel Sank Date: 2013-11-25 13:52 To: Twisted general discussion Subject: Re: [Twisted-Python] How to debug the client-server pyqt project using twisted framework? Yangyouxiu, I was recently trying to solve the same problem for my own project. Twisted apparently has some built-in testing facilities: http://twistedmatrix.com/documents/current/core/howto/trial.html Does this help at all? _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

But i have no idea about using trail in qt application testing.
Neither do I. As I said I'm trying to figure this out for myself as well. If I learn anything useful I'll let you know. I would say that you probably can write most of your application without worrying about the GUI at all. In that case you should be able to unit-test your program as you would any other program. What I've been doing is just programming callbacks to do what will eventually be done by users clicking buttons and that sort of thing. I should add to this that I have _not_ figured out how to use Trial with perspective broker yet.

Daniel Sank, Thanks very much. ^_^ From: Daniel Sank Date: 2013-11-25 15:30 To: Twisted general discussion Subject: Re: [Twisted-Python] How to debug the client-server pyqt project using twisted framework?
But i have no idea about using trail in qt application testing.
Neither do I. As I said I'm trying to figure this out for myself as well. If I learn anything useful I'll let you know. I would say that you probably can write most of your application without worrying about the GUI at all. In that case you should be able to unit-test your program as you would any other program. What I've been doing is just programming callbacks to do what will eventually be done by users clicking buttons and that sort of thing. I should add to this that I have _not_ figured out how to use Trial with perspective broker yet. _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (2)
-
Daniel Sank
-
yangyouxiu