Skip to content

refactor: loading xcuitest related methods only for XCUITest case #631

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

Merged

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Aug 12, 2017

Eliminate global driver to enable multi-device automation within a single process #312

  • run tests for iOS

@KazuCocoa KazuCocoa added this to the v9.6.0 milestone Aug 12, 2017
@KazuCocoa KazuCocoa changed the title Refactor loading xcuitest related methods refactor: loading xcuitest related methods only for XCUITest case Aug 12, 2017
@saikrishna321
Copy link
Member

Is this possible with latest server ? Single server session which can handle multiple driver instances ??

@KazuCocoa
Copy link
Member Author

KazuCocoa commented Aug 13, 2017

If we use instance @driver, not a global driver, we perhaps can conduct multiple instances for iOS. Though, I'm trying to check the behaviour with test scenarios before next release.

@saikrishna321
Copy link
Member

@KazuCocoa will wait to hear from you on this

@KazuCocoa
Copy link
Member Author

KazuCocoa commented Aug 14, 2017

@saikrishna321

Sorry for miss the comment. 😞

If we don't use the global driver, means we don't use promote_appium_methods and promote_singleton_appium_methods, I think we can handle multiple driver instances with current master ruby_lib.
And I'm working to reduce or remove the global driver more on this issue and plan to prepare test cases running on multiple instances by Xcode 11.

@saikrishna321
Copy link
Member

@KazuCocoa

I think we can handle multiple driver instances with current master ruby_lib

Agree this is possible, but is this possible to with Single appium server session ?

@KazuCocoa
Copy link
Member Author

Sorry, I'm a bit confusing 🙇
Which is the single appium server, the following's 1 or 2?

@driver 1(thread 1) ---session1---- single appium server----devices
@driver 2(thread 2) ----session2----/
@driver 1(thread 1) ----session1--- single appium server----devices
                  \-------session2------/

I guess 1 is possible but 2 is not.
But I'm not sure 1 is possible completely because I haven't implemented such case.

And

prepare test cases running on multiple instances by Xcode 11

I commented means I'll try to implement a test case like https://github.com/appium/appium-xcuitest-driver/blob/master/test/functional/parallel/parallel-simulators-e2e-specs.js

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

Successfully merging this pull request may close these issues.

2 participants