Jes | 24 Apr 12:29 2013
Picon

Can Grinder read the response Json file?

Can Grinder tool could read the http response file if it is in Json format
and validate ?

--
View this message in context: http://grinder.996249.n3.nabble.com/Can-Grinder-read-the-response-Json-file-tp8428.html
Sent from the Grinder - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
Jes | 22 Apr 12:44 2013
Picon

Create dummy database and Json file using Grinder

I need to use it as a Automation tool. So is it possible to create a dummy
database table using Grinder tool and create Json file from that as a
response of Http request using Grinder itself. 

--
View this message in context: http://grinder.996249.n3.nabble.com/Create-dummy-database-and-Json-file-using-Grinder-tp8427.html
Sent from the Grinder - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
Jai P | 18 Apr 20:02 2013
Picon

Can Grinder overlook ramp up period?

I have re-written my Loadrunner script in Jython and am load testing with Grinder. The test works fine when I use threads alone or a combination of processes and threads split on 2 agents.
When I use processes, I use the following properties:

grinder.processes=5
grinder.runs=0
grinder.duration=900000  #15 min

grinder.processIncrement=1
grinder.processIncrementInterval=24000
grinder.initialProcesses=1
grinder.initialSleepTime=5

Basically, I want to ramp up the # threads over the first 2 minutes of the test, like I would do in Loadrunner. In my script, I have copied the example in the Script gallery for thread ramp up as well.
However, at the end of the test, when I analyze the results using GrinderAnalyzer, I am unable to discard the first 2 minutes since I am only interested in measuring TPS and response times during steady state. I am not sure if GrinderAnalyzer questions would be answered in this forum, but I believe there is a bug when it aggregates results from multiple processes from 2 different machines. It always seems to discard most of the data and produces a graph for just 1 process, i.e. # successful tests are far less than the actual count.

One method I tried was to convert all the *-data.log to .csv and combine them to a single .csv file. I then sorted by the column - Start time (ms since Epoch), manually discarded the first 2 min and then calculate the # tests/13min for TPS. But I am not sure if this is the right approach.

Is there a way to instruct Grinder to overlook the first 2 min before it starts calculating the response times?
Are there better tools than GrinderAnalyzer to view a complete summary of the test like Loadrunner?

Thanks

Jai

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
Rob Schroder | 10 Apr 21:11 2013

Grinder and OpenTSDB

Does anyone know of an integration of The Grinder with OpenTSDB? We use OpenTSDB for collecting a ton of
metrics. If something already exists, it would be good to know. Otherwise, I'll start looking at what it
would take to get response times, along with other metrics, from The Grinder into OpenTSDB.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
Jai P | 5 Apr 22:59 2013
Picon

Calling C++ executable using Java's Runtime

Following the tips in my previous post "Cython implementation of Loadrunner based C script to work with Grinder", I re-wrote my C code and compiled it with "cl" (MSVC 2005) into an exe.

The exe takes 1 argument (int) and based on results obtained from the server, it will print a success or failure.

Since I want to performance test this with Grinder, I used Java's Runtime.getRuntime().exec(cmd) to run my exe. Using my custom class, I am able to increment the integer I need for the argument.

 Sure enough it works as expected for a few inputs, however when I increase the # threads in grinder, I see a spike in CPU, followed by a modal dialog box suggesting an issue with the C++ Runtime Library (the error is from the MSVC 2005 C++ redistributable installed on the test machine to run my exe).

In order to ensure that the exe doesn't hang around, I used taskkill /f /im <my.exe> to ensure it is killed. With this hack, the test seems to work for up to 10 threads, but if I increase it beyond that, I then run into  "cmd.exe - Application error" --many of these windows open and it doesn't recover. This is not a good hack because thread#2 may be executing the taskkill when thread#1 is about to launch the exe..

Here is my grinder script:


from net.grinder.script.Grinder import grinder
from net.grinder.script import Test
from java.lang import Runtime
from loadgen import LoadGen

out = grinder.logger.output
log = grinder.logger.output
err = grinder.logger.error
verbose = 0

def authenticate(str):
    #print "Running sync_st.exe"
    getattr(Runtime.getRuntime(), "exec")(str)
  # Hack to kill prior exe..hopefully
    grinder.sleep(4000)
    getattr(Runtime.getRuntime(), "exec")('taskkill /f /im sync_st.exe')    
    
# define all tests here
authenticateTest = Test(1, "SecurID Authentication").wrap(authenticate)    

# The main class for this script
class TestRunner:
     def __init__(self):
        self.loadgen = LoadGen()
        
     def __call__(self):
        statistics = grinder.statistics
        statistics.delayReports = 1

        #get next index value
        index = self.loadgen.getIndex()
       
str = 'cmd /C C:\\Performance\\sync_st.exe %s' % index
if verbose: out("str = %s" % str)
      
  # run test
        authenticateTest(str)


