Forum Discussion
tristaanogre
9 years agoEsteemed Contributor
Yep, it's possible. But you need to do configurations, you need error checking within the tests, etc. This item was addressed sometime back. Here's a bit of code I wrote to demonstrate:
function TestA(isError) {
try {
if (isError) {
throw new Error('Got an error in Test A');
}
else {
Log.Message('No error in Test A');
TestB();
}
}
catch (e) {
Log.Error('rasied an error: ' + e.message, e.stack);
}
}
function TestB() {
Log.Message('Ran test B');
}
function TestC(isError) {
try {
if (isError) {
throw new Error('Got an error in Test C');
}
else {
Log.Message('No error in Test C');
TestD();
}
}
catch (e) {
Log.Error('rasied an error: ' + e.message, e.stack);
}
}
function TestD() {
Log.Message('Ran test D');
}
function RunAll() {
TestA(true);
TestC(false);
}
I then configured my test items like so...
This is just one way. There are other ways with writing more complicated code, but, essentially, you'll want to do something similar.