Difference between revisions of "Talk:Usability of Mediawiki as a collaborative workspace for knowledge creation"

From Testiwiki
Jump to: navigation, search
m
(plan for testing added, progress updated)
Line 13: Line 13:
 
***See how the current tables work '''(DONE)'''
 
***See how the current tables work '''(DONE)'''
 
*Make the extension behave like it should
 
*Make the extension behave like it should
**SQL-queries altered to handle two types of rating
+
**SQL-queries altered to handle two types of rating '''(DONE)'''
***INSERTs '''(done, needs testing)'''
+
***INSERTs '''(DONE)'''
***UPDATEs '''(done, needs testing)'''
+
***UPDATEs '''(DONE)'''
***SELECTs '''(done, needs testing)'''
+
***SELECTs '''(DONE)'''
**Javascript updated to handle two types of rating
+
**Javascript updated to handle two types of rating '''(DONE, needs testing)'''
***onmouseover '''(buggy, fix this)'''
+
***onmouseover '''(DONE)'''
***things that happen on page load '''(buggy?)'''
+
***things that happen on page load '''(DONE)'''
 
*Make the extension look like it should (layout will be considered after the bars work)
 
*Make the extension look like it should (layout will be considered after the bars work)
 
**Change colors to fit OpasNet blue-purple-red? Keep old colors commented out in case they look better. '''(DONE)'''
 
**Change colors to fit OpasNet blue-purple-red? Keep old colors commented out in case they look better. '''(DONE)'''
Line 41: Line 41:
 
** <del>after rating something, the rating bar does not update correctly (retains old avg to display)</del>
 
** <del>after rating something, the rating bar does not update correctly (retains old avg to display)</del>
 
** Bug found to be a feature of original rating bar: On page load, rating bar displays ''rating average of all users''. On mouseover, rating bar displays the rating that will be given if the user clicks on it. After clicking, the bar displays the ''rating the user has given,'' instead of the average, that can be seen if the user reloads the page. This can be considered a flaw in design.
 
** Bug found to be a feature of original rating bar: On page load, rating bar displays ''rating average of all users''. On mouseover, rating bar displays the rating that will be given if the user clicks on it. After clicking, the bar displays the ''rating the user has given,'' instead of the average, that can be seen if the user reloads the page. This can be considered a flaw in design.
 +
 +
====Plan for testing====
 +
* Create 3 accounts, named TeeBarTest1, TeeBarTest2, (TeeBarTest3).
 +
* Using TeeBarTest1, find/create a page with no ratings.
 +
** Test mouseovers on a fresh page.
 +
** Test reloads on a fresh page.
 +
* Using TeeBarTest1, rate usefulness (type 2) 50.
 +
** Test mouseovers, reloads.
 +
* log out and log in TeeBarTest2, test mouseovers and reloads on the page.
 +
** Find/create another page, repeat for scientific quality (type1).
 +
** go to the first test page, rate scientific quality 60, usefulness 30. Should produce avg. sc.q. 60 with 1 vote, avg. usefulness 40 with 2 votes.
 +
** Change votes for scientific quality to 70, usefulness 10. Should produce avg.sc.q. 70 with 1 vote, avg. usefulness 30 with 2 votes.

Revision as of 07:26, 14 July 2010

AJAX and PHP testing on eractest wiki

Started testing some AJAX/PHP code on Eractest. This test code is not connected to the wiki and will only be accessible through the specific URL. Copied Rating Bar extension and renamed to TeeBar on Eractest. This extension will be used as a base for the new rating bar extension for Opasnet.

TeeBar extension

This extension will include all the functionality of the Rating Bar extension, only adding a second bar under the current one. The two bars will be named "Scientific Quality" and "Usefulness".

Things to do for the extension

  • Create tables into SQL database (DONE)
    • Design the SQL tables needed! (DONE)
      • See how the current tables work (DONE)
  • Make the extension behave like it should
    • SQL-queries altered to handle two types of rating (DONE)
      • INSERTs (DONE)
      • UPDATEs (DONE)
      • SELECTs (DONE)
    • Javascript updated to handle two types of rating (DONE, needs testing)
      • onmouseover (DONE)
      • things that happen on page load (DONE)
  • Make the extension look like it should (layout will be considered after the bars work)
    • Change colors to fit OpasNet blue-purple-red? Keep old colors commented out in case they look better. (DONE)
    • Position of elements (bars, text fields) inside the rating box
  • Test the extension
  • Deploy to Opasnet
    • Squash bugs before deployment

Things that have been done wrong

  • (technical) Ideally, rewrite the whole thing with proper AJAX (current implementation is closer to "AJAH", doqueries returning HTML instead of XML)
  • (technical) Additionally, the rating bars could probably be done with two divs, instead of the current 101 div implementation. One div for background, one div to represent the bar, changing size on mouseover.
  • (usability) Currently the bars are not immediately clear about what they are displaying. Normally, they display the average rating. On mouseover, they start displaying the user's vote instead (or rather, vote-to-be)

Bugs to fix

  • You voted RATINGBAR_NO_TYPE % on page load (needs testing) (fixed, until proven otherwise)
    • doqueries.php: $vote_sent gets passed into initial page load as empty parameter (if-logic issue). This is wrong, by definition of the "load" request, which means the request should not ever pass a vote.
  • Counting of votes is misleading (fixed, until proven otherwise)
    • SELECT AVG(rating) FROM db.tab WHERE rating_type = t AND page_id=id;
    • this counts average of ALL votes, including "history" votes (votes already overwritten)
  • javascript displaying the ratings wrong and erratically (found, was feature, needs a solution)
    • after rating something, the rating bar does not update correctly (retains old avg to display)
    • Bug found to be a feature of original rating bar: On page load, rating bar displays rating average of all users. On mouseover, rating bar displays the rating that will be given if the user clicks on it. After clicking, the bar displays the rating the user has given, instead of the average, that can be seen if the user reloads the page. This can be considered a flaw in design.

Plan for testing

  • Create 3 accounts, named TeeBarTest1, TeeBarTest2, (TeeBarTest3).
  • Using TeeBarTest1, find/create a page with no ratings.
    • Test mouseovers on a fresh page.
    • Test reloads on a fresh page.
  • Using TeeBarTest1, rate usefulness (type 2) 50.
    • Test mouseovers, reloads.
  • log out and log in TeeBarTest2, test mouseovers and reloads on the page.
    • Find/create another page, repeat for scientific quality (type1).
    • go to the first test page, rate scientific quality 60, usefulness 30. Should produce avg. sc.q. 60 with 1 vote, avg. usefulness 40 with 2 votes.
    • Change votes for scientific quality to 70, usefulness 10. Should produce avg.sc.q. 70 with 1 vote, avg. usefulness 30 with 2 votes.