I am running a TestSuite in which there are many test cases. At the end, I put a code module which will send email if one of the test cases failed. But how can I know that?
I attach a screenshot of my TestSuite.
As you can see, in the code module "Alerte" I would like to check the status of the module "CheckPaiementRuntime" inside the testcase "SeConnecter". is it possible to do that?
The workaround I tried is to use one global parameter called for example paramError.
The "CheckPaiementRuntime" module is only one User Code Action inside a try/catch. Inside the catch, I wrote:
Code: Select all
catch (Exception e)
{
Report.Error(e.ToString());
TestSuite.Current.Parameters["paramError"]="yes";
}
How can you help me?