ldi-github / shirates-core

Integration test framework for mobile apps
https://ldi-github.github.io/shirates-core/
Apache License 2.0
8 stars 0 forks source link

Can't change device language in beforeAll #29

Closed yukilabo closed 1 year ago

yukilabo commented 1 year ago

I want to change the language using LanguageHelperAndroid.setLanguage in beforeAll. However, it fails because beforeAll is called before Appium initialization.

Is it possible to move the code block

https://github.com/ldi-github/shirates-core/blob/main/src/main/kotlin/shirates/core/testcode/UITestCallbackExtension.kt#L128-L132

to

https://github.com/ldi-github/shirates-core/blob/main/src/main/kotlin/shirates/core/testcode/UITestCallbackExtension.kt#L177

ldi-github commented 1 year ago

Hi @yukilabo . Thank you for your feedback!

We implemented new functionbeforeAllAfterSetup in version 4.1.0. https://github.com/ldi-github/shirates-core/blob/main/doc/markdown/in_action/test_fixture/test_fixture.md

Try it! I hope you enjoy your auto testing with Shirates.

yukilabo commented 1 year ago

Thank you. It's the one I wanted.