Forum Discussion

BenX's avatar
BenX
Contributor
15 years ago

DataGen - Shared

I'm running load test in 4 threads.
There's a very simple DataGen which is working in all threads (Shared option).
It seems that "Shared" option is not working very well.
If DataGen is set to number 5 for example, then next should be 6, 7 ,8 9,...
From time to time it happens like this: 5, 6, 7, 8 ,8 ,9 ,10 ,...
TPS is just at ~3, so there's not a lot of traffic.

Please check the picture.
Yoe see 4 threads and about 20 numbers. There's no way that two of them could occure at the same time! 
Am I doing something wrong?

I'm using soapUI Pro 3.5-beta1.

with best regards,
Beno
  • BenX's avatar
    BenX
    Contributor
    eviware support wrote:

    ...
    You will probably need to use a shared DataSource instead, set it to type "Script" and create a script that returns a new number each time..
    ...


    will this save my problem when running in more threads?
    is there an example how to write script like this?
  • BenX's avatar
    BenX
    Contributor
    hi,

    i have problem. again... 
    datagen is working with more threads (shared option). but not very well! when traffic is a bit bigger it's not sending data anymore, at least not correct.
    grid has problems, but when retrieving data from .xls (excel), it's a total disaster.

    please check picture.
    data is not transfered from datagen into request.
    you can see message viewer (also marked with big NOT OK). request is empty.
    if i put test delay (1s for example) betwean each test run then everything works ok.
  • Beno_Iskratel's avatar
    Beno_Iskratel
    Frequent Contributor
    i recieved username and password for pro forum. 

    BenX here.

    well, the problem is still the same. with bigger traffic (~50 TPS, not really big actually, is it?), datagen isn't working. problems occure because data is not sent from time to time.
    propperty transfer doesn't get any imput.
    you can check last test case if you like (with "- test" at the end).

    with best regards,
    Benx

    ...i mean Iskratel 
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    In the DataSource options, please try checking the "Restart shared DataSources during LoadTests" checkbox.

    Regards,
    Dain
    eviware.com
  • BenX's avatar
    BenX
    Contributor
    i did.
    without this it doesn't work at all.
    it comes to the end of the list and doesn't start from beginning.

    by the way, i can't log on with pro username (attachment).
  • Beno_Iskratel's avatar
    Beno_Iskratel
    Frequent Contributor
    BenX wrote:

    by the way, i can't log on with pro username (attachment).


    my mistake. sorry.
    it's working ok. i changed profile name which is not the same as username... then i was trying to log on with profile name not username.
    i guess username can't be changed.


    so...
    any idea what could be wrong with datagen? why is there no output from datagen from time to time?

    BenX