I inherited a C # window app in which I am not crazy. I have an impending deadline, and I'm afraid to death that some of my changes may have a negative impact on existing functionality.
I have a background for RoR, and it's pretty convenient for me to test in this structure (using RSpec and Cucumber).
I like to have test scripts that you can run on a regular basis, and I am ready to spend my personal time on the development of this project. I bought a book from PragProg.com on a GUI testing script with Ruby ( http://pragprog.com/titles/idgtr/scripted-gui-testing-with-ruby ). So far I have been digging what I see, and I think this should work well.
Unfortunately, I have a fundamental lack of understanding regarding Windows application development. I make FindWindowEx calls (via Win32API) to “try” to get sub-controls in my application.
Most of my confusion is how I should get the class name of the control I'm trying to capture. An example presented in the text is as follows:
edit = find_window_ex.call @main_window, 0, 'ATL:00434310', nil
Where @main_window is the handle to the main application window, and "ATL: ..." is the class of the text field area. There is no explanation as to how the author came to "ATL: ...".
I read some very old posts about MS SPY ++, but they seem deprecated (or for some reason it was not installed when I installed vs2010).
, , findWindowEx? - ? , , ? , - "" ?
- !