ivan orlinsky | 2 Feb 00:09 2007

Re: Newbie questions

Hi Phil,

I was trying to understand why I am getting the message that "the agent file
caches are out of date". It still does not work after I distribute the
files. (Version beta 32).

Thank you for your time and help.

Ivan Orlinsky

-----Original Message-----
From: grinder-use-bounces@...
[mailto:grinder-use-bounces@...] On Behalf Of
Philip Aston
Sent: Wednesday, January 31, 2007 4:38 PM
To: grinder-use
Subject: Re: [Grinder-use] Newbie questions

You have two problems:

1. The TreeMap has indexes which look like "script0", "script1",... You 
are using "0", "1", ....
2. You are repeatedly assigning an array of one element to self.testRunners

A quick hack for 1. would be something like:

def createTestRunnerByIndex(i):
    module = scripts["script%d" % i]
    exec("x = %s.TestRunner()" % module)
    return x
(Continue reading)

Philip Aston | 2 Feb 00:15 2007

Re: Newbie questions

ivan orlinsky wrote:
> I was trying to understand why I am getting the message that "the agent file
> caches are out of date". It still does not work after I distribute the
> files. (Version beta 32).

Could you open a bug, with answers to the following please:

Are you distributing to the same machine, or a different one?

If a different machine: are the clocks in sync? (Can't recall whether 
this *should* matter, but please check).

If the same machine: are you running the agent process from the same 
directory as the console (if so, please try from a different directory).

After you've distributed, can you see that the files are correctly 
updated (including timestamps) in the agent process cache directory?

Thanks,

- Phil
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

(Continue reading)

Aman Grover | 2 Feb 08:57 2007
Picon

Multiple Login | FAQ Script


I am using the Multiple user script from FAQ but it is not working in my case

It is showing an error 

process delatest-0): Error running worker process (ImportError: no module
named testRandomise
	File "grinder.py", line 766, in ?)
ImportError: no module named testRandomise
	File "grinder.py", line 766, in ?

The Script i have created is mentioned, i bold the function which i put in
my recorded script, please let me know where i am doing wrong.

# The Grinder 3.0-beta31
# HTTP script recorded by TCPProxy at Feb 2, 2007 10:14:49 AM
# testRandomise.py
from net.grinder.script import Test
from net.grinder.script.Grinder import grinder
from java.util import Random
from java.lang import String
from net.grinder.plugin.http import HTTPPluginControl, HTTPRequest
from HTTPClient import NVPair

# line 11 -12, 19 -- 30 , 769 -- 785 added by me for login authentication 
#import random 
#import string

connectionDefaults = HTTPPluginControl.getConnectionDefaults()
httpUtilities = HTTPPluginControl.getHTTPUtilities()
(Continue reading)

C myhid | 2 Feb 09:43 2007
Picon

Function button in Grinder 3.0 Console panel question

Hello,everybody.
I have installed Grinder 3.0-beta32 in my personal computer.After I have typed command line  'java  net.grinder.Console' to start Grinder Console,however,the three function button which are named  "start worker process"  "reset worker process" and "stop worker process" are disabled.Therefore ,I can not start the testing thread.How can I solve this problem? Please help me.Thank you.

Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
C myhid | 2 Feb 16:03 2007
Picon

create file to record the content of response

Hello,everybody.

I recorded script using Grinder 3.0 TCPProxy before I tried to test a portal web performance in my localhost.The following is part of the recorded script.

 

from net.grinder.script import Test

from net.grinder.script.Grinder import grinder

from net.grinder.plugin.http import HTTPPluginControl, HTTPRequest

from HTTPClient import NVPair

connectionDefaults = HTTPPluginControl.getConnectionDefaults()

httpUtilities = HTTPPluginControl.getHTTPUtilities()

 

{/*    omit  lines of recorded script  * /}

 

headers10= \

  ( NVPair('Accept', '*/*'),

    NVPair('Referer', 'http://localhost:8080/c/portal/home'), )

 

