Forum Discussion

deian_gi's avatar
deian_gi
New Contributor
16 years ago

Load properties in the DataSource Step

Is that a bug? In the DataSource Page the properties couldn't be loaded from external file.

That would be very nice feature.


Even better would be to have an option to automatically extract property names from the actual data source.
Excel cells, db column names etc.

1 Reply

  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    Well, here's a workaround while you wait

    Create a test case that looks like the attached screenshot and alter it as follows:

    1) Point the Property Names DataSource to a file with the property names listed and add 1 property called PropertyName.
    2) Put the following in the Create Property Script
    def propName = context.expand('${Property Names DataSource#PropertyName}')
    testRunner.testCase.getTestStepByName('Target DataSource').addProperty(propName)

    3) Point the Property Names DataSource Loop to the Property Names DataSource and make the script the target test step.
    4) The Target DataSource should be disabled so you don't have to declare the data source type yet.

    Run the test case and the properties will be added to the Target DataSource. Then you can clone it to wherever you need it.