Forum Discussion

NAVTEQ_Support_1's avatar
NAVTEQ_Support_1
Contributor
13 years ago

Testrunner sets property after loadscript execution

Hi,

I'm not sure if this is intentional feature or a bug but apparently if I specify project property while executing testrunner with -P[property setup], this is actually done only after project loadscript is executed. Seems really wrong (at least for me) since my loadscript uses the one property I'm modifying through the -P parameter.

Any thoughts? Thanks,

roman

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Roman,

    You are correct - these property values are assigned after the project has been loaded (which includes execution of the onLoad script). You could override these properties by specifying a properties-file containing their values with -Dsoapui.properties.<normalizednameofproject>=<propertiesfile>, for example if your project name is "My Project" you would add -Dsoapui.properties.MyProject=properties.txt

    Does that help?

    regards,

    /Ole
    SmartBear Software