Option #2: 
I created a batch script that calls the exe and the taskkill -- no change in outcome

Option#3:
Find the PID of the current process with tasklist and pass it to taskkill to terminate - Not sure if that is a fix either


Is Grinder suited to running this sort of a test? Right now it doesn't work and I have also seen Grinder blowing memory and it writes a hperf. Any suggestions would be really helpful.


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
FMehran | 4 Apr 18:58 2013

Recall: Running a recorded update script - no update happens.

Mehran, Fariba would like to recall the message, "[Grinder-use] Running a recorded update script - no
update happens.".
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
Kiran Sant | 2 Apr 12:08 2013

Parametarization & Correlation in Grinder 3

Hi,

 

      We are doing R&D on Grinder-3.6. We have recorded the script and it is executing fine. Need some help in Parameterization & Correlation in Grinder 3.6. Also,  

we are not able to understand the format of the recorded script.

        Could you please guide us with some detailed documentation on the above topics so that it may help us in understanding the tool better.

 

Looking forward for your co-operation.

 

Thanks in advance.

 

Kiran Sant,
Associate - Quality Control
SYNECHRON - 
- 4,000+ professionals globally.
- USA | Canada | UK | The Netherlands | UAE | India | Singapore | Hong Kong | Japan

 

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
FMehran | 29 Mar 17:32 2013

Running a recorded update script - no update happens.

 

Hello,

 

I have recorded the attached Grinder script and have run it.  The action on the web app is to log on,

Pull up a page and click on an icon  on the screen. By clicking this Icon a Work order number will be automatically generated.

This action  is recorded as an event  in the following method in the attached script (mx343 is the click even in the jsp)

 

 

def page8(self):

    """POST maximo.jsp (requests 801-816)."""

    result = request801.POST('/maximo/ui/maximo.jsp',

      ( NVPair('uisessionid', '213'),

        NVPair('csrftoken', 'udqn7spqavdji6gothuc7etrhe'),

        NVPair('currentfocus', 'mx647'),

        NVPair('scrollleftpos', '0'),

        NVPair('scrolltoppos', '1'),

        NVPair('requesttype', 'SYNC'),

        NVPair('responsetype', 'text/xml'),

        NVPair('events', '[{\"type\":\"click\",\"targetId\":\"mx343\",\"value\":\"\",\"requestType\":\"SYNC\",\"csrftokenholder\":\"udqn7spqavdji6gothuc7etrhe\"}]'), ),

      ( NVPair('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8'), ))

 

The following method shows the text that was inserted at the field right beside it (see below screen shot)

 

 

 

By comparing the above two methods,  I think the automatically generated work order (S11726 – shown in the below screen taken during recording), was not passed as the value in  Page 8 (highlighted in red – no value there)

 

 

 

 

There are other fields on the screen that is populated and then save button is pressed.  When I run this scripts, I should expect it do the action

“Click New Work Order Icon” and generate a new work order.  Correct?   , but that is not happening. After running the script, I don’t see any new

Work Order being generated.   From the log file I see lots of POSTs are happening. Aren’t these transactions actually inserting  data to the database?

 

Please let me know.

 

Thanks for your help.

 

Attachment (Wo-Create.py): application/octet-stream, 84 KiB
Attachment (out_VXPP0038-0.log): application/octet-stream, 83 KiB
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
Jai P | 28 Mar 21:18 2013
Picon

Cython implementation of Loadrunner based C script to work with Grinder

I have legacy test scripts written in C (not recorded http scripts. In fact there is no http but just C API) for use with Loadrunner. I would like to use Grinder instead of Loadrunner. 

In order to reuse the test scripts written in C could I wrap them in Cython? (http://en.wikipedia.org/wiki/Cython) Cython is a compiled language which will produce extension modules that can be imported into regular Python or CPython code. Once I have this CPython code, will it work in Grinder or does Grinder specifically need Jython? 

The question is whether Grinder can support C-Python?


------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
Ravi Joshi | 28 Mar 18:04 2013
Picon

Service /agents/start-workers is returning success even when no agent is connected

Hi All,

Grinder 3.11 REST Service /agents/start-workers is returning success even when no agent is connected. Is this is expected behavior ?

If yes then how can I get to know that Agents are connected or not?
 
-Ravi Joshi
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
Lutfur Rahaman | 26 Mar 09:52 2013

Why my grinder worker process could not spawn

Hi,

While running a very simple script, I am getting the following output in the out.log. There is no data log or error log. It seems that worker process could not spawn. Can anyone help me finding out the reason.

3/22/13 4:00:52 PM (process TCS115344-0): The Grinder version 3.2
3/22/13 4:00:52 PM (process TCS115344-0): Sun Microsystems Inc. Java HotSpot(TM) Client VM 1.5.0_12-b04 on Windows XP x86 5.1
3/22/13 4:00:52 PM (process TCS115344-0): time zone is IST (+0530)

Thanks,
Lutfur Rahaman

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

Gmane