white

UI Automation White framework “NonComVisibleBaseClass was detected” exception

泄露秘密 提交于 2020-08-02 08:11:47
问题 I am testing an application which loads a powerpoint (.ppt or .pptx) file insert it. Application gives same look an feel like powerpoint with some extra setting when the file is loaded inside the application. When I try to automate the application, I click a button to load the powerpoint file into the application. After the loading process white framework fails to continue playback. When I restart the same test again I got " NonComVisibleBaseClass was detected " exception. I can only continue

Halcon - how to set white balance

我是研究僧i 提交于 2020-05-17 06:04:02
问题 I have this code to try around with halcon. Images are quite greenish, and cannot figure out how to set whitebalance. I cannot find it in the samples, in the documentation, on google, and in the parameters. How is whitebalance set on halcon? * Image Acquisition 06: Code generated by Image Acquisition 06 * Image Acquisition 06: Attention: The initialization may fail in case parameters need to * Image Acquisition 06: be set in a specific order (e.g., image resolution vs. offset). open

Halcon - how to set white balance

て烟熏妆下的殇ゞ 提交于 2020-05-17 06:03:18
问题 I have this code to try around with halcon. Images are quite greenish, and cannot figure out how to set whitebalance. I cannot find it in the samples, in the documentation, on google, and in the parameters. How is whitebalance set on halcon? * Image Acquisition 06: Code generated by Image Acquisition 06 * Image Acquisition 06: Attention: The initialization may fail in case parameters need to * Image Acquisition 06: be set in a specific order (e.g., image resolution vs. offset). open

Silverlight tests not working unless RDP connection open

会有一股神秘感。 提交于 2020-01-14 03:17:07
问题 I have a few Silverlight UI tests that I'm automating with White. These tests are subsequently run by a TFS build agent, which is running interactively so it can access the desktop. The build passes if I have a Remote Desktop connection open to the build agent as the tests are run; I can see the mouse pointer moving around. When the test clicks on a HyperlinkButton navigation takes place, and is subsequently verified by assertions within the test. The build fails if I do not have a Remote

TestStack | How to find custom controls and invoke methods / fire events

两盒软妹~` 提交于 2020-01-11 13:55:09
问题 I have a custom Control HtButton which inherits from Control . I made a custom FrameworkElementAutomationPeer and override the OnCreateAutomationPeer() in HtButton . public class HtButtonAutomationPeer : FrameworkElementAutomationPeer { public HtButtonAutomationPeer([NotNull] FrameworkElement owner) : base(owner) { } protected override string GetClassNameCore() { return "HtButton"; } } public abstract class HtButtonBase : Control { } public class HtButton : HtButtonBase { protected override

How could I find an application window via it's ClassID?

徘徊边缘 提交于 2020-01-05 08:05:36
问题 I'm using White for test automation. I had created simple application test, which is tracking an application via it's dialog name. var appCalc = Application.AttachOrLaunch(new ProcessStartInfo("application.exe")); var wndCalc = appCalc.GetWindow("Dialog caption"); But this approach is unstable, because in different localisations, the caption could differ. How could i track my application, using it's ClassID? 回答1: var wndCalc = appCalc.GetWindow(SearchCriteria.ByNativeProperty

How can I get a control's DataContext from an external application using UI Automation (and/or White)

不打扰是莪最后的温柔 提交于 2020-01-05 03:05:29
问题 I'm using White to drive the UI of a WPF app, and it's worked well so far. I'm at the point however, where I need to poke into the internal state of the app under test to check some conditions. Specifically, I have a DataGrid (from the WPFToolkit), which is databound to a List<MyBusinessObject> . Each row therefore has a DataContext of a MyBusinessObject I can get the grid using white by finding it with it's automation ID. I can then do this: var row = Grid.Rows[0] row.AutomationElement

Free automated Testing tools for MFC based GUI App

两盒软妹~` 提交于 2020-01-02 09:57:19
问题 I am a complete newbie to Windows development and test platforms. I am working on a legacy MFC based GUI application and looking for tools that would help with automated testing of the UI. A whole bunch of tools came up when I searched but most of them don't seem to support MFC. The options I considered were: a. Coded UI/ UI Automation - Seems like a good fit but not supported in Visual Studio Professional 2012 (which is my dev env). b. Google test - no MFC support ? (Pls share any pointers

Getting IUIItem[] for children of CustomUIItem in TestStack.White

不打扰是莪最后的温柔 提交于 2019-12-24 02:16:25
问题 A WPF Application is using an Application Framework and I can edit neither of them. I can visit every element in the GUI doing something along these lines: IUIItem[] items = window.GetMultiple(SearchCriteria.All); foreach (var item in items) { visit((dynamic)item); } I have no Issue with normal controls but I hit a wall with CustomUIItem . I would like to visit all the Children of it but I fail to make a new array IUIItem[] from them. Here is what I have now: void visit(CustomUIItem item) {

WPF, Project White and Infragistics

你离开我真会死。 提交于 2019-12-22 10:46:02
问题 I am trying to use Project White to write automated tests for my WPF application. It is all going well until I try to interact with Infragistics controls. Has anyone had any experience of this set up and would you be able to post an example of how I can (for example) interact with the XamRibbon or XamOutlookBar? 回答1: Bit of a generic answer I'm afraid, but if White isn't helping you, you can use Microsoft UI Automation directly. First, find your control. If it's got a WPF "Name" then it