ewcia | 2 Jan 2008 10:52
Picon
Favicon

Problem with recording test script


Hi all. I just don't know how to record a test script.
I set the HTTP proxy in WorkBench, I set this proxy in my webbrowser and
when I'm trying to acces my page I get Error 404 - Not Found.   
The problem is that port is not default - 80 but 7002 so the start adress of
my application is http://domainName:7002/example_page.   When I'm trying to
record something on Google there is no problem.
What can I do?
--

-- 
View this message in context: http://www.nabble.com/Problem-with-recording-test-script-tp14575612p14575612.html
Sent from the JMeter - User mailing list archive at Nabble.com.
sebb | 2 Jan 2008 13:39
Picon

Re: SQL and javascript replace

If the query string contains single-quotes, then these need to be
escaped otherwise the string will not be properly enclosed.

Versions of JMeter after 2.3 (i.e. currently just 2.3.1) give
javascript access to the JMeter vars object, so you can use

vars.get("query_value").replace(...

instead of

'${query_value}'.replace(...

and avoid the problem

On 31/12/2007, Shane Petroff <shane <at> mayet.ca> wrote:
> sebb wrote:
> > Check that there is no extraneous whitespace after the function call.
> >
> There is no extraneous whitespace. Moreover, the function seems to
> succeed around 75% of the time; it mainly barfs on inserts and updates.
>
> Shane
> > On 30/12/2007, Shane Petroff <shane <at> mayet.ca> wrote:
> >
> >> Hello,
> >>
> >> I'm having trouble doing a simple text substitution. I am currently
> >> pulling query type and query data for use in a JDBC Sampler out of a CSV
> >> file. I wanted to do some simple text substitution on the query strings
> >> before execution, and the __javaScript function seemed to be the answer.
(Continue reading)

sebb | 2 Jan 2008 14:15
Picon

Re: Problem with recording test script

Which version of JMeter are you using?

What URL was recorded for the example page?

On 02/01/2008, ewcia <ewapapuga <at> o2.pl> wrote:
>
> Hi all. I just don't know how to record a test script.
> I set the HTTP proxy in WorkBench, I set this proxy in my webbrowser and
> when I'm trying to acces my page I get Error 404 - Not Found.
> The problem is that port is not default - 80 but 7002 so the start adress of
> my application is http://domainName:7002/example_page.   When I'm trying to
> record something on Google there is no problem.
> What can I do?
> --
> View this message in context: http://www.nabble.com/Problem-with-recording-test-script-tp14575612p14575612.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe <at> jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help <at> jakarta.apache.org
>
>
ewcia | 2 Jan 2008 16:22
Picon
Favicon

Re: Problem with recording test script


Problem was solved just by changing JMeter version. In 2.3.1 everything works
fine.

ewcia wrote:
> 
> Hi all. I just don't know how to record a test script.
> I set the HTTP proxy in WorkBench, I set this proxy in my webbrowser and
> when I'm trying to acces my page I get Error 404 - Not Found.   
> The problem is that port is not default - 80 but 7002 so the start adress
> of my application is http://domainName:7002/example_page.   When I'm
> trying to record something on Google there is no problem.
> What can I do?
> 

--

-- 
View this message in context: http://www.nabble.com/Problem-with-recording-test-script-tp14575612p14580010.html
Sent from the JMeter - User mailing list archive at Nabble.com.
gnr80 | 2 Jan 2008 16:58
Picon
Favicon

RE: JSF Application


Deepak,
I found the issue with the Requests and why the result was always login
screen. The issue is fixed and can login successfully. There are some hidden
fields were written in the Response when the initial request is sent to the
server. These fields were grabbed using Extractor and Javascript is executed
to populate some hidden fileds. I replaced javascript with Functions.
Finally request-response is successful.
Thank you for your help.

Thanks,gnr80
--

-- 
View this message in context: http://www.nabble.com/JSF-Application-tp14421789p14580650.html
Sent from the JMeter - User mailing list archive at Nabble.com.
sebb | 2 Jan 2008 17:15
Picon

Re: jMeter development project inquiry

It's already possible to run multiple JMX files in GUI mode (though
not automatically), and the server in client-server mode can be left
running between test runs, so that Java startup-time is restricted to
the client.

Batch mode only processes the single jmx file provided on the command-line.

I'm sure it would be to extend JMeter as proposed.
However the proposal requires an extra process to send the JMX data
and to receive the results, both of which add extra overhead.

Perhaps it would be simpler to implement an option to process all JMX
files in a directory, or listed in a file.

JMeter startup does not take very long (around 1 sec on my system) so
the proposed change would only benefit test runs with lots of
independent tests.

On 21/12/2007, Pieter Ennes <pieter <at> watchmouse.com> wrote:
> Dear jMeter list,  (-user list included due to amount of commit
> msgs on -dev, followup set to -dev)
>
> We are using jMeter to perform conformance and regression tests
> periodically (typically every 15 minutes, for a large number of tests),
> and are looking for ways to push integration a bit further. We are
> investigating whether it is possible to develop the option described below:
>
> ---
> The ability to POST a .jmx file to a running jMeter server over an
> HTTP connection using a REST (or SOAP) interface and return the results,
(Continue reading)

gnr80 | 3 Jan 2008 02:02
Picon
Favicon

Regular Expression Extractor Issue


I am trying to extract following values from previous response and pass it to
subsequent requests using Reguluar Expression Extractor.  But it always
returns defualt value defined in the Extractor.

<pre>
img id=_menuShow onclick="_showMenu();clearForm(this)"
src="images/showmenu.gif" style="cursor:hand; display:none" alt="(.+?) Menu"
width="(.+?)" border=0

</pre>

It seems to be the problem with the above tag has bracket characters. If I
remove "<img id=_menuShow onclick="_showMenu();clearForm(this)" " then it
works fine. Are there any escape characters to tell Extractor not to
evaluate the above brackets.

Thanks,gnr80
--

-- 
View this message in context: http://www.nabble.com/Regular-Expression-Extractor-Issue-tp14589696p14589696.html
Sent from the JMeter - User mailing list archive at Nabble.com.
BlakeUMN | 3 Jan 2008 02:23
Picon

Specifying Content-Type for Java Request


I have a Java Request with resultData = "Foo ${jmeterVariable} Bar" and a
child "Save Responses to a file" having a Filename prefix of Baz.bop. The
file is written to disk with the filename Baz.bop1.unknown and I would like
it to be written as Baz.bop. The makeFileName method of
org.apache.jmeter.reporters tells me the n.unknown being appended is due to
a missing Content-Type in the response.
How do I set the Content-Type of the Java Request? Is there an easier way to
do this?
Thanks,
Blake
--

-- 
View this message in context: http://www.nabble.com/Specifying-Content-Type-for-Java-Request-tp14589913p14589913.html
Sent from the JMeter - User mailing list archive at Nabble.com.
sebb | 3 Jan 2008 03:33
Picon

Re: Regular Expression Extractor Issue

On 03/01/2008, gnr80 <nagu_bandi <at> yahoo.com> wrote:
>
> I am trying to extract following values from previous response and pass it to
> subsequent requests using Reguluar Expression Extractor.  But it always
> returns defualt value defined in the Extractor.
>
> <pre>
> img id=_menuShow onclick="_showMenu();clearForm(this)"
> src="images/showmenu.gif" style="cursor:hand; display:none" alt="(.+?) Menu"
> width="(.+?)" border=0
>
> </pre>
>
> It seems to be the problem with the above tag has bracket characters. If I
> remove "<img id=_menuShow onclick="_showMenu();clearForm(this)" " then it
> works fine. Are there any escape characters to tell Extractor not to
> evaluate the above brackets.

Yes, the escape character is \ so you must use

_showMenu\(\);

rather than

_showMenu();

etc.

> Thanks,gnr80
> --
(Continue reading)

sebb | 3 Jan 2008 03:37
Picon

Re: Specifying Content-Type for Java Request

On 03/01/2008, BlakeUMN <blake <at> software.umn.edu> wrote:
>
> I have a Java Request with resultData = "Foo ${jmeterVariable} Bar" and a
> child "Save Responses to a file" having a Filename prefix of Baz.bop. The
> file is written to disk with the filename Baz.bop1.unknown and I would like
> it to be written as Baz.bop. The makeFileName method of
> org.apache.jmeter.reporters tells me the n.unknown being appended is due to
> a missing Content-Type in the response.

The .unknown suffix is due to the missing Content-Type. The n suffix
is the file number, which cannot be omitted.

> How do I set the Content-Type of the Java Request?

Not possible currently.

> Is there an easier way to do this?

What are you really trying to do?

> Thanks,
> Blake
> --
> View this message in context: http://www.nabble.com/Specifying-Content-Type-for-Java-Request-tp14589913p14589913.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe <at> jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help <at> jakarta.apache.org
(Continue reading)


Gmane