|
#OSDE_0.2.8 IntroductionThere 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- Env : Windows XP, Eclipse for RCP/Plug-in Developers Build id: 20090619-0625, JDK1.6
Common features that will be Implemented and Tested for OSDE 0.2.8 release- A built in Shindig server for local testing and debugging.
- An integrated database based on the Java H2 for storing and managing social data.
- Simple project and gadget code generation wizards to quickly generate your OpenSocial application projects and application code.
- A multi-paned gadget spec editor that facilitates productive gadget development.
- A new "OpenSocial" Eclipse perspective that provides enhanced editing and debugging with easy access and control of the local Shindig and social database.
- An OpenSocial REST Java client wizard that can quickly generate a new project along with sample code that uses the OpenSocial RESTful Java client library to connect to the local OpenSocial server.
Related documentation. Test Identification (Test Areas)- Installation
- Building a Simple OpenSocial App in OSDE
- Running an OpenSocial app in OSDE
- Creating a Java RESTful Client Project
Test Cases Detail/Procedure
Installation
|
| Test Id |
Test Item |
Input Spec |
Output Spec |
| installation_01 |
Show OSDE menus |
- Download OSDE 0.2.8 plugin library
- Copy OSDE 0.2.8 library to eclipse plugin folder
- Restart eclipse
|
- Show OSDE menu bar and items
- Show OSDE tree node in Preference
- 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 |
- use the database interface windows in the console to create custom data 'shooeugensea'
- click 'New'
- input ID: shooeugenesea
- input Display Name: shooeugenesea
|
database interface windows in the console add people 'shooeugenesea' |
| build_sample_05 |
create a new OSDE project |
- select 'Create new project...-> OpenSocial Project' from the main menu
- input project name 'OSDETest' -> 'Next'
- input title 'OSDETestTitle'
- input Author Email 'tester@test.com' -> 'Next'
- select 'Type: HTML'
- select 'Create the external JavaScript file for this view' -> 'Finish'
|
- A project named OSDETest
- a file named '.project'
- a file named canvas.js
- a file named gedget.xml
- 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
|
- open gadget.xml -> Contents view -> Choose canvas.html
- edit canvas.html value to
<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> - edit canvas.js value to
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();
} - right-clicking the gadget file (gadget.xml) and selecting OSDE->'Run this application'
- select View: Canvas
- select width: 100
- select Owner: john.doe
- select Viewer: george.doe
- select TAIWAN
- select Language: Chinese (zh)
- 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 |
- right-click the gadget spec (gadget.xml) and select OSDE->Create Java Project for Restful Protocol
- enter project name 'OSDERestfulTest'
|
- 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' |
- change the variable 'VIEWER_ID' value to 'canonical'
- run the application
|
- show new created project named 'OSDERestfuTest' with OpenSocial Java Client Library and a Sample.java
- Console shows
Viewer: canonical
Friend: george.doe
Friend: jane.doe
Friend: john.doe
|
Shindig server should remain running for the client application to work
|
Windows VistaTODO: test spec in windows vista LinuxTODO: test spec in linux
|
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.