Setting Workspace location property in commandline invocation [message #122255] |
Wed, 06 February 2008 03:56  |
Eclipse User |
|
|
|
Originally posted by: gopi_tptp.yahoo.com
Hi,
i am trying to launch a test case from commandline by using the java
program.
i am using the following code
// Create the Java adapter associated with the specified Eclipse home
AutomationClientAdapter automation = new AutomationClientAdapter
("d:\\development\\eclipse");
// Create and configure a properties object
Properties properties = new Properties();
properties.setProperty("workspace", "D:\\development\\workspace");
properties.setProperty("project", "tests");
properties.setProperty("suite", "unit-tests/testA.testsuite");
// Execute the service named below using the configured properties
automation.execute("org.eclipse.hyades.test.tools.core.execute ",
properties);
i want to set the workspace location in the above code.
i want to know that, is there any property to set or own workspace
location.
Thnaks,
gopi.
|
|
|
Re: Setting Workspace location property in commandline invocation [message #122279 is a reply to message #122255] |
Wed, 06 February 2008 06:29   |
Eclipse User |
|
|
|
Hi gopi,
I am not sure I understand your question since you already set teh
workspace location. If you want to set a deployment to be used, you can set
the deployment property to teh absolute path of your *.deployment file. See
http://help.eclipse.org/help32/topic/org.eclipse.hyades.test .doc.user/ref/rsupported-test-execution-service-properties.h tm.
Paul
"gopi" <gopi_tptp@yahoo.com> wrote in message
news:b8aec8273add9751c2112c0594802de6$1@www.eclipse.org...
> Hi,
> i am trying to launch a test case from commandline by using the java
> program.
> i am using the following code
> // Create the Java adapter associated with the specified Eclipse home
> AutomationClientAdapter automation = new AutomationClientAdapter
> ("d:\\development\\eclipse");
> // Create and configure a properties object
> Properties properties = new Properties();
> properties.setProperty("workspace", "D:\\development\\workspace");
> properties.setProperty("project", "tests");
> properties.setProperty("suite", "unit-tests/testA.testsuite");
>
> // Execute the service named below using the configured properties
> automation.execute("org.eclipse.hyades.test.tools.core.execute ",
> properties);
>
> i want to set the workspace location in the above code.
> i want to know that, is there any property to set or own workspace
> location.
>
> Thnaks,
> gopi.
>
|
|
|
|
|
|
|
|
|
Re: Setting Workspace location property in commandline invocation [message #123932 is a reply to message #122495] |
Mon, 25 February 2008 06:54  |
Eclipse User |
|
|
|
As mentioned in the documentation, the results property points to an
..execution file, which you are missing:
results (absolute, relative or project-relative, optional, default is
dependent on test type but usually in the project root, examples are
"d:\tests\results\test.execution" and "results/test.execution")
PS
"gopi" <gopi_tptp@yahoo.com> wrote in message
news:de21c5e2c4241c1627c1d8d77866e6b9$1@www.eclipse.org...
> hi,
> i have used the property results, but the command line invocation is
> creating the folder TPTP-Auto-Workspace-1202453723288 instead of TPTPlogs.
> i have mentioned results as shown below
>
> properties.setProperty("results","C:\\TPTP\\eclipse\\gopi\\TestContainer\\TPTPlogs ");
>
>
> thanks gopi.
>
|
|
|
Powered by
FUDForum. Page generated in 0.72904 seconds