Is Selenium a good testing software?

In my last project, I created some test cases through Selenium , then automated them so that they would run on every build running with hudson . He worked fantastically and was consistent for a month.

Then the tests started to fail. In most cases, these were the problems of the time that caused the setbacks. After two weeks of effort over the next two months, it was decided to abandon selenium tests. They should have passed, but the answers and time frames of the web application differed to the extent that the tests failed when they had to pass.

Have you had a similar experience? Is Selenium a good tool for testing web applications?

+3
source share
7 answers

Selenium is a great web testing tool, although it's important to make sure your tests are reliable. Timing issues are general, so I would suggest the following:

  • Make sure you set a reasonable timeout value. I find that between 1-2 minutes it works well.
  • You do not have pauses in the tests - they are the main cause of synchronization problems. Use the waitFor * commands instead. The waitForCondition function is very useful.
  • , - . localhost hosts.

Update:

. , . TestNG , - , - -, .

+14

, , . , .

0.8 , , .

+1

. , - selenium , , , . , . .

, , .

, . , , .

+1

, , . , Watin, coulod .

, , .

, , , .

+1

Selenium. , , , . , ( ), .

, , .. , . , 30 .

, , Selenium - -. , , , , , . , , Selenium .

EDIT: Selenium - , , ( ). , .

+1

, , , , , , , . nunit.

selenium . .

+1

, Selenium . , , , .

+1

Source: https://habr.com/ru/post/1718219/


All Articles