Java8 for iOS Appium testng test

0

I am testing both an iOS and an Android native app with Appium/TestNG and my automation code is cross platform but only supports java8. I build my zip and run my tests successfully on Android, but on iOS, the java version that I am finding is java 12. I searched this forum and saw that previously someone had the opposite issue (needed java > 8) and their workaround was to install the jdk and do the exports. I have that approach working, but am wondering if there a way in the Test Spec to specify java8 (so I don't have to provide it)?

질문됨 4년 전304회 조회
3개 답변
2

Hi
Try adding the following code instead, since a binary of Java8 is included with the test host:

[code]
export JAVA_HOME=/usr/libexec/java_home -v 1.8
java -version
[/code]

Thanks,
Jon

AWS
답변함 3년 전
0

Hi hclmobiletests ,

Those are the standard mode settings, No we currently don't provide a direct mechanism for customer to be able to select java versions.
Using Custom Mode settings is the only way to do that today.(Which you have already verified works)
https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html

AWS
답변함 4년 전
0

hi, Could you share sample custom mode settings script that install jdk1.8 and do the export with me?
I tried this one but it didnt work.
https://us-west-2.console.aws.amazon.com/devicefarm/home?region=us-east-2#/projects/e3de778f-4d0b-45a3-be78-fada79567b90/runs/1929a132-9351-4c63-a0b7-064db540379a/jobs/00000

Thanks,

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인