[tclwebtest] web interface
Status: Abandoned
Brought to you by:
tils
From: Tilmann S. <ti...@ti...> - 2003-01-13 16:57:06
|
Grzegorz, I hope it's ok to continue this on the list: * Grzegorz Adam Hankiewicz <gr...@ef...> [20030113 16:36]: > > If you are interested in doing any of these tasks or doing something > > else - cool! Let me know, so that we don't duplicate efforts. > > At the moment I'm working on integrating tclwebtest with a web > interface, this could be made opensource too, depending on how > it works. So for example I would like to have the documentation > generated online, without temporary files. What would you change > from the current scripts to do so? Having the documentation online wouldn't be a big problem when called from within openacs i suppose, since that's what the functions that I ripped from there do. Look at http://openacs.org/api-doc/proc-view?proc=api%5fproc%5fdocumentation to see it in action, describing itself. If you are talking about a web interface in the sense that you can type in test code in a textarea and have it executed upon form submit, then you might be interested in my openacs package that does that. If yes I'll upload it to the tclwebtest site. I can't set up a demo because it opens the web server to any user because any tcl code can be executed. > I thought about modifying generated_docs.test to be a function call > returning the html, but then I realiced it's parsed by tclwebtest, > and looks like integration would need big changes. I'll tell you > if I get to do something. Its possible to replicate what is happening in generated_docs.test, e.g. in tclsh: tils@tp:~$ tclsh tclsh8.3 [~]cd tclwebtest tclsh8.3 [~/tclwebtest]source lib/from_openacs.tcl tclsh8.3 [~/tclwebtest]source lib/tclwebtest.tcl tclsh8.3 [~/tclwebtest]array set doc_elements $api_proc_doc(tclwebtest::debug) tclsh8.3 [~/tclwebtest]api_proc_documentation tclwebtest::debug <h3>tclwebtest::debug (public)</h3><pre>tclwebtest::debug [ -lib ] <i>msg</i></pre> <blockquote> Emit the message to stdout, even if logging output is redirected to a file. Intended to be used when writing tests. Its only advantage over using puts is that it does not have to be deleted when writing the test is finished. <p> <dl> <dt><b>Switches:</b></dt><dd> <b>-lib</b> (boolean) (optional)<br> </dd> <dt><b>Parameters:</b></dt><dd> <b>msg</b><br> </dd> </dl></blockquote> tclsh8.3 [~/tclwebtest] It outputs html fine - is that what you meant? cheers, til |