Options

Ratio question

Ian1971Ian1971 Posts: 44
edited October 5, 2005 6:48AM in ANTS Load
I have created 10 scripts for my test project, which model the behaviour of 10 types of user in our system. I have assigned each of the scripts a ratio (between 1 and 3), adding up to a total number of 15.
If I set the load to 15 virtual clients, I was expecting to see every script used, but in fact only 8 of the script were hit.
Have I misunderstood how ratios work?

Cheers
Ian

Comments

  • Options
    Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hi Ian,

    Have you tried just running the test a bit longer? Maybe there wasn't enough time in the test to run all of the actors' scripts.
  • Options
    Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Come to think of it, I don't think that this would help either. If you had 10 virtual users and your ratio adds up to more than 10, I could see that some scripts wouldn't run. Each virtual client is going to get a copy of a script to run over and over again in a continuous loop, therefore increasing the amount of time definitely wouldn't help.

    I'm afraid the only way to guarantee all scripts to run when the number of scripts is the same as the number of virtual clients would be to set the ratio of every script to 1.
This discussion has been closed.