Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel Execution is Not happening #1083

Open
SushanthN opened this issue Oct 3, 2023 · 10 comments
Open

Parallel Execution is Not happening #1083

SushanthN opened this issue Oct 3, 2023 · 10 comments

Comments

@SushanthN
Copy link

When i try to connect 2 devices locally, the parallel execution is not happening because appium server is getting started on only one port at ATDRunner class. Please check

@SushanthN
Copy link
Author

SushanthN commented Oct 3, 2023

@saikrishna321 In previous release versions, the appium server was invoked on onStart method which was called under AppiumParallelMethodTestListener

@saikrishna321
Copy link
Member

Can you share full logs

@Jitu1888
Copy link

Jitu1888 commented Oct 3, 2023

Hi @saikrishna321 , I see only one appium server has been started in the framework if we are running automation locally.
image

@Jitu1888
Copy link

Jitu1888 commented Oct 3, 2023

We should start appium server for each test method right.

@saikrishna321
Copy link
Member

Current implementation is right. Single server can handle multiple sessions. ATD was always starting single server session

@Jitu1888
Copy link

Jitu1888 commented Oct 3, 2023

So I will start an Appium server using a free port 4723, and start parallel execution with 4 phones with different system ports should work right. @saikrishna321

@saikrishna321
Copy link
Member

@Jitu1888 Yes you are correct

@saikrishna321
Copy link
Member

@SushanthN Please share the logs on what is not working in Parallel.

@AnilPatidar
Copy link
Contributor

AnilPatidar commented Oct 17, 2023

@saikrishna321 getting null pointer in this method of AppiumParallelTestListener class

@OverRide
public void onTestStart(ITestResult iTestResult) {
try {
testLogger.startDeviceLogAndVideoCapture(iTestResult);
TestExecutionContext testExecutionContext =
new TestExecutionContext(iTestResult.getTestName());
testExecutionContext.addTestState("appiumDriver", AppiumDriverManager.getDriver());
testExecutionContext.addTestState("deviceId",
AppiumDeviceManager.getAppiumDevice().getUdid());
} catch (Exception e) {
e.printStackTrace();
}
}

@saikrishna321
Copy link
Member

@AnilPatidar Please share full logs and code example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants