Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » URL Test : How to change hostname ?
URL Test : How to change hostname ? [message #135124] Wed, 27 August 2008 13:14 Go to next message
Martin Carmichael is currently offline Martin CarmichaelFriend
Messages: 7
Registered: July 2009
Junior Member
Hello,

When recording a web application, the recorded test suite is to be opened
in the URL Test editor. This editor allows to change recorded HTTP
requests, before the test's Java source is generated and compiled.

Suppose I would like to run the URL test on different machines like
development or acceptance web server:

What happen if I want to run the same test against another machine (new
hostname) ? Do I have to manually search and replace all hard-coded
references to host name in the URL test editor and re-generate java source
?

It would be convenient to use a variable or parameter that could be
configured at run-time.

Thank you,
Re: URL Test : How to change hostname ? [message #135163 is a reply to message #135124] Thu, 28 August 2008 10:24 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Martin,
You can run the test on any remote machine, assuming it has the Agent
Controller installed. However, I believe you are interested in changing the
host where the web application is running, which has to be done manually.
You can open the *.testsuite file with WinZip or any other uncompress
utility and do a bulk change in the ResourceContents file.

Paul
"Martin Carmichael" <carmichael_martin@hotmail.com> wrote in message
news:4dc667fbd854ede34ff2f0a3729cbc82$1@www.eclipse.org...
> Hello,
>
> When recording a web application, the recorded test suite is to be opened
> in the URL Test editor. This editor allows to change recorded HTTP
> requests, before the test's Java source is generated and compiled.
>
> Suppose I would like to run the URL test on different machines like
> development or acceptance web server:
>
> What happen if I want to run the same test against another machine (new
> hostname) ? Do I have to manually search and replace all hard-coded
> references to host name in the URL test editor and re-generate java source
> ?
>
> It would be convenient to use a variable or parameter that could be
> configured at run-time.
>
> Thank you,
>
>
>
>
>
>
Re: URL Test : How to change hostname ? [message #135201 is a reply to message #135163] Thu, 28 August 2008 14:16 Go to previous messageGo to next message
Martin Carmichael is currently offline Martin CarmichaelFriend
Messages: 7
Registered: July 2009
Junior Member
Paul,
I am not sure I understand TPTP URL tests very well.

I need to do functional web application tests. So I Use TPTP recording
against a web application hosted on a given machine. As far as I know,
there is no agent controller installed on the given remote machine.

Suppose I record web session at google. google is the remote host I test
against and there is no agent controller there. I just want to record and
replay back my tests cases.
Re: URL Test : How to change hostname ? [message #135458 is a reply to message #135201] Fri, 05 September 2008 10:50 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Martin,
The TPTP URL Test type is used to performance test web applications,
commonly referred to as URL blasting. You can do some level of functional
testing, such as ensuring the page is available. However, the TPTP URL test
type is not intended for functional verification (e.g. page title
verification). You could manually modify the generated JUnit test code with
asserts on the various properties of the HTTP response and/or returned
resource/page.

When recording, you only need the Agent Controller or Integrated Agent
Controller on the local host (recording is only supported on the local
host). However, during playback, the test is deployed and execution on the
target host (maybe the local host), which requires the Agent Controller to
be running. The test will execute on the target host, by invoking HTTP
requests on the web application, possibly running on a different host.

Paul
"Martin Carmichael" <carmichael_martin@hotmail.com> wrote in message
news:2bbe6ea5c13197a1afe712234901c983$1@www.eclipse.org...
> Paul,
> I am not sure I understand TPTP URL tests very well.
>
> I need to do functional web application tests. So I Use TPTP recording
> against a web application hosted on a given machine. As far as I know,
> there is no agent controller installed on the given remote machine.
>
> Suppose I record web session at google. google is the remote host I test
> against and there is no agent controller there. I just want to record and
> replay back my tests cases.
>
Previous Topic:Profiling show no information when I use attach to an existing process method
Next Topic:Problems with Agent Controller
Goto Forum:
  


Current Time: Sat Apr 20 00:11:26 GMT 2024

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

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

Back to the top