Setting Workspace location property in commandline invocation [message #122255] |
Wed, 06 February 2008 08: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 11:29 |
Paul Slauenwhite Messages: 975 Registered: July 2009 |
Senior Member |
|
|
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 #122351 is a reply to message #122279] |
Thu, 07 February 2008 08:37 |
Eclipse User |
|
|
|
Originally posted by: gopi_tptp.yahoo.com
hi,
Actual i had set the workspace lovcation as
${workspace_loc}/TestContainer/TPTPlogs in tptp gui, so that all of my
stuff goes in to the TPTPlogs Folder when iam running the testcases from
gui.
when iam running the test cases from command line by using java program,
a folder with random name TPTP-43434....... folder is creted instead of
creating TPTPlogs folder.
i hope that my problem is clear.
thanks,
gopi
|
|
|
|
Re: Setting Workspace location property in commandline invocation [message #122495 is a reply to message #122373] |
Fri, 08 February 2008 07:01 |
Eclipse User |
|
|
|
Originally posted by: gopi_tptp.yahoo.com
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.
|
|
|
Re: Setting Workspace location property in commandline invocation [message #123039 is a reply to message #122495] |
Tue, 12 February 2008 05:48 |
Eclipse User |
|
|
|
Originally posted by: gopi_tptp.yahoo.com
gopi wrote:
> 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.
hi paul,
can u suggest a solution for me to the problem which i had mentioned.
thanks,
gopi
|
|
|
|
|
Re: Setting Workspace location property in commandline invocation [message #123932 is a reply to message #122495] |
Mon, 25 February 2008 11:54 |
Paul Slauenwhite Messages: 975 Registered: July 2009 |
Senior Member |
|
|
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.04069 seconds