| || |
User (firstname.lastname@example.org) posted:
What are the problems that you are having?
If it is that the test seems to be doing the same thing every time,
then have you seeded the random number generator? Neil's function
shows you how to do this (it is the srand command in the function).
In this function he is reseeding every time the function is called
which could give strange, possibly semi-random results. I have a
test script initialization function that I call at the beginning of
every script and one of the things I do here is the srand command.
If you are not doing this it would cause your tests to run with the
same results every time it is executed.
Hope this helps.
--- In winrunner@y..., "Neil Cameron" <neilc@q...> wrote: