Fiddler tutorial – How to use Fiddler

15Jan2013 In: Tools
Revision History
Revision 1.0 01.15.2013 Admin Fiddler tutorial
Revision 1.1 – 1.3 09.09.2013 - 10.04.2013 Admin bugfixes and enhancements

Fiddler is a free and open-source packet analyzer. It is used for network troubleshooting, analysis, software, communications protocol development and education. Fiddler captures HTTP and HTTPS traffic data between browsers and servers. These data are extremely valuable for troubleshooting, performance turning and system monitoring. This article is a step by step tutorial to guide how to use Fiddler and capture HTTP Traffic.

Read the rest of this entry »

This tutorial demonstrates how to dump stack track of the current thread in Java, this is very useful troubleshoot or debug skill to identify the states of current running thread.

Use Thread.currentThread().getStackTrace() to retrieve an array of StackTraceElements that represent the current stack trace . Read the rest of this entry »

How to change Jetty default port

9Jan2013 In: Jetty

In Jetty, almost all of configuration information is by default maintained in file jetty.xml, this file is located under $JETTY_HOME/etc/. The  default port in jetty is 8080. Read the rest of this entry »

Cobertura is a open source coverage tool which calculates the percentage of code accessed by test and generate source code coverage report. Read the rest of this entry »

A test suite is a collection of test cases that are intended to test a behaviour or set of behaviours of software program.

In TestNG, we cannot define a suite in testing source code, for better, it is represented by one XML file, because suite is the feature of execution, this also allows flexible configuration of the tests to be run and keep no change to code base once suite is changed. A suite can contain one or more tests and is defined by the <suite> tag. Read the rest of this entry »

Dependency is common need in unit testing, because the test cases may share some state, data and conditions, in order to write repeatable cases and run them in isolation, TestNG supports the declaration of explicit dependencies between test methods, it is enabled with two attributes of the @Test annotation, dependsOnGroups and dependsOnMethods. Read the rest of this entry »

The group test is a new innovative feature in TestNG, it doesn’t exist in Junit framework, it permits you dispatch methods into proper portions and preform sophisticated groupings of test methods. In TestNG, you can declare one method belong to one or more groups, even a certain set of groups can be included or excluded in groups. Read the rest of this entry »

The TestNG Eclipse plug-in allows that we run TestNG tests from inside Eclipse in a convenient way. once we draft test case then we would’t need waiting, simply run it from Eclipse and monitor the execution and output. This tutorial will guide how to install TestNG eclipse plugin, write and run test case with this plugin. Read the rest of this entry »

Ant has task Tstamp which easily get the current date or system time with TODAY property, the output date can be formatted in any particular custom date/time patterns which are defined in the Java SimpleDateFormat class. Read the rest of this entry »

The propose of this tutorial is to retrieve the current logged username, computer name and operation system name in Ant, we echo these values in below example. Computer name and OS name are actually Ant build-in properties. Read the rest of this entry »