Forum Discussion
We exclusively script our framwork and testcase in jScript. We are not using NameMapping/Alias so we define the our common functions like you mentioned and our product functions in script extentsions and write out testcases as scripts. One reason is to avoid //USEUNIT everywhere and to make things more modular.
Regardless, even if I just used for common functions, in our environment we source control out code initially to a branch where we want to run tests and validate the code before pulling it into production..
So with TestComplete I might want to run initially with code from c:\merge and for regression i want to run from c:\automation but i don't want to manually have to change script extensions path
Hi Tim,
Just to give you an idea of how we handle this (not saying you're doing anything wrong)...
Using SVN we just update to a prior revision number...If the new changes work for us then we grab the latest version.
No merging or splitting required. However, we have a small set of scripts for the framework and everything else is data-driven.
Sounds like you may also benefit from reading about Data-Driven testing to make your tests more manageable.
- tim_faron10 years agoContributor
I don't have much say in how the repositories and branches are setup ...
This being the case we checkin to a merge branch, run a sample of tests to validate nothing is broken and then the code is merged to our regression branch where we run our from suites from.
Our tests are just .sj files, some of which are data driven and they utilize a majority of our framework which resides in script extension. Unfortiently, not being able to set the Script Exntions to load script extensions for say folrder "a" prior to running from the merge branch and folder "b" prior to running regression makes things difficult..
- Ryan_Moran10 years agoValued Contributor
In this case...I'd probably just copy the entire project to a "pre-production" project (running from your "merge" directory of course). You might run into some issues keeping project settings in sync, but I can't think of an easier way to accomplish this.
The alternative would be to add the merge scripts to your project and add a test item, but that has other challenges since you can't have scripts with the same name.
Related Content
- 5 years agonisgupta
Recent Discussions
- 15 hours agotramuntana
- 3 days agoSlickRick