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

[Feat]: Support StoreKit Testing #18424

Open
KazuCocoa opened this issue Mar 30, 2023 · 2 comments
Open

[Feat]: Support StoreKit Testing #18424

KazuCocoa opened this issue Mar 30, 2023 · 2 comments
Assignees
Labels

Comments

@KazuCocoa
Copy link
Member

KazuCocoa commented Mar 30, 2023

Is your feature request related to a problem? Please describe.

A user wants to do IAP testing via StoreKit without exact AppStore connection.

Describe the solution you'd like

I wonder if we can provide IAP testing env via StoreKitSession in Appium/WDA. So for example when we provide a capability, or a settings item, the session will provide IAP testing via StoreKitSession instead of real App Store connection.

StoreKitSession
https://developer.apple.com/documentation/storekittest/sktestsession

https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode

What we should do:
https://medium.com/lightricks-tech-blog/reimplementing-storekit-testing-how-objective-c-makes-reverse-engineering-easy-1ff6befe08b5 is an article to reimplement the StoreKitSession.

According to a friend of mine, this method worked in both a simulator and a real device. He implemented this way for not Appium, ordinally, but maybe it can do in Appium/WDA as well.

I need to play something and read the article well though.


To enhance more, we may be able to re-implement some functionality with the wrapper, like SKTestSession.disableDialogs as false.

@KazuCocoa KazuCocoa added the Enhancement feature label Mar 30, 2023
@KazuCocoa KazuCocoa self-assigned this Mar 30, 2023
@KazuCocoa
Copy link
Member Author

https://github.com/ainame/StoreKitTestingProxy is a PoC

@DanielHaimMayberg
Copy link

Any update on this feature? Hoping to test sandbox purchases with Appium on simulator

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

No branches or pull requests

2 participants