简体   繁体   中英

iOS automation with appium on Simulator

I am new into Appium iOS, Can someone give me the step by step installation process for Appium test on Mac OS using simulator.

Note - I have installed Xcode, and have source file of app. Now which setting is required and which capabilities I need to add in code in Eclipse.

First of all You need to install appium desktop from here

https://github.com/appium/appium-desktop/releases/tag/v1.1.0-beta.2

Then, start the appium server by clicking on "Start Server" button

Next, you have to add the following desired capabilities in you code

        cap.setCapability("platformVersion", "10.3");
        cap.setCapability("deviceName", "iPhone Simulator");
        cap.setCapability("platformName", "iOS");
        cap.setCapability("bundleId", bundleId);

    cap.setCapability("automationName", "XCUITest");
        return new AppiumDriver("http://127.0.0.1:4723/wd/hub", cap);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM