Hello, I was wondering if someone could send me screen shots of examples of good ways to organize projects in TestComplete? My test team hasn't done much with TestComplete yet, but we are tryi...
I have been working on automation projects since couple of years. Initially I worked on Selenium tool and recently from few months I am working on TestComplete.
The framework I have come up with is similar to what we used in Selenium/C# project in Visual Studio.
I have organized/categorized our project in three different folders.
Folder 1 -> Controls
Folder 2 -> Functions
Folder 3 -> TestScripts
Folder 1 contains all controls in the application. To demonstrate a little bit in details here for example if you have a login page then get all the controls on login page and store it in LoginPageControls unit.
Folder 2 contains all the functions that need to be simulated for creating test scripts using underlying controls. LoginPageFunctions unit will have a function called LoginFunction which will actually enter username and password in the login page controls and click on Login button. Similarly create other functions that will cover all test scenarios and can be re-used from other units.
Folder 3 contails all test cases for the application by module or page. For example LoginTestScript unit will just call the function LoginFunction and verify the end results. Similarly one can create test scripts for all test cases by first creating controls and functions for each page or module.
The advantage of this frame work is we can create test scripts speedily. Then if any underlying control is changed in future, its easy to make changes in automation code just by locating the control unit and updating the same. All rest functions and test scripts that use this function will keep working properly as usual.
Another advantage of this framework is not much skilled expertise is required for creating scripts.
Let me know your thoughts, comments or suggestions on this!!!