Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in DevOps and Agile by (19.7k points)

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

The full story: I would like to help my clients do acceptance testing by providing them with a suite of tests that use some smarts to create random (or at least pseudo-random) values for the database. One of the issues with my Selenium IDE tests at the moment is that they have predefined values - which makes some types of testing problematic.

1 Answer

0 votes
by (62.9k points)

Selenium IDE is not used, it is limited. Try using Selenium RC with Java/ Perl/ Ruby or some other languages.

By using Selenium IDE, you can embed JavaScript expressions to derive command parameters. You will be able to type a random number into a text field, for example:

type fieldName javascript{Math.floor(Math.random()*11)}

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...