c# - Unit Test existing UI code -


i browsing while internet , site , instead of finding ways unit test existing code finding separate logic , interaction user (mvc approach). although great new projects time-consuming , result expensive invest existing ones. there way create specific unit tests, ideally automated, existing gui projects unfortunately connect directly databases or other systems data , data manipulated before shown? have 2 projects 1 being mfc, other c# .net 2.0 lot.

unit testing won't cut in here considering can't change existing code (not mention don't unit test ui). should kind of gui testing automation/scripting tools. sikuli. quoting literally first paragraph website:

sikuli visual technology automate , test graphical user interfaces (gui) using images (screenshots).

it doesn't simplier that. "tell" tool parts of ui should observe/interact, records , replays it. skimming through this presentation give idea of can (might check video). won't solve problems, might alternative worth considering.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -