While making your automated test‘s, you may find yourself in a situation where some tests are required to be carried out from different servers and locations around the world, or accessed from different countries and language specific websites. To accomplish this, you would have to change the endpoint configuration before each test run, and run the tests trough specific proxy settings or some other required capabilities.
Luckily, Webtestit has an awesome feature that lets you set up all those requirements in a single step, fast and simple, like it should be.
With the advanced endpoint configuration you can set up your local endpoint requirements that you need to simply by filling out the parameters, and you are good to go!
Set your desired capabilities, for example a proxy that you want to use with this endpoint, in the “custom” field
Hit the “Save endpoint” button and you are all set!
But, what if you need multiple different endpoint configurations for the same test run? Also not a problem! Webtestit supports creating multiple endpoint configuration files!
In the project tree, you will notice the
default.enpoints.json file. As the name itself says, this is the default set of endpoints, but if you need another set, simply create a new file in the project root with
After this step you will notice your new custom endpoints file in the root folder of your project and also available in the dropdown list of the Execution panel.
In the code panel you have and overview of the endpoints and their capabilities, contained in the selected endpoint file.
Having multiple endpoint configuration files, you no longer need to edit your endpoints before every test run. Just select your custom endpoint set from the dropdown in the execution panel, and let the testing begin!
In this article you have seen how to configure an endpoint with desired capabilities like running the test trough a remote proxy. Also you have learned about endpoint sets, and the possibility to have multiple custom endpoint configuration files to choose from.
Check out this post to see how to use Webtestit behind a proxy server at first place. You may also find Adding remote endpoints and How to access endpoint information from within tests articles interesting.