Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] problem when running WTP automated tests.

Hi,

I have run into issues when running WTP automated tests and hope to get
some feedbacks or ideas on how to resolve them.
I would really appreciate it if you could also share your experiences on
running the tests and how long does it take to run all the tests.
I assume this is the correct list to post my questions.  I apologize if
it is not.

Our team is developing a server adapter for the Oracle application
server that we would like to contribute to Eclipse WTP.  We would like
to learn the process to build WTP and run the automated tests.  It would
be fine if we can get the tests running for the moment.
I have followed the WTP Builds document as carefully as I can to
configure my build machine.  I believe I have the requisite setup.

I am avoiding the dependency on the build completing successfully by
downloading builds from Eclipse. I have downloaded the
wtp-I20050727.zip, wtp-jst-Automated-Tests-N20050726.zip, and
wtp-wst-Automated-Tests-N20050726.zip and renamed them instead of
modifying Ant scripts and properties files.

I am trying to run the tests without CruiseControl first.  I have run
the "ant -f buildall.xml test" under E:\WTP_Build\releng.builder\scripts
and seen java processes spawned to run the tests.  However, one java
process running PIAgent(Profiling?) target never finishes.  Only once
did I see that test results were produced and placed under
E:\WTP_Build\test-current-N\results\html.  However, I am not able to reproduce.

I checked the java process properties (see below) and noticed that there are some missing properties. But, I am not clear on how critical the properties are.

-----------------------
java -cp E:\WTP_Build/test-current-N/eclipse/startup.jar
-XrunpiAgent:server=standalone,profile=E:\WTP_Build/test-current-N/piagent/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/apiagent/piagent_options.txt,filters=E:\WTP_Build/test-current-N/piagent/piagent_filters.txt,file=E:\WTP_Build/build-current-N/workdir/apitools/piagentoutput/org.eclipse.wst.server.core.tests-org.eclipse.wst.server.core.tests.AllTests.trcxml
-Xmx512M org.eclipse.core.launcher.Main -application
org.eclipse.test.coretestapplication -dev bin -data
E:\WTP_Build\test-current-N/eclipse/wst_folder
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,E:\WTP_Build/test-current-N/eclipse/org.eclipse.wst.server.core.tests.AllTests.xml
-testPluginName org.eclipse.wst.server.core.tests -className
org.eclipse.wst.server.core.tests.AllTests -os win32 -ws win32 -arch x86
-consolelog
-----------------------

So, does this look like a reasonable way to run automated tests?  What
should I do if I would like to run test plugins in command line?  I.e.,
what are the critical properties for VM and test plugin?

Thank you very much,
Justin Chen
Oracle




Back to the top