Forum Discussion

edirley's avatar
edirley
Occasional Contributor
7 years ago
Solved

Try Catch Finally don't work

Hi guys,

 

I need one help friends.

 

In one test case occurs one error, I need to jump for the next test. I'm using try catch an finally, but this functions don't work.

 

Look my script test:

 

function emissaoGarantiaLicitantePublicaSucesso(){
  try{
  LoginGGTests.testAbreGG();
  cadastroDeSolicitacaoGarantiaLicitantePublicaSucesso();
  LogoutGGTests.erro;
  listaCadastroSolicitacoesComiteCreditoFavoravel();
  listaCadastroPropostaSeguroGarantiaFiancaLocat();
  autorizaAssinaturaTestSucesso();
  LogoutGGTests.fecharGG();
  LoginGGTests.testAbreGG();
  telaConsultaDocumentoSucesso();
  LogoutGGTests.fecharGG();
}
catch(e){
  Log.Error(e);
}
finally{
  LogoutGGTests.fecharGG();
}
}

 

Look my properties:

 

 

 

My version is 12.60