How do you test visual components?

I think I understand unit testing. But I was wondering: is there a way to automate something visual, for example, to make sure smoothing works or that the rounded corners on the website look the way they should? I feel like it's just not practical, but I have little experience in the QA world.

+5
source share
4 answers

"smoothing or what do rounded corners on a website look like they should?"

You could theoretically write automated tools to take render snapshots and somehow parse them and compare with the layout.

- "", , , == .

, , , , .

, , , ( / ), .

, evey ? ? . , . -

FWIW, Firefox - . , , , - , , , , .

+2

GUI , TestComplete. . SQAF .

+1

, . , , ( ).

The best approach I've found is to structure your code to make the view layer as thin as possible. Templates such as MVC and Presentation Model are useful for this. Once you do this, you can test the business logic of the view (as in specific interactions between the components of the view) programmatically without actually having anything.

+1
source

All Articles