ios-ui-automation

Xcode 9 - Xcodebuild error - UI tests not running, Timed out waiting for AX loaded notification

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-10 04:12:46
问题 My tests do not start executing, and always timeout every time I try to use an xcodebuild command. The command that I used is the following: xcodebuild -workspace App.xcworkspace -scheme 'AppName' -sdk iphonesimulator -configuration 'UI_Automation' CODE_SIGN_STYLE='Manual' CODE_SIGN_IDENTITY='iPhone Developer: John Smith (XXXXXXXX)' PROVISIONING_PROFILE_SPECIFIER='John Smith PP Name' DEVELOPMENT_TEAM='ABC Company Apple DEV' -destination 'platform=iOS Simulator,name=iPhone 8,OS=11.2'

Xcode 9 - Xcodebuild error - UI tests not running, Timed out waiting for AX loaded notification

耗尽温柔 提交于 2021-02-10 04:11:57
问题 My tests do not start executing, and always timeout every time I try to use an xcodebuild command. The command that I used is the following: xcodebuild -workspace App.xcworkspace -scheme 'AppName' -sdk iphonesimulator -configuration 'UI_Automation' CODE_SIGN_STYLE='Manual' CODE_SIGN_IDENTITY='iPhone Developer: John Smith (XXXXXXXX)' PROVISIONING_PROFILE_SPECIFIER='John Smith PP Name' DEVELOPMENT_TEAM='ABC Company Apple DEV' -destination 'platform=iOS Simulator,name=iPhone 8,OS=11.2'

How do you set the accessibility label on an image that is drawn with Core Graphics?

廉价感情. 提交于 2021-01-27 15:03:24
问题 I am trying to write UIAutomation tests around some core graphics logic. Currently we are using core graphics to draw an image. I'm trying to set the accessibility label/identifier/value on the image so that I can verify its presence via a UIAutomation test, but no matter what I do I'm not getting the accessibility label/identifier/value on the DOM in my test. Here are the things I have tried: Setting directly on the image. UIImage *uiImage = [UIImage imageWithData:bfCaseStudy.image]; uiImage

How to handle data encryption in Ranorex?

女生的网名这么多〃 提交于 2020-06-13 08:49:25
问题 I want to get encrypted-password from database for login in Android and iOS App. I've made Username and password as data binding and by setting password-variable to the textField, I want the password to be converted/decrypted, to set password correctly, otherwise testcase will be always failed. is there any built-in method/function in Ranorex for doing data encryption? If not, how to do it? (I'm new in Ranorex and test automation.) 回答1: There is no built-in method to encrypt/decrypt. You will

How to handle data encryption in Ranorex?

馋奶兔 提交于 2020-06-13 08:49:18
问题 I want to get encrypted-password from database for login in Android and iOS App. I've made Username and password as data binding and by setting password-variable to the textField, I want the password to be converted/decrypted, to set password correctly, otherwise testcase will be always failed. is there any built-in method/function in Ranorex for doing data encryption? If not, how to do it? (I'm new in Ranorex and test automation.) 回答1: There is no built-in method to encrypt/decrypt. You will

How to get pyautogui's click working on mac?

℡╲_俬逩灬. 提交于 2020-03-23 08:14:45
问题 pyautogui's click method's issue: I am running the script from Spyder, if I click anything on Spyder's window the click works fine. If I execute a script to open Outlook, then click on anything, the click does not happen. Although I am able to use the "moveTo" functionality properly. Things I have tried as suggested by doing google search: pyautogui.click() pyautogui.click() OS : mac os high sierra Note: In order to reach any located image I have to do coordinates/2, as it is a Retina 2x

Xcode: UI Automation: waitForValid()

一世执手 提交于 2020-02-20 06:00:06
问题 There's a waitForInvalid() but what about a waitForValid() function? For some reason, push/popTimeout doesn't work for me in many cases. Apple? 回答1: If the element is "valid" but not "visible" that might return too early. This should wait until its visible and valid. UIATarget.localTarget().pushTimeout(20); window.navigationBar().name()["Welcome"].withValueForKey(1, "isVisible"); UIATarget.localTarget().popTimeout(); or UIATarget.localTarget().pushTimeout(20); window.navigationBar().name()

UIAutomation : Cancel button on Alert view is tapped without actually doing it

两盒软妹~` 提交于 2020-01-13 11:36:09
问题 I'm facing this weird problem in UIAutomation. I am checking an alert. In that, I am trying to log alert title and alert message. My code for this is: UIATarget.onAlert = function onAlert(alert) { UIALogger.logMessage("alert Shown"); UIALogger.logMessage(frontApp.alert().name()); UIALogger.logMessage(frontApp.alert().staticTexts()[1].value()); } var target = UIATarget.localTarget().frontMostApp().mainWindow(); target.scrollViews()[0].buttons()["saveB"].tap(); UIATarget.localTarget().delay(2);

Swift XCUI string assertion failing

£可爱£侵袭症+ 提交于 2020-01-06 06:09:32
问题 I am using xcode 8.3.3 and writing a XCUI test. I have the following: let address = XCUIApplication().buttons["URL"].value as! String Looking in the debugger, I can see the value is: If I set expectedURL = "\u{e2}auth.int....net" then it returns: If I set expectedURL = "auth.int....net" then it returns: How can I make the test assertion find the two strings to be equal? Tried the following, but it doesn't replace the "\u{e2}": let address = value.components(separatedBy: ",").first!

Error : Xcode 4.6.3 - Method dragFromToForDuration does not work at all

浪尽此生 提交于 2020-01-05 04:02:08
问题 I use method dragFromToForDuration to test my app on iPad. This method intends to tap and hold then drag an image to another location on the iPad's screen. I define exactly location of both the image and the targeted area. However, implementing this method generates an error: target.dragFromToForDuration({x:startCoord.x, y:startCoord.y}, {x:finishCoord.x, y:finishCoord.y}, {duration:3}); [_NSCFDictionary doubleValue] : unrecognized selector sent to instance 0x1f83e5d0 Update: If I remove the