-
Notifications
You must be signed in to change notification settings - Fork 130
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
1 parent
63495e0
commit c1eb452
Showing
13 changed files
with
447 additions
and
30 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
src/test/java/com/aventstack/extentreports/ParallelClass3.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,32 @@ | ||
package com.aventstack.extentreports; | ||
|
||
import java.lang.reflect.Method; | ||
|
||
import org.testng.Assert; | ||
import org.testng.annotations.Test; | ||
|
||
import com.aventstack.extentreports.Status; | ||
import com.aventstack.extentreports.common.ExtentManager; | ||
import com.aventstack.extentreports.common.ExtentTestManager; | ||
|
||
public class ParallelClass3 extends ParallelClassesBase { | ||
|
||
@Test | ||
public void parallelClass1TestResultMustEqualWarning(Method method) { | ||
ExtentTestManager.createTest(method.getName()).info("Log from threadId: " + Thread.currentThread().getId()); | ||
ExtentTestManager.getTest().warning("Log from threadId: " + Thread.currentThread().getId()); | ||
ExtentManager.getInstance().flush(); | ||
|
||
Assert.assertEquals(ExtentTestManager.getTest().getStatus(), Status.WARNING); | ||
} | ||
|
||
@Test | ||
public void parallelClass1TestResultMustEqualSkip(Method method) { | ||
ExtentTestManager.createTest(method.getName()).skip("Log from threadId: " + Thread.currentThread().getId()); | ||
ExtentTestManager.getTest().pass("Log from threadId: " + Thread.currentThread().getId()); | ||
ExtentManager.getInstance().flush(); | ||
|
||
Assert.assertEquals(ExtentTestManager.getTest().getStatus(), Status.SKIP); | ||
} | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
src/test/java/com/aventstack/extentreports/ParallelClass4.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,32 @@ | ||
package com.aventstack.extentreports; | ||
|
||
import java.lang.reflect.Method; | ||
|
||
import org.testng.Assert; | ||
import org.testng.annotations.Test; | ||
|
||
import com.aventstack.extentreports.Status; | ||
import com.aventstack.extentreports.common.ExtentManager; | ||
import com.aventstack.extentreports.common.ExtentTestManager; | ||
|
||
public class ParallelClass4 extends ParallelClassesBase { | ||
|
||
@Test | ||
public void parallelClass1TestResultMustEqualWarning(Method method) { | ||
ExtentTestManager.createTest(method.getName()).info("Log from threadId: " + Thread.currentThread().getId()); | ||
ExtentTestManager.getTest().warning("Log from threadId: " + Thread.currentThread().getId()); | ||
ExtentManager.getInstance().flush(); | ||
|
||
Assert.assertEquals(ExtentTestManager.getTest().getStatus(), Status.WARNING); | ||
} | ||
|
||
@Test | ||
public void parallelClass1TestResultMustEqualSkip(Method method) { | ||
ExtentTestManager.createTest(method.getName()).skip("Log from threadId: " + Thread.currentThread().getId()); | ||
ExtentTestManager.getTest().pass("Log from threadId: " + Thread.currentThread().getId()); | ||
ExtentManager.getInstance().flush(); | ||
|
||
Assert.assertEquals(ExtentTestManager.getTest().getStatus(), Status.SKIP); | ||
} | ||
|
||
} |
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
Oops, something went wrong.