TestNG Showcase – Performance testing

Similar to JUnit 4, TestNG is providing means for performance measurements.

An example:

package com.dimitrisli.testng.performance;

import org.testng.Assert;
import org.testng.annotations.Test;



public class PerformanceTesting {

	@Test(timeOut=100)
	public void method(){
		Assert.assertTrue(true);
	}
}

You can find the overall code of the TestNG showcasing in this Github repository.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s