-
Notifications
You must be signed in to change notification settings - Fork 233
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
@MobileTest iOS not honoring locale and language settings #53
Comments
@renelux - I just ran your test on my machine and it's definitely setting the locale and language to French. In fact, it fails because of the following line in your test, since the text is now in French. |
@azaytsev I am still running in to the same issue. Can you please tell me what Xcode you are using? And what simulator. I am on the latest version for both and I am not sure if it is supported correctly. Is there a way to set the simulator that I want to use? |
@renelux, I was able to test with both XCode 6.0.1 / IOS 8.0 simulator and XCode 5.1.1 / iOS version 7.1 The answer to your second questions is yes, you can specify which simulator to use with capabilities (in IOSDriver) but i don't believe SeLion exposes that function at the moment. For example:
|
I am running Xcode 6.1 and the default Simulator runs iOS 8.1. I will see if I can added the functionality to SeLion to specify the simulator and SDK version. |
Rene For more information please take a look at the javadoc for
Sent from a mobile. -------- Original message -------- I am running Xcode 6.1 and the default Simulator runs iOS 8.1. I will see if I can added the functionality to SeLion to specify the simulator and SDK version. — |
@krmahadevan the down-side of using a custom capabilities provider here is the customization will apply to all tests for iOS which may not be the desired outcome. |
Doug If that doesn't work the only other option I see is to either enhance the @mobiletest annotation and add an attribute using which one can pass in a custom capability provider ( I don't want to add attributes directly to the annotation ) or we could just define a new annotation itself @CapabilityProvider and then use this. I would prefer the new annotation approach and extend this to @webtest as well.
Sent from a mobile. -------- Original message -------- @krmahadevanhttps://github.com/krmahadevan the down-side of using a customer capabilities provider here is the customization will apply to all tests for iOS which may not be the desired outcome. — |
@renelux I'm working on enhancing @mobiletest annotation to support additional attributes to allow the enduser to specify the sdk version as well as device variation (iphone5, iphone6, etc), however, I've discovered a bug in ios-driver which needs to be fixed before this can be accomplished. I'm working on issuing an ios-driver pull request to address it. Will keep you posted as when this is ready to go. |
@azaytsev thanks. I tried to implement the CustomCapabilities provider but it didn't solve my issue. I will wait for your update to see if I have more luck. |
@azaytsev When you say you tried to implement CustomCapabilities Provider and it didn't work, what do you mean ? What exactly did you try ? Can you please help elaborate ? |
@krmahadevan I don't see anything wrong with changing the acceptable values for |
@krmahadevan I created a CustomCapabilities provider that extends the DefaultCapabilitiesBuilder. To the Capabilities I add the following parameters
In the console I see that these capabilities have been add. But the simulator that starts is still iOS 8.1 so it seems that the value is ignored. I am thinking to downgrade Xcode and the iOS SDK to see if that helps. |
That's interesting. So the capabilities part works. Just that the remote server responsible for spawning the simulator is not honoring the capabilities so to speak. This may require a bit more investigation to see where does the problem lie. In the meantime can you please check on the following ?
Sent from a mobile. -------- Original message -------- @krmahadevanhttps://github.com/krmahadevan I created a CustomCapabilities provider that extends the DefaultCapabilitiesBuilder. To the Capabilities I add the following parameters capabilities.setCapability("simulatorVersion", "7.1"); In the console I see that these capabilities have been add. But the simulator that starts is still iOS 8.1 so it seems that the value is ignored. I am thinking to downgrade Xcode and the iOS SDK to see if that helps. — |
Doug
Sent from a mobile. -------- Original message -------- @krmahadevanhttps://github.com/krmahadevan I don't see anything wrong with changing the acceptable values for @mobiletest String device() such that it can receive iphone (existing support), ipad (existing support), android (existing support), android{x} (existing support), iphone{x} (new), and ipad{x} (new). — |
@renelux its because of the bug in ios driver that Alex mentioned above |
@renelux issued a pull request in ios-driver for the bug fix. ios-driver/ios-driver#327 I'm also working on adding iphone{x} capability to SeLion which will allow you to specify the sdk version you want to run with. |
@azaytsev it seems that your bug is solving the issue. Or atleast I now get a different kind of error.
I guess this is because I don't have the proper SDK installed yet. Any pointers on how I can install a older SDK besides the latest version? If I remove the SDK version from my CustomCapability it will just start the iOS 8.1 simulator. Edit: Already found a document that is helpful with installing older Xcode versions. http://docs.appcelerator.com/titanium/3.0/#!/guide/Installing_the_iOS_SDK-section-29004875_InstallingtheiOSSDK-Xcode incase other users ever need it. |
@renelux You are close. I am still working on adding functionality to SeLion to allow users to specify device variation via annotation. In the meanwhile you should be able to fix it by adding another capability. capabilities.setCapability(IOSCapabilities.VARIATION, DeviceVariation.iPhone5s); There is also a way to run multiple version on XCode on one machine and be able to switch between them (I currently have this setup). I'll publish the instructions on how to do it some time next week when I come back from PTO. |
@renelux |
@kumaravel-jayakumar thanks, I already found a article that suggests the same thing. I am currently downloading version Xcode 5.1.1 and Xcode 6.0.1 as it seems that @azaytsev got it working. I will update this thread once it works. |
@azaytsev |
@azaytsev I got it working on Xcode 5.1.1 and SDK 7.1 but with Xcode 6.0.1 and SDK 8.0 the InternationalMountains app crashes. Is the version linked on the ios-driver website compatible with iOS 8? |
@renelux |
@renelux fyi - ios-driver/ios-driver#327 is merged |
@renelux - Take a look at my branch here(https://github.com/azaytsev/SeLion/tree/azaytsev-ios-mobiletest-enhancements). It's still a work in progress but I've added capabilities that allow you to specify the sdk version and/or device variation via annotations. Take a look at NativeAppDemo.java class for some code samples. This should resolve you issue of being able to launch an app in different version of sdk/phone variation without actually having to install multiple versions os XCode. |
@renelux is this still an issue or can this ticket be closed? |
I'll close this when we merge the new code to SeLion for specifying SDK version. :) |
new code merged to develop branch. closing this. |
Please see the example below if I run this test case the simulator is still being launched with language=en and locale=en_US.
The text was updated successfully, but these errors were encountered: