Created
October 15, 2013 13:20
-
-
Save vmaxim/6991453 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d:>java -cp ".\lib\*;.\bin\;" org.testng.TestNG testng.xml | |
[TestNG] Running: | |
D:\testng.xml | |
test2_1 | |
test2_2 | |
test2_3 | |
test3_1 | |
test3_2 | |
test3_3 | |
test1_1 | |
test1_2 | |
test1_3 | |
=============================================== | |
Suite | |
Total tests run: 9, Failures: 0, Skips: 0 | |
=============================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.msk; | |
import org.testng.annotations.Test; | |
@Test(priority=3) | |
public class Test1 { | |
public void test1(){ | |
System.out.println("test1_1"); | |
} | |
public void test2(){ | |
System.out.println("test1_2"); | |
} | |
public void test3(){ | |
System.out.println("test1_3"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.msk; | |
import org.testng.annotations.Test; | |
@Test(priority=1) | |
public class Test2 { | |
public void test1(){ | |
System.out.println("test2_1"); | |
} | |
public void test2(){ | |
System.out.println("test2_2"); | |
} | |
public void test3(){ | |
System.out.println("test2_3"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.msk; | |
import org.testng.annotations.Test; | |
@Test(priority=2) | |
public class Test3 { | |
public void test1(){ | |
System.out.println("test3_1"); | |
} | |
public void test2(){ | |
System.out.println("test3_2"); | |
} | |
public void test3(){ | |
System.out.println("test3_3"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> | |
<suite name="Suite"> | |
<parameter name="configFile" value="application.properties"></parameter> | |
<test verbose="1" name="Tests" preserve-order="false"> | |
<classes> | |
<class name="ru.msk.Test1"/> | |
<class name="ru.msk.Test2"/> | |
<class name="ru.msk.Test3"/> | |
</classes> | |
</test> | |
</suite> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment