Using Selenium IDE with random values

前端 未结 12 1865
囚心锁ツ
囚心锁ツ 2020-12-04 07:49

Is it possible to create Selenium tests using the Firefox plugin that use randomly generated values to help do regression tests?

The full story: I w

12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 08:12

    Math.random may be "good enough" but, in practice, the Random class is often preferable to Math.random(). Using Math.random , the numbers you get may not actually be completely random. The book "Effective Java Second Edition" covers this in Item #47.

提交回复
热议问题