There is a test harness for Wonderland designed to simulate multiple clients. It takes a bit of work to set up, but once it is running, it can be a good way to do automated load testing.
This message describes how to set up the test harness:
On Fri, Nov 12, 2010 at 1:56 PM, Roland Sassen <sas...@thinsia.com> wrote: > I got the green lights to use a huge computer centre for tests, ideas > are welcome. > Roland
Thanks Jonathan, when ant dist or ant deploy
I am getting :
ant deploy
Buildfile: /home/wonderschool/trunk/wonderland-modules/unstable/testharness-usersim/bu ild.xml
build-harness:
-test-init:
compile-common:
[javac] /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
jar-common:
compile-manager-common:
[javac] /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
compile-master:
[javac] /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
jar-master:
compile-slave:
[javac] /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 2 source files to /home/wonderschool/trunk/wonderland/test/harness/build/classes
[javac] /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:105: error: method setUserDirectory in class ClientContext cannot be applied to given types;
[javac] ClientContext.setUserDirectory(userDir);
[javac] ^
[javac] required: File,boolean
[javac] found: File
[javac] reason: actual and formal argument lists differ in length
[javac] /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:431: error: Client3DSim.FakeMainFrame is not abstract and does not override abstract method addToPlacemarksMenu(JMenuItem,int,PlacemarkType) in MainFrame
[javac] class FakeMainFrame implements MainFrame {
[javac] ^
[javac] /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:640: error: Client3DSim.BlacklistPluginFilter is not abstract and does not override abstract method shouldDownload(ServerSessionManager,JarURI) in PluginFilter
[javac] class BlacklistPluginFilter implements PluginFilter {
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 errors
BUILD FAILED
/home/wonderschool/trunk/wonderland-modules/unstable/testharness-usersim/bu ild.xml:21: The following error occurred while executing this line:
/home/wonderschool/trunk/wonderland/test/harness/build.xml:82: The following error occurred while executing this line:
/home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39: Compile failed; see the compiler error output for details.
> There is a test harness for Wonderland designed to simulate multiple > clients. It takes a bit of work to set up, but once it is running, it > can be a good way to do automated load testing.
> This message describes how to set up the test harness:
> Thanks Jonathan, when ant dist or ant deploy
> I am getting :
> ant deploy
> Buildfile:
> /home/wonderschool/trunk/wonderland-modules/unstable/testharness-usersim/bu ild.xml
> build-harness:
> -test-init:
> compile-common:
> [javac]
> /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39:
> warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds
> jar-common:
> compile-manager-common:
> [javac]
> /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39:
> warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds
> compile-master:
> [javac]
> /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39:
> warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds
> jar-master:
> compile-slave:
> [javac]
> /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39:
> warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds
> [javac] Compiling 2 source files to
> /home/wonderschool/trunk/wonderland/test/harness/build/classes
> [javac]
> /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:105:
> error: method setUserDirectory in class ClientContext cannot be applied
> to given types;
> [javac] ClientContext.setUserDirectory(userDir);
> [javac] ^
> [javac] required: File,boolean
> [javac] found: File
> [javac] reason: actual and formal argument lists differ in length
> [javac]
> /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:431:
> error: Client3DSim.FakeMainFrame is not abstract and does not override
> abstract method addToPlacemarksMenu(JMenuItem,int,PlacemarkType) in
> MainFrame
> [javac] class FakeMainFrame implements MainFrame {
> [javac] ^
> [javac]
> /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:640:
> error: Client3DSim.BlacklistPluginFilter is not abstract and does not
> override abstract method shouldDownload(ServerSessionManager,JarURI) in
> PluginFilter
> [javac] class BlacklistPluginFilter implements PluginFilter {
> [javac] ^
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 3 errors
> BUILD FAILED
> /home/wonderschool/trunk/wonderland-modules/unstable/testharness-usersim/bu ild.xml:21:
> The following error occurred while executing this line:
> /home/wonderschool/trunk/wonderland/test/harness/build.xml:82: The
> following error occurred while executing this line:
> /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39:
> Compile failed; see the compiler error output for details.
Now, it updates Java 7 to the latest version for me. Nice! And it seems to install it better than any other method I've found. When you are done, open Alternatives Configurator and check them all, making sure that every java application is linked to /usr/lib/jvm/java-7-oracle
to the appropriate subdirectories and binaries. Quite often, one gets missed. I have no other form of java directories other than this one, in /usr/lib/jvm No OpenJDK 6 or 7 or anything else.
-- My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html
I am on Ubuntu 12.04 Java 1.7.0-b147 vm 210-bi7 installed from the info here <http://www.liberiangeek.net/2012/04/install-oracle-java-jdk-7-in-ubun...>
I followed you links but the java version did not change,
also the ant failere is still there,
with many other wonderland modules ant works fine,
thanks Roland
>> warning: 'includeantruntime' was not set, defaulting to
>> build.sysclasspath=last; set to false for repeatable builds
>> [javac] Compiling 2 source files to
>> /home/wonderschool/trunk/wonderland/test/harness/build/classes
>> [javac]
>> /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:105:
>> error: method setUserDirectory in class ClientContext cannot be applied
>> to given types;
>> [javac] ClientContext.setUserDirectory(userDir);
>> [javac] ^
>> [javac] required: File,boolean
>> [javac] found: File
>> [javac] reason: actual and formal argument lists differ in length
>> [javac]
>> /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:431:
>> error: Client3DSim.FakeMainFrame is not abstract and does not override
>> abstract method addToPlacemarksMenu(JMenuItem,int,PlacemarkType) in
>> MainFrame
>> [javac] class FakeMainFrame implements MainFrame {
>> [javac] ^
>> [javac]
>> /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:640:
>> error: Client3DSim.BlacklistPluginFilter is not abstract and does not
>> override abstract method shouldDownload(ServerSessionManager,JarURI) in
>> PluginFilter
>> [javac] class BlacklistPluginFilter implements PluginFilter {
>> [javac] ^
>> [javac] Note: Some input files use unchecked or unsafe operations.
>> [javac] Note: Recompile with -Xlint:unchecked for details.
>> [javac] 3 errors
>> The following error occurred while executing this line:
>> /home/wonderschool/trunk/wonderland/test/harness/build.xml:82: The
>> following error occurred while executing this line:
>> /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39:
>> Compile failed; see the compiler error output for details.
> Now, it updates Java 7 to the latest version for me. Nice! And it > seems to install it better than any other method I've found. When you > are done, open Alternatives Configurator and check them all, making > sure that every java application is linked to /usr/lib/jvm/java-7-oracle
> to the appropriate subdirectories and binaries. Quite often, one gets > missed. I have no other form of java directories other than this one, > in /usr/lib/jvm No OpenJDK 6 or 7 or anything else.
> I am on Ubuntu 12.04 Java 1.7.0-b147 vm 210-bi7 installed from the > info here > <http://www.liberiangeek.net/2012/04/install-oracle-java-jdk-7-in-ubun...>
> I followed you links but the java version did not change,
> also the ant failere is still there,
> with many other wonderland modules ant works fine,
> thanks Roland
> On 5-5-2012 5:20, Ric Moore wrote:
>> On 05/04/2012 06:17 AM, Roland Sassen wrote:
>>> Thanks Jonathan, when ant dist or ant deploy
>>> I am getting :
>>> ant deploy
>>> Buildfile:
>>> /home/wonderschool/trunk/wonderland-modules/unstable/testharness-usersim/bu ild.xml
>>> warning: 'includeantruntime' was not set, defaulting to
>>> build.sysclasspath=last; set to false for repeatable builds
>>> [javac] Compiling 2 source files to
>>> /home/wonderschool/trunk/wonderland/test/harness/build/classes
>>> [javac]
>>> /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:105:
>>> error: method setUserDirectory in class ClientContext cannot be applied
>>> to given types;
>>> [javac] ClientContext.setUserDirectory(userDir);
>>> [javac] ^
>>> [javac] required: File,boolean
>>> [javac] found: File
>>> [javac] reason: actual and formal argument lists differ in length
>>> [javac]
>>> /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:431:
>>> error: Client3DSim.FakeMainFrame is not abstract and does not override
>>> abstract method addToPlacemarksMenu(JMenuItem,int,PlacemarkType) in
>>> MainFrame
>>> [javac] class FakeMainFrame implements MainFrame {
>>> [javac] ^
>>> [javac]
>>> /home/wonderschool/trunk/wonderland/test/harness/src/classes/org/jdesktop/w onderland/testharness/slave/client3D/Client3DSim.java:640:
>>> error: Client3DSim.BlacklistPluginFilter is not abstract and does not
>>> override abstract method shouldDownload(ServerSessionManager,JarURI) in
>>> PluginFilter
>>> [javac] class BlacklistPluginFilter implements PluginFilter {
>>> [javac] ^
>>> [javac] Note: Some input files use unchecked or unsafe operations.
>>> [javac] Note: Recompile with -Xlint:unchecked for details.
>>> [javac] 3 errors
>>> The following error occurred while executing this line:
>>> /home/wonderschool/trunk/wonderland/test/harness/build.xml:82: The
>>> following error occurred while executing this line:
>>> /home/wonderschool/trunk/wonderland/build-tools/build-scripts/build-setup.x ml:39:
>>> Compile failed; see the compiler error output for details.
>> Now, it updates Java 7 to the latest version for me. Nice! And it >> seems to install it better than any other method I've found. When you >> are done, open Alternatives Configurator and check them all, making >> sure that every java application is linked to /usr/lib/jvm/java-7-oracle
>> to the appropriate subdirectories and binaries. Quite often, one gets >> missed. I have no other form of java directories other than this one, >> in /usr/lib/jvm No OpenJDK 6 or 7 or anything else.
> I am on Ubuntu 12.04 Java 1.7.0-b147 vm 210-bi7 installed from the info
> here
> <http://www.liberiangeek.net/2012/04/install-oracle-java-jdk-7-in-ubun...>
> I followed you links but the java version did not change,
> also the ant failere is still there,
> with many other wonderland modules ant works fine,
> thanks Roland
Looks like you have several javas. One you installed manually and the other was the result of using the repo method? I settled down to the repo method, letting it install oracle-java for me, then I ran alternatives-configurator and laboriously deleted every old java entry, so that only one java existed to the system. I do wish Oracle would play nicer. I had less problems using mono to compile dot-net code. Now, if you followed that webpage it would have you installing 32bit java if you followed the examples.
wayward4now@iam:~$ java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
See? 64bit. Check your's to make sure you have the type you wanted. I didn't have to do a thing and I'm already updated to revision 4. Before I was beating my brains out. I can send you more details if you need. Ric
-- My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html
I have no openjdk installed at all. I wonder what the status remark "auto" is?
-- My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html