ui-testing

Selenium:how to create test evidence report with NUnit

时光总嘲笑我的痴心妄想 提交于 2019-12-13 01:05:11
问题 I was wondering how one would create proper test evidence of Selenium UI tests. I was thinking about screenshots but they do not actually cover everything you have done as it is difficult to determine when to screenshot. (Every click or every wait or every pageload). Another option I thought about was screen recording, but this makes it rather difficult to work with parallelism as you record the whole screen and not a specific chrome window. However, you could possibly also take a screenshot

Build Frank with Cocoapods

穿精又带淫゛_ 提交于 2019-12-12 02:07:54
问题 I'm trying build Frank with my xcode app that use Cocoapods. Setup ( frank setup ) is ok. After setup i ran frank build . I get error. After some research i ran: frank build --workspace my_app.xcworkspace/ --scheme my_app and result was: ** BUILD FAILED ** The following build commands failed: Check dependencies Check dependencies Check dependencies Check dependencies After another research i have tried to specify architecture. So i tried to build app using: frank build --workspace my_app

Android Espresso - wait for asynchronous load

烂漫一生 提交于 2019-12-12 01:19:59
问题 I have a RecyclerView into which data is loaded asynchronously. The underlying engine does not use AsyncTasks, but java Executor. How do I make Espresso to wait (or check periodically), with a timeout, until a given condition is met? I've read about IdlingResource, but it seems to me like digging too deep, on a case-by-case basis, where there could exist something general-purpose, that could periodically check for a condition, until it is fulfilled or timeout happens. Couldn't it just check,

How to customize Selenium test error/fail message

爷,独闯天下 提交于 2019-12-12 00:41:02
问题 I'm using VS2012 and i want to customize my selenium tests. For example, when test fails, i want to show the text The page loaded too long - unable to login + original message instead of showing only this: OpenQA.Selenium.NoSuchElementException: Unable to find element with id == loginElementID . Is it possible? How and when to use Assertions when UI testing? That would make my tests more understandable and informative. var wait = new WebDriverWait(driver, new TimeSpan(0, 0, 0, 8)); wait

Renaming test results of UITestActionLog files or folders as the test case name

天大地大妈咪最大 提交于 2019-12-11 22:02:43
问题 Really appreciate your help Adrian. I was able to add the .settingfile, how can I change the generated folder name as the testcase name , lets say I have my testcase as test1(){} I want the result folder to be named as test1 as well? I Select the option on the general tab and define the User_defined Scheme , but what ever I write there appears on my test result folder, I want it to be the name of my test case In coded UI, we need to rename the test result UITestActionLog files or folders to

White Automation framework throws an exception when using “White.Core.Desktop” Class

故事扮演 提交于 2019-12-11 11:40:45
问题 I am using White Framework for automation. when I trying to get desktop instance I got exception "The type initializer for 'White.Core.Desktop' threw an exception." My code looks like : var window = White.Core.Desktop.Instance.Windows().Find(obj => obj.Title.Contains("TestAppHome")); Is there any way to capture the window without exception that is without using White.Core.Desktop class? Any help would be greatly appreciated ! 回答1: Try this one: List<White.Core.UIItems.WindowItems.Window>

How to use GPX file for UI Tests only

守給你的承諾、 提交于 2019-12-11 11:06:58
问题 I'm trying to use a GPX file, for simulating my location when I run UI Tests. I have selected the GPX file under 'Test Location'. But it's not working. I just get an error, which tells me 'Location not available'. I know, I can go into Run -> Debug and then activate 'Allow Location Simulation' and then select the file as 'Default Location'. But since I only want it to be activated for my UITests, and not when I run it normally in the simulator - I don't want to set it as default in the Run

Click Floating action button espresso

假如想象 提交于 2019-12-10 18:39:30
问题 When I try to click Floating action button using esprosso it throws a exception.I tried both single click and the double click. But the same exception occure.can I know the reason and how can I press Floating action button using espresso. This is my code onView(withId(R.id.fab)).perform(click()); Also tried this one onView(withId(R.id.fab)).perform(click(), ViewActions.closeSoftKeyboard()); This is the exception android.support.test.espresso.PerformException: Error performing 'single click'

How to dynamically share data between MyAppUITests and the MyApp target?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 17:04:40
问题 Within MyAppUITests I can pass some parameters to MyApp in following way: app.launchEnvironment = ["my_param": "value"] app.launch() This is visible for MyApp and I can read this: if let value = NSProcessInfo.processInfo().environment["my_param"] { //do sth with value } But this is how I can set it up BEFORE I launch the app. For some reason, I need to change "my_param" on runtime AFTER I launch the app. Any suggestions? I would appreciate any help. Why do I need to do it for? I need "my

Is it possible to dismiss System Alerts using EarlGrey (iOS UI Testing)?

时光总嘲笑我的痴心妄想 提交于 2019-12-10 15:26:00
问题 I'm beginning to experiment with EarlGrey a little bit, having done UI Testing using the XCUITest for some months now. I'm running into the classic problem of being unable to dismiss system alerts, which is strange as it looks as though Google implemented a matcher for system alerts called grey_systemAlertViewShown(). I'm trying to detect system alerts using GREYCondition. Here's what I've tried: - (void)waitForAndDismissSystemAlertForSeconds:(NSInteger)seconds { GREYCondition