Given a scenario, say if synthetic fails on the login step before it could run the other steps fun and sad time.
By normal behaviour it would send an alert as long as any steps failed, however the requirement would be.
If step login fails, the alert should not be triggered and the whole journey should retry again.
In this case would that be possible?
step('Go to website', async () => {
await page.goto('https://example.com/');
});
step('Login', async () => {
await page.getByRole('button', { name: 'Login' }).click();
});
step('Fun Time', async () => {
await page.getByRole('button', { name: 'Fun' }).click();
});
step('Sad Time', async () => {
await page.getByRole('button', { name: 'Sad' }).click();
});
shahzad31
(Shahzad)
December 1, 2023, 2:47pm
2
Hello, @linuschewpet
Might not be exactly what you are looking for , but this will help with your use case in 8.11 we added automatic retest on failure feature.
shahzad31
(Shahzad)
December 1, 2023, 2:48pm
3
You can toggle it from ui or from project monitor via key
linuschewpet:
viour it would send an alert as long as any steps failed, however the requirement would be.
If step login fails, the alert should not be triggered and the whole journey should retry again.
Hey @shahzad31 ,
Thanks for reply, actually its more related to the alerts.
Say that the "Login" step failed, it should retry and not trigger an alert.
However say if step "Fun Time" failed, it would trigger the alert.
I guess its a little closer to an if logic
if login fails = No alerts
else Trigger alert
system
(system)
Closed
December 31, 2023, 10:28am
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.