xcuitest

Is it possible to automate two apps at the same time in iOS?

半城伤御伤魂 提交于 2019-12-22 18:17:24
问题 We have this scenario: Execute the script in app1, in certain step app1 sends us a SMS with a URL, app1 is expecting a validation code in a textfield We have to open SMS app to verify if SMS exists, this SMS has a URL and when we click on it, it sends us to app1 again but automatically the validation code is written in the textfield. then, continue with the script. is it possible to do this? what do we need to make it? Thanks. 回答1: Yes, As per your scenario you have to launch the messages

I set up Appium for Real iOS device, Unable to launch WebDriverAgent because xcodebuild failed with code 65

*爱你&永不变心* 提交于 2019-12-20 04:55:25
问题 I am trying to run Appium on a real iOS device. I have been able to successfully run it on android, but when I try running for iOS I get the error. Here is my environment: Appium v1.8.0 iPhone SE 11.2.6 Xcode 9.3.1 I’ve read that error 65 is often caused by using a free account, but I’m using the xcodeSigningId for our development team. I would rather the automatic configuration work, but I tried the manual configuration anyway, but I don’t think I did it right. I followed the steps from this

How to use Appium to automate a 3rd party ios app on real device

本小妞迷上赌 提交于 2019-12-20 03:43:13
问题 I'm trying to automate a 3rd party ios app (YouTube, for example) on a real iPhone using Appium . I haven't been able to find a single guide/tutorial to achieve this, but from the information I gathered, it seems to involve the following steps: Extract the pre-installed app and decrypted it (using a tool such as Clutch) Resign it with my development cert I know I omitted lots of details in each step, but my question is, has anyone done this successfully and can confirm this is actually

Is it possible to open a screen directly in XCUITest?

心已入冬 提交于 2019-12-19 06:14:11
问题 I have 3 screens, lets say, Login Forgot Password Help screen By default the Login screen open when the app starts. The Forgot Password screen is shown when you click on the Forgot Password button, and Help Screen opens when the Help link is clicked. Can I somehow open the the Forgot Password Screen directly without going through the procedure of clicking the button using XCUITest ? I am suggesting something in the same lines as passing an adb intent to open a View directly. 回答1: As far as I

How do I install the XCUITest runner app and ipa on a real device and get the results?

醉酒当歌 提交于 2019-12-13 12:14:21
问题 How do I install the XCUITest runner app and ipa on a real device and get the results? I have a runner.app that was generated by building it for testing, and a deployed/signed .ipa. Now what I would like to happen is to have it installed on a real device, execute it, and get the device log. 回答1: Edited with answer... It is possible to achieve this. In order to build an ipa of the UI Testing app bundle you can follow these steps: Open your project containing in Xcode. Select the device you'd

How to clear NSUserDefaults programmatically in XCUITest using Simulator

给你一囗甜甜゛ 提交于 2019-12-12 11:22:29
问题 I've read several answers related to this and they suggest doing one of the following, but these options are not working for me. I have an XCUITest and I'm trying to clear the standard user defaults before before running the rest of my XCUITest. Currently my test app has a button that calls this code. I've also tried calling this code directly from within the XCUITest (I'm not sure if this is expected to work or if it needs to be run from within the app). NSString *appDomain = [[NSBundle

XCUITest Class teardown isnt deleting the app. But works if its instance teardown. What am I doing wrong?

无人久伴 提交于 2019-12-11 15:50:06
问题 I have a class teardown which is trying to remove the app, but it doesn't recognize app.terminate(). class DeviceSettingsUtilities : UITestUtilities { func removeApp(productName:String){ print("in teardown") let springboard = XCUIApplication(bundleIdentifier: "com.apple.springboard") XCUIApplication().terminate() // this does nothing XCUIApplication(bundleIdentifier: "com.xxx.xxxx").terminate()//this does nothing too, but this works when called as an instance teardown sleep(5) springboard

I want to swipe to find/locate an element that is present down in an IOS App

丶灬走出姿态 提交于 2019-12-11 15:28:25
问题 I have an Ios app and I'm doing UI automation of it. I have an element/button that is one scroll down the page. I have seen that appium has depreciated most of the functions like scroll, moveto and swipe. since all of the help is related to that. I am using Appium Version 1.13.0 (1.13.0.20190505.5) 回答1: Use that method instead of appium methods: JavascriptExecutor js = (JavascriptExecutor) driver; HashMap<String, String> scrollObject = new HashMap<>(); scrollObject.put("direction", "down");

Access ID does not work when testing a textfield with `isSecureTextEntry = true`

落花浮王杯 提交于 2019-12-11 00:43:53
问题 So i am trying to access and confirm the presence of a password textfield in my uitests but as soon as assign their isSecureTextEntry = true the tests can no longer find them by the accessID. Does any one know why? and if there is a way around this so that i can find them and use them in the tests? Preferably so that i can still use the access ID to locate them in the tests. My test is very simple: func testHasPasswordTextField() { let passwordTextField = app.textFields[AccesID

Is it possible to automate touch ID or face ID using xcuitest in simulator?

橙三吉。 提交于 2019-12-10 19:47:51
问题 Is there a way to automate face ID or Touch ID using xcuitest framework in simulator. Manually I can perform enrolling face/touch id and perform matching or non-matching scenarios. However I would like to know if it can be automated? 回答1: Given this post by Kane Cheshire it is possible to automate touch ID and face ID for unit testing by sending a Darwin notification like so : + (void)enrolled { int token; notify_register_check("com.apple.BiometricKit.enrollmentChanged", &token); notify_set