-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
269 additions
and
139 deletions.
There are no files selected for viewing
20 changes: 0 additions & 20 deletions
20
allure-testng/src/test/java/io/qameta/allure/samples/AfterSuiteMethod.java
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
allure-testng/src/test/java/io/qameta/allure/samples/BeforeSuiteMethod.java
This file was deleted.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
allure-testng/src/test/java/io/qameta/allure/samples/PerMethodFixtures.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package io.qameta.allure.samples; | ||
|
||
import io.qameta.allure.Step; | ||
import org.testng.annotations.AfterMethod; | ||
import org.testng.annotations.BeforeMethod; | ||
import org.testng.annotations.Test; | ||
|
||
/** | ||
* @author Egor Borisov ehborisov@gmail.com | ||
*/ | ||
public class PerMethodFixtures { | ||
|
||
@BeforeMethod | ||
public void beforeMethod1() { | ||
step(); | ||
} | ||
|
||
@BeforeMethod | ||
public void beforeMethod2() { | ||
step(); | ||
} | ||
|
||
@Test | ||
public void test1() { | ||
step(); | ||
} | ||
|
||
@Test | ||
public void test2() { | ||
step(); | ||
} | ||
|
||
@AfterMethod | ||
public void afterMethod1() { | ||
step(); | ||
} | ||
|
||
@AfterMethod | ||
public void afterMethod2() { | ||
step(); | ||
} | ||
|
||
@Step | ||
public void step() { | ||
|
||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
allure-testng/src/test/java/io/qameta/allure/samples/PerSuiteFixtures.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package io.qameta.allure.samples; | ||
|
||
import io.qameta.allure.Step; | ||
import org.testng.annotations.AfterSuite; | ||
import org.testng.annotations.BeforeSuite; | ||
import org.testng.annotations.Test; | ||
|
||
/** | ||
* @author Egor Borisov ehborisov@gmail.com | ||
*/ | ||
public class PerSuiteFixtures { | ||
|
||
@BeforeSuite | ||
public void beforeSuite1() { | ||
step(); | ||
} | ||
|
||
@BeforeSuite | ||
public void beforeSuite2() { | ||
step(); | ||
} | ||
|
||
@Test | ||
public void test() { | ||
step(); | ||
} | ||
|
||
@AfterSuite | ||
public void afterSuite1() { | ||
step(); | ||
} | ||
|
||
@AfterSuite | ||
public void afterSuite2() { | ||
step(); | ||
} | ||
|
||
@Step | ||
public void step(){ | ||
|
||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
allure-testng/src/test/java/io/qameta/allure/samples/TestTagFixtures.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package io.qameta.allure.samples; | ||
|
||
import io.qameta.allure.Step; | ||
import org.testng.annotations.AfterTest; | ||
import org.testng.annotations.BeforeTest; | ||
import org.testng.annotations.Test; | ||
|
||
/** | ||
* @author Egor Borisov ehborisov@gmail.com | ||
*/ | ||
public class TestTagFixtures { | ||
|
||
@BeforeTest | ||
public void beforeTest1() { | ||
step(); | ||
} | ||
|
||
@BeforeTest | ||
public void beforeTest2() { | ||
step(); | ||
} | ||
|
||
@Test | ||
public void test() { | ||
step(); | ||
} | ||
|
||
@AfterTest | ||
public void afterTest1() { | ||
step(); | ||
} | ||
|
||
@AfterTest | ||
public void afterTest2() { | ||
step(); | ||
} | ||
|
||
@Step | ||
public void step() { | ||
|
||
} | ||
} |
Oops, something went wrong.