开发者

One testcase per class or all testcases in one class

开发者 https://www.devze.com 2023-02-11 05:17 出处:网络
I want to ask you about your testcases hierarchy. Dou you have one testcase per class or all testcases in one class?

I want to ask you about your testcases hierarchy.

Dou you have one testcase per class or all testcases in one class?

I'm using python with selenium but I think it doesn't matter. All testcases are for the sam开发者_如何学Pythone website.


Hey.
You can put all test cases in one class, and when it grows (like 2KLOC :P ) then you really should re-factor it to separate classes.
Or you can put in into separate classes just to separate different groups of test cases.

So: 'It depends', 'whatever suits you', 'what your specific setup needs', 'the simplest thing that works', 'it is not that really important how you do it, as long as you do it', etc.. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消