Difference between revisions of "Basic Functions of a Wiki"

Line 15: Line 15:
  
 
==Next Actions==
 
==Next Actions==
* doTest() needs to fix the segmentation fault
+
* need to carefully think through edit tests to make sure they cannot pass when they shouldn't - all 8 tests now pass!
  
 
==Done==
 
==Done==
Line 21: Line 21:
 
* testEditLinkWholePageIP() & testEditLinkWholePageLogin() both call editLinkWholePage() which does the actual work - the only difference is the login one logs in
 
* testEditLinkWholePageIP() & testEditLinkWholePageLogin() both call editLinkWholePage() which does the actual work - the only difference is the login one logs in
 
* testEditLinkSectionIP() & testEditLinkSectionLogin() both call editLinkSection() - same as above
 
* testEditLinkSectionIP() & testEditLinkSectionLogin() both call editLinkSection() - same as above
* basic structure of the file is complete now with 8 tests in two categories, logged in & IP; calling 4 functions in two categories, whole page or section; calling 2 functions in two categories, edit link or type edit URL; call DoTest() (which doesn't work), so it's something like this
+
* basic structure of the file is complete now with 8 tests in two categories, logged in & IP; calling 4 functions in two categories, whole page or section; calling 2 functions in two categories, edit link or type edit URL; call DoTest(), so it's something like this
 
** doTest
 
** doTest
 
*** editLink
 
*** editLink

Revision as of 04:04, 11 March 2007

each test independent of the others? can we test preview or save if edit isn't working?

  • edit
    • logged in & not logged in, click the "edit" link at the top & "type" the "action=edit" url & click section edit & type section edit url
      • verify the textarea exists
      • verify the textarea contents are correct
      • verify that typing works
  • save
    • in edit mode, click the "Save page" button
    • verify that the page saves
      • we're now NOT in edit mode
      • the contents of the page are what we expect
  • preview
    • in edit mode, click the "Show preview" button
    • the page shows both the contents of the page in html AND the textarea we're editing

Next Actions

  • need to carefully think through edit tests to make sure they cannot pass when they shouldn't - all 8 tests now pass!

Done

  • created files basic_wiki_functions_acceptance_test.sh & BasicWikiFunctionsTest.php
  • testEditLinkWholePageIP() & testEditLinkWholePageLogin() both call editLinkWholePage() which does the actual work - the only difference is the login one logs in
  • testEditLinkSectionIP() & testEditLinkSectionLogin() both call editLinkSection() - same as above
  • basic structure of the file is complete now with 8 tests in two categories, logged in & IP; calling 4 functions in two categories, whole page or section; calling 2 functions in two categories, edit link or type edit URL; call DoTest(), so it's something like this
    • doTest
      • editLink
        • editLinkWholePage
          • IP
          • logged in
        • editLinkSection
          • IP
          • logged in
      • editURL
        • editURLWholePage
          • IP
          • logged in
        • editURLSection
          • IP
          • logged in


Retrieved from "http://aboutus.com/index.php?title=Basic_Functions_of_a_Wiki&oldid=5504872"