class TestRunner:
    def __call__(self):
        user1()
        user2()
        user3()
        user4()
How do I execute the users randomly in jython, to run in grinder tool?
class TestRunner:
    def __call__(self):
        user1()
        user2()
        user3()
        user4()
How do I execute the users randomly in jython, to run in grinder tool?
Store the functions in a list (without calling them), then use random.shuffle:
import random
class TestRunner:
    def __call__(self):
        users = [user1, user2, user3, user4]
        random.shuffle(users)
        for user in users:
            user()
I don't know jython, but if you want a random choice, this should work
import random
class TestRunner:
    def __call__(self):
        func = random.choice([user1, user2, user3, user3])
        func()