{/*    omit  lines of recorded script  * /}

 

request100 = HTTPRequest(url=url0, headers=headers10)

request100 = Test(100, 'GET javascript_cached').wrap(request100)

 

{/*    omit  lines of recorded script  * /}

 

def page12(self):

    """GET javascript_cached (request 102)."""

    self.token_languageId = \

      'en_US'

    result = request100.GET('/c/portal/javascript_cached' +

      '?themeId=' +

      self.token_themeId +

      '&languageId=' +

      self.token_languageId +

      '&colorSchemeId=' +

      self.token_colorSchemeId, None,

      ( NVPair('If-Modified-Since', 'Wed, 31 Jan 2007 03:00:39 GMT'), ))

 

    return result

{/*    omit  lines of recorded script  * /}

I Added two function definitions to modify the script so as to use it as a test script.The two function definitions are printed out as below:

 

(a) def page80(self):

    ''''''GET response(request 100).''''''

    result=request100.GET('http://localhost:8080/c/portal/home')

    writeToFile(result.getText(),HttpResponse)

 

    return  result

 

(b)

#write the response

def writeToFile(text,testid):

     filename=grinder.getFilenameFactory().createFilename(testid+"data.txt")

     file=open(filename,"w")

     print >> file,text

     file.close()

 

The purpose of these two functions is to record the response content of request100 in a testing.however,it can not record the response.I have read book <<j2ee performance testing>> and also search the answer in many place ,but I have not gotten the answer.and I have the following question that I want to ask:

(1)   what content will be responsed after executing “request100.GET('http://localhost:8080/c/portal/home')”,and what is the  data type of response.

(2)   How can create the file and record the response content in it

(3)   Where can I find the Library Reference for HTTPRequest(  ) etc.

 

Please reply your experience or tips to help me to solve it.          Thanks you.


Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
ivan orlinsky | 2 Feb 17:48 2007

Re: Function button in Grinder 3.0 Console panel question

Hi,

 

I setup Grinder 3.0 a few days ago and had the same issue. A co-worker helped me out. We put quotation marks around the call (after the word call) statement and around %CLASSPATH% in the startConsole and startAgent scripts.

 

I start the “Console” by double clicking the script. I start the agent at a different Dos prompt screen by typing startAgent.

 

Ivan,

 

 

From: grinder-use-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:grinder-use-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of C myhid
Sent: Friday, February 02, 2007 3:43 AM
To: grinder-use <at> lists.sourceforge.net
Subject: [Grinder-use] Function button in Grinder 3.0 Console panel question

 

Hello,everybody.

I have installed Grinder 3.0-beta32 in my personal computer.After I have typed command line  'java  net.grinder.Console' to start Grinder Console,however,the three function button which are named  "start worker process"  "reset worker process" and "stop worker process" are disabled.Therefore ,I can not start the testing thread.How can I solve this problem? Please help me.Thank you.

 

Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
Philip Aston | 3 Feb 18:39 2007

Re: Function button in Grinder 3.0 Console panel question

The buttons will only be enabled when there are agent processes connected to the console. Try starting an agent process.
 
- Phil

From: grinder-use-bounces-5NWGOfrQmnegEbju0hdhLg@public.gmane.orgorge.net [mailto:grinder-use-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of C myhid
Sent: 02 February 2007 08:43
To: grinder-use-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Grinder-use] Function button in Grinder 3.0 Console panel question

Hello,everybody.
I have installed Grinder 3.0-beta32 in my personal computer.After I have typed command line  'java  net.grinder.Console' to start Grinder Console,however,the three function button which are named  "start worker process"  "reset worker process" and "stop worker process" are disabled.Therefore ,I can not start the testing thread.How can I solve this problem? Please help me.Thank you.

Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users._______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
C myhid | 5 Feb 03:17 2007
Picon

Re: Function button in Grinder 3.0 Console panel question

Hello,Aston.
I see that a user can type  "java net.grinder.Grinder" in command line ,and Grinder 3.0 will automatictly start the agent process,and the agent process will create worker processes,can you tell me the mothod used to start agent process? Thank you for your replying.
 


 
----- Original Message ----
From: Philip Aston <paston-2Tjm5za6O7k@public.gmane.org>
To: grinder-use <grinder-use-5NWGOfrQmnegEbju0hdhLg@public.gmane.orgorge.net>
Sent: Sunday, February 4, 2007 1:39:44 AM
Subject: Re: [Grinder-use] Function button in Grinder 3.0 Console panel question

The buttons will only be enabled when there are agent processes connected to the console. Try starting an agent process.
 
- Phil

From: grinder-use-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:grinder-use-bounces-5NWGOfrQmneRv+LV9MX5uv+2+P5yyue3@public.gmane.orgt] On Behalf Of C myhid
Sent: 02 February 2007 08:43
To: grinder-use-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Grinder-use] Function button in Grinder 3.0 Console panel question

Hello,everybody.
I have installed Grinder 3.0-beta32 in my personal computer.After I have typed command line  'java  net.grinder.Console' to start Grinder Console,however,the three function button which are named  "start worker process"  "reset worker process" and "stop worker process" are disabled.Therefore ,I can not start the testing thread.How can I solve this problem? Please help me.Thank you.

Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
grinder-use mailing list
grinder-use-5NWGOfrQmnetEtDZOKyKiw@public.gmane.orgrge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use


Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
Calum Fitzgerald | 5 Feb 13:39 2007
Picon

Re: Multiple Login | FAQ Script

To make use of jython modules you need to install the full version of
jython, and then make sure it is correctly referenced in the
classpath.

check out "The Jython distribution and installation" on this page:

http://grinder.sourceforge.net/g3/scripts.html

Cheers
Cal

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Aasmeet Goda | 6 Feb 05:25 2007
Picon

Finding the Page load time

Hi All,
I am load testing an application which requires me to find the page load time of the various pages being hit during the test. Can the Mean test time in the out.log file be used as the page load time?
Also, i have one scenario which requires me to execute all the scenarios with a distributed load (Like 10% on scenario1, 20% on scenario2 and so on..) The problem is these scenarios have 4 scripts within them. How do i fullfill the requirement.
Any kind of help is highly appreciated.
 
Aasmeet Goda.
 

 

Here’s a new way to find what you're looking for - Yahoo! Answers
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

Gmane