All Projects → CiscoTestAutomation → Pyats Docker

CiscoTestAutomation / Pyats Docker

Licence: apache-2.0
Dockerfile and scripts for pyATS

Projects that are alternatives of or similar to Pyats Docker

Cypress
Fast, easy and reliable testing for anything that runs in a browser.
Stars: ✭ 35,145 (+103267.65%)
Mutual labels:  testing-tools, test-automation
jdbdt
JDBDT: Java Database Delta Testing
Stars: ✭ 12 (-64.71%)
Mutual labels:  test-automation, testing-tools
request-baskets
HTTP requests collector to test webhooks, notifications, REST clients and more ...
Stars: ✭ 149 (+338.24%)
Mutual labels:  test-automation, testing-tools
page-walker
Chrome DevTools automation for desktop and mobile devices
Stars: ✭ 18 (-47.06%)
Mutual labels:  test-automation, testing-tools
Es Check
Checks the version of ES in JavaScript files with simple shell commands 🏆
Stars: ✭ 448 (+1217.65%)
Mutual labels:  testing-tools, test-automation
servirtium-java
Service Virtualized HTTP - to help service test automation stay fast and consistent
Stars: ✭ 16 (-52.94%)
Mutual labels:  test-automation, testing-tools
DeepfakeHTTP
DeepfakeHTTP is a web server that uses HTTP dumps as a source for responses.
Stars: ✭ 373 (+997.06%)
Mutual labels:  test-automation, testing-tools
service-ui
UI service for Report Portal
Stars: ✭ 47 (+38.24%)
Mutual labels:  test-automation, testing-tools
Tlsfuzzer
SSL and TLS protocol test suite and fuzzer
Stars: ✭ 335 (+885.29%)
Mutual labels:  testing-tools, test-automation
Nut.js
Native UI testing / controlling with node
Stars: ✭ 309 (+808.82%)
Mutual labels:  testing-tools, test-automation
vim-testbed
Docker image for testing Vim plugins
Stars: ✭ 40 (+17.65%)
Mutual labels:  test-automation, testing-tools
Karate
Test Automation Made Simple
Stars: ✭ 5,497 (+16067.65%)
Mutual labels:  testing-tools, test-automation
educhain
an instructional purpose blockchain.
Stars: ✭ 21 (-38.24%)
Mutual labels:  test-automation, testing-tools
page-modeller
⚙️ Browser DevTools extension for modelling web pages for automation.
Stars: ✭ 66 (+94.12%)
Mutual labels:  test-automation, testing-tools
mbt-bundle
A core library for Sicope Model, a Model-Based Testing tool for web application.
Stars: ✭ 19 (-44.12%)
Mutual labels:  test-automation, testing-tools
Openrunner
Computest Openrunner: Benchmark and functional testing for frontend-heavy web applications
Stars: ✭ 16 (-52.94%)
Mutual labels:  test-automation, testing-tools
karate-runner
VSCode Extension for Karate
Stars: ✭ 23 (-32.35%)
Mutual labels:  test-automation, testing-tools
Wasmite
Now WebAssembly has proper testing, unit-testing and debugging 🤗
Stars: ✭ 20 (-41.18%)
Mutual labels:  test-automation, testing-tools
sbml-test-suite
The SBML Test Suite is a conformance testing system. It allows developers and users to test the degree and correctness of the SBML support provided in a software package.
Stars: ✭ 21 (-38.24%)
Mutual labels:  test-automation, testing-tools
Awesome Test Automation
A curated list of awesome test automation frameworks, tools, libraries, and software for different programming languages. Sponsored by http://sdclabs.com
Stars: ✭ 4,712 (+13758.82%)
Mutual labels:  testing-tools, test-automation

published

pyATS Dockerfile and Scripts

This is the Git repo for the official pyATS test framework Docker image. This repository contains Dockerfiles and scripts used to build the actual image, available as ciscotestautomation/pyats tag on Dockerhub.

General Information

How to Use the pyATS Docker Image

Downloading the Image

Downloading the pyATS image in a separate step is not strictly necessary, but is a good practise to ensure your local image is always kept up-to-date.

$ docker pull ciscotestautomation/pyats:latest

where the latest tag can be replace with the specific version of pyATS you need.

Starting the pyATS Container

The pyATS docker container defaults to starting in Python interactive shell.

$ docker run -it ciscotestautomation/pyats:latest
[Entrypoint] Starting pyATS Docker Image ...
[Entrypoint] Workspace Directory: /pyats
[Entrypoint] Activating workspace
Python 3.4.7 (default, Nov  4 2017, 22:21:42)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Alternatively, you can also start the container in shell,

$ docker run -it ciscotestautomation/pyats:latest /bin/bash
[Entrypoint] Starting pyATS Docker Image ...
[Entrypoint] Workspace Directory: /pyats
[Entrypoint] Activating workspace
[email protected]:/pyats#

The pyATS virtual environment is sourced automatically, and your workspace is preset to be /pyats. Note that this workspace directory (virtual environment) is declared to be a docker volume, so its content will persist between container reloads.

To get out of the container, try CTRL-D.

Examples and Templates

Examples and templates are built into the image under /pyats default workspace to help users on getting started.

$ docker run -it ciscotestautomation/pyats:latest /bin/bash
[Entrypoint] Starting pyATS Docker Image ...
[Entrypoint] Workspace Directory: /pyats
[Entrypoint] Activating workspace
[email protected]:/pyats# easypy examples/basic/job/basic_example_job.py

Customizing Your Container

You can use the following built-in mechanisms to customize your container before startup, and have your environment setup automatically.

requirements.txt

To populate your newly started containers with pip packages, you can customize your container by mounting a pip requirements file to /pyats/requirements.txt. When a container is first created, this required package file is automatically provided to pip to fulfill.

$ docker run -it -v /your/requirements.txt:/pyats/requirements.txt ciscotestautomation/pyats:latest
[Entrypoint] Starting pyATS Docker Image ...
[Entrypoint] Workspace Directory: /pyats
[Entrypoint] Activating workspace
[Entrypoint] Installing pip packages: /pyats/requirements.txt
Collecting requests==2.12.3 (from -r /pyats/requirements.txt (line 1))
...

workspace.init

For any other customization you need to do to your container workspace, such as pulling git repositories and setting up source code in development mode, you can mount a custom bash script to /pyats/workspace.init. This file is automatically executed as part of container initial creation.


$ docker run -it -v /your/workspace.init:/pyats/workspace.init ciscotestautomation/pyats:latest
[Entrypoint] Starting pyATS Docker Image ...
[Entrypoint] Workspace Directory: /pyats
[Entrypoint] Activating workspace
[Entrypoint] Running workspace init: /pyats/workspace.init
custom initialization
...

For a more elaborate example of the workspace.init file, see templates/ folder under this repository.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].