How to make / build large Selenium Test Suites?

I am building tests for a suite of enterprise products. The good advice I received from the author of Test :: WWW :: Selenium was to create subroutines for larger functions, and then parameterize them. So we have: add_user, post_blog, etc. Then these routines can be enriched to check the correctness of the text on the pages, etc. This software is very customizable, and we have dozens of sites, all different. But these building blocks can be strung together, and the driver data is changed accordingly based on each site.

Everything I found there at Selenium was a very newbie, nothing about how to build a larger test suite. Is there anything beyond this, or is it as good as it gets?

+3
source share
1 answer

It is very possible to conduct a very large number of tests for selenium. In my organization, we run 200,000 to 300,000 tests per day on several websites. So yes, maybe.

Note: - I am a code in JAVA, and all the information below is presented from the point of view of JAVA.

For large-scale testing using selenium for success, I would say that it needs 3 main components

  • Infrastructure
  • Good structure and easy to repair code
  • Simple and clear reporting

Infrastructure

. ( Selenium 2, Grid 2.0), . Selenium Grid . , . , Saucelabs.com, .

Framework

, . JAVA, . testNG. testNG , . (RC), .

, . - , . : . , . . google pageobject, .

200 000 , , , . . HTML , .

, , , , . CI ( ). Jenkins, Hudson, cruisecontrol - CI, .

+6

All Articles