Search code examples
proxyautomated-testsintegration-testinghttp-proxyregression-testing

Proxy for multiple test environment


I am trying to setup Test Automation process to be executed on multiple Under Test Environments acting on intermediate proxy. See below picture

enter image description here

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:

  1. My idea can work

  2. Squid is the correct tool or maybe there is something that fits better

  3. It's preferable to have:

    • one proxy instance/environment
    • one proxy instance and TA setup changes dynamically destination environment.

Regards


Solution

  • 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.