Forum Discussion
KSQian
9 years agoContributor
HKosova's approach is very TestComplete-y but I am more partial towards Robert's approach.
As projects get bigger you have to consider how easy it would be to wire new test cases or change the logic of what test cases you skip. Personally, its easier to change in code than to maintain it within the TestComplete workspace. Only change I'd make is to make the logic entirely in 'runAll' so its less obscure without tracing through multiple functions to determine the flow.
function runAll() {
if (testA() ) {
testB()
}
testC()
}
----
function testA() {
return pass?
}
function testB() {
return pass?
}
function testC() {
return pass?
}