Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

TestNG parallel run of same test case but different data files (e.g csv)

  • 12-02-2014 07:31PM
    #1
    Registered Users, Registered Users 2 Posts: 5,762 ✭✭✭


    I have a test case that I want to run with 3 different data files. Each file contains 1 unique line of test data.

    Im guessing that the a data driven properties is not allowed to list more than 1 value for each test case’s dataprovider location.

    dataprovider.CppFmAlarms.type=csv
    dataprovider.CppFmAlarms.location=sample_alarmburst_params_line2.csv


    So I need to be able to list them elsewhere.

    The idea is that the test case could be called from Jenkins with the mvn install command taking -DSuites=”TestLoadSuite1.xml” -DSuites=”TestLoadSuite2.xml” -DSuites=”TestLoadSuite3.xml” so that each test is run in a separate thread to start almost exactly at the same time.

    But is there a way that the suite file can indicate the wanted csv file (directly or indirectly)? Here is my current TestLoadSuite1.xml file contents.

    <suite name="SystemTestLoadSuite_FM1">
    <!-- This is a comment in the suite.xml file -->
    <parameter name="taf.repeat-count" value="24" />
    <test name="SystemTestLoadSuite_FM1" preserve-order="true">
    <classes>
    <class name="com.ericsson.oss.rv.test.cases.CppFmAlarms" />
    </classes>
    </test>
    </suite>

    Thanks if you can help…


Advertisement