To run coded tests using TestProject’s Open SDK on docker agents you will have to create a bit different yaml file as described in here:
The Open SDK configuration is at the end of this document.
After you configured your yaml file correctly, you will need to spin the container by using:
docker-compose -f <file_name> up -d
After the container is up, you can run your code and it should execute on the Dockerized agent.
Note that if you configured a port that is different from 8585, you will have to change the: TP_AGENT_URL environment variable in your code.
You can also define multiple docker agents in your yaml file, each agent will be with a different port(each docker agent is a different service essentially), here is an example:
If you want to run your python scripts using Docker agents in an ephemeral way, you can do it by running those tests in a pipeline as described in this document: