0

After searching for tools to do the test of user scenarios, grade e2e, of binaries fully installed in their environment (meaning containers... Docker), I found nothing that looks match my needs.

So it's no orchestration, which would be on top of it. It's also not the tool that you could install on a machine to do the tests. I think I'm searching for a framework to test if docker based images have to proper outputs.

Docker has no output? Yeah, that's my question. How to make it so? Is their already a framework that thought to every of that?

Inputs:

  • Docker image
  • case data (files)
  • scenarios (scripts)

Outputs:

  • return values
  • files
  • container (not deleted, just in case)

Or am I totally thinking it sideways?

It's NOT web, NOT api, NOT user interfaces.

  • How is the tool Giving out put ? Is it printing to console ? Or a file ? If it's printing to console you can access the docker logs and get those data – PDHide Apr 4 at 11:58
  • Files inside container can be copied with docker cp or accessed via a shared volume. – dzieciou Apr 5 at 2:19
  • That's every of that, that we use. But we are surprised to have had created our own framework and methods around docker to match our Very normal and Very generic needs. We see a shitload of things to test Apis, Webapps ; but also simple binaries. But nothing to test apps fully installed, which we figure to reduce to a simple "Docker image", our new starting point. – Sandburg Apr 5 at 8:01
1

How is the tool Giving output ? Is it printing to console? Or a file?. You can access docker outputs by the following methods.

  1. If tool/SUT(service under test) is printing to console you can access the docker logs and get those data.

    docker logs -f

  2. IF output is stored to a file say ./output.txt Access that file

    docker cp <target_path> <destination_path>

  3. Create an API service or webserver in docker, Expose a docker port and access those files using the API service or url. THe below command let you access your docker service running on localhost:80 from h=your host system through localhost:8080.

    docker run -p 127.0.0.1:80:8080/tcp ubuntu bash

  4. You can mount the docker to a host volume

    docker volume create logdata docker run -it --name volume1 --mount type=volume,source=<volumename>,target=<target> microsoft/windowsservercore powershell

Read more about bindings:

https://4sysops.com/archives/introduction-to-docker-bind-mounts-and-volumes/

Read more about docker run options:

https://docs.docker.com/engine/reference/commandline/run/

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.