Just do it!


Specifying suite in maven for testng

Posted in IT, maven by admin on the July 26th, 2012

Using Suite XML Files

Another alternative is to use TestNG suite XML files. This allows flexible configuration of the tests to be run. These files are created in the normal way, and then added to the Surefire Plugin configuration:
In the previously created pom.xml file, you can replace the plugin section with this one, and now instead of running all the tests, you can specify which of them should be run using a testng suite file (in this case called testng.xml).

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>

How to use the testng with maven, adding dependecy to pom.xml

Posted in IT, maven by admin on the July 26th, 2012

To run your tests created with TestNG, Just create a file called pom.xml and add the following code:
This is tested and it works (I removed parts of dependecies from my pom.xml, but it should still work).

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>YOUR.GROUP.ID</groupId>
<artifactId>YOUR.ARTIFACT.ID</artifactId>
<packaging>jar</packaging>
<version>YOUR.VERSION.NUMBER</version>
<name>YOUR.PROJECT.NAME</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
<!--testSourceDirectory>OPTIONAL-YOUR_TESTS_PATH</testSourceDirectory-->
</build>
<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>5.10</version>
<classifier>jdk15</classifier>
<scope>test</scope>
</dependency>
</dependencies>
</project>

Just replace the “YOUR.*” with your specific values and you’re done.
All you have to do is to place this pom.xml file in the root of the test project and run “mvn test”.
By default, the tests should be located in: ./src/test/java/ folder relative to the project root.

eMag latest offers

Posted in General by admin on the June 27th, 2012

http://profitshare.emag.ro/get_ads.php?zone_id=94301

google adsense

Posted in Uncategorized by admin on the June 25th, 2008

Tocmai m-am inscris in programul google adsense, si o sa incerc sa scot ceva $ de pe urma lui.
Momentan stiu numai chestii basic, insa pe masura ce voi experimenta va pot ajuta si pe voi in caz de nevoie.

Afacere online…

Posted in General by admin on the June 24th, 2008

De ceva vreme ma tot creieresc (impreuna cu 2 prieteni) despre cum sa facem ceva bani.
Propunerea mea a fost sa facem o afacere on-line, fiind cel mai la indemana, toti 3 fiind absolventi IT (Mate-Info).
S-a mai propus crearea unui joc 3D. Care din perspectiva mea necesita mult mai multa munca (eu am lucrat putin si cu OpenGL)
Nu e mai usor de facut un joc online?
Orice fel, caci la cate au aparut pe piata, sigur mai e loc de unul.

Romania, tara de CACAO

Posted in General by admin on the March 28th, 2008

TRAIM INTR-O TARA DE RAHAT!!! COLOANA OFICIALA A LUI TARICEANU
A FACUT ASTAZI INDIRECT O VICTIMA UMANA. O TANARA A FOST ACCIDENTATA
MORTAL PE KISELEFF SI NICIUNUL DINTRE POLITISTII AFLATI DE FATA NU A REACTIONAT
IN NICI UN FEL DEOARECE ERAU PREOCUPATI CU DIRIJATUL CIRCULATIEI
IN ASTEPTAREA MAGARULUI CARE DE ALTFEL POATE UMBLA SI PE SCUTER SI FARA
ESCORTA. RUSINEEEEE! TARICENE LASA-NE!!! http://www.youtube.com/watch?v=nQ6qDQUVNdw

Hello world!

Posted in General by admin on the April 6th, 2007

Aici o sa incep sa ma desfasor… cum vine vorba.
O sa mearga mai greu ca abia ma obisnuiesc cu Wordpres