Skip to content

PopMedNet-Team/automated-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HPHC Automation

Harvard Pilgrim Health Care automation utilities for building a data set for application testing.

Prerequisites

Prerequisites for this utility include Node.js and a webdriver of your choice.

  1. Install Node.js.
  • Using a package management system or direct installer:

  • And manually symlink 'nodejs' with 'node':

    • $ sudo ln -s `which nodejs` /usr/bin/node
  1. Download a webdriver and put it in your PATH.
  1. Get the source code for the project by downloading as a zip or using git on the command line.
  • $ git clone https://www.github.com/joshuarichard/hphc_automation.git

Configuration

Configuration is stored in config.json. This is where your credentials and the test data's organization structure are stored. Add your credentials to the configuration file and ensure that the structure of the test data in this file is appropriate for what you are trying to add to PopMedNet.

Building

Run $ npm install in the top most directory of the project.

Running

When running the software, there are two options that are required. Firstly, the --entity flag denotes the entity you would like to operate with (currently just organizations and datamarts are supported). Secondly, the --operation flag denotes the operation you would like to execute.

Below are the commands that should be used to run this automation software. Cater the command line arguments to which operation you would like to automate. Any other options will not be accepted as valid.

Organization

  • Organization creation: $ node app.js --entity org --operation create
  • Create organization security groups: $ node app.js --entity org --operation sgs
  • Set organization permissions: $ node app.js --entity org --operation perms

DataMarts

  • DataMart creation: $ node app.js --entity dms --operation create
  • Add DataMarts to a project: $ node app.js --entity dms --operation projects

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published