5

मैं जावा और सेलेनियम का उपयोग करके स्क्रिप्ट लिखने की कोशिश कर रहा हूं। स्वचालन के लिए एपियम उपकरण का उपयोग करना। मैंने सिम्युलेटर पर वेब ऐप का परीक्षण पूरा किया। मैं जानना चाहता हूं कि असली आईफ़ोन डिवाइस को वाईफ़ाई के माध्यम से मैक में कनेक्ट करके परीक्षण स्क्रिप्ट चलाने के लिए संभव है या नहीं। यदि हां, तो क्या एक्सकोड डिवाइस का पता लगाने में सक्षम होगा? यदि नहीं, क्या वहां कोई सॉफ्टवेयर है जो इसे प्राप्त करने में मेरी सहायता कर सकता है।
मुझे पता है कि यूएसबी का उपयोग कर कनेक्ट करने का विकल्प है लेकिन मैं रिमोट मैक मशीन से निपट रहा हूं।आईफोन वास्तविक डिवाइस स्वचालन पर्यावरण सेटअप

उत्तर

4

अब अगर मैं आपकी समस्या को सही ढंग से समझ रहा हूं - आप वास्तविक रूप से मैक से कनेक्ट किए बिना वास्तविक डिवाइस पर परीक्षण करना चाहते हैं।

**Answers:** 

    1. There is no way, you can run test on Real Device without physically connecting it to Mac with an Xcode. 
    2. Xcode can't detect any iPhone via wifi. 
    3. There is one way to run test on iPhone without physical connection, if you want to run tests on mobile website that is Safari: 
     A. **ONE TIME SETUP** You need to install iWeb Driver (app) in iPhone once via Xcode. This is a deprecated way though. If you want this, I'll upload the iWeb Driver source code on github, you can download and install further. 
     B. Now before running test, you need to launch the iWeb Driver (app) manually on device, once you run this, it will flash an a URL on app. 
     C. Use this url in Remote Webdriver like: 

    DesiredCapabilities cap = new DesiredCapabilities(); 
       cap.setCapability(CapabilityType.PLATFORM, DesiredCapabilities.iphone()); 

WebDriver iphoneDriver = new RemoteWebDriver(new URL(iphoneIp), cap); 
    and then use this driver just like other and run your tests. 
संबंधित मुद्दे