Config Properties

Properties Config

    Main configuration file is Properties.property located at automation -> resources directory
    Here we set config profile and config group for our properties
    1
    # properties/conf file location. add additional locations by prefixing with "config". eg. config.api = "../apiTestData/"
    2
    # location from root directory ( where pom.xml file is located at )
    3
    # note: to have config properties generated for new directory, add location to ant.xml file ( root directory, where pom.xml is )
    4
    # at checkforCsvAndConfigchanges section. eg. <srcfiles dir="resources" includes="**/*.property"/>
    5
    6
    # main properties
    7
    profile.group.root = main
    8
    9
    # environment
    10
    profile.environment = dev
    11
    12
    # single config files. prefix: 'config.profile.'. select profile from inside the path
    13
    config.profile.environment = "./resources/properties/environment/"
    14
    15
    # read all config files in . prefix: config.group.
    16
    config.group.root.main = "./resources/properties/"
    Copied!
    Config Profile: Single file property specifying an profile
    Config Group: Multiple property files specifying an profile
    User can create as many profiles and groups as needed
Last modified 1yr ago
Copy link