Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364662 - Let client tests use real resources
Summary: Let client tests use real resources
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.5   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 1.5 M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 351769
  Show dependency tree
 
Reported: 2011-11-23 18:17 EST by Ralf Sternberg CLA
Modified: 2011-11-28 08:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Sternberg CLA 2011-11-23 18:17:43 EST
The client tests currently use a servlet that delivers all resource files listed in the ClientResources class.
Since theming definitions are not included, those have to be copied manually after every theme change.

The test results would be more meaningful if they used the exact resources from a running RAP instance.
This would also allow us to run the tests in development and production mode. Theme changes would not break the tests anymore.
And, we could easily deploy our tests on the demo server (bug 351769).
Comment 1 Ralf Sternberg CLA 2011-11-23 18:26:19 EST
The client tests now start a RAP application that provides the resources. A service handler returns the actual resource locations for the client library and the default theme.
Comment 2 Ralf Sternberg CLA 2011-11-28 08:16:18 EST
It turned out that this change made test-driven development difficult, since the test server needs to be restarted after every change. Moreover, having separate JavaScipt files makes debugging easier on the client.

Therefore I re-installed the ClientResourcesAdapter and let the ClientResourcesServiceHandler deliver the resources. With this change, the theming resources are still loaded from a live RAP application, so the tests don't have to be adjusted after theming changes. It is still possible to deploy the js tests on a server.