Test case as a function or test case as a class
Posted
by
GodMan
on Programmers
See other posts from Programmers
or by GodMan
Published on 2012-10-13T08:28:53Z
Indexed on
2012/10/13
9:51 UTC
Read the original article
Hit count: 372
I am having a design problem in test automation:-
Requirements - Need to test different servers (using unix console and not GUI) through automation framework. Tests which I'm going to run - Unit, System, Integration
Question: While designing a test case, I am thinking that a Test Case should be a part of a test suite (test suite is a class), just as we have in Python's pyunit framework. But, should we keep test cases as functions for a scalable automation framework or should be keep test cases as separate classes(each having their own setup, run and teardown methods) ? From automation perspective, Is the idea of having a test case as a class more scalable, maintainable or as a function?
© Programmers or respective owner