Skip to content

joel-simpson/archivematica-acceptance-tests

 
 

Repository files navigation

Archivematica Acceptance Tests

This respository contains acceptance tests for Archivematica written using Python behave and the Gherkin language.

Installation

Create a virualenv using Python 3 and activate it:

$ sudo virtualenv -p python3 env
$ source env/bin/activate

Install the dependencies:

$ pip install -r requirements.txt

Usage

To run the tests:

$ behave

If a feature file contains tagged scenarios or scenario outlines (i.e., those with something like @tag-name above them), then you can run just those scenarious by passing the --tags argument to behave. For example, to just run the metadata-only AIP re-ingest tests, run:

$ behave --tags=mo-aip-reingest

There are also two convenience scripts for closing all transfers and closing all ingests via the GUI (i.e., using Selenium):

$ python close_all_transfers.py
$ python close_all_ingests.py

Configuration

Install a Compatible Archivematica System

These tests are a work in progress and some of them require specific Archivematica configurations. In particular, the tests encoded in the feature files that mention "conformance" and "policy" require the latest MediaConch-integration related branch of Archivematica (dev/issue-10133-ingest-policy-check-good at the time of writing).

The deploy-pub ansible playbook set at https://github.com/jrwdunham/deploy-pub/tree/dev/issue-9478-acceptance-tests-preforma should allow you to install such a system. Assuming you have VirtualBox, Vagrant and Ansible installed, use the following instructions:

$ git clone https://github.com/jrwdunham/deploy-pub.git
$ cd deploy-pub
$ git checkout dev/issue-9478-acceptance-tests-preforma
$ cd playbooks/archivematica
$ ansible-galaxy install -f -p roles/ -r requirements.yml
$ vagrant up

The tests also assume that you have configured your Archivematica installation so that it is being served at the following URL and has an administrator-level user with the following username and password. These values can be altered in features/environment.py.

About

Selenium/behave acceptance tests for Archivematica

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.1%
  • Gherkin 20.4%
  • XSLT 12.8%
  • Shell 0.7%