Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

configurable pararrel run

Hello,
While using 'run test cases in parallel' option, a lot of time we run into collisions in our tests cases where uniqueness is required.

One way would be to better script our test cases so that even running them but we have quite a lot of test cases and it is not quite feasible.

would it be possible to add a 'configure' option so that all tests in a testsuite start with some delay distributed between between them.

so if i have testcase 1-4, i would like

testcase 1 start immediately
testcase 2 start after waiting 1 seconds
testcase 2 start after waiting 2 seconds
testcase 3 start after waiting 3 seconds
testcase 4 start after waiting 4 seconds


Thanks

Ali

2 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    thanks.. I'll give this some thought.. Another alternative might be a seperate testcase with a single script that runs these testcases as you desire? Or Run TestCase steps for each of them with a delay between? (which will give better reports..)

    regards!

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    I have thought about these scenarios.

    1. writing a groovy to execute testcase will take a lot of time in itself.
    2. not sure what you mean by the second suggestion. create a delay in each testcase ? if this is what you meant , then it is also very time consuming.

    maybe if I have a groovy script in the load script that can create a temp delay step in each testsuite's testcases, that might accomplish what I am trying to do.

    Ali