From: Matthew N. <mni...@di...> - 2008-12-16 17:21:01
|
You can use the agitb module (similar to the cgitb module) to print python errors that occurred in scripts. There are no test frameworks that I know of. You can also test your scripts by running them directly from your shell and manually entering what asterisk would send to the script. Turn on agi debugging to get an idea of what that should look like. On Tue, 2008-12-16 at 16:58 +0100, ax21 wrote: > Is it possible to test pyst scripts somehow ? > > I need a framework where I can run the python scripts directly from > the comandline. > > It should be possible since its just STD messages > > > If this does not already exist, can someone point me to a possible > solution ? What Do I need to do in order to run the framework test > script, calling the AGI Script, which starts the agi instance. > Then Prints every STDOUT Message sent out, and receives the > agi.verbose() messages. > > It might be easier to develop on complex agi scripts this way, rather > than to call on the Asterisk channel on every change, and it wont > print python error stacks either > > > > sven > > > > > > > > > > > > this message is the second one, the first one has been gone out on > the wrong account name > > > > > > > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users -- Matthew Nicholson Digium, Inc. | Software Developer |