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

0 like 0 dislike
828 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?


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...