Hi All,
I'm hoping someone out there might be able to assist with this query. I've been trying to get this to work for 2 days to date.
Context:
Use white test framework (
white.codeplex.com) or Microsoft UI Automation Framework to drive a WPF or Win32 application in Jenkins.
Scenario:
I can run the attached code (ListBoxExample WPF Application) from the command line (logged in as a user in the Adminstrators group) with the following command:
"C:\Program Files\NUnit 2.5.10\bin\net-2.0\nunit.exe" Tests.dll /xml=white-testresult.xml.
From the command line it works correctly and I see it driving the application.
When I run the same code and command (Windows batch Command) from Jenkins I get following console output:
"White.Core.UIItems.UIActionException : Couldn't find window with title Calculator in process 860, after waiting for 5000 ms"
When I restart my Jenkins service in Interactive mode it does actually launch the application, ALL attempts (so far) to get a reference to a control return null and the next Assert fails
Question:Has anyone else experienced this and have any guidance on how to make it work? Is it different syntax? I have even tried the approaches recommended in Microsoft UI Automation framework examples and they also fail in Jenkins - attempts to get references to controls return null.
WishList:
A Jenkins plugin like Selenium Grid (i.e. that just work) that would drive WPF and Win32 applications using Microsoft UI Automation framework.
Thanks in advance.
Regards,
Andrew