If do you want to know the health of an easy and quickly way, the current status of your Liferay Portal installation or if you want to test quickly any basic functionality from UI (quickly functional test), then you could use Apache JMeter to do it.
To do that, you should do the following:
1. Download and install Apache JMeter from here http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi
2. Identify the target to test it.
In this case we will test if Liferay Sign in portlet works.
3. Create a Test Plan.
4. Add a “Thread Group”.
5. In the before “Thread Group” to add a “HTTP Cookie Manager”. This allows to keep the liferay session open between diferents HTTP requests.

[caption id=”” align=”alignnone”
caption=”Create a HTTP Cookie Manager in JMeter for Liferay”]Create a HTTP Cookie Manager in JMeter for Liferay

[/caption]
6. Also, to add an “User Defined Variables” as shows in next figure:

[caption id=”” align=”alignnone”
caption=”Create a User Defined Variables in JMeter for Liferay”]

Create a User Defined Variables in JMeter for Liferay

[/caption]
7. In the before “Thread Group” to add a “Loop Controller” named “Sign in to Liferay”.

[caption id=”” align=”alignnone”
caption=”Add a Loop Controller”]

Add a Loop Controller

[/caption]
8. Add a first “HTTP Resquest” named “[Sign in - 1] Go to Welcome page”.
You have to fill out the request with the appropriate parameters, for exmaple:
- Server Name or IP
- Port Number
- Method
- Path (URL of our target to be tested)
9. Then, to add the first “Response Assertion” named “Check resp. 1 “. This will check if the result is correct. In this case only verify the existence of a message/text in the HTTP response.
10. Later, to add the second “HTTP Request” named “[Sign in - 2] Do login”. This allows to do log into liferay, in this case we will need to compose a HTML form with the following parameters:

[caption id=”” align=”alignnone”
caption=”Create a HTTP Request to do Login from Liferay Sing in Portlet”]

Create a HTTP Request to do Login from Liferay Sing in Portlet

[/caption]
These parameters have been extracted from the Liferay welcome web page that contains the “Sign in” portlet, as shown in the figure below:

[caption id=”” align=”alignnone”
caption=”Existing parameters in Liferay Sign in Portlet form”]

Existing parameters in Liferay Sign in Portlet form

[/caption]
11. Create a “Response Assertion” of similarly way to step 9 if we want to verify if login process has been successful.
In my case, I will verify the existence of a message/text “Sign Out” in the HTTP response.

[caption id=”” align=”alignnone”
caption=”Create a Response Assertion for Liferay Login process”]

Create a Response Assertion for Liferay Login process

[/caption]
12. Add a third “HTTP Request” named “[Sign in - 3] Do logout” and other “Response Assertion”.
This step is optional, it does not help us verify if the login process has been OK.
13. At level of the “Thread Group” create a “Vire Results Tree” and “Assertion Results”. Both will allow us to monitor the test results.
14. Run test plan and observe the results in the “View Result Tree”.
If everything goes “green” is that everything has been correctly. If any test is “red”, is that the test is wrong or something is wrong. Then, you should see or check you network connection, Liferay is running or if you Database is running, etc.

[caption id=”” align=”alignnone”
caption=”View Result Tree for Liferay Sign in portlet”]

View Result Tree for Liferay Sign in portlet

[/caption]
You can copy this test plan in Apache JMeter:

[sourcecode language=”xml” gutter=”true” wraplines=”false”]

Monitoring Liferay Portal 6.0.5 CE false false false 1 1 1 1281132211000 1281132211000 false continue Enable to keep session in Liferay false rfc2109 LFRY_HOSTNAME lfry01 = LFRY_PORT 8080 = LFRY_NON_ROOT_CTX intixportal = LFRY_TEST_USER test = LFRY_TEST_PWD test = LFRY_ASSERTION_MSG_1 Password = LFRY_ASSERTION_MSG_2 Sign Out = LFRY_ASSERTION_MSG_3a HTTP/1.1 200 OK = LFRY_ASSERTION_MSG_3b Liferay-Portal: Liferay Portal = LFRY_ASSERTION_MSG_3c Set-Cookie: JSESSIONID= = Define my liferay parameters false 1 Log into Liferay Portal ${LFRY_HOSTNAME} ${LFRY_PORT} http /${LFRY_NON_ROOT_CTX} GET false true true false false [Sign in - 1] Go to Welcome page ${LFRY_ASSERTION_MSG_1} Assertion.response_data false 16 Check response 1 true 58 = true p_p_id true 1 = true p_p_lifecycle true normal = true p_p_state true view = true p_p_mode true 0 = true saveLastPath true /login/login = true _58_struts_action true = true _58_redirect true ${LFRY_TEST_USER} = true _58_login true ${LFRY_TEST_PWD} = true _58_password true false = true _58_rememberMe ${LFRY_HOSTNAME} ${LFRY_PORT} http /${LFRY_NON_ROOT_CTX}/web/guest/home POST false true true false false [Sign in - 2] Do login ${LFRY_ASSERTION_MSG_2} Assertion.response_data false 16 Check response 2 ${LFRY_HOSTNAME} ${LFRY_PORT} http /${LFRY_NON_ROOT_CTX}/c/portal/logout GET false true true false false [Sign in - 3] Do logout ${LFRY_ASSERTION_MSG_3a} ${LFRY_ASSERTION_MSG_3b} Assertion.response_headers false 2 Check response 3 false saveConfig true true true true true true true false true true false false true false false false false false 0 true false saveConfig true true true true true true true false true true false false true false false false false false 0 true

[/sourcecode] Have a Liferay happy testing!.