Service Virtualization

  • 1.  How to use 2 different project.config files

    Posted Jan 10, 2017 12:01 AM

    How to use 2 different project.config files in the same project.

    e.g. we have 2 environments and we need to use 2 different project.config files depending upon environments in the same project.

    Can we achieve this with the help of any scripting code or is there any other alternative.



  • 2.  Re: How to use 2 different project.config files
    Best Answer

    Posted Jan 10, 2017 12:35 AM

    You can have multiple configuration files within a project. The project.config is by default the active configuration for any project. The project configuration follows the basic inheritance principle.  If a property value is not defined then it will use the value as defined in the parent project.config file.In order to use any other configuration you need to make it active.


    To answer your specific case in the project shown below there is a configuration created for each environment.
    - project.config (default) - Development environment
    - QA.config - QA environment
    - SIT.config - System Integration Test environment


    When you are executing the project in QA environment you simply make QA config as active (marked as green)

     



  • 3.  Re: How to use 2 different project.config files

    Broadcom Employee
    Posted Jan 10, 2017 12:55 AM

    Please see the following documentation link regarding configurations:

    Configurations - DevTest Solutions - 9.5 - CA Technologies Documentation 



  • 4.  Re: How to use 2 different project.config files

    Posted Jan 17, 2017 02:37 PM

    Mahadev,

     

    Did Ashutosh's and John's replies answer your question?

     

    Regards,

    Reid