UNPKG

@plone/create-volto-app

Version:
45 lines (39 loc) 763 B
const xmlrpc = require('xmlrpc'); const args = process.argv; const command = process.argv[2]; // create a client const client = xmlrpc.createClient({ host: 'localhost', port: 55001, path: '/plone/RobotRemote', }); function setup() { // Setup site client.methodCall( 'run_keyword', [ 'remote_zodb_setup', ['plone.app.robotframework.testing.PLONE_ROBOT_TESTING'], ], () => {}, ); } function teardown() { // Tearing down client.methodCall( 'run_keyword', [ 'remote_zodb_teardown', ['plone.app.robotframework.testing.PLONE_ROBOT_TESTING'], ], () => {}, ); } switch (command) { case 'setup': return setup(); case 'teardown': return teardown(); default: return setup(); }