Changes between Initial Version and Version 1 of DeveloperGuidelines/Testing/Smoke

04/15/14 00:43:49 (8 years ago)
Arnav Sharma



  • DeveloperGuidelines/Testing/Smoke

    v1 v1  
     1= Smoke Tests =
     4Smoke Tests click through on every link within Sahana Eden and can be used to check for errors on pages and broken links. They are a light-weight approach to detecting basic errors, however they do not test form submission or any interaction. They can be run using [ twill] or []. Ghost is still under development and offers much more features than Twill.
     6== Installation of the testing environment in your machine ==
     8You should already have installed Eden and Web2py before starting this.
     9* Twill
     10 * Requires [ twill].
     11 * Requires [ mechanize]
     12* Ghost
     13 * Requires [ PyQt4] or [ PySide] (dependency of
     14 * Requires  []
     15Installation instructions are mentioned on the links
     17== Running / Executing smoke tests: ==
     19To run the smoke tests use the following:
     21python -S eden -M -R applications/eden/modules/tests/ -A --suite smoke  --agent t --force-debug --link-depth 7 -V 3
     25* link-depth - The recursive depth when looking for links
     26* force-debug - Run the smoke tests even if debug is set to true. With debug on it can add up to a second per link and given that a full run of the smoke tests will include thousands of links the difference of having this setting on can be measured in hours.
     27* verbosity, V -  The level of verbose reporting
     28* agent - Agent used to run the smoke tests: g -> Ghost t -> Twill (default)
     30== Issues with Ghost ==
     31* Installing PyQt4/PySide might be troublesome.
     32* Ghost opens a file for every page visited. There is no method to delete the opened files when they are no longer required. If faced with this issue, increase the ulimit of your system as a temporary fix.
     33* Ghost crashes after a while. The reason is not yet clear. The issue is reported [ here].
     34* In Mac OS 10.9 [Mavericks], Ghost would throw a warning mentioned below. It is a Qt4 issue.
     36Python[6181:1107] CoreText performance note: Client called CTFontCreateWithName() using name "Helvetica Neue" and got font with PostScript name "HelveticaNeue". For best performance, only use PostScript names when calling this API.
     38== Future work ==
     39* Capitalize the javascript execution capability to improve the smoke tests.
     40* Add an command line argument for which takes the path for a file containing the various optional parameters for Ghost such as setting display on, changing wait timeout etc.