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.
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.
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.
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.
Google will automatically switches the main page into the search page due to its instant search feature.
Then click Stop Recording..
Then you can see the generated script only contains the connection to www.google.co.kr.
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.
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.
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.
Is it complex? nGrinder Recorder is a helper application not perfect one.