Run White UI Tests using Hudson CI
I have Hudson CI installed on a linux vm and a slave on windows 7 vm. I have a project开发者_如何学Go running on the slave and it has some unit tests using the Project White Automated UI testing framework. All of those tests involve launching the application first in order to perform tasks like clicking on a button.
Problem
Hudson builds the project fine but when it gets to running the nunit tests with the UI tests it doesn't launch the application in order to perform those tests so all the the UI tests throw errors saying that the window im trying to use cannot be found because the application isn't being launched. All the regular unit tests run fine. How can I get hudson slave to launch the application so that i can run the UI tests?
It seems that vnc and not using Hudson as a service are essential to make this work right. There are some good suggestions on the Project White CI Page. One that goes into a little bit of detail is here (It's for CruiseControl, but should work with Hudson).
What user do you run your Hudson slave with? Does it run as a service using the local_system user? If yes, you won't have a chance.
Solution, change the user your Hudson slave service runs as to a 'real' user account. You also need to check the interact-with-desktop option. That should work than for you.
精彩评论