My favorites | Sign in
Logo
                
Search
for
Updated Aug 25, 2009 by shooeugenesea.tw
OSDETestSpecs  
This page is created for issue 60 to define some test specs.

#OSDE_0.2.8

Introduction

There are three general operation systems to test.

Windows XP, Windows Vista and Linux.

See issue
49, 50, 51.

This page is used to describe what items need to test.

You should define items here before test,

or test by items described here to be familiar with OSDE.

Moreover, you can write anything should test but not described here,

or even any improvement on next generation OSDE if you're responsible for it.

OSDE 0.2.8

#Windows_XP

#Windows_Vista

#Linux

Windows XP

Common features that will be Implemented and Tested for OSDE 0.2.8 release

Related documentation.

Test Identification (Test Areas)

Test Cases Detail/Procedure

Installation
Test Id Test Item Input Spec Output Spec
installation_01 Show OSDE menus
  1. Download OSDE 0.2.8 plugin library
  2. Copy OSDE 0.2.8 library to eclipse plugin folder
  3. Restart eclipse
  1. Show OSDE menu bar and items
  2. Show OSDE tree node in Preference
  3. Show OSDE tree node in New Project

Building a Simple OpenSocial App in OSDE
Test Id Test Item Input Spec Output Spec
build_sample_01 Launch Apache Shindig server clicking the "Launch Apache Shindig server" button on Eclipse's main toolbar Shindig start up in the console
build_sample_02 Launch Apache Shindig server selecting 'Launch Apache Shindig' from the OSDE menu Shindig start up in the console
build_sample_03 populate the database selecting 'Create sample data in Shindig' from the OSDE menu database interface windows in the console add people 'canonical', 'john.doe', 'jane.doe', 'george.doe'
build_sample_04 populate the database
  1. use the database interface windows in the console to create custom data 'shooeugensea'
  2. click 'New'
  3. input ID: shooeugenesea
  4. input Display Name: shooeugenesea
database interface windows in the console add people 'shooeugenesea'
build_sample_05 create a new OSDE project
  1. select 'Create new project...-> OpenSocial Project' from the main menu
  2. input project name 'OSDETest' -> 'Next'
  3. input title 'OSDETestTitle'
  4. input Author Email 'tester@test.com' -> 'Next'
  5. select 'Type: HTML'
  6. select 'Create the external JavaScript file for this view' -> 'Finish'
  1. A project named OSDETest
  2. a file named '.project'
  3. a file named canvas.js
  4. a file named gedget.xml
  5. the gadget editor appears in the main window of Eclipse

Running an OpenSocial app in OSDE
Test Id Test Item Input Spec Output Spec
run_app_01
Run application and show friend names
  1. open gadget.xml -> Contents view -> Choose canvas.html
  2. edit canvas.html value to
  3. <script type="text/javascript" src="http://localhost:8080/OSDETest/canvas.js"></script>
    
    <script type="text/javascript">
    gadgets.util.registerOnLoadHandler(init);
    </script>
    
    Your friends:<div id='friends'></div>                    
  4. edit canvas.js value to
  5. function loadFriends() {
        var req = opensocial.newDataRequest();
        req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.VIEWER), 'viewer');
        var viewerFriends = opensocial.newIdSpec({ "userId" : "VIEWER", "groupId" : "FRIENDS" });
        var opt_params = {};
        opt_params[opensocial.DataRequest.PeopleRequestFields.MAX] = 100;
        req.add(req.newFetchPeopleRequest(viewerFriends, opt_params), 'viewerFriends'); 
        req.send(onLoadFriends);
    }
     
    function onLoadFriends(data) {
        var viewer = data.get('viewer').getData();
        var viewerFriends = data.get('viewerFriends').getData();
        html = new Array();
        html.push('<ul>');
        viewerFriends.each(function(person) {
            html.push('<li>', person.getId(), '</li>');
        });
        html.push('</ul>');
        document.getElementById('friends').innerHTML = html.join('');
        gadgets.window.adjustHeight();
    } 
     
    function init() {
        loadFriends();
    } 
  6. right-clicking the gadget file (gadget.xml) and selecting OSDE->'Run this application'
  7. select View: Canvas
  8. select width: 100
  9. select Owner: john.doe
  10. select Viewer: george.doe
  11. select TAIWAN
  12. select Language: Chinese (zh)
  13. click OK
Browser shows:
Your friends:
george.doe
jane.doe
john.doe

Creating a Java RESTful Client Project
Test Id Test Item Input Spec Output Spec Note
create_restful_01 create a new Java client application that uses the Java client libraries
  1. right-click the gadget spec (gadget.xml) and select OSDE->Create Java Project for Restful Protocol
  2. enter project name 'OSDERestfulTest'
  1. show new created project named 'OSDERestfuTest' with OpenSocial Java Client Library and a Sample.java
create_restful_02 Show friends by modifying the variable 'VIEWER_ID'
  1. change the variable 'VIEWER_ID' value to 'canonical'
  2. run the application
  1. show new created project named 'OSDERestfuTest' with OpenSocial Java Client Library and a Sample.java
  2. Console shows
  3. Viewer: canonical
    Friend: george.doe
    Friend: jane.doe
    Friend: john.doe                    
Shindig server should remain running for the client application to work

Windows Vista

TODO: test spec in windows vista

Linux

TODO: test spec in linux


Comment by shooeugenesea.tw, Aug 20, 2009

About the table, although wiki has it's own table syntax, but I feel html is easier to edit than wiki table syntax and use it first. If there has easy way to edit wiki table syntax, please share with me and I'll change it. Thanks.


Sign in to add a comment
Hosted by Google Code