How to create different number ports based on environments using BTDF 6
Scenarios : when we integrate the systems specially with legacy systems, we may face issues like each environment may have an own restrictions ( Number end points/connection may vary from each environment). For example, Local may have 10 ports, TEST & QA may have 15 Ports and PRD may have 40 Ports.
- Create an Environment variable in SettingsFileGenerator.xml file as below
Local
TEST
QA
PRD
* Note : Environment variable / keyword won't be visible in SettingsFileGenerator.xml file but we can see the values for that.
- Inside PortBindingsMaster file, use the xml pre-processor to detach the proper environment as below
- Create the ports/bindings based on Environment.
1 comment:
I was looking this kind article for a while. It is very useful one. I am using this logic in my application
Post a Comment