Appium Studio for Eclipse - Project Configuration
Appium Studio for Eclipse provides a simple way to configure your Java project.
Upon application of the necessary configuration to your project, the following changes occur:
- Java classpath container is added so that all of the needed jar files are made available.
- BaseTest class is generated. This class provides some basic framework services to your test initialization.
- AndroidDemoTest and IOSDemoTest are generated, that contain boilerplate code for Android and iOS platforms respectively.
- Gradle project's build.gradle and a Java properties file cloud.properties is generated and added for simple integration into CI environments like Jenkins.
To apply the configuration:
-
Create a new Java project (or use an existing one). If creating a new project, uncheck "Create module-info.java file".
-
Right-click on the Java project, then click Configuration > Mobile Nature.
-
Set the project nature of Mobile nature.
Once the configuration is applied, your project should look like the following:
To add gradle nature to the project (this is optional):
-
Right-click the project, then click Configure → Add gradle nature.
-
Add the gradle run configuration with tasks 'clean' and 'build'.
-
Click Run.
The project is built successfully. -
Right-click the project, then click Refreshproject.
After refresh, classes should have Javadoc attached.
To verify your environment configuration (TestNG), right-click testng.xml and execute it.
Both AndroidDemoTest and IOSDemoTest are executed in parallel.
cloud.properties File
The cloud.properties file holds the information needed to connect to the server during runtime.
#Mon Sep 04 12:59:25 IDT 2017
url=https\\://cloud.seetest.io:443
accessKey=eyc..dfQ.eyJ..In0.q2k9..O6zs
project=Project I
username=user1
In this example above, the cloud.properties file directs the execution to Digital.ai Continuous Testing Cloud Platform for user user1.
Authentication is performed using Access Key**,** which was used to connect to the cloud. If there is a change in the Access Key, cloud.properties file needs to be updated accordingly.
For more information about using the access key, see Obtain Your Access Key.
The cloud.properties file is for CI while running a test from Eclipse. The parameters set in the Plugin overrides it.