From Java to XML (how to install eclipse)

Hello,
I try to create my own test in java but I have some problems.
I read the official tutorial:
tutorial

But I can’t make my own test, I have not the same thing on my Eclipse IDE.

Nobody knows how can it be done?
Which version of Eclipse have you? (or any special package?)

Hi,
In order to get help you need to be more specific.
What you did?
What you expected?
What happened?

Hi,
I try to install Eclipse but I think that I do not do it correctly…
I hope I can create my own tests in Java on Eclipse, but I don’t know why, I have not the same think than in the tutorial so it doesn’t work

I think this is on the step 4 :“Open the newly created project, open the build.gradle file that was created. Replace the generated content with the following:”
You replace the totality of the contents by what you have to copy,

In fact, if I add the line "compile group: ‘io.appium’, name: ‘java-client’ version:‘4.1.2’ " , after my Gradle Tasks is empty… somewone else has the same problem?

EDIT: my Gradle Tasks is not empty if I use the code for the 10.8 version of Appium studio, but I use de 10.9 version…

you need to use Eclipse perspective and show java packages

Window -> Preferences - > show view - > Java

then you’ll see your classes, and will be able to paste the code

Thanks for this answer.
I restart with a new basis : Appium Studio v10.8.41, and the good tutorial for this version, and It is working! I don’t understand why my import cannot be resolved…

EDIT: I found my mistake with the .jar file , thanks :slight_smile: I hope I will make my first automated test soon!

Thanks for your help, I found my problem with import.

This is my first time with Java and Eclipse, How I can run my test with eclipse ( Nothing happen with the “run” bouton ?)

EDIT: the Iphone reboot automaticly when I run my project

Hi,

In your test class, have you tried right-clicking → run as junit?

Have you made sure that you queried the device correctly?
dc.setCapability(MobileCapabilityType.UDID, “0123456789ABCDEF”);

What do you see in eclipse console when you run the test? Can you share a screenshot?