Displaying keyword search results 1 - 10
Created by Dr. Xi on September 23, 2013 09:00:22 Last update: September 23, 2013 09:17:55
Tsung is an open-source multi-protocol distributed load testing tool. It's written in Erlang , but don't let that dissuade you. Here are some simple steps to get started. Install Tsung. On Ubuntu, this is simply: sudo apt-get install tsung . Create a config file ( tsung.xml ):
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYP...Beware of the dumptraffic attribute. You might want to set it to false for a real load test. Run the test:
$ tsung -f tsung.xml start Starting Tsung "L...Generate the reports:
$ cd /home/drxi/.tsung/log/20130923-1031 $ /usr...Open the report file in your browser: file:///home/drxi/.tsung/log/20130923-1031/report.html . For HTTPS testing change the server line to:
<servers> <server host="192.168.80.160" port="...
Created by Fang on August 28, 2013 20:37:17 Last update: August 28, 2013 20:37:17
The default extension for JSF facelet files is .xhtml, which looks so out-of-date these days. I wanted to change the extension from .xhtml to .html, to make it look more modern, even though I still use JSF xhtml in reality. This didn't work ( web.xml ):
<servlet-mapping> <servlet-name>Faces Ser...Using the servlet-mapping config without the context-param works, given that the actual file extensions are still .xhtml . But the caveat is, if you request the .xhtml file directly, it will be sent to the browser unprocessed. This worked:
<servlet-mapping> <servlet-name>Faces Ser...I'm using myfaces 2.1.11.
Created by freyo on May 17, 2013 19:52:17 Last update: May 17, 2013 19:52:17
Angie. please look at the related notes "Android unit testing example" and "Android unit testing basics". The examples might be out-of-date since they were from the Froyo era.
Created by angie on May 17, 2013 15:20:39 Last update: May 17, 2013 15:20:39
Thank you Freyo for this explanation & step-by-step instructions. I could follow till point # 7. After that I am lost. 1). Point # 8 mentions "Copy the test suite apk into MyRepository/testcases." Where is this test suite apk located? 2). How do I generate the AndroidTest.apk file. 3). Where do I get the host_config.xml file from? Thank you in advance. Angie.
Created by Fang on June 05, 2012 09:12:36 Last update: June 05, 2012 09:13:03
The apache.commons.lang package has a nice utility to escape strings for various language environments. Simply include the dependency in pom.xml :
<dependency> <groupId>org.apache.commons</...and use it:
// import org.apache.commons.lang3.StringEscapeUti...
Created by Dr. Xi on April 19, 2012 10:10:08 Last update: April 19, 2012 10:11:06
The default servlet for Tomcat is declared in $CATALINA_HOME/conf/web.xml :
<servlet> <servlet-name>default</servle...Therefore, static content is rendered by the default configuration unless you override it with your own definitions. If you want to allow directory listing, just change the listing parameter to true :
<init-param> <param-name>listings</para...Change the welcome-file-list to display a default page in lieu of a directory listing:
<welcome-file-list> <welcome-file>home.xhtml</...Welcome pages are defined at the Web application level.
Created by Fang on April 16, 2012 13:32:10 Last update: April 16, 2012 13:32:10
There are two steps to create a custom function for JSP: Declare the function in the TLD:
<?xml version="1.0" encoding="UTF-8" ?> <taglib...Implement the function (must be static):
package com.example; public class UrlTransl...To use the function:
<%@ taglib uri="http://www.example.com/jsp/tags" p...
Created by venky on March 05, 2012 13:36:41 Last update: March 05, 2012 13:36:41
Thanks Dr.Xi, I was having a tough time changing the deployment context path of my web-app using the so-called context.xml file under /META-INF, it dint work (tomcat documentation at http://tomcat.apache.org/tomcat-6.0-doc/config/context.html , seemed pretty sure it would :() But I have one question, as changing server.xml is too instrusive for every web-app you build, is there any other way of pushing this configuration to one of the application specific files ? thanks, Venky
Created by Fang on February 21, 2012 20:54:23 Last update: February 21, 2012 20:57:57
Tomcat gzip compression filter can be turned on with " compression=on " in server.xml :
<Connector port="8080" protocol="HTTP/1.1" ...The default compressed MIME types are: text/html,text/xml,text/plain . It would be nice to add other types:
<Connector port="8080" protocol="HTT...
Created by Fang on February 21, 2012 20:33:58 Last update: February 21, 2012 20:33:58
You can customize Tomcat error page with error code:
<error-page> <error-code>404</error-code> ...or Java exception type:
<error-page> <exception-type>java.lang.Throwab...Either error-code or exception-type is required, but not both. There's no way to aggregate error codes, such as:
<!-- This does not work! --> <error-page> ...Customizing error pages is about the only way to suppress the default stack trace in Tomcat in case of an unhandled exception.