I am trying to setup Test Automation process to be executed on multiple Under Test Environments acting on intermediate proxy. See below picture
Existing test automation process is based on data-driven testing and it contains urls provided by manual testers from production analysis (e.g. bugs, new features, etc...).
This test automation process can be executed on various testing environment (e.g. pre-production and production) depending various factors decided at run time.
I don't want to have one data-driven scenario for environment because I prefer to avoid multiple scenarios maintenance. Perhaps I am thinking to resolve with intermediate proxy. In my idea this proxy will be part of TA setup and switch traffic toward only one environment for run.
I am studying Squid as possible solution but I have not clear if:
My idea can work
Squid is the correct tool or maybe there is something that fits better
It's preferable to have:
Regards
Based on our discussion in the question comments, I would use a simple configuration file to store the URL for pre-production and production environments (instead of complicated things with a proxy). That way, you can easily point your tests to run against different environments and add any other environment specific configuration data.