harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Beliaev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-752) Simple automated Eclipse scenario
Date Fri, 22 Dec 2006 15:59:23 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-752?page=comments#action_12460527 ] 
            
Vladimir Beliaev commented on HARMONY-752:
------------------------------------------

I have couple notes:

1. I've used eclipse-SDK-3.2.1-win32.zip to run HelloAuto. It turned out that recommended
eclipse-test-framework-3.2.zip is NOT required. The test passed corrrectly (on RI) w/o it
(I've just unpacked eclipse-SDK-3.2.1-win32.zip and  then unpacked attached eclipsehwa.zip
to resulted 'eclipse' directory).

2. It may worth using the PlainJUnitResultFormatter to get the test output to appear in console
you run the test from. So, the test run command may be:

SUITE=HelloAuto.CreateAndRunTest

java \
         -jar eclipse/startup.jar \
         -application org.eclipse.test.uitestapplication \
         -dev bin \
         -data workspace \
         formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter
\
         -testPluginName HelloAuto \
         -className HelloAuto.CreateAndRunTest

Thanks
Vladimir

> Simple automated Eclipse scenario
> ---------------------------------
>
>                 Key: HARMONY-752
>                 URL: http://issues.apache.org/jira/browse/HARMONY-752
>             Project: Harmony
>          Issue Type: Test
>            Reporter: Anton Luht
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: 752-ant-diff.txt, eclipsehwa.zip, HelloAuto.zip
>
>
> Attached is an automated Eclipse scenario that :
> - opens workspace/editor
> - creates a new project
> - creates a class in this project
> - builds the project
> - closes the workspace/editor
> It is based on the code provided by Salikh Zakirov : http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200606.mbox/%3c44A12E65.6020607@Intel.com%3e
> To run the test, unzip the contents of the attached file into <eclipse 3.1.1 home>/eclipse/plugins
directory and run the following command 
> <vm name> -cp <eclipse 3.1.1 home>/eclipse/startup.jar org.eclipse.core.launcher.Main
-application org.eclipse.test.uitestapplication -dev bin -testpluginname HelloAuto -classname
HelloAuto.CreateAndRunTest 
> this command will be run in your usual Eclipse workspace. To run it in a temporary workspace,
append
> -data <path to tmp dir>
> To see XML output of the test, please use
> <vm name> -cp <eclipse 3.1.1 home>/eclipse/startup.jar org.eclipse.core.launcher.Main
-application org.eclipse.test.uitestapplication formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter
-dev bin -testpluginname HelloAuto -classname HelloAuto.CreateAndRunTest 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message