Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
835 views
by The go-to Tester (232 points)
retagged by
Hi all,

I am using C# and SpecFlow for automation testing. And i have met an issue that if an unexpected dialog or event appears, the test step hang forever.

I think i must implement a mechanism so that the test case/test step must be killed after a setting time period, e.g: timeout 1 minute for a test step or 3 mins for a test case.

Please help to show some solutions for it!

Many thanks!

MinMin

1 Answer

0 like 0 dislike
by Expert (572 points)
Have you tried adding the [Timeout(x)] attribute to the TestFixture to solves the issue?
...