Import .DesiredCapabilities ĭesiredCapabilities capabilities = new DesiredCapabilities() ĬtCapability("appium-version", "1.0") ĬtCapability("platformName", "Android") ĬtCapability("platformVersion", "4.4") ĬtCapability("deviceName", "Samsung Galaxy S4 - 4.2.2 - API 17 - 1080x1920") ĬtCapability("app", "/Users/chuckster/Documents/Dev/AppiumTrial/appium-trial. Import io.appium.java_client.AppiumDriver After adding the Appium and TestNG dependencies we will create the Page Object package inside src > test > java Figure-10: Adding new package inside srctestjava. I am also using JUnit in this example and the dependency is listed above as well. Otherwise you’ll get missing class errors and whatnot when you go to compile and run your tests. I have a sample test below, I just need a way of running it via gradle :) package The Selenium selenium-java and Appium java-client need to be compatible with each other. I have included the necessary dependencies in my build file:ĪndroidTestCompile('io.appium:java-client:2.0.0') Has anyone attempted to do this and if so can you give me some information on the setup, such as what gradle tasks to use etc. Click Project App copy all the jars in lib. Step 2 Add the Appium jars into your project. Choose all the default options until you reach to the main page. Step 1 Create a test Project in the Android Studio named as RobotiumTest. I would like to run the Appium tests through Android studio via gradle. To test an App with Appium, follow the steps given below. I recently started looking at doing some functional testing with Appium.
0 Comments
Leave a Reply. |