0

My company wants me to write UI tests that test the business logic (all of the use cases MUST be independently testable) I decided to do it in selenium. I have managed to create a decent product (as of now about 80% of use cases are covered, I have a video recording feature of the test run and a screenshot feature for each failing test case -- and all of these features are accessible though an easy to use GUI). Oh, and I forgot to mention that it will work on windows 10 as well as Ubuntu (the latest LTS) and it also allows you to run the tests in a variety of browsers, which can be selected from a drop down menu in the GUI.

But my company is not happy because I have only done 80% coverage. They think I am an idiot who is progressing too slowly. They don't understand how much work was involved in creating what I have so far and how stupid it is to test business logic through the UI.

Am i being unreasonable or are they?

closed as primarily opinion-based by gnat, Bart van Ingen Schenau, Ross Patterson, Adam Zuckerman, Ixrec May 1 '16 at 20:42

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    It is impossible for us to tell who is being unreasonable here. It is equally possible that both or neither of you are being unreasonable and it all depends on the details of what you have done and what you were asked to do. In any case, we are not going to play arbiter here. – Bart van Ingen Schenau Apr 30 '16 at 8:52
  • Only you and your guts know if you are doing your best. If you feel you have done this inappropriately, or overengineered that (ie "loosing" time) then at least defend what is working. Nevertheless setting up proper testing is expensive and you should make them aware of that fact. – Tibo Apr 30 '16 at 12:41
  • You managed to get 80% code coverage through the UI?! That's actually fairly amazing. I read once that testing through the UI usually garners about 20-30% code coverage. – RubberDuck Apr 30 '16 at 15:51
2

About your 80%. I assume it is about code coverage, right? The question is also can you test all business logic through the UI? Is every code path really available through UI actions? There might be logical path that are not executed at all. So maybe 80% is close to the maximum possible?

And normally unit tests are used to test business logic I think.

  • Yeah 80% code coverage is very good – Alexander Mills May 31 '17 at 15:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.