private void count(ITestElementContainer container) {
ITestElement[] children = container.getChildren();
if(children == null) return;
for(ITestElement element : children){
if (element instanceof ITestElementContainer) {
ITestElementContainer cont = (ITestElementContainer) element;
count(cont);
continue;
}
totalTests++;
Result result = element.getTestResult(false);