ui-testing

Xcode UI Testing allow system alerts series

血红的双手。 提交于 2019-12-23 12:33:32
问题 I have problem, if i try allow series system alert, work only one time, and next alert not "allowing" I googling more time, and know about that post: (Xcode 7 UI Testing: how to dismiss a series of system alerts in code) Nothing.. not work. Here my current code, first alert "allowed" successfully, next alert not detected.. XCUIApplication *app = [[XCUIApplication alloc] init]; app.launchEnvironment = @{ @"isUITest" : @YES, @"withFakeData" : fakeData }; [app launch]; for (int i = 1; i <= self

Android Espresso error on button click

﹥>﹥吖頭↗ 提交于 2019-12-23 07:47:30
问题 I'm trying to write some UI tests for an Android APP with the espresso framework. For now I'm just checking if all the elements are present on the splash screen and then I'm trying to click the login button. When the the button is clicked the test fails due to an error that I can't seem to understand why it's happening. My test code is @RunWith(AndroidJUnit4.class) @SmallTest public class WelcomeTest { @Rule public ActivityTestRule<Welcome> mActivityRule = new ActivityTestRule<>( Welcome

MSAA Fails to find winforms controls

喜夏-厌秋 提交于 2019-12-22 20:07:06
问题 I am using Coded UI to automate an application. In the automation process a complex process happens inside the application (loading a PowerPoint inside the application). After this process I can't continue the test because MSAA unable to find any controls in the application.I am using Inspect.exe, before and after the automation fails. I have attached the screen shot of Inspect tool before and after the failure. Is there any solution to overcome this issue? I can't continue automation testing

Espresso Tests cannot access class file

北战南征 提交于 2019-12-22 01:53:26
问题 I get the following errors where i try to run a ui test. /Users/etiennelawlor/workspace/MovieHub/app/src/androidTest/java/com/etiennelawlor/moviehub/MoviesFragmentTest.java Error:(34, 28) error: cannot access AppCompatActivity class file for android.support.v7.app.AppCompatActivity not found Error:(34, 58) error: cannot infer type arguments for ActivityTestRule<> Error:(41, 41) error: cannot access IdlingResource class file for android.support.test.espresso.IdlingResource not found Error:(51,

Xcode UI test manual snapshot

女生的网名这么多〃 提交于 2019-12-21 17:28:11
问题 I want to manually take some snapshots from my applications using UI Tests intoduced in Xcode 7. By default, Xcode takes screenshots of every step and in result I got screenshots that was taken in the middle of transitions between view controllers. I want to manually take snapshot in the specific moments. Any ideas how to do this? I know how to take screenshot of UIView, but XCUIApplication doesn't provide any API to get UIView objects. 回答1: I've created a library for this: https://github.com

“unsafeMutableAddressor : Swift.String”, referenced from:.."

耗尽温柔 提交于 2019-12-21 07:05:11
问题 I got an error: Undefined symbols for architecture x86_64: "DirectBistro.DBTabBarOrderedIndexesKey.unsafeMutableAddressor : Swift.String", referenced from: DirectBistroUITests.TabBarControllerTests.setUp (DirectBistroUITests.TabBarControllerTests)() -> () in TabBarControllerTests.o ld: symbol(s) not found for architecture x86_64 This is my simple UITest class: import XCTest @testable import DirectBistro class TabBarControllerTests: XCTestCase { override func setUp() { super.setUp() let

Microsoft UI Automation Library Vs Coded UI Test

主宰稳场 提交于 2019-12-20 12:21:15
问题 I'm very much new to Test Automation kind of thing. Recently I've been assigned to a project where I have to write an application (or, a script may be, I'm not sure) that will automate the UI testing of a CAD-like WPF application which misses lots of AutomationId s. After doing a little searching on MSDN and other sources I'm a bit confused about whether I should use the Microsoft UI Automation Library or the new Coded UI Test feature included in VS2010. I'm not getting the clear picture of

Automatically generate IDs on SWT-Widgets

梦想与她 提交于 2019-12-19 21:23:22
问题 Is there a way to automatically generate IDs on SWT-Widgets so UI-Tests can reference them? I know i can manually set an id using seData but I want to implement this feature for an existing application in a somewhat generic fashion. 回答1: You can recursively assign IDs for all your shells in your application using Display.getCurrent().getShells(); and Widget.setData(); . Setting the IDs Shell []shells = Display.getCurrent().getShells(); for(Shell obj : shells) { setIds(obj); } You have access

How to mock data in UITest on Xcode 7?

╄→гoц情女王★ 提交于 2019-12-18 11:31:58
问题 Someone has tried to include mock data with the new Xcode 7 UI tests? Have you used an specific framework? How have you managed targets? 回答1: I think there are a lot of ways to approach this one - the difficulty is that Apple has intentionally designed UITests to run entirely separate from the app under test. That said, there are a few hooks you can use to coordinate logic in the app with logic in your tests to feed in mock data or alter the behavior of your app in any way. The two I have

Testing ViewPager with Espresso. How perfom action to a button of an Item?

不问归期 提交于 2019-12-18 10:42:08
问题 I have a ViewPager whith items containing only a picture and a button. I can't successfully interact with the UI of an item (Page) because, except the displayed picture, there is nothing to differentiate (from UI point of view) all items of the ViewPager . I tried to select only one item with a position: onData(is(instanceOf(ItemClass.class))) .atPosition(0) .onChildView(withId(R.id.button)) .perform(click()); causing: NoMatchingViewException: No views in hierarchy found matching: is