Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » RAC and JUnit deployment
RAC and JUnit deployment [message #53964] Fri, 17 February 2006 16:41 Go to next message
Bertrand Quenin is currently offline Bertrand QueninFriend
Messages: 70
Registered: July 2009
Member
Hi All,

I'v read many posts about RAC and IAC, and i can't figure what i'm doing
wrong ... Here is my problem.
I just installed TPTP 4.1.0.1, with required dependencies and i have
created a simple TPTP JUnit test that I can run locally (i guess with the
IAC). What i want to do now is to execute this test remotly (in fact it's
a fake remote test since i want to use the RAC that i installed on the
same host).

1. First question: if i undertood well, i have to use the Agent
controller from TPTP 3.3.0 release since i'm using Windows 2003 Server
with an Intel core as a server. This particular point is really fuzzy,
since the information is hard to get. Indeed, there's no link for the
"regular" agent controller architecture under the TPTP 4.*.*.* download
pages. Maybe i'm wrong, but it's the only RAC that runs on my server, so
it's the one i'm using.

2. I've unpacked it into C:\RAServer, launched the config script,
installed it as a service and started the service. No problem at all, the
server seems to be running and when i checked for the ports (10002, 10003
and 10005) with "netstat -a", ports are here and listening.

3. I've then read the doc about creating a remote JUnit test, created a
test artefact referencing my Junit test suite, created a location with my
server host as parameter (i can't find the port parameter ...), created a
deployment associating the artefact and the location, and finally, created
a run profile using my new deployment instead of the local deployment.
Things going bad from here, I've noticed that my IAC and RAC are
conflicting so i changed ports of my RAC installation (i don't know how to
configure the IAC).

3.1: How do i configure the ports of the IAC (internal agent
controller), where is the serviceconfig.xml file of the IAC ?
3.2: How can i disable the IAC ?
3.3: Where am i supposed to set the port of my RAC (remote agent
controller) in the location asset ?? Since i changed the default ports, i
have to notify the location asset which port to use, i guess ...


This is the first bunch of questions. I have more general questions.
4: What do i need to install on the RAC host ? Is RAC installtion
sufficient or do i need to install eclipse, TPTP, and dependencies ??

4.1: If i need to install eclipse and TPTP on the RAC host, how must i
configure RAC in order to get it using this eclipse installation.

5: How do i run a TPTP Junit test from a script without an agent
controller ? Is an agent controller needed ? I guess so, but ican't get it
to work. By the way, i can't fin any sample about running a TPTP test from
a sh script or a batch script, i mean a real sample, with commands to
call, environement to set and so on.

6: I can see Agent controller and new Agent controller, as i'm using the
Agent controller from TPTP 3.3.0 (because i can't find another), what's
the difference and can i use the "old" agent controller with TPTP 4.1.0.1
or do i have to get the new one, and if yes where ?

I think that's all =)

Any answer about this would be greatly appreciated since i'm fighting
with this remote Junit test thingy for weeks now !!

Best regards
BQ.
Re: RAC and JUnit deployment [message #54342 is a reply to message #53964] Wed, 22 February 2006 14:04 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Bertrand,
Let me try to answer your questions inline:

Paul
"Bertrand Quenin" <bquenin@axway.com> wrote in message
news:9f09af3f0213a6819846c7bd3a60abb6$1@www.eclipse.org...
> Hi All,
>
> I'v read many posts about RAC and IAC, and i can't figure what i'm doing
> wrong ... Here is my problem.
> I just installed TPTP 4.1.0.1, with required dependencies and i have
> created a simple TPTP JUnit test that I can run locally (i guess with the
> IAC). What i want to do now is to execute this test remotly (in fact it's
> a fake remote test since i want to use the RAC that i installed on the
> same host).

Running a test locally and remotly only differs by the physical host
specififed in your location asset. The rest is transparent, assumming the
Agent Contorller or IAC is running on the target host.

> 1. First question: if i undertood well, i have to use the Agent
> controller from TPTP 3.3.0 release since i'm using Windows 2003 Server
> with an Intel core as a server. This particular point is really fuzzy,
> since the information is hard to get. Indeed, there's no link for the
> "regular" agent controller architecture under the TPTP 4.*.*.* download
> pages. Maybe i'm wrong, but it's the only RAC that runs on my server, so
> it's the one i'm using.

The WINDOWS-IA32 Agent Controller
( http://www.eclipse.org/tptp/home/downloads/downloads.php?url =drops/TPTP-4.0
..1.1.html&link=link4) will work on Windows 2003 Server.

> 2. I've unpacked it into C:\RAServer, launched the config script,
> installed it as a service and started the service. No problem at all, the
> server seems to be running and when i checked for the ports (10002, 10003
> and 10005) with "netstat -a", ports are here and listening.
>
> 3. I've then read the doc about creating a remote JUnit test, created a
> test artefact referencing my Junit test suite, created a location with my
> server host as parameter (i can't find the port parameter ...), created a
> deployment associating the artefact and the location, and finally, created
> a run profile using my new deployment instead of the local deployment.
> Things going bad from here, I've noticed that my IAC and RAC are
> conflicting so i changed ports of my RAC installation (i don't know how to
> configure the IAC).

The IAC and Agent Controller should not conflict. At any time if the Agent
Controller starts runnning, the IAC termiantes opertion and vise-versa.
Please open a defect in the TPTP Bugzilla DB
( https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=T PTP) for this
probelm.

> 3.1: How do i configure the ports of the IAC (internal agent
> controller), where is the serviceconfig.xml file of the IAC ?

Actauly IAC stands for Inetergrated Agent Conotrller. Its configuratrion is
in:

<TPTP install
directory> \eclipse\plugins\org.eclipse.hyades.execution_4.1.0.20060220 1244\i
ac-runtime

Moving forward, we will have a perfernce dialog for some more common IAC
settings.

> 3.2: How can i disable the IAC ?

It is slef-disabling as mentioned above.

> 3.3: Where am i supposed to set the port of my RAC (remote agent
> controller) in the location asset ?? Since i changed the default ports, i
> have to notify the location asset which port to use, i guess ...

This is a defect. I have opened defect
https://bugs.eclipse.org/bugs/show_bug.cgi?id=128969.

> This is the first bunch of questions. I have more general questions.
> 4: What do i need to install on the RAC host ? Is RAC installtion
> sufficient or do i need to install eclipse, TPTP, and dependencies ??

Only the Agent Controller is required on the target host.

> 4.1: If i need to install eclipse and TPTP on the RAC host, how must i
> configure RAC in order to get it using this eclipse installation.

See above.

> 5: How do i run a TPTP Junit test from a script without an agent
> controller ? Is an agent controller needed ? I guess so, but ican't get it
> to work. By the way, i can't fin any sample about running a TPTP test from
> a sh script or a batch script, i mean a real sample, with commands to
> call, environement to set and so on.

The Agent Controller will always be needs for test execution. You may find
more informaiton on the Automatable Service Framework (eg.. launching tests
from scripts and applications) from:

Help >> Help Content >> TPTP Tester guide >> Performance testing with TPTP
>> Launching tests from scripts and applications

> 6: I can see Agent controller and new Agent controller, as i'm using the
> Agent controller from TPTP 3.3.0 (because i can't find another), what's
> the difference and can i use the "old" agent controller with TPTP 4.1.0.1
> or do i have to get the new one, and if yes where ?

From a compatibility standpoint, both Agent Controller are equivilent. For
TPTP V4.1.0.1, use the 'old' Agent Contoller. For more information on the
new Agent Contorller, see:

http://eclipse.org/tptp/home/downloads/releasenotes/agentcon troller_new/releasenotes4_1_0.html

> I think that's all =)
>
> Any answer about this would be greatly appreciated since i'm fighting
> with this remote Junit test thingy for weeks now !!
>
> Best regards
> BQ.
>
Re: RAC and JUnit deployment [message #54369 is a reply to message #53964] Wed, 22 February 2006 14:29 Go to previous message
Samson Wai is currently offline Samson WaiFriend
Messages: 46
Registered: July 2009
Member
Hi Bertrand,

Thanks for your interest in using the RAC and IAC. First of all, the
TPTP 4.1 RAC is available from the following URL:

http://www.eclipse.org/tptp/home/downloads/downloads.php?url =drops/TPTP-4.1.0.html&link=link1

They are located under the section "Agent Controller" and should be able
to run on your Intel Core server.

If you have started the RAC on the same machine you run Eclipse + TPTP,
you are by default using the RAC but not the IAC. The IAC will be used
whenever there is no running RAC on the local machine. Since the IAC is
integrated with the Eclipse workbench, there is no configuration
required. Also, since IAC is only for local use, it is not listening to
any socket at all.

Currently it is not possible to disable IAC explicitly. You can only do
so by starting a RAC on the local machine which prevents the IAC from
being used.

You can change the RAC port to use for Test by selecing
"Window->Preference..." from Eclipse and under the "Test" category you
can enter whatever port you want to use as well as the default host.

If you are planning to deploy test cases remotely to another machine,
you will just need the RAC as well as a supported Java runtime installed
on that remote machine. Eclipse and TPTP are not required on the remote
side.

Currently I don't think you can run a TPTP JUnit test case all by itself
since it is dependent on the TPTP Execution Framework - which in turn
depends on the RAC/IAC.

Regarding the new Agent Controller, it was release from TPTP 4.0 as a
technology preview. In TPTP 4.1 it is available on the Intel-based
platforms but it does not have the capability to run TPTP Test yet.
Therefore, you may have to stick with the RAC for the TPTP 4.1 release.


Regards,

Samson


Bertrand Quenin wrote:
> Hi All,
>
> I'v read many posts about RAC and IAC, and i can't figure what i'm
> doing wrong ... Here is my problem.
> I just installed TPTP 4.1.0.1, with required dependencies and i have
> created a simple TPTP JUnit test that I can run locally (i guess with
> the IAC). What i want to do now is to execute this test remotly (in fact
> it's a fake remote test since i want to use the RAC that i installed on
> the same host).
>
> 1. First question: if i undertood well, i have to use the Agent
> controller from TPTP 3.3.0 release since i'm using Windows 2003 Server
> with an Intel core as a server. This particular point is really fuzzy,
> since the information is hard to get. Indeed, there's no link for the
> "regular" agent controller architecture under the TPTP 4.*.*.* download
> pages. Maybe i'm wrong, but it's the only RAC that runs on my server, so
> it's the one i'm using.
>
> 2. I've unpacked it into C:\RAServer, launched the config script,
> installed it as a service and started the service. No problem at all,
> the server seems to be running and when i checked for the ports (10002,
> 10003 and 10005) with "netstat -a", ports are here and listening.
>
> 3. I've then read the doc about creating a remote JUnit test, created a
> test artefact referencing my Junit test suite, created a location with
> my server host as parameter (i can't find the port parameter ...),
> created a deployment associating the artefact and the location, and
> finally, created a run profile using my new deployment instead of the
> local deployment. Things going bad from here, I've noticed that my IAC
> and RAC are conflicting so i changed ports of my RAC installation (i
> don't know how to configure the IAC).
>
> 3.1: How do i configure the ports of the IAC (internal agent
> controller), where is the serviceconfig.xml file of the IAC ?
> 3.2: How can i disable the IAC ?
> 3.3: Where am i supposed to set the port of my RAC (remote agent
> controller) in the location asset ?? Since i changed the default ports,
> i have to notify the location asset which port to use, i guess ...
>
>
> This is the first bunch of questions. I have more general questions.
> 4: What do i need to install on the RAC host ? Is RAC installtion
> sufficient or do i need to install eclipse, TPTP, and dependencies ??
>
> 4.1: If i need to install eclipse and TPTP on the RAC host, how must i
> configure RAC in order to get it using this eclipse installation.
>
> 5: How do i run a TPTP Junit test from a script without an agent
> controller ? Is an agent controller needed ? I guess so, but ican't get
> it to work. By the way, i can't fin any sample about running a TPTP test
> from a sh script or a batch script, i mean a real sample, with commands
> to call, environement to set and so on.
>
> 6: I can see Agent controller and new Agent controller, as i'm using
> the Agent controller from TPTP 3.3.0 (because i can't find another),
> what's the difference and can i use the "old" agent controller with TPTP
> 4.1.0.1 or do i have to get the new one, and if yes where ?
>
> I think that's all =)
>
> Any answer about this would be greatly appreciated since i'm fighting
> with this remote Junit test thingy for weeks now !!
>
> Best regards
> BQ.
>
Previous Topic:Automated GUI Recorder issues
Next Topic:Code Coverage within a method
Goto Forum:
  


Current Time: Tue Apr 16 14:21:56 GMT 2024

Powered by FUDForum. Page generated in 0.85157 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top