Skip to content

Commit d6d3a92

Browse files
authored
Update AppiumParallelMethodTestListener.java
1 parent cbff418 commit d6d3a92

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/com/appium/manager/AppiumParallelMethodTestListener.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ private void startReportLogging(ITestResult iTestResult) throws IOException,
9393
*/
9494
@Override
9595
public void beforeInvocation(IInvokedMethod iInvokedMethod, ITestResult iTestResult) {
96+
System.out.println("inside ATD:beforeInvocation");
9697
allocateDeviceAndStartDriver(iTestResult);
9798
if (!isCloudExecution()) {
9899
currentMethods.set(iInvokedMethod.getTestMethod());
@@ -120,6 +121,7 @@ public void beforeInvocation(IInvokedMethod iInvokedMethod, ITestResult iTestRes
120121

121122
private void allocateDeviceAndStartDriver(ITestResult iTestResult) {
122123
try {
124+
System.out.println("inside start of ATD:allocateDeviceAndStartDriver");
123125
AppiumDriver driver = AppiumDriverManager.getDriver();
124126
if (driver == null || driver.getSessionId() == null) {
125127
deviceAllocationManager.allocateDevice(deviceAllocationManager
@@ -132,6 +134,8 @@ private void allocateDeviceAndStartDriver(ITestResult iTestResult) {
132134
} catch (Exception e) {
133135
e.printStackTrace();
134136
}
137+
System.out.println("inside end of ATD:allocateDeviceAndStartDriver");
138+
135139
}
136140

137141
/*

0 commit comments

Comments
 (0)