You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Sosnowski, Andrew P [IT]" <an...@citigroup.com> on 2002/08/22 00:33:42 UTC

RE: Functional Mode Checkbox and quick and dirty Functional testi ng


I did a little more testing with Assertions.
Can I have an Assertion for a string within a javascript function or
variable in the page? It doesn't seem to work?
Assertion for html seems to work though.
Can you elaborate on Assertions and what they should match?

Thanks
Andy

-----Original Message-----
From: Mike Stover [mailto:mstover1@apache.org]
Sent: Tuesday, August 20, 2002 5:09 PM
To: JMeter Users List
Subject: Re: Functional Mode Checkbox and quick and dirty Functional
testing


First, you have noticed the one and only difference that choosing
"functional testing" makes.

Second, that sounds like an interesting idea - to make a visualizer that
compares the 
functional differences between two test runs?  I think your proposed use of
such a tool is an 
excellent idea.

-Mike

On 20 Aug 2002 at 15:21, Sosnowski, Andrew P [IT] wrote:

> Hi Mike,
> 
> Can you give me an idea of what is the intent behind the Functional Mode
> testing checkbox on the front page?
> 
> 
> This was my plan for a quick and dirty functional test:
> We have a Staging environment and a production environment for our app.
> When we make a new release of our app I would like to capture and compare
> the html responses of running a test script with the new version of the
app
> on the Staging Environment and the old version still in Production.
> Then I would compare the 2 versions of html and make sure that nothing
> changed that was not expected to change.
> Of course I have to ignore Referrer Headers values and time-stamps and
> various cookies that are different on the different servers.
> 
> When I tried using this mode I did find the html within <binary> tags in
the
> log file.
> It looks like it might work as a quick and dirty way to compare.
> 
> Perhaps it might be worth building in some additional support for this
kind
> of testing into jMeter? For example store html cleaned of timestamps in a
> file separate from the log file (or jtl file)
> I might be willing to do this if others would find it useful. Also any
ideas
> of how to make it more useful and general are appreciated
> 
> What do you think?
> 
> Andy
> 
> 
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
> 



--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Functional Mode Checkbox and quick and dirty Functional testi ng

Posted by Mike Stover <ms...@apache.org>.
The Response Assertion tests for whether the response text contains or matches a regular 
expression you devise.  Regular expressions can be very tricky, and my best advice is to build 
from a simple one to a more complex one gradually.

Second, are you sure your javascript isn't being downloaded separately from the html?  For 
instance, your html might have something like 
<script language="javascript" src="my_javascript.js"/>

Or something like that.  I didn't look up the right way to do it, but I think you get what I'm after.  
If so, the page wouldn't actually have any of the javascript in it.

-Mike

On 21 Aug 2002 at 18:33, Sosnowski, Andrew P [IT] wrote:

> 
> 
> I did a little more testing with Assertions.
> Can I have an Assertion for a string within a javascript function or
> variable in the page? It doesn't seem to work?
> Assertion for html seems to work though.
> Can you elaborate on Assertions and what they should match?
> 
> Thanks
> Andy
> 
> -----Original Message-----
> From: Mike Stover [mailto:mstover1@apache.org]
> Sent: Tuesday, August 20, 2002 5:09 PM
> To: JMeter Users List
> Subject: Re: Functional Mode Checkbox and quick and dirty Functional
> testing
> 
> 
> First, you have noticed the one and only difference that choosing
> "functional testing" makes.
> 
> Second, that sounds like an interesting idea - to make a visualizer that
> compares the 
> functional differences between two test runs?  I think your proposed use of
> such a tool is an 
> excellent idea.
> 
> -Mike
> 
> On 20 Aug 2002 at 15:21, Sosnowski, Andrew P [IT] wrote:
> 
> > Hi Mike,
> > 
> > Can you give me an idea of what is the intent behind the Functional Mode
> > testing checkbox on the front page?
> > 
> > 
> > This was my plan for a quick and dirty functional test:
> > We have a Staging environment and a production environment for our app.
> > When we make a new release of our app I would like to capture and compare
> > the html responses of running a test script with the new version of the
> app
> > on the Staging Environment and the old version still in Production.
> > Then I would compare the 2 versions of html and make sure that nothing
> > changed that was not expected to change.
> > Of course I have to ignore Referrer Headers values and time-stamps and
> > various cookies that are different on the different servers.
> > 
> > When I tried using this mode I did find the html within <binary> tags in
> the
> > log file.
> > It looks like it might work as a quick and dirty way to compare.
> > 
> > Perhaps it might be worth building in some additional support for this
> kind
> > of testing into jMeter? For example store html cleaned of timestamps in a
> > file separate from the log file (or jtl file)
> > I might be willing to do this if others would find it useful. Also any
> ideas
> > of how to make it more useful and general are appreciated
> > 
> > What do you think?
> > 
> > Andy
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> > 
> 
> 
> 
> --
> Michael Stover
> mstover1@apache.org
> Yahoo IM: mstover_ya
> ICQ: 152975688
> 
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>