Search code examples
functional-testingcoded-ui-testsgui-testing

Why are Coded UI tests important?


I'm wondering why Coded UI tests are so important. It seems like I'm just recording my actions and so obviously everything is going to pass. It kinda seems like it's just me documenting that I did in fact mess around with the GUI. All my assertions seem ridiculously obvious. Of course they are going to be true. Can someone explain to me why these are worth the time? I'm sure they are, but I don't see why they are so important.... I mean, I could test my basic program by hand in five minutes, but it's going to take me a good hour to do legit coded UI tests.


Solution

  • Because your application is likely to change in the future, so there's a possibility you could introduce a bug that causes your UI not to display correctly.

    That's why you write tests, to test your application always behaves the way you expect it to.