How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask DroidZombie Your Own Question
DroidZombie
DroidZombie, Programming Enthusiast
Category: Programming
Satisfied Customers: 17
Experience:  Need a few *pointers? I'm happy to help. If you missed that joke feel free to ask me anything
76391150
Type Your Programming Question Here...
DroidZombie is online now

Im using GroovyScript in SoapUI and wish to run a set of 60

Customer Question

I'm using GroovyScript in SoapUI and wish to run a set of 60 tests concurrently. Each test requires a user Id to work but the same id cannot be used in more than 1 test running at the same time. I have a text file with a list of user ids but I don't have enough knowledge on the language. I can provide more detail if you can help. Thanks
Submitted: 3 years ago.
Category: Programming
Expert:  DroidZombie replied 3 years ago.

DroidZombie :

Hi there, I think I might have a solution to your problem.

DroidZombie :

Start with a standard teststep loop

DroidZombie :

1.if( context.loopIndex == null )

2.context.loopIndex = 0
3.
4.if( ++context.loopIndex < 10 )
5.testRunner.gotoStepByName( "Name of first TestStep in loop" )
DroidZombie :

Then inside the loop ask for a username to be input. If you have a database of users you will need to call a function to check it and verify the username and password.