Write and Run Java Test from Eclipse IDE
Install and execute Android APK file from code.
Step A: Select a directory as workspace
Step B: Type a name of project and check your default settings.
Step C: Right click on project and select properties > Java Build Path > Select Class Path and Add required libraries from Add External JARs
Step D: Add External JARs as Java Client Library. [Refer: Installation for Appium Test — (Part 07)]
Step E: Add External JARs as Selenium Driver (Java). [Refer: Installation for Appium Test — (Part 07)]
Step F: Copy and Paste “Sample APK File” into Src folder
Step G: Right Click on Project > New > Package > Create package and name it as “demo”.
Step H: Right Click on Package > Create class and name it as “MobileTest1”.
Step I: The skeleton of Class “MobileTest1” look like as above.
Step J: Update the Class “MobileTest1” look like as above.
Step K: Run Appium Server and Run Emulator. Right Click on source code and Select Run As > Java Application and wait for your output in your selected Emulator.
An output of the above steps is…
Let us know what you think
Please give us feedback on this manual, so we can provide content that’s truly useful and helpful. Thanks!