bzh027
8 years agoNew Contributor
How do you organize script units? Do you follow any public standards or best practices?
I recently started working with Testcomplete (specifically the web module) after a long hiatus with even basic scripting, and this is my first foray into the QA space (aka I'm a newb). I've never had to follow any programming standards or worked with a large QA department. I'm looking for suggestions on how to keep script units organized. Here is my plan for now:
- Create stand alone script units with single functions, not tied to QAComplete for things like login, logout, and other components.
- Create loop script units for multi browser testing, and data driven loops.
- Create 'Test' script units for individual tests based on our QAComplete test plans, that call the functions from the loop scripts and stand alone scripts, passing parameters as necessary. I would link these to the test plans in QAComplete.
What strategies or organizational standards do you use? Any suggestions or criticisms of my game plan?