Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Recorder Quick Start


nGrinder Recorder contains TCPProxy internally which the Grinder has. In addition, nGrinder Recorder contains the embedded browser. A user can record the HTTP/HTTPS messages on the embedded browser. When a user run nGrinder Recorder, the following initial instruction page is shown. This page describes which port is used for the proxy and how to connect the external browser to the given proxy. In the following screen, it tells us the proxy is initiated in 10288 port.

image

You can start recording by clicking Start Recording button on the right panel. Then, navigate the site you want to visit in the browser panel.

image

On the right panel, www.google.com / www.google.co.kr are shown, These are hosts to which the browser connected. Basically connecting to www.google.com is forwarded to www.google.co.kr  in Korea . So it shows two connections. Just Ignore www.google.com by unchecking www.google.com host now.

image

From now on, the messages sent to www.google.com will not be recorded. Then type the text you want to search in the browser.

image

Google will automatically switches the main page into the search page due to its instant search feature.

image

While doing this, you may notice that the count of recorder messages to www.google.co.kr is increased and new hosts ssl.gstatic.com and t1.gstatic.com show up. These two hosts may have some static resources like javascript, images. Just uncheck these hosts.

image

Then click Stop Recording..

image

Then you can see the generated script only contains the connection to www.google.co.kr.

image

There in the main __call__ function which nGrinder threads will run eventually. It calls three different pages. (page1 / page2 / page3). All HTTP calls are organized by page methods which are generated per the user click events on the web page. There are too much calls in this recording more than 600 lines. We can shorten these by ignoring some static resources retrieved from www.google.co.kr. Uncheck followings in the right panel.

image

Then click Start Recording and Stop Recording again. Then you will see little bit shorten script. Then you can shorten unnecessary part more by editing sript directly.

image

In this case, while typing “ngrinder” in the search field, n, ng, ngr, ngri, ngrin…. queries were sent to the server. If you need to record all of these, just leave it. However in my case it is useless, I deleted all except "ngrinder" query. Then copy and paste the generated script into Script Editor in nGrinder controller and run validation check.

image

Is it complex? nGrinder Recorder is a helper application not perfect one. Smile

comments powered by Disqus
Page info
viewed 2238 times
translations en
Author
posted last year by
junoyoon
Contributors
updated last year by
View revisions
Share this article