storytext-3.11

所属分类:Linux/Unix编程
开发工具:Unix_Linux
文件大小:4130KB
下载次数:2
上传日期:2014-07-24 17:03:26
上 传 者真诚的猪猪
说明:  story text 是基于linux平台+Python的一个自动化代码测试框架
(story text is based on the linux platform+ Python code in an automated testing framework)

文件列表:
storytext-3.11 (0, 2014-05-07)
storytext-3.11\source (0, 2014-05-07)
storytext-3.11\source\MANIFEST (2832, 2014-05-07)
storytext-3.11\source\.bzrignore (70, 2014-05-07)
storytext-3.11\source\MANIFEST.in (203, 2014-05-07)
storytext-3.11\source\bin (0, 2014-05-07)
storytext-3.11\source\bin\migrate_uimap.py (1119, 2014-05-07)
storytext-3.11\source\bin\storytext_release.py (3498, 2014-05-07)
storytext-3.11\source\bin\storytext_editor.exe (4096, 2014-05-07)
storytext-3.11\source\bin\storytext_editor (458, 2014-05-07)
storytext-3.11\source\bin\storytext (537, 2014-05-07)
storytext-3.11\source\bin\storytext.exe (4096, 2014-05-07)
storytext-3.11\source\doc (0, 2014-05-07)
storytext-3.11\source\doc\COPYING (39, 2014-05-07)
storytext-3.11\source\doc\ChangeLog (47116, 2014-05-07)
storytext-3.11\source\doc\LICENSE (658, 2014-05-07)
storytext-3.11\source\doc\AUTHORS (182, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\.settings (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\.settings\org.eclipse.jdt.core.prefs (388, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\META-INF (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\META-INF\MANIFEST.MF (467, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\bin (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\bin\org (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\bin\org\eclipse (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\bin\org\eclipse\swtbot (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\bin\org\eclipse\swtbot\testscript (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\src (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\src\org (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\src\org\eclipse (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\src\org\eclipse\swtbot (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\src\org\eclipse\swtbot\testscript (0, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\src\org\eclipse\swtbot\testscript\TestRunnableStore.java (637, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\src\org\eclipse\swtbot\testscript\Application.java (4870, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\src\org\eclipse\swtbot\testscript\StartupHook.java (459, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\.project (666, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\build.properties (154, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\plugin.xml (1542, 2014-05-07)
storytext-3.11\source\eclipse_gef_rcp_plugin\.classpath (369, 2014-05-07)
storytext-3.11\source\eclipse_rcp_plugin (0, 2014-05-07)
... ...

Summary of what it is: The full documentation is present at http://www.texttest.org/index.php?page=ui_testing What follows is just a brief summary. StoryText (formerly known as PyUseCase) is a record/replay layer for Python GUIs. It currently has extensive support for PyGTK GUIs (including a proof of concept for the hildon extension), and beta status support for Swing, SWT/Eclipse RCP/GEF and Tkinter, and wxPython GUIs. Besides providing a mechanism for recording and playing back UI interaction, it also generates a log of the UI appearance. On UNIX-based systems it can also be useful on console programs to record and simulate signals received by the process. The aim is only to simulate the interactive actions of a user, not to verify correctness of a program as such. The log produced should form a good basis for textual testing though, using a tool like TextTest, also available from SourceForge. It has been developed together with TextTest and is essentially intended to be used in conjunction with it. To summarise, the motivation for it is that traditional record/replay tools, besides being expensive, tend to record very low-level scripts that are a nightmare to maintain and can only be read by developers. This is in large part because they record the GUI mechanics rather than the intent behind the test. (Even though this is usually in terms of widgets not pixels now) StoryText is built around the idea of recording in a domain language by maintaining a mapping between the actions that can be performed with the UI and names that describe what the point of these actions is. This incurs a small extra setup cost of course, but it has the dual benefit of making the tests much more readable and much more resilient to future UI changes than if they are recorded in a more programming-language-like script. Another key advantage over other approaches is that, with some very simple instrumentation in the code, it is easy to tell StoryText where the script will need to wait, thus allowing it to record "wait" statements without the test writer having to worry about it. This is otherwise a common headache for recorded tests: most other tools require you to explicitly synchronise the test when writing it (external to the recording). Example recorded usecase ("test script") for a flight booking system: wait for flight information to load select flight SA004 proceed to book seats # SA004 is full... accept error message quit System requirements: At least Python 2.5 (Jython 2.5 for the Java UIs) At least PyGTK 2.12 for the PyGTK part Python 3.x supported only for Tkinter UIs currently Other Open Source Software packaged with it/used by it: ordereddict.py : sequential dictionaries. (Raymond Hettinger, v1.1) Installation: Go to the "source" directory and run "python setup.py install" (and then "jython setup.py install" for Java GUIs). To sort out dependencies and so on, read the docs at http://www.texttest.org/index.php?page=ui_testing&n=storytext_download Documentation: http://www.texttest.org/index.php?page=ui_testing Examples and tests: A simple "video store" PyGTK GUI is provided to give an example usage in the "examples" directory. It's basically an ordinary PyGTK app with the shortcut bar included. You can for example do storytext -r my_script.txt videostore.py will record a high-level use case to my_script.txt, based on whatever you do. This can then be replayed via storytext -p my_script.txt videostore.py The complete test suite (which uses Texttest) is also provided under "tests", this has a wealth of little GUIs illustrating the support for the various widgets. It should be possible to run it via texttest.py -d (if you install TextTest, of course) Bugs/Support: Write to the general mailing list at texttest-users@lists.sourceforge.net Report bugs in the Launchpad bugtracker at https://bugs.launchpad.net/storytext

近期下载者

相关文件


收藏者