Start the recorder:
This will output something like this:Hit Ctrl-C to stop recording. HTTP proxy listening on :8090 Recording to directory /tmp/tmpaYDky9_funkload.
in Firefox: Edit > Preferencies > General; Connection Settings set localhost:8090 as your HTTP proxy
Play your scenario using your navigator
Hit Ctrl-C to stop recording:^C # Saving uploaded file: foo.png # Saving uploaded file: bar.pdf Creating script: ./test_BasicNavigation.py. Creating configuration file: ./BasicNavigation.conf.
You now have a new module test_BaiscNavigation file with its configuration file. Ready to be tested, refer to the tutorial to learn how to turn it into a workable test.
To add more requests to your test, just use fl-record without parameters, performs your requests on the browser then hit Ctrl-C. fl-record will output the code ready to be paste in your test case.
$ fl-record HTTP proxy listening on :8090 Recording to directory /tmp/tmptOl7jh_funkload. ^C TCPWatch finished. self.post(server_url + "/booking/register.seam", params=[ ['registration', 'registration'], ['registration:usernameDecorate:username', 'scott'], ['registration:nameDecorate:name', 'scott'], ['registration:passwordDecorate:password', 'tiger'], ['registration:verifyDecorate:verify', 'tiger'], ['registration:register', 'Register'], ['javax.faces.ViewState', '_id6407']], description="Post /booking/register.seam") $
Note that fl-record :